:root {
  --ink: #11100d;
  --muted: #6d6658;
  --paper: #fbf6ea;
  --paper-2: #efe4cf;
  --line: rgba(17, 16, 13, 0.12);
  --red: #c99a3a;
  --red-dark: #8a641d;
  --gold-dark: #8a641d;
  --orange: #d7a842;
  --green: #23876f;
  --cyan: #2f8f99;
  --violet: #6d5ab8;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(36, 27, 11, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

body.is-booting {
  overflow: hidden;
}

body.is-modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button.primary-link,
button.ghost-link {
  border: 0;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(119, 18, 18, 0.42), transparent 30%),
    radial-gradient(circle at 18% 72%, rgba(188, 28, 25, 0.18), transparent 24%),
    linear-gradient(135deg, #050404 0%, #120707 46%, #050404 100%);
  color: #fff;
  transition: opacity 1100ms ease, visibility 1100ms ease;
}

.boot::before,
.boot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.boot::before {
  background:
    linear-gradient(90deg, rgba(255, 40, 36, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 40, 36, 0.05) 1px, transparent 1px);
  background-size: 86px 86px;
  opacity: 0.16;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
}

.boot::after {
  background:
    radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.34) 58%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(to bottom, rgba(255, 40, 36, 0.08), transparent 28%, rgba(255, 40, 36, 0.05));
}

.boot.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#bootCanvas,
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.boot__center {
  position: relative;
  z-index: 3;
  width: min(720px, calc(100vw - 40px));
  text-align: center;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #c99a3a, #7a5416);
  box-shadow: 0 0 0 8px rgba(202, 154, 48, 0.14);
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.26));
}

.boot__mark {
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
  background: linear-gradient(145deg, #d7a842, #7a4c11);
  box-shadow: 0 0 0 14px rgba(202, 154, 48, 0.16), 0 0 42px rgba(202, 154, 48, 0.62), 0 0 120px rgba(217, 36, 31, 0.32);
}

.boot__mark img {
  width: 76%;
  height: 76%;
  filter: drop-shadow(0 0 14px rgba(0, 0, 0, 0.35));
}

.boot__eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.boot__eyebrow {
  color: #d9241f;
}

.boot h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1;
  text-shadow: 0 0 26px rgba(217, 36, 31, 0.28);
}

.boot__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
  margin-bottom: 28px;
}

.boot__metrics span {
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.boot__metrics strong {
  display: block;
  color: #fff;
  font-size: 24px;
  line-height: 1.1;
}

.boot__skip {
  min-width: 132px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding-left: max(24px, calc((100vw - 1350px) / 2));
  padding-right: max(24px, calc((100vw - 1350px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: #11100d;
  color: #fff;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  flex: 1;
  font-size: 14px;
}

.nav a {
  color: rgba(255, 255, 255, 0.82);
}

.nav-tools {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
}

.nav-tools summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}

.nav-tools summary::-webkit-details-marker {
  display: none;
}

.nav-tools summary::after {
  content: "⌄";
  color: #d8aa42;
  font-size: 12px;
  line-height: 1;
}

.nav-tools-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 50;
  display: none;
  width: 236px;
  padding: 8px;
  border: 1px solid rgba(201, 154, 58, 0.28);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
  transform: translateX(-50%);
}

.nav-tools[open] .nav-tools-menu,
.nav-tools:hover .nav-tools-menu,
.nav-tools:focus-within .nav-tools-menu {
  display: grid;
}

.nav .nav-tools-menu a {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 6px;
  color: #15130f;
}

.nav .nav-tools-menu a:hover {
  background: #f7f1e5;
  color: #8d6100;
}

.nav-tools-menu strong {
  font-size: 14px;
}

.nav-tools-menu small {
  color: #7a746a;
  font-size: 12px;
}

.nav-tools.is-active > summary,
.nav-tools-menu a.is-current {
  color: #d7a334;
}

.tool-product-page {
  min-width: 320px;
  background: #f5f3ef;
  color: #14130f;
}

.tool-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(44px, 7vw, 110px);
  align-items: center;
  min-height: 610px;
  padding: 76px max(24px, calc((100vw - 1280px) / 2));
  background: linear-gradient(120deg, #0c0b09 0%, #16120b 58%, #30230f 100%);
  color: #fff;
}

.tool-product-copy > p:first-child,
.tool-product-features > div > p,
.tool-product-spec > div > p {
  color: #d8a43a;
  font-size: 12px;
  font-weight: 800;
}

.tool-product-copy h1 {
  margin: 10px 0 6px;
  font-size: clamp(48px, 5vw, 74px);
  line-height: 1.04;
}

.tool-product-copy h2 {
  max-width: 620px;
  margin: 0 0 24px;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 500;
  line-height: 1.35;
}

.tool-product-copy > p:not(:first-child) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.8;
}

.tool-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 34px;
}

.tool-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  min-height: 46px;
  border: 1px solid #d8a43a;
  border-radius: 6px;
  background: #d8a43a;
  color: #0d0b08;
  font-weight: 800;
}

.tool-download.is-disabled {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.58);
  cursor: not-allowed;
}

.tool-product-actions span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.tool-product-preview {
  border: 1px solid rgba(216, 164, 58, 0.48);
  border-radius: 8px;
  background: rgba(12, 11, 9, 0.82);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.tool-product-preview header {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-product-preview header span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d8a43a;
}

.tool-product-preview header span:nth-child(2) { background: #857044; }
.tool-product-preview header span:nth-child(3) { background: #367f81; }

.tool-product-preview header b {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.tool-product-preview dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 20px;
}

.tool-product-preview dl div {
  min-height: 112px;
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tool-product-preview dl div:nth-child(2n) { border-right: 0; }
.tool-product-preview dl div:nth-last-child(-n + 2) { border-bottom: 0; }

.tool-product-preview dt {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.tool-product-preview dd {
  margin: 10px 0 0;
  color: #efc663;
  font-size: 26px;
  font-weight: 800;
}

.tool-product-preview footer {
  display: flex;
  justify-content: space-between;
  padding: 20px 24px;
  background: rgba(216, 164, 58, 0.1);
}

.tool-product-preview footer span { color: #efc663; font-weight: 800; }

.tool-product-features,
.tool-product-spec {
  padding: 86px max(24px, calc((100vw - 1280px) / 2));
}

.tool-product-features > div,
.tool-product-spec > div {
  margin-bottom: 36px;
}

.tool-product-features h2,
.tool-product-spec h2 {
  margin: 8px 0 0;
  font-size: clamp(32px, 4vw, 52px);
}

.tool-product-features ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  border: 1px solid #ded8cd;
  background: #ded8cd;
  list-style: none;
}

.tool-product-features li {
  min-height: 224px;
  padding: 28px;
  background: #fff;
}

.tool-product-features li span { color: #b58219; font-weight: 900; }
.tool-product-features li h3 { margin: 34px 0 10px; font-size: 22px; }
.tool-product-features li p { color: #68635a; line-height: 1.7; }

.tool-product-spec {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(440px, 1.2fr);
  gap: 60px;
  border-top: 1px solid #ded8cd;
  background: #fff;
}

.tool-product-spec ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  background: #ded8cd;
  list-style: none;
}

.tool-product-spec li {
  min-height: 90px;
  padding: 26px;
  background: #f8f6f1;
  font-weight: 700;
}

.tool-product-spec > p {
  grid-column: 2;
  margin: -36px 0 0;
  color: #777167;
  font-size: 13px;
}

.nav a:hover,
.ghost-link:hover {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ghost-link,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  font-size: 14px;
  border: 0;
  cursor: pointer;
}

.ghost-link {
  padding: 0 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
}

.primary-link {
  padding: 0 18px;
  border: 1px solid transparent;
  background: #fff;
  color: var(--red-dark);
  font-weight: 700;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: transparent;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: clamp(28px, 5vw, 76px);
  min-height: calc(100vh - 72px);
  padding: clamp(58px, 7vw, 96px) clamp(20px, 5vw, 72px);
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 34%, rgba(201, 154, 58, 0.22), transparent 28%),
    linear-gradient(135deg, #0e0d0b 0%, #18140d 52%, #2f230f 100%);
  color: #fff;
}

.hero::after {
  display: none;
}

.hero__content,
.command-panel {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero__content {
  align-self: center;
  max-width: 760px;
}

.hero--agent {
  grid-template-columns: minmax(420px, 660px) minmax(360px, 440px);
  grid-template-areas: "copy agent";
  justify-content: center;
  align-items: center;
  min-height: 450px;
  padding: 54px max(24px, calc((100vw - 1350px) / 2)) 118px;
  column-gap: clamp(70px, 9vw, 132px);
  row-gap: 0;
  overflow: visible;
}

.hero--agent:has(.agent-card.is-agent-open) {
  min-height: 690px;
  padding-bottom: 320px;
}

.hero--agent #heroCanvas {
  display: none;
}

.hero__content--bigquant {
  grid-area: copy;
  align-self: center;
  max-width: 660px;
}

.hero__content--bigquant h2 span {
  display: block;
}

.hero .section-kicker {
  color: #ffd4c8;
}

.hero h2,
.section-heading h2,
.workspace-copy h2,
.split-section h2,
.academy h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.08;
  font-weight: 850;
}

.hero h2 {
  font-size: clamp(34px, 3.1vw, 48px);
  word-break: keep-all;
}

.hero__copy {
  max-width: 620px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.hero__copy--en {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(20px, 1.45vw, 26px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.button--primary {
  background: var(--ink);
  color: #fff;
}

.hero .button--primary {
  background: #fff;
  color: var(--red-dark);
}

.button--quiet {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
}

.button--soft {
  min-width: 150px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.button--soft span {
  margin-left: 8px;
  opacity: 0.72;
}

.agent-card {
  position: relative;
  z-index: 8;
  grid-area: agent;
  width: min(430px, 100%);
  justify-self: end;
  min-height: 0;
  padding: 24px 22px 22px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(65, 18, 14, 0.32);
  transform: none;
}

.agent-badge {
  position: absolute;
  top: -1px;
  right: 24px;
  padding: 4px 9px;
  border-radius: 0 0 3px 3px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
}

.agent-head {
  text-align: left;
}

.agent-head h3 {
  margin: 0;
  color: #b98725;
  font-size: 22px;
  line-height: 1.1;
}

.agent-head p {
  margin: 8px 0 14px;
  color: #7d7d7d;
  font-size: 13px;
}

.agent-input {
  min-height: 96px;
  padding: 14px 12px 10px;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.agent-input textarea {
  width: 100%;
  min-height: 36px;
  resize: none;
  border: 0;
  outline: 0;
  color: var(--ink);
}

.agent-input textarea::placeholder {
  color: #b8b8b8;
}

.agent-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-toolbar button {
  border: 0;
  background: transparent;
  color: #60656f;
}

.agent-toolbar .agent-mode {
  margin-left: auto;
  color: var(--ink);
  font-weight: 700;
}

.agent-send {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #d3d3d3 !important;
  color: #fff !important;
  font-size: 20px;
}

.agent-menu {
  position: absolute;
  top: 138px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: none;
  width: min(360px, calc(100% - 38px));
  max-height: calc(100vh - 220px);
  margin: 0;
  padding: 22px 14px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(30, 20, 20, 0.16);
}

@media (min-height: 660px) {
  .agent-menu {
    max-height: 390px;
  }
}

.agent-card.is-agent-open .agent-menu {
  display: block;
}

.agent-menu::after {
  content: "";
  position: absolute;
  top: 86px;
  right: 6px;
  width: 4px;
  height: 128px;
  border-radius: 999px;
  background: #d8d8d8;
}

.agent-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.agent-menu__head strong {
  font-size: 18px;
}

.agent-menu__head span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #f3f3f5;
  color: #5c5c65;
  font-size: 13px;
}

.agent-menu p {
  margin: 4px 0 12px;
  color: #5d626d;
  font-size: 13px;
}

.agent-option {
  display: flex;
  gap: 12px;
  padding: 10px 6px;
  border-top: 1px solid #f0f0f0;
}

.agent-option strong,
.agent-option span {
  display: block;
}

.agent-option strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.agent-option span {
  max-width: 270px;
  overflow: hidden;
  color: #7b8190;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-option b {
  padding: 1px 4px;
  border-radius: 3px;
  background: #25211f;
  color: #ffd38b;
  font-size: 10px;
}

.agent-option em {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  margin-left: auto;
  border-radius: 50%;
  background: #c99a3a;
  color: #fff;
  font-style: normal;
  font-size: 12px;
}

.agent-note {
  display: none;
  margin: 14px 0 0;
  color: #8d9098;
  font-size: 13px;
  text-align: center;
}

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

.prompt-grid button {
  min-width: 0;
  min-height: 82px;
  padding: 14px 16px;
  border: 1px solid #ececec;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.prompt-grid strong,
.prompt-grid span {
  display: block;
}

.prompt-grid strong {
  margin-bottom: 8px;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt-grid span {
  overflow: hidden;
  color: #737985;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.training-card {
  position: relative;
  z-index: 2;
  grid-area: training;
  display: none;
  grid-template-columns: 1fr auto;
  gap: 14px 24px;
  width: min(690px, 100%);
  justify-self: end;
  margin-top: 0;
  padding: 18px 24px 24px;
  border-radius: var(--radius);
  background: #fff6df;
  color: #6f4e13;
  box-shadow: 0 22px 70px rgba(65, 18, 14, 0.18);
}

.training-card strong {
  font-size: 20px;
}

.training-card p {
  margin: 4px 0 0;
}

.training-card a {
  align-self: start;
  color: #8d4d0a;
  font-weight: 800;
}

.training-stats {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.training-stats span {
  display: grid;
  min-height: 62px;
  place-items: center;
  border-radius: 7px;
  background: #f5dfaa;
  color: #765313;
  font-size: 12px;
}

.training-stats b {
  display: block;
  font-size: 23px;
  line-height: 1;
}

.command-panel {
  align-self: center;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(18, 17, 17, 0.58);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.panel-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff605c;
}

.panel-topbar span:nth-child(2) {
  background: #ffbd44;
}

.panel-topbar span:nth-child(3) {
  background: #00ca4e;
}

.panel-topbar strong {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.signal-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
}

.signal-card small {
  display: block;
  color: rgba(255, 255, 255, 0.64);
}

.signal-card strong {
  display: block;
  margin-top: 4px;
  font-size: 42px;
  line-height: 1;
}

.signal-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(32, 160, 107, 0.18);
  color: #62e6ae;
  font-size: 12px;
  font-weight: 800;
}

.chart {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  align-items: end;
  gap: 8px;
  height: 170px;
  margin: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.chart span {
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(to top, var(--red), #ffb199);
  animation: barPulse 2.8s ease-in-out infinite;
}

.chart span:nth-child(2n) {
  background: linear-gradient(to top, var(--cyan), #8de5e5);
  animation-delay: 200ms;
}

.console-list {
  padding: 0 18px 20px;
}

.console-list p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.console-list span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #54d2a0;
}

.metric-strip {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-strip div {
  padding: 28px clamp(18px, 4vw, 48px);
  background: var(--paper);
}

.metric-strip strong {
  display: block;
  font-size: 32px;
  line-height: 1.1;
}

.metric-strip span {
  color: var(--muted);
}

.section,
.campaign-band,
.reports-section,
.academy {
  scroll-margin-top: 76px;
  padding: clamp(62px, 8vw, 112px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

#domains {
  padding: 48px max(24px, calc((100vw - 1200px) / 2)) 62px;
  background: #fbf6ea;
  text-align: center;
}

#domains .section-heading {
  max-width: 720px;
  margin: 0 auto 34px;
}

#domains .section-heading h2 {
  font-size: clamp(26px, 2.2vw, 36px);
}

#domains .section-kicker {
  display: none;
}

.section-heading p:last-child,
.workspace-copy p,
.split-section p,
.academy__inner > p {
  color: var(--muted);
}

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

.domain-card {
  min-height: 280px;
  padding: 20px 18px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.domain-card:hover {
  transform: translateY(-3px);
  box-shadow: none;
}

.domain-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.domain-card--red .domain-icon {
  background: var(--red);
}

.domain-card--amber .domain-icon {
  background: var(--orange);
}

.domain-card--green .domain-icon {
  background: var(--green);
}

.domain-card--violet .domain-icon {
  background: var(--violet);
}

.domain-card h3 {
  margin: 18px 0 8px;
  font-size: 18px;
}

.domain-card p {
  min-height: 68px;
  margin: 0;
  color: var(--muted);
}

.domain-card ul {
  display: grid;
  gap: 5px;
  min-height: 76px;
  margin: 12px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.domain-card li::before {
  content: "•";
  margin-right: 7px;
  color: var(--red);
}

.domain-card a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--red-dark);
  font-weight: 800;
}

.campaign-band {
  background: #eef0f3;
}

.campaign-carousel {
  position: relative;
  width: min(1400px, 100%);
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 14 / 3;
  background: #111;
}

.campaign-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  animation: campaignFade 20s infinite;
}

.campaign-slide--two {
  animation-delay: 5s;
}

.campaign-slide--three {
  animation-delay: 10s;
}

.campaign-slide--four {
  animation-delay: 15s;
}

.campaign-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.campaign-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.campaign-dots span {
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  animation: campaignDot 20s infinite;
}

.campaign-dots span:nth-child(2) {
  animation-delay: 5s;
}

.campaign-dots span:nth-child(3) {
  animation-delay: 10s;
}

.campaign-dots span:nth-child(4) {
  animation-delay: 15s;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.8fr);
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
}

#tools {
  display: block;
  background: #f7f7f8;
  text-align: center;
}

#tools > div:first-child {
  max-width: 760px;
  margin: 0 auto 58px;
}

#tools .section-kicker {
  color: var(--red-dark);
}

#tools h2 {
  font-size: clamp(30px, 3.2vw, 48px);
}

.reports-section {
  background: #fbf6ea;
}

.reports-section .section-heading {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.reports-section .section-heading h2 {
  font-size: clamp(30px, 3.2vw, 46px);
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.report-card {
  min-height: 260px;
  padding: 26px;
  border: 1px solid rgba(17, 16, 13, 0.1);
  border-radius: var(--radius);
  background: #fffaf0;
  box-shadow: 0 18px 54px rgba(36, 27, 11, 0.08);
}

.report-card span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(201, 154, 58, 0.16);
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 900;
}

.report-card h3 {
  margin: 22px 0 12px;
  font-size: 22px;
}

.report-card p {
  min-height: 78px;
  margin: 0;
  color: var(--muted);
}

.report-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 24px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.reports-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}

.reports-panel {
  position: sticky;
  top: 104px;
}

.reports-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
}

.reports-panel > p {
  margin: 0 0 24px;
  color: var(--muted);
}

.report-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.report-filters button {
  height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(17, 16, 13, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
}

.report-filters button.is-active {
  border-color: var(--red);
  background: var(--red);
  color: #11100d;
  font-weight: 800;
}

.report-quota {
  padding: 18px;
  border-radius: var(--radius);
  background: #11100d;
  color: #fff;
}

.report-quota strong,
.report-quota span {
  display: block;
}

.report-quota span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.68);
}

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

.report-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid rgba(17, 16, 13, 0.1);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 45px rgba(36, 27, 11, 0.06);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.report-row:hover {
  transform: translateY(-2px);
  border-color: rgba(202, 154, 48, 0.42);
  box-shadow: 0 18px 50px rgba(36, 27, 11, 0.1);
}

.report-row span {
  display: block;
  margin-bottom: 8px;
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 800;
}

.report-row h3 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.25;
}

.report-row p {
  margin: 0 0 12px;
  color: var(--muted);
}

.report-row small {
  color: rgba(17, 16, 13, 0.46);
}

.report-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  height: 38px;
  border-radius: 999px;
  background: #11100d;
  color: #f4d28b;
  font-weight: 800;
}

.report-filters button,
.report-quota {
  cursor: pointer;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 72px 92px;
  max-width: 1220px;
  margin: 0 auto;
}

.platform-grid article {
  text-align: center;
}

.platform-icon {
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 18px;
  border: 2px solid #14120f;
  border-radius: 12px;
  color: #14120f;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.platform-grid h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.platform-grid p {
  max-width: 330px;
  margin: 0 auto;
  color: var(--muted);
}

.data-board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff9ec;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.board-row {
  display: grid;
  grid-template-columns: 1fr 1fr 80px;
  gap: 16px;
  align-items: center;
  min-height: 62px;
  padding: 0 20px;
  border-top: 1px solid var(--line);
}

.board-row:first-child {
  border-top: 0;
}

.board-row--head {
  min-height: 48px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.board-row em {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(217, 36, 31, 0.1);
  color: var(--red-dark);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.academy {
  background: #201916;
  color: #fff;
}

.academy__inner {
  max-width: 1160px;
  margin: 0 auto;
}

.academy .section-kicker {
  color: #ffb199;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.lesson-grid article,
.lesson-grid a {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lesson-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(202, 154, 48, 0.7);
  background: rgba(202, 154, 48, 0.12);
}

.lesson-grid strong,
.lesson-grid span {
  display: block;
}

.lesson-grid strong {
  margin-bottom: 10px;
  font-size: 20px;
}

.lesson-grid span {
  color: rgba(255, 255, 255, 0.68);
}

.academy-main {
  min-height: 100vh;
  background: linear-gradient(180deg, #0f0e0b 0%, #21180d 46%, #f7f0e5 46%, #f7f0e5 100%);
}

.academy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  gap: clamp(36px, 6vw, 86px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(96px, 11vw, 150px) clamp(24px, 5vw, 72px) clamp(70px, 8vw, 96px);
  color: #fff;
}

.academy-hero h1 {
  max-width: 790px;
  margin: 12px 0 22px;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: 0;
}

.academy-hero p:not(.section-kicker) {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.85;
}

.academy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.academy-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(202, 154, 48, 0.5);
  background: var(--gold);
  color: #11100d;
  font-weight: 900;
}

.academy-actions a + a {
  background: rgba(255, 255, 255, 0.06);
  color: #f6dfaa;
}

.academy-roadmap-card {
  border: 1px solid rgba(202, 154, 48, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.academy-roadmap-card > span {
  display: block;
  padding: 18px 22px;
  background: #0f0e0b;
  color: #f6dfaa;
  font-weight: 900;
}

.academy-roadmap-card ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.academy-roadmap-card li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 78px;
  padding: 0 24px;
  border-top: 1px solid rgba(202, 154, 48, 0.24);
}

.academy-roadmap-card li::before {
  content: counter(list-item, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(202, 154, 48, 0.2);
  color: #f6dfaa;
  font-weight: 900;
}

.academy-roadmap-card strong,
.academy-roadmap-card em {
  display: block;
}

.academy-roadmap-card em {
  color: rgba(255, 255, 255, 0.58);
  font-style: normal;
}

.academy-course-section,
.academy-lab {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(70px, 8vw, 104px) clamp(24px, 5vw, 72px);
}

.academy-course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.academy-course-grid article,
.academy-task-list article {
  border: 1px solid rgba(17, 16, 13, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 70px rgba(36, 27, 11, 0.07);
}

.academy-course-grid article {
  min-height: 260px;
  padding: 30px;
}

.academy-course-grid span {
  color: var(--gold-dark);
  font-weight: 900;
}

.academy-course-grid h3 {
  margin: 28px 0 12px;
  font-size: 28px;
}

.academy-course-grid p {
  color: var(--muted);
  line-height: 1.8;
}

.academy-course-grid a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--gold-dark);
  font-weight: 900;
}

.academy-lab {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
  padding-top: 0;
}

.academy-lab h2 {
  margin: 10px 0 18px;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.05;
}

.academy-lab p {
  color: var(--muted);
  line-height: 1.9;
}

.academy-task-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.academy-task-list article {
  padding: 24px;
}

.academy-task-list strong,
.academy-task-list span {
  display: block;
}

.academy-task-list strong {
  margin-bottom: 10px;
  font-size: 20px;
}

.academy-task-list span {
  color: var(--muted);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  background: #111;
  color: rgba(255, 255, 255, 0.64);
}

.footer strong,
.footer span {
  display: block;
}

.footer strong {
  color: #fff;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer nav a {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.footer nav a:hover {
  color: #f4d28b;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.login-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(74, 13, 10, 0.78);
  backdrop-filter: blur(3px);
}

.login-dialog {
  position: relative;
  z-index: 2;
  width: min(430px, 100%);
  padding: 30px 34px 22px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.34);
}

.login-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #888;
  font-size: 28px;
  line-height: 1;
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.login-brand h2,
.login-brand p {
  margin: 0;
}

.login-brand p {
  color: #8c8c8c;
  font-size: 13px;
}

.login-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.login-tabs button {
  height: 38px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #555;
}

.login-tabs button.is-active {
  border-bottom-color: var(--red);
  color: var(--red);
  font-weight: 800;
}

.login-pane {
  display: none;
}

.login-pane.is-active {
  display: block;
}

.login-form label {
  display: block;
  margin-bottom: 14px;
}

.login-form label span {
  display: block;
  margin-bottom: 6px;
  color: #555;
  font-size: 13px;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #e4e4e4;
  border-radius: 6px;
  outline: 0;
}

.login-form input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(217, 36, 31, 0.1);
}

.verification-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 8px;
}

.verification-code-row button {
  min-width: 0;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--red);
  border-radius: 6px;
  background: #fff9ec;
  color: var(--red);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.verification-code-row button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 18px;
  color: #777;
  font-size: 13px;
}

.login-row .checkline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.login-row input {
  width: auto;
  height: auto;
}

.login-row a {
  color: var(--red);
}

.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--red);
  font: inherit;
  font-weight: 700;
}

.login-submit {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
}

.login-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.login-message {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  word-break: break-all;
}

.login-message[data-type="success"] {
  color: #168257;
}

.login-message[data-type="error"] {
  color: #c24837;
}

.qr-pane {
  text-align: center;
}

.qr-code {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 166px;
  height: 166px;
  margin: 8px auto 16px;
  padding: 14px;
  border: 8px solid #111;
  background:
    linear-gradient(90deg, #111 8px, transparent 8px) 0 0 / 24px 24px,
    linear-gradient(#111 8px, transparent 8px) 0 0 / 24px 24px,
    #fff;
}

.qr-code span {
  background: #111;
}

.qr-pane p,
.login-policy {
  color: #858585;
  font-size: 13px;
  text-align: center;
}

.login-policy {
  margin: 22px 0 0;
}

.agent-page {
  min-height: 100vh;
  background: #fff;
}

.agent-site-header {
  position: sticky;
  border-bottom: 1px solid rgba(17, 16, 13, 0.08);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(17, 16, 13, 0.05);
}

.agent-site-header .brand small,
.agent-site-header .nav a,
.agent-site-header .ghost-link {
  color: rgba(17, 16, 13, 0.72);
}

.agent-site-header .nav a:hover,
.agent-site-header .ghost-link:hover {
  color: var(--ink);
}

.agent-site-header .primary-link {
  background: #e23a30;
  color: #fff;
}

.agent-workspace {
  position: relative;
  min-height: calc(100vh - 72px);
  padding: clamp(86px, 12vw, 150px) 24px 80px;
}

.agent-rail-button {
  position: fixed;
  left: 16px;
  top: 78px;
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  color: #2b3037;
  font-size: 18px;
  cursor: pointer;
}

.agent-workspace__inner {
  width: min(866px, 100%);
  margin: 0 auto;
  text-align: center;
}

.agent-title {
  margin-bottom: 48px;
}

.agent-title span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 20px;
}

.agent-title h1 {
  margin: 0;
  color: #343a40;
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.18;
}

.agent-title p {
  margin: 12px 0 0;
  color: #343a40;
  font-size: 20px;
}

.agent-composer {
  position: relative;
  min-height: 136px;
  padding: 22px 18px 14px;
  border: 1px solid #e8ebef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(30, 36, 44, 0.06);
  text-align: left;
}

.agent-composer textarea {
  width: 100%;
  min-height: 62px;
  resize: none;
  border: 0;
  outline: 0;
  color: var(--ink);
  font: inherit;
}

.agent-composer textarea::placeholder {
  color: #b6bcc5;
}

.agent-composer__toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-composer__toolbar > button:first-child {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #5f6b7a;
  font-size: 22px;
  cursor: pointer;
}

.agent-page-mode {
  margin-left: auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #191d22;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  appearance: none;
}

.agent-page-mode:hover,
.agent-page-mode[aria-expanded="true"] {
  background: #f2f3f5;
  color: #9b6c10;
}

.agent-composer .agent-send {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  outline: 0;
  line-height: 1;
  appearance: none;
  box-shadow: none;
}

.agent-composer .agent-send:not(:disabled):hover {
  background: #c89a35 !important;
  color: #111 !important;
}

.agent-composer .agent-send:disabled {
  cursor: wait;
  opacity: 0.65;
}

.agent-page-menu {
  top: 112px;
  left: 50%;
  z-index: 10;
  width: min(360px, calc(100vw - 44px));
  max-height: calc(100vh - 260px);
  text-align: left;
}

body.is-agent-menu-open .agent-page-menu {
  display: block;
}

.agent-page-note {
  margin: 10px 0 18px;
  color: #9aa1aa;
  font-size: 13px;
}

.agent-page-note[data-type="success"],
.agent-note[data-type="success"] {
  color: #1d8f55;
}

.agent-page-note[data-type="error"],
.agent-note[data-type="error"] {
  color: #b3261e;
}

.agent-page-note[data-type="loading"],
.agent-note[data-type="loading"] {
  color: var(--gold);
}

.agent-response {
  width: min(860px, 100%);
  max-height: 360px;
  margin: 0 auto 18px;
  padding: 18px 20px;
  overflow: auto;
  border: 1px solid rgba(201, 154, 58, 0.22);
  border-radius: 8px;
  background: #fff;
  color: #20242a;
  text-align: left;
  box-shadow: 0 18px 42px rgba(18, 18, 18, 0.08);
}

.agent-response p {
  margin: 0 0 12px;
  line-height: 1.72;
}

.agent-response p:last-child {
  margin-bottom: 0;
}

.agent-response--home {
  max-height: 180px;
  margin: 14px 0 10px;
  font-size: 13px;
}

.paper-main,
.wiki-shell {
  min-height: calc(100vh - 72px);
  padding: 84px max(24px, calc((100vw - 1330px) / 2)) 90px;
  background: #f3f4f6;
}

.paper-toolbar,
.paper-tabs,
.paper-filters {
  display: flex;
  align-items: center;
}

.paper-toolbar {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.paper-tabs {
  min-height: 54px;
  padding: 4px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(20, 24, 28, 0.04);
}

.paper-tabs a {
  min-height: 44px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  color: #2d3138;
  text-decoration: none;
  font-weight: 700;
}

.paper-tabs a.is-active {
  border-radius: 4px;
  background: #fff0e7;
  color: #c7962e;
}

.paper-search {
  width: min(420px, 100%);
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 4px;
  background: #fff;
  color: #9aa1aa;
}

.paper-search input,
.wiki-hero input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.paper-filters {
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.paper-filters button,
.paper-filters select {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #4a515c;
  font: inherit;
  cursor: pointer;
}

.paper-filters button.is-active {
  background: #c7962e;
  color: #fff;
}

.paper-grid {
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 20px;
}

.paper-card-feed {
  column-count: 2;
  column-gap: 20px;
}

.paper-upload-card,
.paper-card {
  break-inside: avoid;
  margin: 0 0 20px;
  padding: 30px 22px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(24, 28, 34, 0.04);
}

.paper-upload-card h2,
.paper-card h3 {
  margin: 0 0 18px;
  color: #20242a;
}

.paper-upload-zone {
  min-height: 150px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 24px;
  border: 1px dashed #d8dde4;
  border-radius: 8px;
  color: #7d8794;
  text-align: center;
}

.paper-upload-zone span {
  font-size: 36px;
}

.paper-card span {
  display: block;
  margin-bottom: 16px;
  color: #9aa1aa;
  font-size: 13px;
}

.paper-card p {
  margin: 0;
  color: #596372;
  line-height: 1.8;
}

.paper-card__actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.paper-card__actions button,
.paper-card__actions a {
  min-height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  background: #fff;
  color: #7b5a14;
  text-decoration: none;
  font: inherit;
}

.wiki-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.wiki-sidebar {
  position: sticky;
  top: 92px;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(24, 28, 34, 0.05);
}

.wiki-sidebar h2 {
  margin: 0 0 14px;
  color: #8f6a18;
  font-size: 14px;
}

.wiki-sidebar a {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
  color: #4b5563;
  text-decoration: none;
  font-weight: 700;
}

.wiki-sidebar a.is-active,
.wiki-sidebar a:hover {
  color: #c7962e;
}

.wiki-content {
  min-width: 0;
}

.wiki-hero {
  margin-bottom: 22px;
  padding: 34px 38px;
  border-radius: 8px;
  background: #0c0b08;
  color: #fff;
}

.wiki-hero p {
  margin: 0 0 10px;
  color: #d5a83e;
  font-weight: 800;
}

.wiki-hero h1 {
  max-width: 820px;
  margin: 0 0 24px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.1;
}

.wiki-hero label {
  width: min(620px, 100%);
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 6px;
  background: #fff;
  color: #8a929e;
}

.wiki-collection {
  margin-bottom: 20px;
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(24, 28, 34, 0.04);
}

.wiki-section-head {
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
}

.wiki-section-head > span {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f4ead6;
  color: #9b6c10;
  font-weight: 900;
}

.wiki-section-head h2 {
  margin: 0 0 8px;
  color: #121212;
}

.wiki-section-head p {
  margin: 0;
  color: #687180;
}

.wiki-doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.wiki-doc-grid--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.wiki-doc-grid article,
.wiki-list a {
  padding: 20px;
  border: 1px solid #ece4d6;
  border-radius: 8px;
  background: #fffaf0;
  color: #27303a;
  text-decoration: none;
}

.wiki-doc-grid h3,
.wiki-list strong {
  display: block;
  margin: 0 0 10px;
  color: #121212;
  font-size: 18px;
}

.wiki-doc-grid p,
.wiki-list span {
  margin: 0;
  color: #687180;
  line-height: 1.7;
}

.wiki-doc-grid a,
.wiki-cta {
  display: inline-flex;
  margin-top: 18px;
  color: #9b6c10;
  font-weight: 800;
  text-decoration: none;
}

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

.wiki-collection--compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.agent-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.agent-chip-row button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #e5e8ed;
  border-radius: 999px;
  background: #fff;
  color: #3e4650;
  font: inherit;
  cursor: pointer;
}

.agent-chip-row button:hover {
  border-color: rgba(201, 154, 58, 0.42);
  color: var(--red-dark);
}

.pro-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.pro-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.pro-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}

.pro-dialog {
  position: relative;
  z-index: 2;
  width: min(440px, 100%);
  padding: 34px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.24);
}

.pro-dialog .agent-badge {
  position: static;
  display: inline-flex;
  margin-bottom: 18px;
  border-radius: 6px;
}

.pro-dialog h2 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.2;
}

.pro-dialog p {
  margin: 0;
  color: var(--muted);
}

.pro-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.pro-page {
  background: #f6f2ea;
}

.pro-site-header .nav a.is-active {
  color: #f4d28b;
}

.pro-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: center;
  gap: clamp(34px, 7vw, 110px);
  padding: clamp(72px, 10vw, 130px) max(24px, calc((100vw - 1280px) / 2)) 70px;
  background:
    radial-gradient(circle at 76% 46%, rgba(201, 154, 58, 0.24), transparent 34%),
    linear-gradient(135deg, #0c0b08 0%, #191306 55%, #0a0907 100%);
  color: #fff;
}

.pro-hero h1 {
  max-width: 820px;
  margin: 0 0 20px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.05;
}

.pro-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.pro-hero__panel {
  padding: 34px;
  border: 1px solid rgba(244, 210, 139, 0.38);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.26);
}

.pro-hero__panel span,
.pro-hero__panel strong,
.pro-hero__panel p {
  display: block;
}

.pro-hero__panel span {
  color: #f4d28b;
  font-weight: 900;
}

.pro-hero__panel strong {
  margin: 18px 0 8px;
  font-size: 54px;
  line-height: 1;
}

.pro-hero__panel p {
  font-size: 15px;
}

.pro-plans {
  padding: 56px max(24px, calc((100vw - 1180px) / 2)) 88px;
}

.billing-toggle {
  display: flex;
  width: max-content;
  margin: 0 auto 34px;
  padding: 5px;
  border-radius: 999px;
  background: #e9dfcd;
}

.billing-toggle button {
  min-width: 116px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.billing-toggle button.is-active {
  background: #11100d;
  color: #f4d28b;
}

.billing-toggle span {
  margin-left: 4px;
  color: #d9a43a;
}

.plan-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  padding: 34px;
  border: 1px solid rgba(17, 16, 13, 0.1);
  border-radius: var(--radius);
  background: #fffaf0;
  box-shadow: 0 24px 70px rgba(36, 27, 11, 0.1);
}

.plan-card--pro {
  border-color: rgba(201, 154, 58, 0.48);
  background: linear-gradient(180deg, #fff8e8, #f7edd7);
  transform: translateY(-12px);
}

.plan-ribbon {
  position: absolute;
  top: 0;
  right: 28px;
  padding: 9px 18px;
  border-radius: 0 0 8px 8px;
  background: var(--red);
  color: #11100d;
  font-weight: 900;
}

.plan-card__head span {
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 900;
}

.plan-card h2 {
  margin: 8px 0;
  font-size: 32px;
}

.plan-card__head p,
.plan-note {
  color: var(--muted);
}

.plan-price {
  margin: 24px 0;
  font-size: 34px;
  font-weight: 900;
}

.plan-price strong {
  font-size: 48px;
}

.plan-price em {
  color: var(--muted);
  font-style: normal;
  font-size: 18px;
}

.plan-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.plan-list li {
  position: relative;
  padding-left: 22px;
  color: #3e372c;
}

.plan-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1a9a69;
  font-weight: 900;
}

.plan-list--strong li {
  font-weight: 700;
}

.pro-benefits {
  padding: 82px max(24px, calc((100vw - 1180px) / 2));
  background: #11100d;
  color: #fff;
}

.pro-benefits .section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.pro-benefits h2 {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.08;
}

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

.benefit-grid article {
  padding: 26px;
  border: 1px solid rgba(244, 210, 139, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.benefit-grid span {
  color: #f4d28b;
  font-weight: 900;
}

.benefit-grid h3 {
  margin: 16px 0 10px;
  font-size: 22px;
}

.benefit-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.pro-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 70px max(24px, calc((100vw - 1180px) / 2));
  background: #f6f2ea;
}

.pro-contact h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
}

.pro-contact p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.service-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.service-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.service-dialog {
  position: relative;
  z-index: 2;
  width: min(430px, 100%);
  padding: 30px 34px 34px;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.25);
}

.service-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(17, 16, 13, 0.52);
  font-size: 26px;
  line-height: 1;
}

.service-close:hover {
  background: rgba(17, 16, 13, 0.06);
  color: var(--ink);
}

.service-heading span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(201, 154, 58, 0.14);
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 900;
}

.service-heading h2 {
  margin: 14px 0 8px;
  font-size: 26px;
  line-height: 1.25;
}

.service-heading p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.service-qr-wrap {
  width: min(270px, 100%);
  margin: 24px auto 16px;
  padding: 10px;
  border: 1px solid rgba(17, 16, 13, 0.08);
  border-radius: 8px;
  background: #fff;
}

.service-qr-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.service-tip {
  margin: 0;
  color: rgba(17, 16, 13, 0.48);
  font-size: 15px;
}

.community-page {
  background: #f3f3f2;
}

.community-site-header .nav a.is-active {
  color: #f4d28b;
}

.community-main {
  max-width: 1330px;
  margin: 0 auto;
  padding: 28px 24px 90px;
}

.community-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
}

.community-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.04);
}

.community-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 6px;
  color: #3e3e3e;
  font-weight: 800;
}

.community-tabs a.is-active {
  background: rgba(201, 154, 58, 0.14);
  color: var(--red-dark);
}

.community-search input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  outline: 0;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.04);
}

.community-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.community-filters button,
.community-filters select {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #555;
  font-weight: 700;
}

.community-filters button.is-active {
  background: var(--red);
  color: #11100d;
}

.community-filters select {
  margin-left: auto;
  min-width: 138px;
}

.strategy-feed {
  display: grid;
  gap: 18px;
}

.strategy-card {
  padding: 26px 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.05);
}

.strategy-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: #11100d;
  color: #f4d28b;
  font-weight: 900;
}

.strategy-author strong,
.strategy-author small {
  display: block;
}

.strategy-author small {
  color: #8a8f99;
}

.strategy-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 38px;
  align-items: center;
}

.strategy-content h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.strategy-content p {
  margin: 0 0 14px;
  color: #4f5661;
}

.strategy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.strategy-tags span {
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(233, 75, 66, 0.1);
  color: #c24837;
  font-size: 12px;
  font-weight: 800;
}

.strategy-range {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #8a8f99;
}

.strategy-range button {
  height: 28px;
  padding: 0 12px;
  border: 1px solid #ececec;
  border-radius: 4px;
  background: #fff;
  color: #777;
}

.strategy-range button.is-active {
  color: #e94b42;
}

.strategy-chart {
  width: 100%;
  height: 220px;
  display: block;
}

.strategy-metrics {
  display: grid;
  gap: 18px;
}

.strategy-metrics > strong {
  font-size: 42px;
  line-height: 1;
}

.strategy-metrics > span {
  margin-top: -14px;
  color: #98a0aa;
}

.metric-green {
  color: #16b977;
}

.metric-red {
  color: #e94b42;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.metric-grid b {
  font-size: 21px;
}

.metric-grid small {
  display: block;
  color: #9aa0a8;
  font-size: 13px;
  font-weight: 500;
}

.strategy-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  gap: 10px;
}

.strategy-actions button,
.strategy-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #ececec;
  border-radius: 6px;
  background: #fff;
  color: #4e5661;
  font-weight: 800;
}

.strategy-actions a {
  border-color: #11100d;
  background: #11100d;
  color: #f4d28b;
}

@keyframes barPulse {
  0%,
  100% {
    transform: scaleY(0.84);
    opacity: 0.78;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes campaignFade {
  0%,
  22% {
    opacity: 1;
  }
  27%,
  95% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes campaignDot {
  0%,
  22% {
    background: #fff;
  }
  27%,
  95% {
    background: rgba(255, 255, 255, 0.42);
  }
  100% {
    background: #fff;
  }
}

@media (max-width: 1080px) {
  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero--agent {
    grid-template-areas:
      "copy"
      "agent"
      "training";
  }

  .command-panel {
    max-width: 640px;
  }

  .agent-card,
  .training-card {
    justify-self: start;
    width: min(760px, 100%);
  }

  .domain-grid,
  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .reports-layout,
  .pro-hero,
  .plan-grid,
  .benefit-grid,
  .community-toolbar,
  .strategy-body {
    grid-template-columns: 1fr;
  }

  .reports-panel {
    position: static;
  }

  .plan-card--pro {
    transform: none;
  }

  .pro-contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .community-filters select {
    margin-left: 0;
  }

  .paper-grid,
  .wiki-shell,
  .academy-hero,
  .academy-lab {
    grid-template-columns: 1fr;
  }

  .academy-main {
    background: linear-gradient(180deg, #0f0e0b 0%, #21180d 52%, #f7f0e5 52%, #f7f0e5 100%);
  }

  .academy-roadmap-card,
  .academy-lab {
    max-width: 760px;
  }

  .academy-course-grid {
    grid-template-columns: 1fr;
  }

  .paper-card-feed {
    column-count: 1;
  }

  .wiki-sidebar {
    position: static;
  }

  .wiki-doc-grid--five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    justify-content: space-between;
  }

  .menu-button {
    display: block;
  }

  .nav,
  .header-actions {
    display: none;
  }

  .site-header.is-open .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    display: grid;
    gap: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .nav a {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
  }

  .site-header.is-open .nav-tools {
    color: var(--ink);
  }

  .site-header.is-open .nav-tools summary {
    min-height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
  }

  .site-header.is-open .nav-tools-menu {
    position: static;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }

  .site-header.is-open .nav .nav-tools-menu a {
    padding-left: 28px;
  }

  .tool-product-hero,
  .tool-product-spec {
    grid-template-columns: 1fr;
  }

  .tool-product-hero {
    min-height: auto;
    padding-top: 58px;
  }

  .tool-product-preview {
    width: 100%;
  }

  .tool-product-features ol,
  .tool-product-spec ul {
    grid-template-columns: 1fr;
  }

  .tool-product-spec > p {
    grid-column: auto;
    margin: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .hero h2 {
    font-size: clamp(34px, 9vw, 42px);
    word-break: normal;
  }

  .hero h2 span {
    display: block;
  }

  .hero h2 br {
    display: none;
  }

  .report-row {
    grid-template-columns: 1fr;
  }

  .report-row a {
    width: max-content;
  }

  .pro-hero,
  .pro-plans,
  .pro-benefits,
  .pro-contact {
    padding-left: 20px;
    padding-right: 20px;
  }

  .billing-toggle {
    width: 100%;
  }

  .billing-toggle button {
    flex: 1;
    min-width: 0;
  }

  .hero h2,
  .section-heading h2,
  .workspace-copy h2,
  .split-section h2,
  .academy h2 {
    font-size: clamp(31px, 10vw, 46px);
  }

  .hero__content--bigquant h2 {
    font-size: clamp(34px, 9vw, 38px);
  }

  .workflow,
  .platform-grid,
  .report-grid,
  .lesson-grid,
  .academy-task-list {
    grid-template-columns: 1fr;
  }

  .academy-hero {
    padding-top: 86px;
  }

  .academy-hero h1,
  .academy-lab h2 {
    font-size: clamp(38px, 10vw, 58px);
  }

  .academy-roadmap-card li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .academy-roadmap-card em {
    grid-column: 2;
  }

  .platform-grid {
    gap: 42px;
  }

  .panel-topbar strong {
    font-size: 10px;
  }

  .agent-card {
    min-height: 0;
    padding: 24px 18px 18px;
  }

  .agent-menu {
    position: absolute;
    transform: none;
    top: 218px;
    left: 18px;
    right: 18px;
    width: auto;
    max-height: calc(100vh - 250px);
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .prompt-grid,
  .training-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .prompt-grid {
    margin-top: 22px;
  }

  .training-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .hero__copy--en {
    max-width: 320px;
    font-size: 20px;
    line-height: 1.35;
  }

  .campaign-carousel {
    aspect-ratio: 16 / 7;
  }

  .boot__metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .agent-workspace {
    padding: 68px 20px 60px;
  }

  .agent-title {
    margin-bottom: 32px;
  }

  .agent-composer {
    min-height: 128px;
  }

  .paper-main,
  .wiki-shell {
    padding: 92px 16px 60px;
  }

  .paper-toolbar,
  .wiki-collection--compact {
    display: block;
  }

  .paper-tabs {
    overflow-x: auto;
    margin-bottom: 14px;
  }

  .paper-tabs a {
    white-space: nowrap;
  }

  .paper-search {
    width: 100%;
  }

  .wiki-hero,
  .wiki-collection {
    padding: 22px;
  }

  .wiki-doc-grid,
  .wiki-doc-grid--five,
  .wiki-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .domain-grid,
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .board-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 16px;
  }

  .board-row--head {
    display: none;
  }

  .domain-card p {
    min-height: 0;
  }

  .domain-card ul {
    min-height: 0;
  }

  .report-card p {
    min-height: 0;
  }

  .agent-head h3 {
    font-size: 32px;
  }

  .agent-input {
    border-radius: 10px;
  }

  .agent-option span {
    max-width: 230px;
  }

  .login-dialog {
    padding: 26px 20px 20px;
  }

  .agent-badge {
    right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

/* AI quantitative knowledge tree */
.knowledge-page {
  background: #eef1f4;
  color: #161719;
}

.knowledge-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 96px max(24px, calc((100vw - 1500px) / 2)) 72px;
}

.knowledge-sidebar {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 108px);
  overflow: auto;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(16, 24, 40, 0.06);
  scrollbar-width: thin;
}

.knowledge-collection-title {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #eceff2;
  background: #11110f;
  color: #fff;
}

.knowledge-collection-title img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.knowledge-collection-title div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.knowledge-collection-title span {
  color: #d4a63b;
  font-size: 11px;
  font-weight: 800;
}

.knowledge-collection-title strong {
  font-size: 16px;
}

.knowledge-search {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px;
  padding: 0 12px;
  border: 1px solid #dfe3e8;
  border-radius: 6px;
  background: #f7f8fa;
  color: #7b8491;
}

.knowledge-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #17191c;
  font: inherit;
}

.knowledge-search input::placeholder {
  color: #9ca3ad;
}

.knowledge-tree {
  padding: 0 10px 14px;
}

.knowledge-tree-group {
  border-bottom: 1px solid #f0f1f3;
}

.knowledge-tree-section,
.knowledge-tree-article {
  width: 100%;
  border: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.knowledge-tree-section {
  min-height: 44px;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 5px;
  background: transparent;
  color: #30343a;
}

.knowledge-tree-section:hover,
.knowledge-tree-section.is-active {
  background: #e4e9ef;
  color: #14171b;
}

.knowledge-tree-section strong {
  font-size: 14px;
}

.knowledge-tree-section em {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 10px;
  background: #fff;
  color: #7b8491;
  font-size: 11px;
  font-style: normal;
  text-align: center;
}

.knowledge-tree-chevron {
  color: #9d761e;
  font-size: 20px;
  transform: rotate(0deg);
  transition: transform 180ms ease;
}

.knowledge-tree-group.is-open .knowledge-tree-chevron {
  transform: rotate(90deg);
}

.knowledge-tree-articles {
  display: none;
  padding: 2px 4px 8px 23px;
}

.knowledge-tree-group.is-open .knowledge-tree-articles {
  display: grid;
}

.knowledge-tree-article {
  min-height: 34px;
  display: grid;
  grid-template-columns: 10px 1fr;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 4px;
  background: transparent;
  color: #66707c;
  font-size: 12px;
  line-height: 1.45;
}

.knowledge-tree-article span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c7cdd4;
}

.knowledge-tree-article:hover,
.knowledge-tree-article.is-active {
  color: #9a6b08;
  background: #fff8e7;
}

.knowledge-tree-article.is-active span {
  background: #cc9828;
}

.knowledge-academy-link {
  display: grid;
  gap: 4px;
  margin: 0 14px 16px;
  padding: 14px;
  border-radius: 6px;
  background: #fff7e6;
  color: #7a5a14;
}

.knowledge-academy-link span {
  font-size: 12px;
}

.knowledge-academy-link strong {
  font-size: 13px;
}

.knowledge-workspace {
  min-width: 0;
}

.knowledge-overview {
  min-height: 196px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 34px 38px;
  border-radius: 8px;
  background: #11110f;
  color: #fff;
  box-shadow: 0 18px 44px rgba(17, 17, 15, 0.14);
}

.knowledge-overview p,
.knowledge-catalog-head p {
  margin: 0 0 8px;
  color: #d4a239;
  font-size: 12px;
  font-weight: 900;
}

.knowledge-overview h1 {
  margin: 0 0 13px;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

.knowledge-overview > div > span {
  display: block;
  max-width: 720px;
  color: #c8c9cc;
  line-height: 1.75;
}

.knowledge-overview dl {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
  margin: 0;
}

.knowledge-overview dl div {
  min-width: 106px;
  padding: 15px;
  border: 1px solid #444137;
  border-radius: 6px;
  background: #1c1b17;
}

.knowledge-overview dt {
  color: #e0af3d;
  font-size: 24px;
  font-weight: 900;
}

.knowledge-overview dd {
  margin: 3px 0 0;
  color: #b8bbc0;
  font-size: 12px;
}

.knowledge-breadcrumb {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  padding: 0 3px;
  color: #8a929d;
  font-size: 12px;
  white-space: nowrap;
}

.knowledge-breadcrumb button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #8d681a;
  cursor: pointer;
  font: inherit;
}

.knowledge-breadcrumb strong {
  overflow: hidden;
  color: #34383e;
  text-overflow: ellipsis;
}

.knowledge-content-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(480px, 1.28fr);
  gap: 18px;
  align-items: start;
}

.knowledge-catalog,
.knowledge-reader {
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.05);
}

.knowledge-catalog {
  overflow: hidden;
}

.knowledge-catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 18px;
}

.knowledge-catalog-head h2 {
  margin: 0;
  font-size: 24px;
}

.knowledge-catalog-head > span {
  padding: 5px 9px;
  border-radius: 12px;
  background: #f0f2f5;
  color: #68717e;
  font-size: 11px;
}

.knowledge-section-summary {
  margin: 0;
  padding: 0 24px 20px;
  border-bottom: 1px solid #eceff2;
  color: #69727e;
  font-size: 13px;
  line-height: 1.7;
}

.knowledge-article-list {
  display: grid;
}

.knowledge-article-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: start;
  padding: 19px 22px;
  border: 0;
  border-bottom: 1px solid #eceff2;
  background: #fff;
  color: #17191c;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.knowledge-article-card:last-child {
  border-bottom: 0;
}

.knowledge-article-card:hover,
.knowledge-article-card.is-active {
  background: #fff9ec;
}

.knowledge-article-card.is-active {
  box-shadow: inset 3px 0 #d1a038;
}

.knowledge-article-index {
  color: #bf8c21;
  font-size: 12px;
  font-weight: 900;
}

.knowledge-article-copy {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.knowledge-article-copy strong {
  font-size: 16px;
  line-height: 1.35;
}

.knowledge-article-copy em {
  overflow: hidden;
  color: #68717e;
  font-size: 12px;
  font-style: normal;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-article-copy small {
  color: #9ca3ad;
  font-size: 11px;
}

.knowledge-article-arrow {
  color: #b27f18;
}

.knowledge-empty {
  display: grid;
  gap: 7px;
  padding: 48px 24px;
  color: #7b8490;
  text-align: center;
}

.knowledge-empty[hidden] {
  display: none;
}

.knowledge-reader {
  min-height: 640px;
  overflow: hidden;
  outline: none;
}

.knowledge-reader-head {
  padding: 34px 38px 30px;
  border-bottom: 1px solid #e8ebee;
  background: #fbfbfa;
}

.knowledge-reader-head > p {
  margin: 0 0 10px;
  color: #a27213;
  font-size: 12px;
  font-weight: 900;
}

.knowledge-reader-head h1 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.28;
  letter-spacing: 0;
}

.knowledge-reader-head > span {
  display: block;
  color: #626c78;
  line-height: 1.8;
}

.knowledge-reader-head > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
}

.knowledge-reader-head em {
  padding: 4px 8px;
  border-radius: 3px;
  background: #fff3d4;
  color: #91650f;
  font-size: 11px;
  font-style: normal;
}

.knowledge-reader-head small {
  margin-left: auto;
  color: #929aa5;
}

.knowledge-reader-body {
  padding: 30px 38px 38px;
}

.knowledge-reader-body h2 {
  margin: 30px 0 12px;
  font-size: 20px;
  letter-spacing: 0;
}

.knowledge-reader-body h2:first-child {
  margin-top: 0;
}

.knowledge-reader-body p,
.knowledge-reader-body li {
  color: #46505d;
  font-size: 15px;
  line-height: 1.9;
}

.knowledge-reader-body ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
}

.knowledge-reader-body li::marker {
  color: #c28f25;
}

.knowledge-checklist {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #ece3ce;
  border-radius: 6px;
  background: #fffbf2;
}

.knowledge-checklist span {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
  color: #454b53;
  line-height: 1.6;
}

.knowledge-checklist i {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d2a23b;
  color: #fff;
  font-size: 11px;
  font-style: normal;
}

.knowledge-note {
  margin: 24px 0 0;
  padding: 18px 20px;
  border-left: 4px solid #d2a23b;
  background: #f3f4f5;
}

.knowledge-note strong {
  font-size: 13px;
}

.knowledge-note p {
  margin: 6px 0 0;
  font-size: 14px;
}

.knowledge-inline-link {
  display: inline-flex;
  margin-top: 24px;
  padding: 11px 16px;
  border-radius: 5px;
  background: #11110f;
  color: #f4ca67;
  font-weight: 800;
}

.knowledge-reader-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 38px;
  border-top: 1px solid #eceff2;
  color: #9aa1aa;
  font-size: 11px;
}

.knowledge-reader-foot strong {
  color: #8a681f;
}

.knowledge-reader-placeholder {
  min-height: 520px;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 30px;
  color: #7b8490;
  text-align: center;
}

.knowledge-loading {
  margin: 0;
  padding: 24px 14px;
  color: #7f8791;
  font-size: 13px;
  text-align: center;
}

.knowledge-loading.is-error {
  color: #a13b2d;
}

/* Knowledge management */
.admin-page {
  min-height: 100vh;
  background: #eef1f4;
  color: #17191c;
}

.knowledge-admin-shell {
  min-height: 100vh;
  padding: 100px max(22px, calc((100vw - 1500px) / 2)) 56px;
}

.admin-access {
  width: min(460px, 100%);
  margin: 10vh auto 0;
  padding: 44px;
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(16, 24, 40, 0.09);
  text-align: center;
}

.admin-access[hidden],
.admin-dashboard[hidden],
.admin-section-form[hidden] {
  display: none;
}

.admin-access img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
}

.admin-access h1 {
  margin: 18px 0 8px;
  font-size: 28px;
}

.admin-access p {
  margin: 0 0 24px;
  color: #737c88;
}

.admin-access button {
  min-width: 150px;
  min-height: 42px;
  border: 0;
  border-radius: 5px;
  background: #11110f;
  color: #f0c763;
  cursor: pointer;
  font-weight: 800;
}

.admin-dashboard-head {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 18px;
  padding: 26px 32px;
  border-radius: 8px;
  background: #11110f;
  color: #fff;
}

.admin-dashboard-head p,
.admin-form-title p {
  margin: 0 0 6px;
  color: #d1a13a;
  font-size: 11px;
  font-weight: 900;
}

.admin-dashboard-head h1 {
  margin: 0;
  font-size: 30px;
}

.admin-dashboard-head dl {
  display: flex;
  gap: 10px;
  margin: 0;
}

.admin-dashboard-head dl div {
  min-width: 88px;
  padding: 12px 14px;
  border: 1px solid #403d34;
  border-radius: 5px;
  background: #1b1a17;
}

.admin-dashboard-head dt {
  color: #e1b146;
  font-size: 22px;
  font-weight: 900;
}

.admin-dashboard-head dd {
  margin: 2px 0 0;
  color: #aeb3bb;
  font-size: 11px;
}

.admin-content-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-library-panel,
.admin-editor-panel {
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(16, 24, 40, 0.05);
}

.admin-library-panel {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 108px);
  overflow: auto;
}

.admin-panel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px;
}

.admin-panel-actions button {
  min-height: 38px;
  border: 1px solid #dddfe3;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.admin-panel-actions button:first-child {
  border-color: #11110f;
  background: #11110f;
  color: #f1c762;
}

.admin-search {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 14px 10px;
  padding: 0 11px;
  border: 1px solid #e1e4e8;
  border-radius: 4px;
  background: #f7f8f9;
}

.admin-search input,
.admin-library-panel > select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}

.admin-library-panel > select {
  width: calc(100% - 28px);
  height: 38px;
  margin: 0 14px 12px;
  padding: 0 9px;
  border: 1px solid #e1e4e8;
  border-radius: 4px;
}

.admin-article-list {
  border-top: 1px solid #eceff2;
}

.admin-article-row {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 13px 15px;
  border: 0;
  border-bottom: 1px solid #eceff2;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.admin-article-row:hover,
.admin-article-row.is-active {
  background: #fff9ec;
}

.admin-article-row.is-active {
  box-shadow: inset 3px 0 #d1a038;
}

.admin-article-row > span {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.admin-article-row strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-article-row em {
  color: #8b939e;
  font-size: 11px;
  font-style: normal;
}

.admin-article-row small {
  padding: 3px 6px;
  border-radius: 3px;
  background: #edf0f3;
  color: #6e7782;
  font-size: 10px;
}

.admin-article-row small[data-status="published"] {
  background: #e7f6ed;
  color: #287a48;
}

.admin-list-empty {
  padding: 34px 18px;
  color: #8b939e;
  text-align: center;
}

.admin-editor-panel {
  padding: 26px 30px 32px;
}

.admin-section-form {
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid #e6d5ae;
  border-radius: 6px;
  background: #fffbf2;
}

.admin-form-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-form-title h2 {
  margin: 0;
  font-size: 22px;
}

.admin-form-title > button {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
}

.admin-form-title > span {
  color: #75808c;
  font-size: 12px;
}

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

.admin-field-grid--section {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-field-grid label,
.admin-section-form > label {
  display: grid;
  gap: 7px;
}

.admin-field-grid label > span,
.admin-section-form label > span {
  color: #49515b;
  font-size: 12px;
  font-weight: 800;
}

.admin-field-grid input,
.admin-field-grid select,
.admin-field-grid textarea,
.admin-section-form input,
.admin-section-form select,
.admin-section-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid #dfe3e8;
  border-radius: 4px;
  outline: 0;
  background: #fff;
  color: #17191c;
  font: inherit;
}

.admin-field-grid input:focus,
.admin-field-grid select:focus,
.admin-field-grid textarea:focus {
  border-color: #bd8b21;
  box-shadow: 0 0 0 3px rgba(189, 139, 33, 0.1);
}

.admin-field-wide {
  grid-column: 1 / -1;
}

.admin-body-editor {
  min-height: 420px !important;
  resize: vertical;
  font-family: Consolas, "Microsoft YaHei", monospace !important;
  line-height: 1.75;
}

.admin-field-wide small {
  color: #8b939e;
  font-size: 11px;
}

.admin-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.admin-form-actions button,
.admin-form-actions select {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #d9dce1;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.admin-form-actions button[type="submit"],
.admin-save-button {
  border-color: #11110f !important;
  background: #11110f !important;
  color: #f0c763 !important;
}

.admin-form-actions--article {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  padding-top: 20px;
  border-top: 1px solid #eceff2;
}

.admin-delete-button {
  color: #a23c30;
}

@media (max-width: 1000px) {
  .admin-content-grid {
    grid-template-columns: 1fr;
  }

  .admin-library-panel {
    position: static;
    max-height: 500px;
  }

  .admin-field-grid--section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .knowledge-admin-shell {
    padding: 92px 12px 40px;
  }

  .admin-dashboard-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .admin-dashboard-head dl {
    width: 100%;
  }

  .admin-dashboard-head dl div {
    min-width: 0;
    flex: 1;
  }

  .admin-editor-panel {
    padding: 20px 15px 24px;
  }

  .admin-field-grid,
  .admin-field-grid--section {
    grid-template-columns: 1fr;
  }

  .admin-field-wide {
    grid-column: auto;
  }

  .admin-form-actions--article {
    grid-template-columns: 1fr;
  }
}

/* Quant Agent continuous chat workspace */
body.agent-chat-page {
  height: 100vh;
  overflow: hidden;
  background: #f4f5f7;
}

.agent-chat-app {
  height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  margin-top: 0;
  background: #f4f5f7;
}

.agent-conversation-sidebar {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  overflow: hidden;
  border-right: 1px solid #dedfe2;
  background: #11110f;
  color: #fff;
}

.agent-sidebar-head {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid #2b2a25;
}

.agent-sidebar-head > div {
  display: grid;
  gap: 4px;
}

.agent-sidebar-head span {
  color: #c99a35;
  font-size: 10px;
  font-weight: 900;
}

.agent-sidebar-head strong {
  font-size: 15px;
}

.agent-sidebar-head button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #47443b;
  border-radius: 5px;
  background: #1c1b17;
  color: #e7b84c;
  font-size: 21px;
}

.agent-conversation-search {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 14px;
  padding: 0 10px;
  border: 1px solid #36342e;
  border-radius: 5px;
  background: #1b1a17;
  color: #7f817e;
}

.agent-conversation-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #eee;
  font: inherit;
  font-size: 12px;
}

.agent-conversation-list {
  min-height: 0;
  overflow-y: auto;
  padding: 0 8px 12px;
  scrollbar-width: thin;
}

.agent-conversation-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  border-radius: 5px;
}

.agent-conversation-item:hover,
.agent-conversation-item.is-active {
  background: #28261f;
}

.agent-conversation-item.is-active {
  box-shadow: inset 3px 0 #d0a03a;
}

.agent-conversation-item > button:first-child {
  min-width: 0;
  min-height: 62px;
  display: grid;
  gap: 5px;
  padding: 11px 8px 11px 13px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
}

.agent-conversation-item strong,
.agent-conversation-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-conversation-item strong {
  font-size: 12px;
}

.agent-conversation-item span {
  color: #92938f;
  font-size: 10px;
}

.agent-conversation-delete {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #777a77;
  opacity: 0;
}

.agent-conversation-item:hover .agent-conversation-delete {
  opacity: 1;
}

.agent-conversation-delete:hover {
  background: #3a3028;
  color: #f08b71;
}

.agent-sidebar-empty {
  margin: 0;
  padding: 34px 16px;
  color: #777a77;
  font-size: 12px;
  text-align: center;
}

.agent-sidebar-foot {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid #2b2a25;
}

.agent-sidebar-foot > div {
  display: grid;
  gap: 3px;
}

.agent-sidebar-foot strong {
  font-size: 12px;
}

.agent-sidebar-foot small {
  color: #858783;
  font-size: 10px;
}

.agent-model-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #42c883;
  box-shadow: 0 0 0 4px rgba(66, 200, 131, 0.1);
}

.agent-chat-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 66px minmax(0, 1fr) auto auto;
  background: #fff;
}

.agent-chat-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  border-bottom: 1px solid #e7e9ec;
  background: rgba(255, 255, 255, 0.96);
}

.agent-chat-head > div:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.agent-chat-head h1 {
  overflow: hidden;
  margin: 0;
  font-size: 16px;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-chat-head > div > span {
  color: #9c741e;
  font-size: 10px;
  font-weight: 800;
}

.agent-chat-head-meta {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  margin-left: auto;
}

.agent-chat-head-meta span,
.agent-chat-head-meta em {
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 10px !important;
  font-style: normal;
}

.agent-chat-head-meta span {
  background: #11110f;
  color: #edc45e !important;
}

.agent-chat-head-meta em {
  background: #eff1f3;
  color: #67717d;
}

.agent-sidebar-toggle {
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #e0e3e7;
  border-radius: 4px;
  background: #fff;
}

.agent-transcript {
  min-height: 0;
  overflow-y: auto;
  scroll-behavior: smooth;
  background: #fafafa;
}

.agent-empty-state {
  width: min(900px, calc(100% - 40px));
  min-height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  margin: 0 auto;
  padding: 50px 0;
  text-align: center;
}

.agent-empty-state > img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(201, 154, 58, 0.1);
}

.agent-empty-state > p {
  margin: 20px 0 8px;
  color: #b28320;
  font-size: 11px;
  font-weight: 900;
}

.agent-empty-state h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0;
}

.agent-empty-state > span {
  max-width: 650px;
  margin-top: 12px;
  color: #6b7480;
  line-height: 1.75;
}

.agent-starter-grid {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.agent-starter-grid button {
  min-height: 78px;
  display: grid;
  gap: 7px;
  padding: 15px 17px;
  border: 1px solid #e3e6ea;
  border-radius: 6px;
  background: #fff;
  color: #20242a;
  text-align: left;
}

.agent-starter-grid button:hover {
  border-color: #c69a3b;
  background: #fffaf0;
}

.agent-starter-grid strong {
  font-size: 14px;
}

.agent-starter-grid span {
  color: #89919b;
  font-size: 11px;
}

.agent-message {
  width: min(920px, calc(100% - 46px));
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  margin: 0 auto;
  padding: 24px 0;
}

.agent-message + .agent-message {
  border-top: 1px solid #eceef1;
}

.agent-message--user {
  background: transparent;
}

.agent-message-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #c89a35;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.agent-message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-message-avatar--user {
  background: #25272b;
}

.agent-message-content {
  min-width: 0;
}

.agent-message-content > header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.agent-message-content > header strong {
  font-size: 13px;
}

.agent-message-content > header span {
  color: #9ba2ab;
  font-size: 10px;
}

.agent-message-body {
  color: #30363e;
  font-size: 14px;
  line-height: 1.85;
}

.agent-message-body p {
  margin: 0 0 10px;
}

.agent-message-body h2,
.agent-message-body h3,
.agent-message-body h4 {
  margin: 24px 0 10px;
  letter-spacing: 0;
}

.agent-message-body h2 { font-size: 20px; }
.agent-message-body h3 { font-size: 17px; }
.agent-message-body h4 { font-size: 15px; }

.agent-message-body pre {
  position: relative;
  max-width: 100%;
  margin: 14px 0;
  padding: 42px 18px 18px;
  overflow: auto;
  border-radius: 6px;
  background: #151714;
  color: #e8e8e3;
  line-height: 1.65;
}

.agent-message-body pre button {
  position: absolute;
  top: 9px;
  right: 10px;
  height: 25px;
  padding: 0 8px;
  border: 1px solid #44473f;
  border-radius: 3px;
  background: #242620;
  color: #c9cbbf;
  font-size: 10px;
}

.agent-message-body code {
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  white-space: pre;
}

.agent-reasoning {
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid #e4d4ae;
  border-radius: 6px;
  background: #fffbf2;
}

.agent-reasoning summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  cursor: pointer;
  list-style: none;
  color: #805e18;
}

.agent-reasoning summary::-webkit-details-marker { display: none; }
.agent-reasoning summary strong { font-size: 12px; }
.agent-reasoning summary em { margin-left: auto; color: #a69a82; font-size: 10px; font-style: normal; }
.agent-reasoning-icon { color: #c99a35; font-size: 13px; }
.agent-reasoning > div { padding: 10px 14px 12px; border-top: 1px solid #eee2c8; }
.agent-reasoning > div p { margin: 0 0 7px; color: #5e5545; font-size: 12px; line-height: 1.7; }

.agent-bullet {
  position: relative;
  padding-left: 17px;
}

.agent-bullet::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c69731;
}

.agent-numbered {
  font-weight: 700;
}

.agent-message-space {
  display: block;
  height: 6px;
}

.agent-thinking {
  width: min(920px, calc(100% - 46px));
  margin: 0 auto 10px;
  padding: 12px 16px;
  border: 1px solid #e5d7b8;
  border-radius: 6px;
  background: #fffbf2;
}

.agent-thinking[hidden] {
  display: none;
}

.agent-thinking header {
  display: flex;
  align-items: center;
  gap: 9px;
}

.agent-thinking header strong {
  font-size: 12px;
}

.agent-thinking header em {
  margin-left: auto;
  color: #9c741e;
  font-size: 10px;
  font-style: normal;
}

.agent-thinking-context {
  margin: 9px 0 0;
  overflow: hidden;
  color: #6c6251;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-thinking-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #e7d5aa;
  border-top-color: #bf8d20;
  border-radius: 50%;
  animation: agent-spin 0.8s linear infinite;
}

@keyframes agent-spin { to { transform: rotate(360deg); } }

.agent-thinking-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.agent-thinking-steps span {
  position: relative;
  padding-left: 14px;
  color: #9a9fa6;
  font-size: 10px;
}

.agent-thinking-steps span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d8dadd;
}

.agent-thinking-steps span.is-active {
  color: #9b6d0d;
  font-weight: 800;
}

.agent-thinking-steps span.is-active::before {
  background: #c99a35;
  box-shadow: 0 0 0 3px rgba(201, 154, 53, 0.15);
}

.agent-thinking-steps span.is-done::before {
  background: #42b977;
}

.agent-thinking-log {
  display: grid;
  gap: 5px;
  margin: 11px 0 0;
  padding: 10px 12px;
  border-top: 1px solid #eee2c8;
  color: #656a72;
  font-size: 10px;
  list-style: none;
}

.agent-thinking-log li {
  display: flex;
  align-items: center;
  gap: 8px;
  animation: agent-log-in 180ms ease both;
}

.agent-thinking-log li span {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #c99a35;
  box-shadow: 0 0 0 3px rgba(201, 154, 53, 0.12);
}

@keyframes agent-log-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.agent-chat-composer-wrap {
  padding: 10px 24px 14px;
  border-top: 1px solid #eceef1;
  background: #fff;
}

.agent-chat-composer {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 11px 12px 9px;
  border: 1px solid #dcdfe3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(20, 24, 30, 0.06);
}

.agent-chat-composer textarea {
  width: 100%;
  min-height: 42px;
  max-height: 180px;
  padding: 4px 5px 8px;
  resize: none;
  border: 0;
  outline: 0;
  color: #20242a;
  font: inherit;
  line-height: 1.6;
}

.agent-attachment-tray {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 0 4px 9px;
}

.agent-attachment-tray[hidden] { display: none; }

.agent-message-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.agent-attachment-chip {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  max-width: 310px;
  min-height: 34px;
  padding: 5px 7px;
  border: 1px solid #e2d5b8;
  border-radius: 6px;
  background: #fffaf0;
  color: #3e3a32;
}

.agent-attachment-chip i {
  padding: 3px 5px;
  border-radius: 3px;
  background: #1b1b19;
  color: #e2b44a;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}

.agent-attachment-chip b {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-attachment-chip small { color: #8b8f94; font-size: 9px; white-space: nowrap; }
.agent-attachment-chip button { width: 20px; height: 20px; padding: 0; border: 0; background: transparent; color: #8b8f94; font-size: 16px; }
.agent-attachment-loading { color: #9b6d0d; font-size: 10px; }

.agent-chat-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
}

.agent-attach-button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #f1f3f5;
  color: #5d6671;
  font-size: 18px;
}

.agent-attach-button:hover { background: #e8d8b4; color: #6f4b06; }
.agent-attach-button:disabled { cursor: wait; opacity: .55; }

.agent-chat-hint {
  color: #9aa1aa;
  font-size: 10px;
}

.agent-language-wrap {
  position: relative;
  margin-left: auto;
}

.agent-language-wrap .agent-page-mode {
  margin-left: 0;
}

.agent-language-wrap .agent-page-menu {
  top: auto;
  right: 0;
  bottom: 42px;
  left: auto;
  width: 360px;
  max-height: min(390px, calc(100vh - 220px));
  transform: none;
}

.agent-chat-toolbar .agent-send {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c99a35 !important;
  color: #111 !important;
  font-weight: 900;
  appearance: none;
}

.agent-chat-toolbar .agent-send:hover {
  background: #111 !important;
  color: #e9bf5c !important;
}

.agent-chat-disclaimer {
  width: min(920px, 100%);
  margin: 6px auto 0;
  color: #a0a6ae;
  font-size: 10px;
  text-align: center;
}

.agent-chat-disclaimer[data-type="success"] { color: #228653; }
.agent-chat-disclaimer[data-type="error"] { color: #b13a2f; }
.agent-chat-disclaimer[data-type="loading"] { color: #9b6d0d; }

@media (max-width: 980px) {
  .agent-chat-app {
    grid-template-columns: 1fr;
  }

  .agent-conversation-sidebar {
    position: fixed;
    top: 72px;
    bottom: 0;
    left: 0;
    z-index: 60;
    width: min(310px, 86vw);
    transform: translateX(-102%);
    transition: transform 180ms ease;
  }

  body.is-agent-sidebar-open .agent-conversation-sidebar {
    transform: translateX(0);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.2);
  }

  .agent-sidebar-toggle {
    display: grid;
    place-items: center;
  }
}

@media (max-width: 640px) {
  .agent-chat-app {
    height: calc(100vh - 64px);
    margin-top: 0;
  }

  .agent-conversation-sidebar {
    top: 64px;
  }

  .agent-chat-head {
    height: 58px;
    padding: 0 12px;
  }

  .agent-chat-head-meta span {
    display: none;
  }

  .agent-message,
  .agent-thinking {
    width: calc(100% - 24px);
  }

  .agent-message {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 18px 0;
  }

  .agent-message-avatar {
    width: 30px;
    height: 30px;
  }

  .agent-empty-state {
    width: calc(100% - 24px);
    padding: 30px 0;
  }

  .agent-empty-state h2 {
    font-size: 24px;
  }

  .agent-starter-grid {
    grid-template-columns: 1fr;
  }

  .agent-thinking-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 9px;
  }

  .agent-chat-composer-wrap {
    padding: 8px 8px 10px;
  }

  .agent-chat-hint {
    display: none;
  }

  .agent-language-wrap .agent-page-menu {
    position: fixed;
    right: 10px;
    bottom: 92px;
    width: calc(100vw - 20px);
  }
}

/* Strategy marketplace, trader studio and coin wallet */
.community-market-head { display:flex; align-items:flex-end; justify-content:space-between; gap:30px; padding:34px 0 28px; }
.community-market-head p,.trader-intro p,.wallet-hero p,.strategy-detail-hero p { margin:0 0 7px; color:#a77715; font-size:11px; font-weight:900; }
.community-market-head h1,.trader-intro h1 { margin:0 0 8px; font-size:38px; letter-spacing:0; }
.community-market-head span,.trader-intro span { color:#6f7680; }
.community-market-head>div:last-child { display:flex; gap:9px; }
.community-market-head a { min-height:42px; padding:0 17px; display:inline-flex; align-items:center; border:1px solid #171814; border-radius:4px; color:#171814; text-decoration:none; font-weight:800; }
.community-market-head a:first-child { background:#171814; color:#edc35e; }
.strategy-author { position:relative; }
.strategy-author>em { margin-left:auto; color:#a6791b; font-style:normal; font-weight:900; }
.verification-badge { display:inline-flex; align-items:center; min-height:26px; padding:0 9px; border:1px solid #d7b15a; border-radius:3px; background:#fff8e7; color:#8d6616; font-size:11px; font-style:normal; font-weight:900; white-space:nowrap; }
.verification-badge.status-forward_verified,.verification-badge.status-live_verified { border-color:#8bc8ae; background:#edf9f3; color:#14764e; }
.verification-badge.status-disconnected,.verification-badge.status-suspended { border-color:#e1a7a1; background:#fff1ef; color:#a43830; }
.verification-badge.status-observing { border-color:#9bb9df; background:#f1f6fc; color:#315f96; }
.strategy-content h2 a { color:inherit; text-decoration:none; }
.strategy-curve-label { display:flex; justify-content:space-between; color:#858c96; font-size:12px; }
.strategy-curve-label strong { color:#b57f14; }
.strategy-actions { grid-template-columns:1fr 1.5fr; }
.strategy-actions .is-disabled { color:#8c8270; background:#f2efe8; }
.strategy-chart-empty { height:190px; display:grid; place-content:center; gap:7px; border:1px dashed #d8cfbd; background:#fbfaf7; text-align:center; }
.strategy-chart-empty strong { color:#8b671f; }
.strategy-chart-empty span { color:#858c96; font-size:12px; }
.strategy-metrics>.metric-muted { color:#aaa; }
.community-empty { padding:80px; background:#fff; text-align:center; }

.strategy-detail-shell,.trader-studio,.wallet-shell { width:min(1180px,calc(100% - 42px)); min-height:calc(100vh - 72px); margin:0 auto; padding:112px 0 90px; }
.strategy-back { display:inline-block; margin-bottom:24px; color:#76591c; text-decoration:none; }
.strategy-detail-hero { display:flex; align-items:flex-end; justify-content:space-between; gap:30px; padding:48px 52px; background:#171814; color:#fff; }
.strategy-detail-hero h1 { max-width:800px; margin:0 0 14px; font-size:42px; letter-spacing:0; }
.strategy-detail-hero>div>span { color:#aaa; }
.strategy-detail-hero aside { min-width:160px; display:grid; text-align:right; }
.strategy-detail-hero aside strong { color:#e4b344; font-size:42px; }
.strategy-detail-hero aside span { color:#aaa; }
.strategy-detail-hero aside a { margin-top:12px; color:#e4b344; }
.strategy-detail-performance { display:grid; grid-template-columns:minmax(0,1fr) 260px; gap:30px; padding:42px 52px; background:#fff; }
.strategy-detail-performance h2,.strategy-detail-logic h2,.strategy-comments h2,.strategy-unlock h2 { margin:0 0 18px; }
.strategy-detail-chart { width:100%; height:260px; }
.strategy-detail-chart-empty { height:260px; display:grid; place-content:center; gap:8px; border:1px dashed #d8cfbd; background:#fbfaf7; text-align:center; }
.strategy-detail-chart-empty strong { color:#8b671f; font-size:20px; }
.strategy-detail-chart-empty span { max-width:520px; color:#727984; font-size:13px; }
.strategy-verification-panel { display:grid; grid-template-columns:1fr 360px; gap:30px; align-items:center; padding:24px 52px; border-bottom:1px solid #e9e2d5; background:#fffaf0; }
.strategy-verification-panel>div:first-child { display:grid; justify-items:start; gap:7px; }
.strategy-verification-panel small { color:#777; }
.verification-progress { display:grid; grid-template-columns:1fr 1fr; gap:9px; color:#6f6655; font-size:12px; }
.verification-progress span:last-of-type { text-align:right; }
.verification-progress b { color:#171814; font-size:17px; }
.verification-progress>div { grid-column:1/-1; height:6px; overflow:hidden; background:#e8dfcc; }
.verification-progress i { display:block; height:100%; background:#d4a135; }
.strategy-monitoring-manager { margin-top:16px; padding:38px 52px; background:#fff; }
.strategy-monitoring-manager>header { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; padding-bottom:22px; border-bottom:1px solid #e8e2d7; }
.strategy-monitoring-manager header p { margin:0 0 6px; color:#a77715; font-size:11px; font-weight:900; }
.strategy-monitoring-manager header h2 { margin:0; font-size:27px; }
.strategy-monitoring-manager>header>span { color:#777; font-size:12px; }
.monitoring-manager-loading,.monitoring-manager-error { padding:38px 0; color:#777; }
.monitoring-manager-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:0; }
.monitoring-source-card,.monitoring-credential-card { min-width:0; padding:28px 28px 12px 0; }
.monitoring-credential-card { padding-right:0; padding-left:28px; border-left:1px solid #e8e2d7; }
.monitoring-source-card dl { display:grid; grid-template-columns:1fr 1fr; gap:14px 20px; margin:0 0 20px; }
.monitoring-source-card dl div { min-width:0; padding-bottom:12px; border-bottom:1px solid #eee; }
.monitoring-source-card dt { color:#9298a1; font-size:11px; }
.monitoring-source-card dd { margin:5px 0 0; overflow-wrap:anywhere; font-weight:800; }
.monitoring-source-card>p,.monitoring-secret-placeholder { color:#6d727a; font-size:12px; line-height:1.7; }
.monitoring-source-card form { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:9px; align-items:end; margin-top:20px; }
.monitoring-source-card label { display:grid; gap:7px; color:#626971; font-size:12px; }
.monitoring-source-card input { width:100%; min-height:42px; padding:0 12px; border:1px solid #d8d8d4; border-radius:3px; }
.monitoring-source-card button,.monitoring-copy-row button { min-height:42px; padding:0 16px; border:0; border-radius:3px; background:#171814; color:#edc35e; font-weight:900; cursor:pointer; }
.monitoring-source-card button:disabled { opacity:.55; cursor:wait; }
.monitoring-source-card .button-secondary { border:1px solid #c9b887; background:#fff; color:#76591c; }
.monitoring-status-pills { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.monitoring-status-pills span { min-height:28px; padding:6px 9px; border:1px solid #ded7c8; border-radius:3px; color:#625b4f; font-size:11px; font-weight:800; }
.monitoring-status-pills .status-active { border-color:#8bc8ae; background:#edf9f3; color:#14764e; }
.monitoring-status-pills .status-disconnected,.monitoring-status-pills .status-revoked { border-color:#e1a7a1; background:#fff1ef; color:#a43830; }
.monitoring-credential-card>strong { display:block; margin-bottom:8px; }
.monitoring-copy-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; margin-bottom:20px; }
.monitoring-copy-row code { min-width:0; padding:12px; overflow:auto; border:1px solid #e1ded7; background:#f7f6f3; color:#31342f; white-space:nowrap; }
.monitoring-copy-row button { min-height:40px; }
.monitoring-secret { padding:14px; border-left:3px solid #d4a135; background:#fff8e8; }
.monitoring-secret p { margin:0 0 10px; color:#6e5a2c; font-size:12px; }
.monitoring-secret .monitoring-copy-row { margin-bottom:0; }
.monitoring-credential-card details { margin-top:20px; }
.monitoring-credential-card summary { cursor:pointer; color:#76591c; font-weight:800; }
.monitoring-credential-card pre { max-height:360px; margin:12px 0 0; padding:18px; overflow:auto; background:#151713; color:#e8e8df; font-size:11px; line-height:1.7; }
.monitoring-integrity-note { display:flex; align-items:flex-start; gap:18px; margin-top:18px; padding:16px 0 0; border-top:1px solid #e8e2d7; color:#626971; font-size:12px; line-height:1.7; }
.monitoring-integrity-note strong { flex:0 0 auto; color:#171814; }
.strategy-detail-performance dl { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin:45px 0 0; }
.strategy-detail-performance dl div { padding-bottom:12px; border-bottom:1px solid #eee; }
.strategy-detail-performance dt { font-size:23px; font-weight:900; }
.strategy-detail-performance dd { margin:4px 0 0; color:#9298a1; font-size:11px; }
.strategy-detail-logic,.strategy-unlock,.strategy-comments { margin-top:16px; padding:38px 52px; background:#fff; }
.strategy-detail-logic>div { color:#4f5660; line-height:1.9; }
.strategy-unlock>div { display:grid; justify-items:start; gap:10px; padding:28px; border:1px solid #e5d4ab; background:#fffbf1; }
.strategy-unlock button,.strategy-comments form button { min-height:42px; padding:0 18px; border:0; border-radius:4px; background:#171814; color:#edc35e; font-weight:900; cursor:pointer; }
.strategy-unlock header,.strategy-comments header { display:flex; justify-content:space-between; align-items:center; }
.strategy-unlock header span { color:#1a9f68; }
.strategy-code { position:relative; max-height:620px; padding:48px 22px 22px; overflow:auto; background:#151713; color:#e8e8df; }
.strategy-code button { position:absolute; top:10px; right:10px; min-height:28px; }
.strategy-source-integrity { display:grid; grid-template-columns:120px 160px minmax(280px,1fr) auto; gap:18px; align-items:end; margin:20px 0; padding:18px; border:1px solid #e6dcc7; background:#fffaf0; }
.strategy-source-integrity>div { display:grid; gap:5px; min-width:0; }
.strategy-source-integrity span { color:#777; font-size:11px; }
.strategy-source-integrity code { overflow-wrap:anywhere; color:#7c5907; font-size:11px; }
.strategy-source-integrity button { min-height:42px; white-space:nowrap; }
.strategy-source-integrity button:disabled { opacity:.6; cursor:wait; }
.code-attestation { padding:3px 7px; border-left:3px solid #d2a02f; background:#fff; color:#74550f!important; }
.code-attestation.status-verified,.code-attestation.status-admin_verified { border-color:#1a9f68; color:#14774f!important; }
.code-attestation.status-mismatch,.code-attestation.status-rejected { border-color:#c83b32; color:#a02d27!important; }
.integrity-failed { border-color:#c83b32!important; background:#fff5f4!important; }
.strategy-comments form { display:grid; grid-template-columns:1fr auto; gap:10px; margin:18px 0 28px; }
.strategy-comments textarea { min-height:88px; padding:13px; border:1px solid #ddd; resize:vertical; }
.strategy-comments article { padding:18px 0; border-top:1px solid #eee; }
.strategy-comments article time { margin-left:10px; color:#999; font-size:11px; }
.strategy-comments article p { margin:8px 0 0; color:#555; }

.trader-intro { margin-bottom:30px; }
.trader-workspace { background:#fff; }
.trader-form { display:grid; gap:18px; padding:38px 44px; }
.trader-form>h2 { margin:0; }
.trader-form label { display:grid; gap:7px; color:#5f6670; font-size:12px; }
.trader-form input,.trader-form textarea,.trader-form select { width:100%; padding:12px; border:1px solid #dfe2e6; border-radius:4px; background:#fff; color:#171814; font:inherit; box-sizing:border-box; }
.trader-form fieldset { display:flex; gap:18px; border:1px solid #e4e6e9; }
.trader-form fieldset label { display:flex; align-items:center; }
.trader-form fieldset input { width:auto; }
.trader-form>button,.publish-submit,.trader-login button { min-height:46px; border:0; background:#171814; color:#edc35e; font-weight:900; cursor:pointer; }
.trader-publish-form>header { display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #eee; padding-bottom:18px; }
.trader-verification-notice { padding:18px 20px; border-left:4px solid #d3a137; background:#fff9eb; }
.trader-verification-notice strong { display:block; margin-bottom:6px; }
.trader-verification-notice p { margin:0; color:#665f52; line-height:1.7; }
.verification-submit-note { padding:13px 15px; background:#f4f4f2; color:#626971; font-size:12px; }
.trader-field-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.trader-field-grid .wide { grid-column:1/-1; }
.code-input { font-family:Consolas,monospace!important; }
.curve-preview { padding:12px; background:#f4f4f2; color:#777; }
.curve-preview[data-valid="true"] { color:#168c5e; }

.wallet-page { background:#f3f3f1; }
.wallet-hero { display:flex; align-items:flex-end; justify-content:space-between; padding:42px 48px; background:#171814; color:#fff; }
.wallet-hero h1 { margin:0; color:#e3b13f; font-size:64px; }
.wallet-hero span { color:#aaa; }
.wallet-hero a { color:#e3b13f; }
.wallet-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:16px; }
.wallet-grid>article,.wallet-store,.wallet-ledger { padding:30px; background:#fff; }
.wallet-recharge form>div { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0; }
.wallet-recharge button,.wallet-uses button,.wallet-store button,.wallet-login button { min-height:38px; padding:0 13px; border:1px solid #d9b25a; background:#fff; color:#725313; cursor:pointer; }
.wallet-recharge label { display:grid; gap:6px; }
.wallet-recharge input { min-height:42px; padding:0 12px; border:1px solid #ddd; }
.wallet-uses li { margin:12px 0; }
.wallet-uses>div { display:grid; gap:8px; }
.wallet-pay-prompt { display:grid; grid-template-columns:150px 1fr; gap:18px; margin-top:18px; padding:16px; background:#faf7ed; }
.wallet-pay-prompt img { width:150px; }
.wallet-store,.wallet-ledger { margin-top:16px; }
.wallet-store>div { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.wallet-store article { padding:18px; border:1px solid #e5e5e2; }
.wallet-ledger table { width:100%; border-collapse:collapse; }
.wallet-ledger th,.wallet-ledger td { padding:13px 8px; border-bottom:1px solid #eee; text-align:left; }
.wallet-orders td strong,.wallet-orders td small { display:block; }
.wallet-orders td small { margin-top:4px; color:#777; }
.wallet-order-status { display:inline-flex; min-height:26px; align-items:center; padding:0 9px; border:1px solid #ddd8cb; color:#6f6655; font-size:12px; }
.wallet-order-status[data-status="completed"] { border-color:#a8d8bd; color:#137b45; }
.wallet-order-status[data-status="cancelled"] { border-color:#e3b2ae; color:#a1352d; }
.wallet-order-status[data-status="processing"] { border-color:#dab65e; color:#8a6200; }
.coin-plus { color:#159466; }.coin-minus { color:#c94438; }
.wallet-login,.trader-login { padding:90px 30px; background:#fff; text-align:center; }

@media(max-width:800px){.community-market-head,.strategy-detail-hero,.wallet-hero{align-items:flex-start;flex-direction:column}.strategy-detail-performance,.strategy-verification-panel,.wallet-grid,.monitoring-manager-grid{grid-template-columns:1fr}.strategy-detail-performance dl{margin-top:0}.trader-field-grid{grid-template-columns:1fr}.trader-field-grid .wide{grid-column:auto}.wallet-store>div{grid-template-columns:1fr}.strategy-detail-hero,.strategy-verification-panel,.strategy-monitoring-manager,.strategy-detail-performance,.strategy-detail-logic,.strategy-unlock,.strategy-comments{padding:28px 22px}.strategy-comments form{grid-template-columns:1fr}.monitoring-source-card,.monitoring-credential-card{padding:22px 0}.monitoring-credential-card{border-top:1px solid #e8e2d7;border-left:0}.monitoring-source-card form{grid-template-columns:1fr}.monitoring-status-pills{justify-content:flex-start}.strategy-monitoring-manager>header{flex-direction:column}.monitoring-integrity-note{display:grid;gap:6px}.strategy-source-integrity{grid-template-columns:1fr}.strategy-source-integrity button{width:100%}}

@media(max-width:640px){
  .community-main{padding-left:16px;padding-right:16px}
  .community-toolbar,.community-tabs,.community-search,.community-filters{min-width:0}
  .community-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:7px}
  .community-tabs a{min-width:0;min-height:36px;justify-content:center;padding:0 8px;text-align:center;font-size:13px}
  .strategy-card{overflow:hidden;padding:20px 16px}
  .strategy-author{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:start}
  .strategy-author>div{min-width:0}
  .strategy-author>em{grid-column:1/-1;justify-self:start;margin-left:0;white-space:normal}
  .strategy-content,.strategy-metrics{min-width:0}
  .strategy-actions{grid-template-columns:1fr}
}

/* Global authenticated account menu */
.header-actions { position: relative; }
.account-menu { position: relative; min-width: 0; outline: none; }
.account-menu::after { content: ''; position: absolute; top: 100%; right: 0; width: 100%; height: 12px; }
.account-menu-trigger { min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 4px 8px 4px 5px; border: 0; background: transparent; color: #fff; cursor: pointer; }
.account-menu-trigger strong { max-width: 120px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-trigger em { color: #d1aa50; font-size: 11px; font-style: normal; }
.account-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #c8952d; color: #12120f; font-weight: 900; }
.account-dropdown { position: absolute; top: calc(100% + 8px); right: 0; z-index: 120; width: 330px; padding: 16px; visibility: hidden; border: 1px solid #ded8ca; border-radius: 6px; background: #fff; color: #1d2025; box-shadow: 0 22px 55px rgba(0,0,0,.18); opacity: 0; transform: translateY(-6px); transition: opacity 150ms ease, transform 150ms ease, visibility 150ms; }
.account-menu:hover .account-dropdown,.account-menu:focus-within .account-dropdown { visibility: visible; opacity: 1; transform: translateY(0); }
.account-dropdown::before { content: ''; position: absolute; right: 24px; bottom: 100%; width: 16px; height: 10px; }
.account-dropdown>header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid #eee; }
.account-dropdown>header div { min-width: 0; display: grid; gap: 3px; }
.account-dropdown>header strong,.account-dropdown>header span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-dropdown>header span { color: #90969e; font-size: 10px; }
.account-dropdown>header b { flex: 0 0 auto; padding: 4px 7px; border-radius: 3px; background: #efefed; color: #70757b; font-size: 10px; }
.account-dropdown>header b.is-pro { background: #f3e1b8; color: #80590d; }
.account-dropdown dl { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin: 14px 0; }
.account-dropdown dl div { padding: 10px 8px; background: #f6f6f4; }
.account-dropdown dt { color: #92979e; font-size: 9px; }
.account-dropdown dd { margin: 4px 0 0; font-size: 11px; font-weight: 800; }
.account-dropdown nav { display: grid; }
.account-dropdown nav a { display: grid; gap: 2px; padding: 10px 8px; border-top: 1px solid #f0f0ed; color: #23262a; text-decoration: none; }
.account-dropdown nav a:hover { background: #faf7ef; }
.account-dropdown nav span { font-size: 12px; font-weight: 800; }
.account-dropdown nav small { color: #979ca3; font-size: 9px; }
.account-dropdown footer { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; padding-top: 12px; border-top: 1px solid #eee; }
.account-dropdown footer button { min-height: 32px; padding: 0 5px; border: 1px solid #e2e2de; border-radius: 3px; background: #fff; color: #5c626a; font-size: 10px; cursor: pointer; }
.account-dropdown footer button:hover { border-color: #c99a35; color: #76540d; }
.password-dialog>h2 { margin: 4px 0 22px; }

@media(max-width:640px){.account-menu-trigger strong{max-width:82px}.account-dropdown{position:fixed;top:64px;right:8px;width:calc(100vw - 16px);box-sizing:border-box}}

/* Indicator library */
.indicator-library-page,
.indicator-detail-page {
  background: #f3f4f5;
  color: #14130f;
}

.indicator-library-main,
.indicator-detail-main {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.indicator-library-main {
  padding: 68px 0 92px;
}

.indicator-library-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 42px;
}

.indicator-library-head > div > p,
.indicator-detail-hero p,
.indicator-detail-section > p,
.indicator-code-section header p {
  margin: 0;
  color: #a87714;
  font-size: 12px;
  font-weight: 900;
}

.indicator-library-head h1 {
  margin: 8px 0 12px;
  font-size: 52px;
  line-height: 1.05;
}

.indicator-library-head > div > span {
  color: #666b72;
  line-height: 1.7;
}

.indicator-library-head dl {
  display: grid;
  grid-template-columns: repeat(3, 112px);
  margin: 0;
  border-top: 1px solid #d8d9da;
  border-bottom: 1px solid #d8d9da;
}

.indicator-library-head dl div {
  padding: 16px 18px;
  border-right: 1px solid #d8d9da;
}

.indicator-library-head dl div:last-child { border-right: 0; }
.indicator-library-head dt { color: #858a91; font-size: 11px; }
.indicator-library-head dd { margin: 5px 0 0; font-size: 24px; font-weight: 900; }

.indicator-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px;
  background: #11100d;
}

.indicator-market-tabs {
  display: flex;
  gap: 4px;
}

.indicator-market-tabs button,
.indicator-platform-filter button {
  min-height: 40px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.indicator-market-tabs button {
  padding: 0 18px;
  background: transparent;
  color: rgba(255,255,255,.72);
  font-weight: 700;
}

.indicator-market-tabs button:hover,
.indicator-market-tabs button.is-active {
  background: #d5a137;
  color: #11100d;
}

.indicator-search {
  display: flex;
  align-items: center;
  width: min(360px, 100%);
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: #fff;
}

.indicator-search span { color: #7b8087; font-size: 18px; }
.indicator-search input { width: 100%; border: 0; outline: 0; padding: 0 10px; background: transparent; }

.indicator-platform-filter {
  display: grid;
  grid-template-columns: 230px minmax(0,1fr);
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid #d8d9da;
}

.indicator-platform-filter > div:first-child {
  display: grid;
  align-content: center;
  gap: 4px;
}

.indicator-platform-filter > div:first-child strong { font-size: 18px; }
.indicator-platform-filter > div:first-child span { color: #7d8289; font-size: 12px; }
.indicator-platform-filter > div:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.indicator-platform-filter button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid #d8d9da;
  background: #fff;
  color: #4d5157;
}

.indicator-platform-filter button small {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eceeef;
  color: #737980;
  font-size: 10px;
}

.indicator-platform-filter button:hover,
.indicator-platform-filter button.is-active {
  border-color: #c9952e;
  background: #fbf3e2;
  color: #835b0b;
}

.indicator-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 18px;
}

.indicator-results-head > div { display: flex; align-items: baseline; gap: 12px; }
.indicator-results-head span { font-size: 22px; font-weight: 900; }
.indicator-results-head strong { color: #a77614; font-size: 12px; }
.indicator-results-head p { margin: 0; color: #7b8087; font-size: 12px; }

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

.indicator-grid.is-loading { opacity: .55; }

.indicator-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 292px;
  overflow: hidden;
  border: 1px solid #dedfe0;
  border-radius: 6px;
  background: #fff;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.indicator-card:hover {
  border-color: #c99a35;
  box-shadow: 0 14px 34px rgba(24,22,17,.08);
  transform: translateY(-2px);
}

.indicator-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #ececed;
}

.indicator-card > header div { display: flex; align-items: center; gap: 7px; }
.indicator-card > header span,
.indicator-card > header b { padding: 4px 7px; border-radius: 3px; font-size: 10px; }
.indicator-card > header span { background: #11100d; color: #fff; }
.indicator-card > header b { background: #f2dfb5; color: #79540a; }
.indicator-card > header small { color: #898e95; font-size: 11px; }

.indicator-card > div { padding: 22px 20px; }
.indicator-card > div p { margin: 0 0 8px; color: #ac7a16; font-size: 11px; font-weight: 800; }
.indicator-card h2 { margin: 0 0 12px; font-size: 21px; line-height: 1.35; }
.indicator-card h2 a { color: #171510; }
.indicator-card > div > span { color: #62676e; font-size: 14px; line-height: 1.7; }

.indicator-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid #ececed;
}

.indicator-card > footer div { display: flex; flex-wrap: wrap; gap: 5px; }
.indicator-card > footer div span { padding: 3px 6px; background: #f2f3f4; color: #71767d; font-size: 10px; }
.indicator-card > footer a { flex: 0 0 auto; color: #8c620e; font-size: 12px; font-weight: 800; }

.indicator-loading,
.indicator-empty {
  grid-column: 1/-1;
  min-height: 240px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px dashed #cfd1d3;
  color: #7d8288;
}

.indicator-empty strong { color: #292721; font-size: 20px; }
.indicator-empty a { color: #8c620e; }

.indicator-detail-main { padding: 36px 0 92px; }
.indicator-back { display: inline-flex; margin-bottom: 24px; color: #83600f; font-weight: 800; }

.indicator-detail-hero {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(360px,.65fr);
  gap: 70px;
  padding: 52px;
  background: #11100d;
  color: #fff;
}

.indicator-detail-hero h1 { margin: 10px 0 16px; font-size: 48px; line-height: 1.12; }
.indicator-detail-hero > div > span { display: block; max-width: 720px; color: rgba(255,255,255,.7); line-height: 1.8; }
.indicator-detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.indicator-detail-tags span { padding: 5px 9px; border: 1px solid rgba(215,163,52,.45); color: #e5bd66; font-size: 11px; }

.indicator-detail-hero dl {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  margin: 0;
  border: 1px solid rgba(255,255,255,.14);
}

.indicator-detail-hero dl div { padding: 18px; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.indicator-detail-hero dl div:nth-child(2n) { border-right: 0; }
.indicator-detail-hero dl div:nth-last-child(-n+2) { border-bottom: 0; }
.indicator-detail-hero dt { color: rgba(255,255,255,.5); font-size: 11px; }
.indicator-detail-hero dd { margin: 7px 0 0; color: #efc663; font-weight: 800; }

.indicator-detail-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 310px;
  gap: 24px;
  margin-top: 24px;
}

.indicator-detail-section { padding: 34px; border: 1px solid #dedfe0; background: #fff; }
.indicator-detail-section + .indicator-detail-section { margin-top: 18px; }
.indicator-detail-section h2 { margin: 8px 0 20px; font-size: 28px; }
.indicator-rich-text { color: #52575e; line-height: 1.9; white-space: pre-line; }

.indicator-code-section header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.indicator-code-section header h2 { margin-bottom: 0; }
.indicator-code-section button { min-height: 36px; padding: 0 14px; border: 1px solid #c79531; border-radius: 4px; background: #fff; color: #805b10; cursor: pointer; }
.indicator-code-section pre { overflow: auto; margin: 24px 0 0; padding: 24px; border-radius: 4px; background: #151512; color: #f1eadc; line-height: 1.75; }

.indicator-detail-layout > aside { display: grid; align-content: start; gap: 12px; }
.indicator-detail-layout > aside section { padding: 24px; border: 1px solid #ddd7c9; background: #fbf5e8; }
.indicator-detail-layout > aside p { margin: 0; color: #a57616; font-size: 11px; font-weight: 900; }
.indicator-detail-layout > aside h2 { margin: 8px 0 12px; font-size: 20px; }
.indicator-detail-layout > aside span { color: #67635b; font-size: 13px; line-height: 1.7; }
.indicator-detail-layout > aside > a { display: flex; justify-content: space-between; padding: 16px 18px; background: #11100d; color: #efc663; font-weight: 800; }

.indicator-unlock-panel {
  display: grid;
  grid-template-columns: 52px minmax(0,1fr) 210px;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  padding: 32px 34px;
  border: 1px solid #d3aa55;
  background: #11100d;
  color: #fff;
}

.indicator-lock-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(213,166,72,.65);
  color: #d5a648;
}

.indicator-unlock-panel p {
  margin: 0;
  color: #d5a648;
  font-size: 11px;
  font-weight: 900;
}

.indicator-unlock-panel h2 { margin: 7px 0 10px; font-size: 25px; }
.indicator-unlock-panel span { color: rgba(255,255,255,.65); line-height: 1.7; }
.indicator-unlock-panel ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 17px 0 0; padding: 0; list-style: none; }
.indicator-unlock-panel li { color: #e9dfca; font-size: 13px; }
.indicator-unlock-panel li::before { content: "✓"; margin-right: 7px; color: #d5a648; font-weight: 900; }
.indicator-unlock-action { display: grid; justify-items: stretch; gap: 9px; text-align: center; }
.indicator-unlock-action strong { color: #f0c86f; font-size: 30px; }
.indicator-unlock-action strong small { font-size: 13px; }
.indicator-unlock-action button { min-height: 43px; border: 0; border-radius: 4px; background: #d5a648; color: #11100d; font-weight: 900; cursor: pointer; }
.indicator-unlock-action button:disabled { cursor: wait; opacity: .7; }
.indicator-unlock-action > a { color: rgba(255,255,255,.66); font-size: 12px; }
.indicator-unlock-action em { min-height: 18px; color: #f4d590; font-size: 12px; font-style: normal; line-height: 1.5; }
.indicator-unlock-action em a { color: #fff; text-decoration: underline; }

@media (max-width: 980px) {
  .indicator-library-head,
  .indicator-results-head { align-items: flex-start; flex-direction: column; }
  .indicator-controls { align-items: stretch; flex-direction: column; }
  .indicator-search { width: 100%; box-sizing: border-box; }
  .indicator-platform-filter { grid-template-columns: 1fr; gap: 14px; }
  .indicator-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .indicator-detail-hero,
  .indicator-detail-layout { grid-template-columns: 1fr; }
  .indicator-unlock-panel { grid-template-columns: 44px minmax(0,1fr); }
  .indicator-unlock-action { grid-column: 2; justify-items: start; text-align: left; }
  .indicator-unlock-action button { min-width: 180px; }
}

@media (max-width: 640px) {
  .indicator-library-main,
  .indicator-detail-main { width: min(100% - 28px,1280px); }
  .indicator-library-main { padding-top: 42px; }
  .indicator-library-head { gap: 28px; }
  .indicator-library-head h1,
  .indicator-detail-hero h1 { font-size: 36px; }
  .indicator-library-head dl { width: 100%; grid-template-columns: repeat(3,1fr); }
  .indicator-market-tabs { display: grid; grid-template-columns: repeat(2,1fr); }
  .indicator-market-tabs button { padding: 0 10px; }
  .indicator-grid { grid-template-columns: 1fr; }
  .indicator-results-head p { line-height: 1.6; }
  .indicator-detail-hero { gap: 30px; padding: 30px 22px; }
  .indicator-detail-hero dl { grid-template-columns: 1fr; }
  .indicator-detail-hero dl div,
  .indicator-detail-hero dl div:nth-child(2n) { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .indicator-detail-hero dl div:last-child { border-bottom: 0; }
  .indicator-detail-section { padding: 24px 20px; }
  .indicator-unlock-panel { grid-template-columns: 1fr; padding: 26px 20px; }
  .indicator-lock-icon { width: 44px; height: 44px; }
  .indicator-unlock-action { grid-column: auto; width: 100%; }
  .indicator-unlock-action button { width: 100%; }
}

@media (max-width: 1180px) {
  .knowledge-content-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-reader {
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .knowledge-shell {
    grid-template-columns: 1fr;
    padding: 92px 16px 56px;
  }

  .knowledge-sidebar {
    position: static;
    max-height: none;
  }

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

  .knowledge-overview {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .knowledge-tree {
    grid-template-columns: 1fr;
  }

  .knowledge-overview {
    padding: 27px 22px;
  }

  .knowledge-overview h1 {
    font-size: 34px;
  }

  .knowledge-overview dl {
    width: 100%;
  }

  .knowledge-overview dl div {
    min-width: 0;
    flex: 1;
  }

  .knowledge-catalog-head,
  .knowledge-reader-head,
  .knowledge-reader-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .knowledge-reader-head h1 {
    font-size: 25px;
  }

  .knowledge-article-card {
    grid-template-columns: 30px minmax(0, 1fr) 18px;
    padding: 17px 15px;
  }

  .knowledge-reader-foot {
    align-items: flex-start;
    flex-direction: column;
    padding: 15px 20px;
  }
}

/* Research library and paper reader */
.paper-library-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin: 0 0 42px;
  padding-bottom: 28px;
  border-bottom: 1px solid #dfe2e7;
}

.paper-library-head p,
.report-reader-abstract > p,
.report-ai-panel header p {
  margin: 0 0 8px;
  color: #a6791b;
  font-size: 11px;
  font-weight: 800;
}

.paper-library-head h1 {
  margin: 0 0 10px;
  font-size: 42px;
  letter-spacing: 0;
}

.paper-library-head span { color: #69717c; }
.paper-library-head dl { display: flex; gap: 30px; margin: 0; }
.paper-library-head dl div { min-width: 86px; }
.paper-library-head dt { color: #151719; font-size: 26px; font-weight: 900; }
.paper-library-head dd { margin: 3px 0 0; color: #8d949d; font-size: 11px; }

.paper-grid--library { display: block; }
.paper-grid--library .paper-card-feed { column-count: 3; }
.paper-load-more {
  display: block;
  min-width: 220px;
  margin: 34px auto 0;
  padding: 13px 22px;
  border: 1px solid #c99731;
  border-radius: 4px;
  background: #161713;
  color: #e9bd57;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.paper-load-more[hidden] { display: none; }
.paper-load-more:hover { background: #2a2417; }
.paper-card--source { min-height: 300px; }
.paper-card--source h3 { font-size: 19px; line-height: 1.55; }
.paper-card--source h3 a { color: inherit; text-decoration: none; }
.paper-card--source h3 a:hover { color: #a6791b; }
.paper-card--source small { display: block; margin-top: 15px; color: #8e949e; line-height: 1.6; }
.paper-card-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 15px; }
.paper-card-meta span { margin: 0; font-size: 11px; }
.paper-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.paper-card-tags em { padding: 4px 7px; border-radius: 3px; background: #f2eee4; color: #80601f; font-size: 10px; font-style: normal; }
.paper-card__actions .paper-read-link { border-color: #161713; background: #161713; color: #e9bd57; }

.report-detail-page { background: #f4f4f2; }
.report-reader { width: min(1080px, calc(100% - 44px)); min-height: calc(100vh - 72px); margin: 0 auto; padding: 120px 0 100px; }
.report-reader-back { display: inline-flex; margin-bottom: 30px; color: #725516; text-decoration: none; }
.report-reader-article { background: #fff; }
.report-reader-article > header { padding: 58px 72px 44px; border-bottom: 1px solid #e8e8e4; }
.report-reader-article > header > p { margin: 0 0 16px; color: #a6791b; font-size: 12px; font-weight: 800; }
.report-reader-article h1 { max-width: 880px; margin: 0; font-size: 40px; line-height: 1.32; letter-spacing: 0; }
.report-reader-original-title { max-width: 880px; margin: 14px 0 0; color: #858b93; font-size: 15px; font-weight: 500; line-height: 1.6; }
.report-reader-byline { display: flex; justify-content: space-between; gap: 20px; margin-top: 24px; color: #737a84; font-size: 13px; }
.report-reader-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.report-reader-tags span { padding: 5px 8px; background: #f2eee3; color: #725516; font-size: 10px; }
.report-reader-summary { margin: 0; padding: 32px 72px; background: #151612; color: #f4f1e9; }
.report-reader-summary strong { color: #e0ad3b; }
.report-reader-summary p { margin: 10px 0 0; line-height: 1.85; }
.report-reader-abstract { padding: 52px 72px; }
.report-reader-abstract h2 { margin: 0 0 22px; font-size: 28px; }
.report-reader-abstract div { color: #4d5661; font-size: 15px; line-height: 2; }
.report-reader-source { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 32px 72px; border-top: 1px solid #e8e8e4; background: #faf8f2; }
.report-reader-source div:first-child { display: grid; gap: 7px; }
.report-reader-source p { margin: 0; color: #a6791b; font-size: 11px; font-weight: 800; }
.report-reader-source span { max-width: 620px; color: #858b92; font-size: 11px; line-height: 1.6; }
.report-reader-source div:last-child { display: flex; gap: 9px; flex: 0 0 auto; }
.report-reader-source a,
.report-reader-source button { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid #191a17; border-radius: 4px; background: #fff; color: #191a17; font: inherit; text-decoration: none; cursor: pointer; }
.report-reader-source button { background: #191a17; color: #e9bd57; }
.report-reader-article > footer { padding: 22px 72px 34px; color: #999fa6; font-size: 11px; }
.report-reader-loading { padding: 100px 0; text-align: center; }

.report-ai-fab { position: fixed; right: 26px; bottom: 26px; z-index: 75; display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 15px 0 7px; border: 1px solid #d9aa42; border-radius: 24px; background: #151612; color: #f5d073; box-shadow: 0 14px 36px rgba(0,0,0,.2); cursor: pointer; }
.report-ai-fab span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #d4a139; color: #111; font-size: 11px; font-weight: 900; }
.report-ai-fab strong { font-size: 12px; }
.report-ai-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(470px, 94vw); display: grid; grid-template-rows: auto 1fr auto; background: #fff; box-shadow: -22px 0 70px rgba(0,0,0,.18); transform: translateX(105%); transition: transform 220ms ease; }
.report-ai-panel.is-open { transform: translateX(0); }
.report-ai-panel header { display: flex; align-items: flex-start; justify-content: space-between; padding: 28px 28px 20px; border-bottom: 1px solid #e8e9eb; }
.report-ai-panel header h2 { margin: 0; font-size: 25px; }
.report-ai-panel header button { border: 0; background: none; color: #777; font-size: 26px; cursor: pointer; }
.report-ai-body { overflow: auto; padding: 26px 28px; color: #4c535d; line-height: 1.8; }
.report-ai-body h3 { margin: 26px 0 8px; color: #191a17; font-size: 16px; }
.report-ai-body h3:first-child { margin-top: 0; }
.report-ai-body p { margin: 0 0 9px; }
.report-ai-bullet { position: relative; padding-left: 14px; }
.report-ai-bullet::before { content: ''; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: #cc9932; }
.report-ai-panel footer { padding: 18px 28px 24px; border-top: 1px solid #e8e9eb; }
.report-ai-panel footer button,
.report-ai-upgrade { width: 100%; min-height: 42px; display: grid; place-items: center; border: 0; border-radius: 4px; background: #151612; color: #efc45e; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.report-ai-panel footer small { display: block; margin-top: 10px; color: #999; text-align: center; }
.report-ai-backdrop { position: fixed; inset: 0; z-index: 90; display: none; background: rgba(0,0,0,.32); }
.is-report-ai-open .report-ai-backdrop { display: block; }
.report-ai-progress { display: flex; align-items: center; gap: 12px; }
.report-ai-progress span { width: 17px; height: 17px; border: 2px solid #ead7aa; border-top-color: #b9871e; border-radius: 50%; animation: agent-spin .8s linear infinite; }

/* In-site PDF reader and cached Chinese translation */
.pdf-reader-page { min-width: 0; overflow: hidden; background: #252525; color: #f5f5f5; }
.pdf-reader-toolbar { height: 58px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 0 18px; border-bottom: 1px solid #505050; background: #383838; }
.pdf-reader-back { display: inline-flex; align-items: center; gap: 7px; color: #f4f4f4; font-size: 13px; text-decoration: none; white-space: nowrap; }
.pdf-reader-heading { min-width: 0; display: grid; gap: 3px; }
.pdf-reader-heading strong, .pdf-reader-heading small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-reader-heading strong { font-size: 13px; }
.pdf-reader-heading small { color: #bfc1c4; font-size: 10px; }
.pdf-reader-toolbar > button { min-height: 34px; padding: 0 14px; border: 1px solid #747474; border-radius: 4px; background: #242424; color: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.pdf-reader-stage { position: relative; height: calc(100vh - 58px); }
.pdf-reader-stage iframe { width: 100%; height: 100%; display: block; border: 0; background: #222; }
.pdf-reader-error { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.pdf-reader-error h1 { margin: 0 0 8px; font-size: 28px; }
.pdf-reader-error p { margin: 0; color: #bfc1c4; }
.pdf-reader-error[hidden] { display: none; }
.pdf-translate-fab { position: fixed; right: 26px; bottom: 24px; z-index: 84; min-height: 50px; display: flex; align-items: center; gap: 9px; padding: 0 17px 0 7px; border: 1px solid #d5a033; border-radius: 25px; background: #11120f; color: #f3ca68; box-shadow: 0 16px 42px rgba(0,0,0,.38); cursor: pointer; }
.pdf-translate-fab span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #d4a139; color: #111; font-size: 17px; font-weight: 900; }
.pdf-translate-fab strong { font-size: 13px; }
.pdf-translate-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 101; width: min(620px, 96vw); display: grid; grid-template-rows: auto auto 1fr auto; background: #f8f8f6; color: #20221f; box-shadow: -24px 0 80px rgba(0,0,0,.35); transform: translateX(105%); transition: transform 220ms ease; }
.pdf-translate-panel.is-open { transform: translateX(0); }
.pdf-translate-panel > header { display: flex; align-items: flex-start; justify-content: space-between; padding: 24px 28px 18px; border-bottom: 1px solid #e3e2de; }
.pdf-translate-panel > header p { margin: 0 0 5px; color: #aa7818; font-size: 10px; font-weight: 900; }
.pdf-translate-panel > header h2 { margin: 0; font-size: 24px; }
.pdf-translate-panel > header button { width: 34px; height: 34px; border: 0; background: transparent; color: #737772; font-size: 27px; cursor: pointer; }
.pdf-translate-status { min-height: 58px; padding: 17px 28px; border-bottom: 1px solid #e8e7e2; background: #f1eee6; color: #666a64; font-size: 12px; line-height: 1.6; }
.pdf-translate-status p { margin: 7px 0 0; }
.pdf-translation-progress { height: 5px; overflow: hidden; border-radius: 3px; background: #ded9cb; }
.pdf-translation-progress span { height: 100%; display: block; border-radius: inherit; background: #c8942f; transition: width .3s ease; }
.pdf-translate-content { overflow-y: auto; overflow-x: hidden; padding: 24px 30px 48px; line-height: 1.85; }
.pdf-translate-content h3 { margin: 30px 0 10px; padding-bottom: 8px; border-bottom: 1px solid #e6e3da; font-size: 18px; }
.pdf-translate-content h3:first-child { margin-top: 0; }
.pdf-translate-content p { margin: 0 0 14px; color: #343832; font-size: 14px; overflow-wrap: anywhere; word-break: break-word; }
.pdf-translation-formula { margin: 8px 0 18px; padding: 14px 16px; overflow-x: auto; border: 1px solid #e1ddd2; border-left: 3px solid #c8942f; border-radius: 3px; background: #f1efe9; color: #272a26; font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace; font-size: 12px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.pdf-translate-content blockquote { margin: 24px 0 0; padding: 12px 15px; border-left: 3px solid #cf9a32; background: #eeebe2; color: #777; font-size: 12px; }
.pdf-translate-panel > footer { padding: 17px 28px 22px; border-top: 1px solid #e3e2de; background: #fff; }
.pdf-translate-panel > footer button { width: 100%; min-height: 42px; border: 0; border-radius: 4px; background: #151612; color: #f0c663; font: inherit; font-weight: 800; cursor: pointer; }
.pdf-translate-panel > footer button:disabled { opacity: .55; cursor: wait; }
.pdf-translate-panel > footer small { display: block; margin-top: 9px; color: #8d918c; font-size: 10px; text-align: center; }
.pdf-translate-backdrop { position: fixed; inset: 0; z-index: 100; display: none; background: rgba(0,0,0,.4); }
.is-translation-open .pdf-translate-backdrop { display: block; }

/* Coin store */
.store-page { min-height: 100vh; background: #f4f2ec; }
.store-shell { width: min(1340px, calc(100% - 48px)); margin: 0 auto; padding: 118px 0 96px; }
.store-hero { min-height: 300px; display: flex; align-items: center; justify-content: space-between; gap: 70px; padding: 54px 64px; background: #12130f; color: #fff; }
.store-hero > div { max-width: 720px; }
.store-hero p, .store-catalog header p, .admin-commerce-head p { margin: 0 0 10px; color: #d3a13a; font-size: 11px; font-weight: 900; }
.store-hero h1 { margin: 0 0 14px; font-size: 54px; letter-spacing: 0; }
.store-hero > div > span { color: #c8c5bb; line-height: 1.8; }
.store-hero aside { width: 270px; flex: 0 0 auto; padding: 28px; border: 1px solid #68552c; background: #252117; }
.store-hero aside small { display: block; color: #c8aa6a; }
.store-hero aside strong { display: block; margin: 12px 0 18px; font-size: 28px; }
.store-hero aside strong em { font-size: 12px; font-style: normal; }
.store-hero aside a, .store-hero aside button { min-height: 38px; padding: 0 15px; display: inline-flex; align-items: center; border: 0; background: #d1a039; color: #111; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.store-catalog { padding: 58px 0 0; }
.store-catalog > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.store-catalog h2 { margin: 0; font-size: 34px; }
.store-catalog > header > a { color: #765613; text-decoration: none; }
.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.store-item { min-height: 330px; display: flex; flex-direction: column; padding: 30px; border: 1px solid #ded9cb; background: #fff; }
.store-item-mark { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 30px; border-radius: 50%; background: #d2a039; color: #fff; font-weight: 900; }
.store-item > small { color: #a27a27; }
.store-item h3 { margin: 10px 0; font-size: 23px; }
.store-item p { margin: 0; color: #65635e; line-height: 1.75; }
.store-item footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: auto; padding-top: 28px; border-top: 1px solid #ece9df; }
.store-item footer strong { font-size: 24px; }
.store-item footer strong span { font-size: 11px; }
.store-item footer button { min-height: 40px; padding: 0 17px; border: 0; background: #151612; color: #ebbf5b; font: inherit; font-weight: 800; cursor: pointer; }
.store-item footer button:disabled { opacity: .55; cursor: wait; }
.store-loading, .store-empty { grid-column: 1 / -1; min-height: 220px; display: grid; place-items: center; align-content: center; gap: 8px; border: 1px dashed #d2cbbd; color: #87837a; text-align: center; }
.store-empty strong { color: #23231f; font-size: 20px; }

/* Dedicated admin commerce */
.admin-login-form { width: min(390px, 100%); display: grid; gap: 14px; margin: 24px auto 0; text-align: left; }
.admin-login-form label { display: grid; gap: 7px; }
.admin-login-form span { font-size: 12px; font-weight: 800; }
.admin-login-form input { min-height: 44px; padding: 0 12px; border: 1px solid #d9d9d4; font: inherit; }
.admin-login-form button { min-height: 44px; border: 0; background: #151612; color: #e6b84c; font: inherit; font-weight: 800; cursor: pointer; }
.admin-commerce-panel { margin-top: 36px; padding: 32px; border: 1px solid #deddd7; background: #fff; }
.admin-commerce-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.admin-commerce-head h2 { margin: 0; font-size: 28px; }
.admin-commerce-head > span { color: #82827b; font-size: 12px; }
.admin-commerce-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 18px; align-items: start; }
.admin-store-form, .admin-commerce-list { padding: 20px; border: 1px solid #e5e3dc; background: #faf9f5; }
.admin-store-form { display: grid; gap: 13px; }
.admin-store-form > label { display: grid; gap: 6px; }
.admin-store-form label > span { font-size: 11px; font-weight: 800; }
.admin-store-form input, .admin-store-form textarea, .admin-store-form select, .admin-commerce-row select { width: 100%; padding: 10px; border: 1px solid #d9d8d2; background: #fff; font: inherit; }
.admin-store-form textarea { resize: vertical; }
.admin-store-form .admin-form-title h3, .admin-commerce-list h3 { margin: 0; font-size: 16px; }
.admin-store-form .admin-form-title button { border: 0; background: none; color: #8a671d; cursor: pointer; }
.admin-inline-status { min-height: 18px; margin: 0; color: #8a671d; font-size: 11px; }
.admin-commerce-list > h3 { margin-bottom: 12px; }
.admin-commerce-list > div { max-height: 340px; overflow: auto; }
.admin-commerce-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 0; border-top: 1px solid #e8e5dc; }
.admin-commerce-row:first-child { border-top: 0; }
.admin-commerce-row > div { min-width: 0; display: grid; gap: 5px; }
.admin-commerce-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-commerce-row small { color: #85847e; font-size: 10px; line-height: 1.5; }
.admin-commerce-row button { min-height: 31px; flex: 0 0 auto; padding: 0 10px; border: 1px solid #222; background: #fff; font: inherit; font-size: 11px; cursor: pointer; }
.admin-commerce-row select { width: 92px; flex: 0 0 auto; padding: 7px; font-size: 11px; }

.admin-attestation-panel { margin-top: 36px; padding: 32px; border: 1px solid #deddd7; background: #fff; }
.admin-attestation-summary { display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 20px; }
.admin-attestation-summary span { min-width: 112px; padding: 10px 13px; border: 1px solid #e4e2db; background: #faf9f5; color: #6f6d66; font-size: 11px; }
.admin-attestation-summary strong { margin-right: 4px; color: #111; font-size: 17px; }
.admin-attestation-summary span[data-tone="success"] { border-color: #cbe8d6; background: #f2fbf5; }
.admin-attestation-summary span[data-tone="danger"] { border-color: #f0c7c4; background: #fff5f4; }
.admin-attestation-summary span[data-tone="pending"] { border-color: #ead8ad; background: #fff9eb; }
.admin-attestation-list { display: grid; gap: 14px; }
.admin-attestation-card { padding: 20px; border: 1px solid #e1dfd8; border-radius: 4px; background: #fcfbf8; }
.admin-attestation-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.admin-attestation-card h3 { margin: 4px 0 5px; font-size: 18px; }
.admin-attestation-card header p { margin: 0; color: #7b7972; font-size: 11px; }
.admin-attestation-id { color: #a5771e; font-size: 10px; font-weight: 900; }
.admin-attestation-badge { flex: 0 0 auto; padding: 6px 9px; border: 1px solid #dedbd1; background: #f2f0e9; color: #66635b; font-size: 10px; font-weight: 900; }
.admin-attestation-badge[data-status="verified"], .admin-attestation-badge[data-status="admin_verified"] { border-color: #b9dfc8; background: #e8f7ed; color: #237343; }
.admin-attestation-badge[data-status="reported_match"] { border-color: #dfc684; background: #fff7dd; color: #8a6112; }
.admin-attestation-badge[data-status="mismatch"], .admin-attestation-badge[data-status="rejected"] { border-color: #edb7b3; background: #fff0ef; color: #ad3028; }
.admin-attestation-hashes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; margin-top: 17px; }
.admin-attestation-hashes > div { min-width: 0; display: grid; gap: 5px; padding: 10px 12px; border: 1px solid #e4e2dc; background: #fff; }
.admin-attestation-hashes small { color: #8b8981; font-size: 9px; font-weight: 800; }
.admin-attestation-hashes code { overflow: hidden; color: #292722; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.admin-hash-result { min-height: 44px; display: inline-flex; align-items: center; padding: 0 13px; border: 1px solid #efc0bc; background: #fff2f1; color: #a6322a; font-size: 10px; font-weight: 900; }
.admin-hash-result[data-match="yes"] { border-color: #b8ddc6; background: #eef9f2; color: #247747; }
.admin-attestation-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 12px 0 0; background: #e7e4dc; }
.admin-attestation-meta div { padding: 10px 12px; background: #f6f4ee; }
.admin-attestation-meta dt { color: #8b8981; font-size: 9px; }
.admin-attestation-meta dd { margin: 4px 0 0; font-size: 11px; font-weight: 800; }
.admin-attestation-note { margin: 12px 0; color: #6f6d67; font-size: 11px; line-height: 1.6; }
.admin-attestation-actions { display: grid; grid-template-columns: auto minmax(180px, 1fr) auto auto; gap: 8px; }
.admin-attestation-actions a, .admin-attestation-actions button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid #25231f; background: #fff; color: #171612; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.admin-attestation-actions input { min-width: 0; padding: 0 11px; border: 1px solid #dcd9d0; background: #fff; font: inherit; font-size: 11px; }
.admin-attestation-actions .admin-attestation-approve { background: #11100d; color: #e5b13e; }
.admin-attestation-actions button:disabled { border-color: #ddd; background: #eee; color: #aaa; cursor: not-allowed; }
.admin-order-done { color: #27946a; font-size: 11px; font-weight: 800; }
.account-auth-loading { color: #aaa69d; font-size: 12px; white-space: nowrap; }

@media (max-width: 980px) {
  .paper-grid--library .paper-card-feed { column-count: 2; }
  .report-reader-article > header,
  .report-reader-abstract,
  .report-reader-source { padding-left: 36px; padding-right: 36px; }
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-commerce-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-attestation-hashes { grid-template-columns: 1fr 1fr; }
  .admin-hash-result { grid-column: 1 / -1; }
  .admin-attestation-actions { grid-template-columns: 1fr 1fr; }
  .admin-attestation-actions input { grid-column: 1 / -1; min-height: 38px; }
}

@media (max-width: 640px) {
  .paper-library-head { align-items: flex-start; flex-direction: column; margin-bottom: 28px; }
  .paper-library-head h1 { font-size: 32px; }
  .paper-grid--library .paper-card-feed { column-count: 1; }
  .report-reader { width: calc(100% - 20px); padding: 88px 0 70px; }
  .report-reader-article > header,
  .report-reader-abstract,
  .report-reader-source,
  .report-reader-summary { padding-left: 22px; padding-right: 22px; }
  .report-reader-article h1 { font-size: 29px; }
  .report-reader-byline,
  .report-reader-source { align-items: flex-start; flex-direction: column; }
  .report-reader-source div:last-child { width: 100%; flex-wrap: wrap; }
  .report-ai-fab { right: 14px; bottom: 14px; }
  .pdf-reader-toolbar { gap: 10px; padding: 0 10px; }
  .pdf-reader-back span { display: none; }
  .pdf-reader-toolbar > button { padding: 0 10px; }
  .pdf-translate-fab { right: 14px; bottom: 14px; }
  .pdf-translate-panel { width: 100vw; }
  .pdf-translate-panel > header, .pdf-translate-status, .pdf-translate-panel > footer { padding-left: 20px; padding-right: 20px; }
  .pdf-translate-content { padding-left: 20px; padding-right: 20px; }
  .store-shell { width: calc(100% - 20px); padding-top: 84px; }
  .store-hero { min-height: 0; align-items: stretch; flex-direction: column; padding: 34px 24px; }
  .store-hero h1 { font-size: 39px; }
  .store-hero aside { width: auto; }
  .store-grid, .admin-commerce-grid { grid-template-columns: 1fr; }
  .store-catalog > header, .admin-commerce-head { align-items: flex-start; flex-direction: column; }
  .admin-commerce-panel, .admin-attestation-panel { padding: 18px; }
  .admin-attestation-card > header { flex-direction: column; }
  .admin-attestation-hashes, .admin-attestation-meta, .admin-attestation-actions { grid-template-columns: 1fr; }
  .admin-hash-result, .admin-attestation-actions input { grid-column: auto; }
}

/* Academy course catalog */
.academy-main--catalog { background: #f2f3f5; }
.academy-hero--catalog { max-width: none; min-height: 590px; grid-template-columns: minmax(0, 1fr) minmax(430px, .82fr); padding: 88px max(28px, calc((100vw - 1280px) / 2)); background: #10110f; }
.academy-hero-copy { max-width: 720px; }
.academy-hero--catalog h1 { max-width: 720px; font-size: 64px; line-height: 1.05; }
.academy-hero--catalog .academy-actions a { border-radius: 4px; background: #d2a13a; }
.academy-hero--catalog .academy-actions a + a { background: transparent; }
.academy-hero-metrics { display: flex; gap: 0; margin: 44px 0 0; }
.academy-hero-metrics div { min-width: 130px; padding: 0 28px; border-left: 1px solid rgba(255,255,255,.16); }
.academy-hero-metrics div:first-child { padding-left: 0; border-left: 0; }
.academy-hero-metrics dt { color: #e0ae45; font-size: 30px; font-weight: 900; }
.academy-hero-metrics dd { margin: 0; color: #90958e; font-size: 12px; }
.academy-route-panel { overflow: hidden; border: 1px solid #54472c; border-radius: 8px; background: #1a1b18; box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.academy-route-panel header { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; padding: 0 26px; border-bottom: 1px solid #35362f; }
.academy-route-panel header span { color: #d6a33a; font-size: 12px; font-weight: 900; }
.academy-route-panel header strong { color: #f4f4ef; font-size: 14px; }
.academy-route-panel ol { margin: 0; padding: 0; list-style: none; }
.academy-route-panel li { min-height: 104px; display: grid; grid-template-columns: 46px minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 18px 26px; border-top: 1px solid #30312b; }
.academy-route-panel li:first-child { border-top: 0; }
.academy-route-panel li b { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #67562f; border-radius: 50%; color: #e0ae45; font-size: 12px; }
.academy-route-panel li div { display: grid; gap: 4px; }
.academy-route-panel li strong { color: #fff; font-size: 20px; }
.academy-route-panel li span { color: #959a93; font-size: 12px; }
.academy-route-panel li em { padding: 5px 8px; border: 1px solid #51462e; color: #d4b36e; font-size: 10px; font-style: normal; }

.academy-stage-map, .academy-catalog, .academy-method { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.academy-stage-map { padding: 88px 0 80px; }
.academy-stage-map > header { max-width: 700px; margin-bottom: 42px; }
.academy-stage-map h2, .academy-catalog h2, .academy-market-band h2, .academy-method h2 { margin: 0 0 10px; font-size: 42px; letter-spacing: 0; }
.academy-stage-map > header > span, .academy-catalog-head > p { color: #6d737c; }
.academy-stage-track { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #cfd3d8; border-bottom: 1px solid #cfd3d8; background: #fff; }
.academy-stage-track article { position: relative; min-height: 230px; padding: 30px; border-left: 1px solid #dfe2e6; }
.academy-stage-track article:first-child { border-left: 0; }
.academy-stage-track small { color: #8c929a; font-size: 11px; }
.academy-stage-track b { display: block; margin: 26px 0 12px; color: #c28e24; font-size: 12px; }
.academy-stage-track h3 { margin: 0 0 10px; font-size: 22px; }
.academy-stage-track p { margin: 0; color: #6c727a; font-size: 14px; }

.academy-market-band { padding: 72px max(28px, calc((100vw - 1280px) / 2)); background: #161714; color: #fff; }
.academy-market-band > header { margin-bottom: 34px; }
.academy-market-band > div { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #34352f; }
.academy-market-band article { min-height: 218px; padding: 28px; border-left: 1px solid #34352f; cursor: pointer; transition: background .2s ease; }
.academy-market-band article:first-child { border-left: 0; }
.academy-market-band article:hover { background: #22231f; }
.academy-market-band article > span { color: #d5a23a; font-size: 12px; font-weight: 900; }
.academy-market-band article strong { display: block; margin: 32px 0 10px; font-size: 24px; }
.academy-market-band article p { margin: 0; color: #989d96; font-size: 14px; line-height: 1.8; }

.academy-catalog { padding: 92px 0; }
.academy-catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 36px; }
.academy-catalog-head > p { max-width: 480px; margin: 0; text-align: right; }
.academy-filter-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.academy-segmented, .academy-market-filters { display: flex; align-items: center; gap: 5px; }
.academy-segmented { padding: 4px; border: 1px solid #d6d9dd; background: #fff; }
.academy-segmented button, .academy-market-filters button { min-height: 38px; padding: 0 15px; border: 0; background: transparent; color: #555c64; font: inherit; font-size: 13px; cursor: pointer; }
.academy-segmented button.is-active { background: #151612; color: #efc45e; }
.academy-market-filters button { border-bottom: 2px solid transparent; }
.academy-market-filters button.is-active { border-bottom-color: #c48f25; color: #111; font-weight: 900; }
.academy-course-grid--catalog { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.academy-course-card { min-height: 440px !important; display: flex; flex-direction: column; padding: 0 !important; overflow: hidden; border: 1px solid #d9dce0 !important; border-radius: 8px !important; background: #fff !important; box-shadow: 0 14px 48px rgba(20,26,33,.06) !important; }
.academy-course-card > header { min-height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid #eceef0; background: #181916; color: #fff; }
.academy-course-card > header span { color: #e3b654; font-size: 11px; }
.academy-course-card > header em { color: #aeb2ac; font-size: 11px; font-style: normal; }
.academy-course-card > div { padding: 28px 26px 20px; }
.academy-course-card > div small { color: #a57418; font-weight: 900; }
.academy-course-card h3 { margin: 12px 0 7px; font-size: 26px; }
.academy-course-card > div strong { display: block; min-height: 48px; color: #30343a; font-size: 15px; }
.academy-course-card > div p { margin: 16px 0 0; color: #6f757d; font-size: 14px; line-height: 1.75; }
.academy-course-card dl { display: grid; grid-template-columns: repeat(3,1fr); margin: auto 26px 0; border-top: 1px solid #e7e9ec; border-bottom: 1px solid #e7e9ec; }
.academy-course-card dl div { min-width: 0; padding: 15px 7px; border-left: 1px solid #e7e9ec; text-align: center; }
.academy-course-card dl div:first-child { border-left: 0; }
.academy-course-card dt { overflow: hidden; color: #202328; font-size: 14px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.academy-course-card dd { margin: 2px 0 0; color: #92979e; font-size: 10px; }
.academy-course-card > footer { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 26px; }
.academy-course-card > footer span { color: #956b19; font-size: 12px; font-weight: 900; }
.academy-course-card > footer a { margin: 0; color: #151612; }
.academy-course-card > footer a b { color: #c58f25; }
.academy-course-loading, .academy-course-empty { grid-column: 1 / -1; min-height: 260px; display: grid; place-items: center; border: 1px dashed #c9cdd2; color: #7d838b; }

.academy-method { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; padding: 30px 0 100px; }
.academy-method > div > p:last-child { max-width: 570px; color: #687079; line-height: 1.9; }
.academy-method ol { margin: 0; padding: 0; border-top: 1px solid #cdd1d5; list-style: none; }
.academy-method li { min-height: 88px; display: grid; grid-template-columns: 55px 1fr; gap: 18px; align-items: center; border-bottom: 1px solid #cdd1d5; }
.academy-method li > b { color: #bd8720; font-size: 12px; }
.academy-method li span { display: grid; grid-template-columns: 130px 1fr; gap: 18px; align-items: center; }
.academy-method li strong { font-size: 18px; }
.academy-method li em { color: #777d84; font-style: normal; }

/* Course detail */
.course-page { background: #f1f3f5; }
.course-shell { min-height: 100vh; }
.course-loading, .course-error { min-height: 70vh; display: grid; place-items: center; color: #777d84; }
.course-error a { color: #9a6b13; text-decoration: underline; }
.course-hero { background: #11120f; color: #fff; }
.course-hero-inner { width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding: 50px 0 72px; }
.course-back { display: inline-flex; margin-bottom: 45px; color: #aeb2ac; font-size: 13px; }
.course-hero-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 80px; align-items: end; }
.course-hero-grid > div > p { margin: 0 0 14px; color: #daa83e; font-size: 12px; font-weight: 900; }
.course-hero h1 { max-width: 780px; margin: 0; font-size: 56px; line-height: 1.12; }
.course-hero h2 { margin: 13px 0 22px; color: #d1d4cf; font-size: 23px; font-weight: 500; }
.course-hero-grid > div > span { max-width: 760px; display: block; color: #9da19b; line-height: 1.8; }
.course-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.course-hero-tags b { padding: 6px 9px; border: 1px solid #43453e; color: #d7b76f; font-size: 11px; }
.course-hero aside { padding: 28px; border: 1px solid #66542c; border-radius: 8px; background: #242117; }
.course-hero aside small, .course-hero aside strong, .course-hero aside em { display: block; }
.course-hero aside small { color: #cfa03b; }
.course-hero aside strong { margin: 13px 0 7px; font-size: 27px; }
.course-hero aside p { color: #b6b4aa; font-size: 12px; line-height: 1.7; }
.course-hero aside button { width: 100%; min-height: 44px; margin-top: 14px; border: 0; border-radius: 4px; background: #d3a13a; color: #111; font: inherit; font-weight: 900; cursor: pointer; }
.course-hero aside button:disabled { background: #52534d; color: #c3c5bf; cursor: default; }
.course-hero aside em { min-height: 18px; margin-top: 9px; color: #d6bd84; font-size: 11px; font-style: normal; }
.course-content { width: min(1280px, calc(100% - 48px)); display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 32px; align-items: start; margin: 0 auto; padding: 72px 0 100px; }
.course-overview { min-width: 0; padding: 42px 46px; border: 1px solid #dfe2e5; background: #fff; }
.course-overview > h2, .course-syllabus h2 { margin: 0 0 14px; font-size: 34px; }
.course-overview > p { color: #656c74; line-height: 1.9; }
.course-trial-panel { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr); gap: 28px; align-items: stretch; padding: 34px; border: 1px solid #d8c493; background: linear-gradient(135deg, #11120f, #20180b 72%, #322307); color: #fff; box-shadow: 0 18px 44px rgba(14,12,8,.12); }
.course-trial-copy h2 { margin: 0 0 14px; font-size: 34px; }
.course-trial-copy p:not(.section-kicker) { max-width: 620px; color: #cfd2cc; line-height: 1.85; }
.course-trial-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.course-trial-list button { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 1px solid rgba(211,161,58,.28); border-radius: 6px; background: rgba(255,255,255,.05); color: #fff; text-align: left; cursor: pointer; }
.course-trial-list button span { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; background: rgba(211,161,58,.16); color: #e2b04a; font-size: 12px; font-weight: 900; }
.course-trial-list button strong { font-size: 14px; }
.course-trial-list button:hover, .course-trial-list button.is-active { border-color: #d3a13a; background: rgba(211,161,58,.14); }
.course-trial-video-frame { min-height: 300px; overflow: hidden; border: 1px solid rgba(211,161,58,.45); border-radius: 8px; background: #0d0e0c; }
.course-trial-video-frame video { width: 100%; height: 100%; min-height: 300px; display: block; background: #0d0e0c; }
.course-trial-video-placeholder { position: relative; min-height: 300px; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 36px; overflow: hidden; }
.course-trial-video-placeholder::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 0 19%, rgba(255,255,255,.11) 19% 31%, transparent 31% 44%, rgba(210,161,58,.16) 44% 55%, transparent 55% 100%), radial-gradient(circle at 76% 30%, rgba(211,161,58,.3), transparent 28%); opacity: .95; }
.course-trial-video-placeholder::after { content: "▶"; position: absolute; right: 34px; top: 34px; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #d3a13a; color: #111; font-size: 20px; font-weight: 900; }
.course-trial-video-placeholder span, .course-trial-video-placeholder strong, .course-trial-video-placeholder em, .course-trial-video-placeholder button { position: relative; z-index: 1; }
.course-trial-video-placeholder span { width: max-content; padding: 5px 9px; border-radius: 3px; background: rgba(211,161,58,.2); color: #e4b44d; font-size: 10px; font-weight: 900; }
.course-trial-video-placeholder strong { max-width: 440px; font-size: 34px; line-height: 1.12; }
.course-trial-video-placeholder em { color: #d8dad4; font-style: normal; }
.course-trial-video-placeholder button { width: max-content; min-height: 40px; padding: 0 18px; border: 0; border-radius: 4px; background: #f3f1e8; color: #111; font-weight: 900; cursor: pointer; }
.course-outcomes { margin: 36px 0 56px; padding: 26px 30px; border-left: 3px solid #cb9428; background: #f8f6ef; }
.course-outcomes h3 { margin: 0 0 14px; }
.course-outcomes ul, .course-sidebar ul { margin: 0; padding: 0; list-style: none; }
.course-outcomes li, .course-sidebar li { position: relative; padding: 7px 0 7px 20px; color: #5f666e; }
.course-outcomes li::before, .course-sidebar li::before { content: ""; position: absolute; left: 0; top: 16px; width: 6px; height: 6px; background: #c89227; }
.course-syllabus > header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.course-syllabus > header > span { color: #8b9198; font-size: 12px; }
.course-syllabus details { border-top: 1px solid #dfe2e5; }
.course-syllabus details:last-child { border-bottom: 1px solid #dfe2e5; }
.course-syllabus summary { min-height: 88px; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 18px; align-items: center; cursor: pointer; list-style: none; }
.course-syllabus summary::-webkit-details-marker { display: none; }
.course-syllabus summary > b { color: #b77f18; font-size: 12px; }
.course-syllabus summary span { display: grid; gap: 4px; }
.course-syllabus summary strong { font-size: 18px; }
.course-syllabus summary em, .course-syllabus summary i { color: #858b92; font-size: 11px; font-style: normal; }
.course-syllabus ol { margin: 0 0 18px 62px; padding: 0; border: 1px solid #e6e8ea; list-style: none; }
.course-syllabus ol li { min-height: 52px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 0 16px; border-top: 1px solid #eceef0; }
.course-syllabus ol li:first-child { border-top: 0; }
.course-syllabus ol li span, .course-syllabus ol li em { color: #969ba1; font-size: 10px; font-style: normal; }
.course-syllabus ol li strong { font-size: 13px; }
.course-syllabus ol li > button { min-width: 0; display: grid; gap: 3px; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.course-syllabus ol li > button strong, .course-syllabus ol li > button small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.course-syllabus ol li > button small { color: #8b9198; font-size: 11px; }
.course-syllabus ol li.is-locked > button { cursor: not-allowed; opacity: .62; }
.course-syllabus ol li.is-completed { background: #f6fbf7; }
.course-syllabus ol li.is-completed > em { color: #21874d; font-weight: 800; }
.course-catalog-notice { display: grid; gap: 4px; margin-bottom: 18px; padding: 14px 16px; border-left: 3px solid #cf9a2e; background: #fff8e8; }
.course-catalog-notice strong { font-size: 13px; }
.course-catalog-notice span { color: #777c82; font-size: 11px; }
.course-module-quiz { display: grid; gap: 7px; margin: 0 0 22px 62px; padding: 17px 20px; border: 1px solid #ddd4bc; background: #fffaf0; }
.course-module-quiz > b { color: #8e6416; font-size: 14px; }
.course-module-quiz > strong { color: #171914; font-size: 20px; }
.course-module-quiz > span { color: #777a75; font-size: 12px; }
.course-module-quiz.is-passed { border-color: #9ccaae; background: #f1faf4; }
.course-module-quiz.is-passed > b { color: #187241; }
.course-quiz-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 7px; }
.course-quiz-actions button { min-height: 36px; padding: 0 14px; border: 1px solid #b9c9bf; background: #fff; color: #145f37; font-weight: 800; cursor: pointer; }
.course-quiz-actions button:last-child:not(:first-child) { border-color: #1d7142; background: #1d7142; color: #fff; }
.course-quiz-review { margin-top: 13px; padding-top: 16px; border-top: 1px solid #c7dbcf; }
.course-quiz-review > header { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.course-quiz-review > header strong { color: #173927; font-size: 15px; }
.course-quiz-review > header span { color: #6f7d74; font-size: 11px; }
.course-quiz-review > ol { display: grid; gap: 10px; margin: 13px 0 0 !important; padding: 0 !important; border: 0 !important; list-style: none; }
.course-quiz-review > ol > li { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; grid-auto-flow: row; gap: 7px !important; min-width: 0; width: 100%; padding: 14px !important; border: 1px solid #dce7df; background: #fff; }
.course-quiz-review .quiz-review-question { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: start; gap: 10px; }
.course-quiz-review .quiz-review-question b { color: #a8771e; font-size: 11px; }
.course-quiz-review .quiz-review-question strong { min-width: 0; overflow-wrap: anywhere; color: #222a25; line-height: 1.65; }
.course-quiz-review .quiz-review-question em { white-space: nowrap; color: #21874d; font-size: 11px; font-style: normal; }
.course-quiz-review li.is-wrong .quiz-review-question em { color: #b63e32; }
.quiz-review-answers { display: grid; gap: 6px; margin: 2px 0 0 44px; }
.quiz-review-answers > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
.quiz-review-answers dt { color: #818983; font-size: 12px; }
.quiz-review-answers dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #3f4a43; font-size: 12px; line-height: 1.65; }
.quiz-review-explanation { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; margin-left: 44px; padding-top: 8px; border-top: 1px dashed #e3e9e5; }
.quiz-review-explanation span { color: #a8771e; font-size: 12px; font-weight: 800; }
.quiz-review-explanation p { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #657169; font-size: 12px; line-height: 1.7; }
.course-module-quiz.is-locked { border-color: #dcdfe2; background: #f5f6f7; }
.course-module-quiz.is-locked > b { color: #777c82; }
.course-module-quiz.is-ready { display: block; padding: 25px; border-color: #c58e24; background: #fff; }
.course-module-quiz.is-ready > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid #e4e6e8; }
.course-module-quiz.is-ready > header b { color: #bd8420; font-size: 11px; letter-spacing: .09em; }
.course-module-quiz.is-ready > header h3 { margin: 4px 0 0; font-size: 24px; }
.course-module-quiz.is-ready > header > span { color: #777c82; font-size: 12px; }
.course-module-quiz fieldset { margin: 0; padding: 22px 0; border: 0; border-bottom: 1px solid #eceef0; }
.course-module-quiz legend { width: 100%; display: flex; gap: 12px; padding: 0 0 13px; color: #202329; font-size: 15px; font-weight: 800; line-height: 1.6; }
.course-module-quiz legend b { color: #bd8420; font-size: 11px; }
.course-module-quiz fieldset label { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; padding: 10px 12px; border: 1px solid #e4e6e8; cursor: pointer; }
.course-module-quiz fieldset label:has(input:checked) { border-color: #c58e24; background: #fff8e7; }
.course-module-quiz fieldset input { margin-top: 4px; accent-color: #bd8420; }
.course-module-quiz fieldset label span { color: #4e535a; font-size: 13px; line-height: 1.6; }
.course-module-quiz form > footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 20px; }
.course-module-quiz form > footer span { color: #777c82; font-size: 12px; }
.course-module-quiz form > footer button { min-height: 42px; padding: 0 22px; border: 0; background: #c99429; color: #111; font-weight: 900; cursor: pointer; }
.course-module-quiz form > footer button:disabled { opacity: .55; cursor: wait; }
.course-quiz-result { margin-top: 20px; padding: 18px; border-left: 4px solid #b97d14; background: #fff7e5; }
.course-quiz-result.is-passed { border-left-color: #21874d; background: #eef9f2; }
.course-quiz-result h4 { margin: 0 0 7px; font-size: 21px; }
.course-quiz-result p { margin: 0; color: #555b62; }
.course-quiz-result > ol { display: grid; gap: 10px; margin: 15px 0 0 !important; padding: 0 !important; border: 0 !important; list-style: none; }
.course-quiz-result > ol > li { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; grid-auto-flow: row; gap: 8px !important; min-width: 0; width: 100%; padding: 15px !important; border: 1px solid #ead9b6; background: #fff; }
.course-quiz-result .quiz-review-question { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: start; gap: 10px; }
.course-quiz-result .quiz-review-question b { color: #a8771e; font-size: 11px; }
.course-quiz-result .quiz-review-question strong { min-width: 0; overflow-wrap: anywhere; color: #222a25; line-height: 1.65; }
.course-quiz-result .quiz-review-question em { white-space: nowrap; color: #21874d; font-size: 11px; font-style: normal; }
.course-quiz-result li.is-wrong .quiz-review-question em { color: #b63e32; }
.course-quiz-result .quiz-review-answers, .course-quiz-result .quiz-review-explanation { margin-left: 44px; }
.course-progress { height: 4px; margin: 12px 0 4px; overflow: hidden; background: #ece8df; }
.course-progress i { height: 100%; display: block; background: #cf9a2e; }
.course-lesson-viewer { min-width: 0; scroll-margin-top: 100px; margin-top: 42px; border-top: 4px solid #11100d; background: #fff; box-shadow: 0 20px 60px rgba(18, 16, 10, .08); }
.course-lesson-viewer > header { display: flex; justify-content: space-between; gap: 24px; padding: 30px 34px 24px; border-bottom: 1px solid #e5e5e2; }
.course-lesson-viewer > header h2 { margin: 5px 0 6px; font-size: 26px; }
.course-lesson-viewer > header span { color: #73787e; font-size: 13px; }
.course-lesson-viewer > header > b { height: fit-content; padding: 6px 9px; background: #f5e8c8; color: #845d0f; font-size: 11px; }
.course-video-shell { margin: 28px 34px 0; overflow: hidden; border: 1px solid #d7d0c0; border-radius: 8px; background: #11120f; box-shadow: 0 16px 44px rgba(18,16,10,.12); }
.course-video-shell video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #11120f; }
.ynq-video-player { position: relative; width: 100%; aspect-ratio: 16 / 9; display: grid; grid-template-rows: minmax(0, 1fr) 54px; overflow: hidden; background: #0c0d0b; color: #fff; }
.ynq-video-player video { width: 100%; height: 100%; min-height: 0; display: block; object-fit: contain; background: #0c0d0b; }
.ynq-video-controls { min-width: 0; display: grid; grid-template-columns: 38px max-content minmax(90px, 1fr) 38px 84px 68px 38px; align-items: center; gap: 9px; padding: 8px 12px; border-top: 1px solid rgba(255,255,255,.14); background: #151612; }
.ynq-video-controls button { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #fff; font-size: 15px; cursor: pointer; }
.ynq-video-controls button:hover, .ynq-video-controls button:focus-visible { background: rgba(211,161,58,.2); outline: 1px solid #d3a13a; }
.ynq-video-controls span { white-space: nowrap; color: #d9dbd5; font-size: 11px; font-variant-numeric: tabular-nums; }
.ynq-video-controls input[type="range"] { width: 100%; min-width: 0; accent-color: #d3a13a; }
.ynq-video-controls select { height: 32px; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; background: #20211d; color: #fff; text-align: center; }
.ynq-video-player:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; grid-template-rows: minmax(0, 1fr) 60px; background: #000; }
.ynq-video-player:fullscreen video { aspect-ratio: auto; }
.course-video-placeholder { position: relative; min-height: 240px; display: grid; align-content: center; gap: 9px; margin: 28px 34px 0; overflow: hidden; padding: 30px; border: 1px solid #4f4226; border-radius: 8px; background: #11120f; color: #fff; }
.course-video-placeholder::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 0 24%, rgba(255,255,255,.1) 24% 35%, transparent 35% 50%, rgba(207,154,46,.16) 50% 61%, transparent 61%), radial-gradient(circle at 78% 26%, rgba(207,154,46,.3), transparent 28%); opacity: .95; }
.course-video-placeholder span, .course-video-placeholder strong, .course-video-placeholder p { position: relative; z-index: 1; }
.course-video-placeholder span { width: max-content; padding: 5px 8px; border-radius: 3px; background: rgba(207,154,46,.22); color: #e3b654; font-size: 10px; font-weight: 900; }
.course-video-placeholder strong { font-size: 28px; }
.course-video-placeholder p { max-width: 580px; margin: 0; color: #d5d7d2; line-height: 1.75; }
.course-lesson-body { min-width: 0; padding: 28px 34px; color: #292b2e; font-size: 15px; line-height: 1.9; }
.course-lesson-body h2, .course-lesson-body h3, .course-lesson-body h4 { margin: 28px 0 10px; color: #111; }
.course-lesson-body h2:first-child, .course-lesson-body h3:first-child { margin-top: 0; }
.course-lesson-body p { margin: 0 0 14px; }
.course-lesson-body ul, .course-lesson-body ol { margin: 0 0 18px; padding-left: 24px; }
.course-lesson-body li { margin: 6px 0; padding-left: 4px; }
.course-lesson-body li::marker { color: #b98620; font-weight: 800; }
.course-lesson-body code { padding: 2px 5px; background: #f1eee7; color: #745210; font: .9em/1.5 Consolas, monospace; }
.course-lesson-body blockquote { margin: 22px 0 0; padding: 14px 16px; border-left: 3px solid #cf9a2e; background: #faf7ef; color: #59554c; }
.course-data-table { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; box-sizing: border-box; margin: 18px 0 24px; border: 1px solid #ded8cc; border-radius: 10px; background: #fff; }
.course-data-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13px; line-height: 1.55; }
.course-data-table th, .course-data-table td { padding: 10px 12px; border-right: 1px solid #e8e2d8; border-bottom: 1px solid #e8e2d8; text-align: left; white-space: nowrap; }
.course-data-table th { background: #f7f3e9; color: #4f3b14; font-weight: 800; }
.course-data-table tr:last-child td { border-bottom: 0; }
.course-data-table th:last-child, .course-data-table td:last-child { border-right: 0; }
.course-data-table tbody tr:nth-child(even) { background: #fcfbf7; }
.course-check { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; margin: 0 8px 0 -22px; border: 1px solid #c9c3b7; color: #8b6419; font-size: 11px; }
.course-lesson-body pre { overflow: auto; margin: 20px 0; padding: 18px; background: #111312; color: #f6f3ea; font: 13px/1.7 Consolas, monospace; }
.course-lesson-viewer > footer { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 34px 30px; }
.course-lesson-viewer > footer a, .course-lesson-viewer > footer button { min-height: 40px; padding: 0 17px; border: 1px solid #191813; background: #fff; color: #111; font-weight: 800; }
.course-lesson-viewer > footer button { background: #11100d; color: #e8b745; cursor: pointer; }
.course-lesson-viewer > footer button:disabled { opacity: .58; cursor: default; }
.course-sidebar { display: grid; gap: 14px; }
.course-sidebar section { padding: 26px; border: 1px solid #dfe2e5; border-radius: 8px; background: #fff; }
.course-sidebar h3 { margin: 0 0 15px; font-size: 20px; }
.course-sidebar li { font-size: 13px; line-height: 1.7; }

/* Academy management */
.admin-course-panel { margin-top: 36px; padding: 32px; border: 1px solid #deddd7; background: #fff; }
.admin-course-panel .admin-commerce-head p { margin: 0 0 10px; color: #d3a13a; font-size: 11px; font-weight: 900; }
.admin-course-grid { display: grid; grid-template-columns: 330px minmax(0,1fr); gap: 20px; align-items: start; }
.admin-course-list-panel, .admin-course-form { border: 1px solid #e1e4e8; background: #fafbfc; }
.admin-course-list-panel { position: sticky; top: 88px; max-height: calc(100vh - 108px); overflow: auto; }
.admin-course-list-panel > .admin-form-title { margin: 0; padding: 18px; border-bottom: 1px solid #e5e7ea; }
.admin-course-list-panel > .admin-form-title h3 { margin: 0; font-size: 17px; }
.admin-course-list-panel > .admin-form-title button { width: auto; padding: 0 8px; color: #8a671d; font-size: 12px; }
.admin-course-row { width: 100%; min-height: 74px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 13px 16px; border: 0; border-bottom: 1px solid #e7e9ec; background: #fff; text-align: left; cursor: pointer; }
.admin-course-row:hover, .admin-course-row.is-active { background: #fff8e8; }
.admin-course-row.is-active { box-shadow: inset 3px 0 #cf9a2e; }
.admin-course-row > span { min-width: 0; display: grid; gap: 4px; }
.admin-course-row strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.admin-course-row em { color: #8a9199; font-size: 10px; font-style: normal; }
.admin-course-row small { padding: 3px 6px; background: #edf0f3; color: #6e7782; font-size: 10px; }
.admin-course-row small[data-status="published"] { background: #e4f4e9; color: #287a48; }
.admin-course-form { padding: 26px 30px 30px; background: #fff; }
.admin-course-form .admin-form-title h3 { margin: 0; font-size: 22px; }
.admin-course-syllabus { min-height: 250px !important; font-family: Consolas, "Microsoft YaHei", monospace !important; line-height: 1.7; }
.admin-course-form .admin-form-actions--article { grid-template-columns: auto 1fr auto auto auto; }
.admin-course-form .admin-preview-button { min-height: 38px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid #d9dce1; border-radius: 4px; font-size: 13px; font-weight: 800; }
.admin-lesson-manager { margin-top: 22px; padding: 24px; border: 1px solid #e1e4e8; background: #fafbfc; }
.admin-lesson-manager > .admin-form-title { margin: 0 0 18px; }
.admin-lesson-manager > .admin-form-title h3 { margin: 4px 0 0; font-size: 20px; }
.admin-lesson-manager > .admin-form-title p { margin: 0; color: #b47d16; font-size: 10px; font-weight: 900; }
.admin-lesson-manager > .admin-form-title button { width: auto; min-height: 36px; padding: 0 14px; border: 1px solid #d5d8dc; background: #fff; }
.admin-lesson-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.admin-lesson-list { max-height: 700px; overflow: auto; border: 1px solid #e0e3e7; background: #fff; }
.admin-lesson-row { width: 100%; min-height: 66px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 12px 14px; border: 0; border-bottom: 1px solid #eceef0; background: #fff; text-align: left; cursor: pointer; }
.admin-lesson-row:hover, .admin-lesson-row.is-active { background: #fff8e8; }
.admin-lesson-row.is-active { box-shadow: inset 3px 0 #cf9a2e; }
.admin-lesson-row > span { min-width: 0; display: grid; gap: 4px; }
.admin-lesson-row small, .admin-lesson-row em { color: #89909a; font-size: 10px; font-style: normal; }
.admin-lesson-row strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.admin-lesson-row em[data-status="published"] { color: #247947; }
.admin-lesson-form { padding: 22px; border: 1px solid #e0e3e7; background: #fff; }
.admin-lesson-form .admin-form-title h3 { margin: 0; }
.admin-checkbox-field { align-self: end; min-height: 42px; display: flex !important; flex-direction: row !important; align-items: center; gap: 9px; }
.admin-checkbox-field input { width: 16px !important; height: 16px; }

@media (max-width: 1040px) {
  .academy-hero--catalog { min-height: 0; grid-template-columns: 1fr; }
  .academy-hero-copy { max-width: 820px; }
  .academy-stage-track, .academy-market-band > div { grid-template-columns: repeat(2,1fr); }
  .academy-stage-track article:nth-child(3), .academy-market-band article:nth-child(3) { border-left: 0; }
  .academy-stage-track article:nth-child(n+3), .academy-market-band article:nth-child(n+3) { border-top: 1px solid #dfe2e6; }
  .academy-course-grid--catalog { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .academy-filter-row, .academy-catalog-head { align-items: flex-start; flex-direction: column; }
  .academy-catalog-head > p { text-align: left; }
  .academy-market-filters { flex-wrap: wrap; }
  .academy-method { grid-template-columns: 1fr; gap: 36px; }
  .course-hero-grid, .course-content { grid-template-columns: 1fr; }
  .course-trial-panel { grid-template-columns: minmax(0, 1fr); }
  .course-trial-copy, .course-trial-video-frame, .ynq-video-player { min-width: 0; }
  .course-hero aside { max-width: 520px; }
  .course-sidebar { grid-template-columns: repeat(3,1fr); }
  .admin-course-grid { grid-template-columns: 1fr; }
  .admin-lesson-grid { grid-template-columns: 1fr; }
  .admin-course-list-panel { position: static; max-height: 430px; }
}

@media (max-width: 680px) {
  .academy-hero--catalog { padding: 62px 20px; }
  .academy-hero--catalog h1 { font-size: 38px; }
  .academy-hero-metrics div { min-width: 0; flex: 1; padding: 0 14px; }
  .academy-route-panel li { grid-template-columns: 40px minmax(0,1fr); padding: 16px; }
  .academy-route-panel li em { grid-column: 2; width: max-content; }
  .academy-stage-map, .academy-catalog, .academy-method { width: calc(100% - 28px); }
  .academy-stage-map h2, .academy-catalog h2, .academy-market-band h2, .academy-method h2 { font-size: 32px; }
  .academy-stage-track, .academy-market-band > div, .academy-course-grid--catalog { grid-template-columns: 1fr; }
  .academy-stage-track article, .academy-stage-track article:nth-child(3), .academy-market-band article, .academy-market-band article:nth-child(3) { border-left: 0; border-top: 1px solid #dfe2e6; }
  .academy-stage-track article:first-child, .academy-market-band article:first-child { border-top: 0; }
  .academy-market-band { padding: 58px 20px; }
  .academy-filter-row { overflow: hidden; }
  .academy-segmented, .academy-market-filters { width: 100%; overflow-x: auto; }
  .academy-segmented button, .academy-market-filters button { flex: 0 0 auto; }
  .academy-course-card { min-height: 410px !important; }
  .academy-method li span { grid-template-columns: 1fr; gap: 2px; }
  .course-hero-inner, .course-content { width: calc(100% - 28px); }
  .course-hero-inner { padding: 34px 0 50px; }
  .course-back { margin-bottom: 30px; }
  .course-hero h1 { font-size: 38px; }
  .course-hero h2 { font-size: 19px; }
  .course-content { padding: 30px 0 70px; }
  .course-trial-panel { gap: 20px; padding: 20px; }
  .course-trial-list { grid-template-columns: 1fr; }
  .course-overview { padding: 28px 20px; }
  .course-syllabus > header { align-items: flex-start; flex-direction: column; }
  .course-syllabus summary { grid-template-columns: 34px minmax(0,1fr); padding: 12px 0; }
  .course-syllabus summary i { grid-column: 2; }
  .course-syllabus ol { margin-left: 0; }
  .course-syllabus ol li { grid-template-columns: 30px minmax(0,1fr); padding: 9px 12px; }
  .course-syllabus ol li em { grid-column: 2; }
  .course-module-quiz { margin-left: 0; }
  .course-module-quiz.is-ready > header, .course-module-quiz form > footer { align-items: flex-start; flex-direction: column; }
  .course-module-quiz form > footer button { width: 100%; }
  .course-sidebar { grid-template-columns: 1fr; }
  .admin-course-panel { padding: 18px; }
  .admin-course-form { padding: 20px 15px; }
  .admin-course-form .admin-form-actions--article { grid-template-columns: 1fr; }
}

/* Academy navigation and pathway experience */
.academy-page .community-site-header { position: sticky; top: 0; z-index: 60; }
.academy-nav-menu { position: relative; display: flex; align-items: center; align-self: stretch; }
.academy-nav-trigger { min-height: 34px; padding: 0; border: 0; border-bottom: 2px solid #c7932c; background: transparent; color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.academy-nav-trigger::after { content: "⌄"; margin-left: 5px; color: #bd8a26; font-size: 10px; }
.academy-nav-popover { position: absolute; top: calc(100% - 2px); left: 50%; z-index: 70; width: 430px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 10px; border: 1px solid #37372f; border-radius: 8px; background: #11120f; box-shadow: 0 24px 60px rgba(0,0,0,.42); opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .18s ease, transform .18s ease; }
.academy-nav-menu:hover .academy-nav-popover, .academy-nav-menu:focus-within .academy-nav-popover, .academy-nav-menu.is-open .academy-nav-popover { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.academy-nav-popover a { min-height: 78px; display: grid !important; align-content: center; gap: 5px; padding: 12px 14px !important; border-radius: 4px; background: #181916; }
.academy-nav-popover a:hover { background: #24231d; }
.academy-nav-popover b { color: #f5f4ed; font-size: 14px; }
.academy-nav-popover span { color: #858a84; font-size: 11px; line-height: 1.55; }
.academy-subnav { position: sticky; top: 72px; z-index: 48; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 34px; padding: 0 20px; border-top: 1px solid #292a26; border-bottom: 1px solid #2b2c28; background: #171815; }
.academy-subnav a { min-height: 48px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; color: #aeb1ac; font-size: 12px; }
.academy-subnav a:hover, .academy-subnav a.is-active { border-bottom-color: #c89631; color: #fff; }

.academy-hero--catalog { min-height: 720px; grid-template-columns: minmax(0,.88fr) minmax(500px,1.12fr); grid-template-rows: 1fr auto; gap: 48px 72px; align-items: center; padding-top: 66px; padding-bottom: 42px; overflow: hidden; }
.academy-hero--catalog h1 { max-width: 680px; margin-bottom: 18px; font-size: 58px; }
.academy-hero--catalog .academy-hero-copy > p:not(.section-kicker) { max-width: 650px; margin-top: 22px; }
.academy-hero-pills { display: flex; flex-wrap: wrap; gap: 18px; }
.academy-hero-pills span { position: relative; padding-left: 22px; color: #d7d9d4; font-size: 13px; font-weight: 800; }
.academy-hero-pills span::before { content: "✓"; position: absolute; left: 0; top: 0; width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; background: #d6a237; color: #111; font-size: 9px; }
.academy-hero-metrics { margin-top: 34px; }
.academy-hero-visual { position: relative; min-height: 430px; display: block; overflow: hidden; border: 1px solid #5c4d2b; border-radius: 8px; background: #090a08; box-shadow: 0 30px 80px rgba(0,0,0,.36); color: #fff; }
.academy-hero-visual img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.academy-hero-visual > div { position: absolute; left: 26px; top: 26px; z-index: 2; max-width: 285px; padding: 24px; border: 1px solid rgba(217,168,68,.42); border-radius: 6px; background: rgba(13,14,12,.91); }
.academy-hero-visual small, .academy-hero-visual strong, .academy-hero-visual em { display: block; }
.academy-hero-visual small { color: #d9a840; font-size: 11px; font-weight: 900; }
.academy-hero-visual strong { margin: 10px 0 14px; font-size: 34px; line-height: 1.18; }
.academy-hero-visual em { color: #aeb1ac; font-size: 12px; font-style: normal; }
.academy-poster-level { position: absolute; right: 18px; top: 18px; z-index: 2; padding: 7px 10px; border-radius: 3px; background: #d4a13a; color: #111; font-size: 10px; font-weight: 900; }
.academy-hero-visual > b { position: absolute; right: 24px; bottom: 22px; z-index: 2; padding: 10px 14px; border-radius: 3px; background: #f4f2e9; color: #111; font-size: 12px; }
.academy-capability-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid #34362f; background: #171815; }
.academy-capability-grid a { min-height: 92px; display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: center; padding: 16px 22px; border-left: 1px solid #34362f; color: #fff; }
.academy-capability-grid a:first-child { border-left: 0; }
.academy-capability-grid a:hover { background: #22231f; }
.academy-capability-grid > a > span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #6c582f; border-radius: 50%; color: #dfad45; font-size: 10px; }
.academy-capability-grid div { display: grid; gap: 4px; }
.academy-capability-grid strong { font-size: 16px; }
.academy-capability-grid small { color: #8e938c; font-size: 11px; }

.academy-trial-section { width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding: 86px 0 10px; }
.academy-trial-section > header { display: flex; align-items: end; justify-content: space-between; gap: 42px; margin-bottom: 30px; }
.academy-trial-section h2 { margin: 0; font-size: 42px; letter-spacing: 0; }
.academy-trial-section > header > p { max-width: 430px; margin: 0; color: #6e747c; line-height: 1.8; text-align: right; }
.academy-trial-layout { display: grid; grid-template-columns: minmax(420px,.82fr) minmax(0,1.18fr); gap: 18px; align-items: stretch; }
.academy-trial-player { min-height: 360px; overflow: hidden; border: 1px solid #4a3a1d; border-radius: 8px; background: #10110f; color: #fff; box-shadow: 0 26px 70px rgba(17,18,15,.18); }
.academy-trial-screen { position: relative; min-height: 286px; display: flex; flex-direction: column; justify-content: center; padding: 38px 42px; overflow: hidden; border-bottom: 1px solid #3b321f; background: #0d0e0c; }
.academy-trial-screen::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 0 19%, rgba(255,255,255,.11) 19% 31%, transparent 31% 44%, rgba(210,161,58,.16) 44% 55%, transparent 55% 100%), radial-gradient(circle at 78% 28%, rgba(211,161,58,.28), transparent 28%); opacity: .92; }
.academy-trial-screen::after { content: "▶"; position: absolute; right: 34px; top: 34px; width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid #d3a13a; border-radius: 50%; background: #d3a13a; color: #111; font-size: 20px; font-weight: 900; }
.academy-trial-screen span, .academy-trial-screen strong, .academy-trial-screen em, .academy-trial-screen a { position: relative; z-index: 1; }
.academy-trial-screen span { width: max-content; margin-bottom: 14px; padding: 6px 10px; border-radius: 3px; background: rgba(211,161,58,.18); color: #e6b653; font-size: 11px; font-weight: 900; }
.academy-trial-screen strong { max-width: 460px; font-size: 46px; line-height: 1.08; }
.academy-trial-screen em { margin: 12px 0 28px; color: #d6d9d4; font-size: 15px; font-style: normal; }
.academy-trial-screen a { width: max-content; min-height: 40px; display: inline-flex; align-items: center; padding: 0 17px; border-radius: 4px; background: #f3f1e8; color: #111; font-size: 13px; font-weight: 900; }
.academy-trial-player footer { min-height: 74px; display: grid; align-content: center; gap: 4px; padding: 14px 22px; background: #171815; }
.academy-trial-player footer b { color: #e1b14b; font-size: 13px; }
.academy-trial-player footer p { margin: 0; color: #8f948e; font-size: 12px; }
.academy-trial-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.academy-trial-list a { min-height: 128px; display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 12px; align-content: start; padding: 20px; border: 1px solid #dfe2e5; border-radius: 8px; background: #fff; color: #111; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.academy-trial-list a:hover { border-color: #d0a044; transform: translateY(-2px); box-shadow: 0 16px 38px rgba(18, 20, 16, .08); }
.academy-trial-list small { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #f1e4c4; color: #966815; font-size: 11px; font-weight: 900; }
.academy-trial-list strong { min-width: 0; overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.academy-trial-list span { grid-column: 2; color: #737a82; font-size: 13px; line-height: 1.65; }

.academy-entry-paths { width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding: 86px 0 16px; }
.academy-entry-paths > header { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 5px 40px; margin-bottom: 36px; }
.academy-entry-paths > header .section-kicker, .academy-entry-paths > header h2 { grid-column: 1; }
.academy-entry-paths > header h2 { margin: 0; font-size: 42px; }
.academy-entry-paths > header > span { grid-column: 2; grid-row: 1 / 3; color: #727880; }
.academy-entry-paths > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid #d8dce0; background: #fff; }
.academy-entry-paths > div > a { min-height: 250px; display: flex; flex-direction: column; padding: 30px; border-left: 1px solid #dfe2e6; color: #111; }
.academy-entry-paths > div > a:first-child { border-left: 0; }
.academy-entry-paths > div > a:hover { background: #f8f5ec; }
.academy-entry-paths small { color: #b37d18; font-weight: 900; }
.academy-entry-paths strong { max-width: 280px; margin: 30px 0 12px; font-size: 23px; }
.academy-entry-paths p { margin: 0; color: #6b727a; font-size: 14px; line-height: 1.75; }
.academy-entry-paths b { margin-top: auto; padding-top: 24px; color: #9a6811; font-size: 13px; }

.academy-stage-track article { min-height: 250px; }
.academy-stage-track article > a { position: absolute; left: 30px; bottom: 28px; color: #9b6913; font-size: 12px; font-weight: 900; }
.academy-market-band > header { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.academy-market-band > header > p { max-width: 360px; margin: 0; color: #8f948e; text-align: right; }
.academy-market-band > div > a { min-height: 235px; display: flex; flex-direction: column; padding: 28px; border-left: 1px solid #34352f; color: #fff; transition: background .2s ease; }
.academy-market-band > div > a:first-child { border-left: 0; }
.academy-market-band > div > a:hover { background: #22231f; }
.academy-market-band a > span { color: #d5a23a; font-size: 11px; font-weight: 900; }
.academy-market-band a strong { margin: 28px 0 10px; font-size: 24px; }
.academy-market-band a p { margin: 0; color: #989d96; font-size: 14px; line-height: 1.8; }
.academy-market-band a b { margin-top: auto; padding-top: 22px; color: #e0b55a; font-size: 12px; }

.academy-course-grid--catalog { display: block; }
.academy-level-row { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 34px; padding: 38px 0; border-top: 1px solid #cfd3d8; }
.academy-level-row:last-child { border-bottom: 1px solid #cfd3d8; }
.academy-level-row > header { align-self: start; }
.academy-level-row > header > span { display: block; margin-bottom: 18px; color: #c18b21; font-size: 42px; font-weight: 900; }
.academy-level-row > header > small { color: #a8791c; font-size: 11px; font-weight: 900; }
.academy-level-row > header h3 { margin: 7px 0 10px; font-size: 25px; }
.academy-level-row > header p { margin: 0; color: #747b83; font-size: 13px; line-height: 1.65; }
.academy-level-courses { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.academy-level-courses.is-single { grid-template-columns: 1fr; }
.academy-level-courses.is-single .academy-course-card { min-height: 330px !important; }
.academy-course-card { min-height: 365px !important; }
.academy-course-card > header { background: #11120f; }
.academy-course-card > div { padding-top: 24px; }
.academy-course-card h3 { font-size: 23px; }
.academy-course-card > div strong { min-height: 42px; }

@media (max-width: 1100px) {
  .academy-hero--catalog { grid-template-columns: 1fr; grid-template-rows: auto; }
  .academy-hero-visual { min-height: 500px; }
  .academy-capability-grid { grid-column: 1; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .academy-capability-grid a:nth-child(3) { border-left: 0; }
  .academy-capability-grid a:nth-child(n+3) { border-top: 1px solid #34362f; }
  .academy-trial-layout { grid-template-columns: 1fr; }
  .academy-trial-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .academy-entry-paths > div { grid-template-columns: 1fr; }
  .academy-entry-paths > div > a { min-height: 210px; border-top: 1px solid #dfe2e6; border-left: 0; }
  .academy-entry-paths > div > a:first-child { border-top: 0; }
  .academy-level-row { grid-template-columns: 190px minmax(0,1fr); }
}

@media (max-width: 760px) {
  .academy-subnav { top: 68px; justify-content: flex-start; gap: 24px; overflow-x: auto; }
  .academy-subnav a { flex: 0 0 auto; }
  .academy-hero--catalog { min-height: 0; gap: 34px; padding: 48px 20px 28px; }
  .academy-hero--catalog h1 { font-size: 41px; }
  .academy-hero-visual { min-height: 410px; }
  .academy-hero-visual > div { left: 14px; top: 58px; max-width: 250px; padding: 18px; }
  .academy-hero-visual strong { font-size: 27px; }
  .academy-poster-level { right: 12px; top: 12px; }
  .academy-hero-visual > b { right: 14px; bottom: 14px; }
  .academy-capability-grid a { min-height: 82px; grid-template-columns: 28px 1fr; padding: 14px; }
  .academy-capability-grid strong { font-size: 14px; }
  .academy-trial-section { width: calc(100% - 28px); padding-top: 58px; }
  .academy-trial-section > header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .academy-trial-section h2 { font-size: 32px; }
  .academy-trial-section > header > p { text-align: left; }
  .academy-trial-player { min-height: 300px; padding: 24px; }
  .academy-trial-player strong { font-size: 34px; }
  .academy-trial-list { grid-template-columns: 1fr; }
  .academy-entry-paths { width: calc(100% - 28px); padding-top: 60px; }
  .academy-entry-paths > header { display: block; }
  .academy-entry-paths > header h2 { font-size: 32px; }
  .academy-entry-paths > header > span { display: block; margin-top: 10px; }
  .academy-market-band > header { align-items: flex-start; flex-direction: column; }
  .academy-market-band > header > p { text-align: left; }
  .academy-market-band > div > a, .academy-market-band > div > a:nth-child(3) { border-top: 1px solid #34352f; border-left: 0; }
  .academy-market-band > div > a:first-child { border-top: 0; }
  .academy-level-row { grid-template-columns: 1fr; gap: 18px; padding: 28px 0; }
  .academy-level-row > header > span { margin-bottom: 8px; font-size: 32px; }
  .academy-level-courses { grid-template-columns: 1fr; }
  .academy-level-courses.is-single .academy-course-card, .academy-course-card { min-height: 365px !important; }
}

/* Course path navigation */
.course-breadcrumb { display: flex; align-items: center; gap: 9px; margin-bottom: 42px; color: #8f938e; font-size: 12px; }
.course-breadcrumb a { color: #c5c8c3; }
.course-breadcrumb a:hover { color: #d3a13a; }
.course-breadcrumb b { color: #d3a13a; font-weight: 700; }
.course-anchor-nav { position: sticky; top: 72px; z-index: 18; border-bottom: 1px solid #dfe2e5; background: rgba(255,255,255,.97); box-shadow: 0 8px 18px rgba(19,21,18,.05); }
.course-anchor-nav > div { width: min(1280px, calc(100% - 48px)); min-height: 58px; display: flex; align-items: center; gap: 32px; margin: 0 auto; }
.course-anchor-nav a { color: #34383c; font-size: 13px; font-weight: 700; }
.course-anchor-nav a:first-child { margin-right: auto; color: #a87518; }
.course-anchor-nav a:hover { color: #b27c17; }
#courseOverview, #courseOutcomes, #courseSyllabus { scroll-margin-top: 150px; }

@media (max-width: 760px) {
  .course-breadcrumb { margin-bottom: 28px; overflow: hidden; white-space: nowrap; }
  .course-anchor-nav { top: 68px; overflow-x: auto; }
  .course-anchor-nav > div { width: max-content; min-width: 100%; gap: 24px; padding: 0 20px; }
  .course-anchor-nav a { flex: 0 0 auto; }
  .course-anchor-nav a:first-child { margin-right: 0; }
  .course-video-shell, .course-video-placeholder { margin: 20px 18px 0; }
  .course-video-placeholder { min-height: 210px; padding: 22px; }
  .course-video-placeholder strong { font-size: 23px; }
}

/* Market news workbench */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.news-page {
  min-width: 320px;
  background: #f2f3f4;
  color: #17191c;
}

.news-page .nav > a.is-active {
  color: #d8aa42;
}

.news-shell {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.news-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  padding: 0 0 32px;
}

.news-heading p,
.news-curated > header p {
  margin: 0 0 8px;
  color: #a87517;
  font-size: 11px;
  font-weight: 800;
}

.news-heading h1 {
  margin: 0 0 10px;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: 0;
}

.news-heading > div > span {
  color: #6d7279;
  font-size: 15px;
}

.news-feed-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #dfe2e5;
  border-radius: 4px;
  background: #fff;
  color: #626870;
  font-size: 12px;
}

.news-feed-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1ca86e;
}

.news-feed-status.is-degraded i {
  background: #d29b2e;
}

.news-feed-status.is-loading i {
  animation: newsPulse 1.2s ease-in-out infinite;
}

.news-controls {
  position: sticky;
  top: 72px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px 42px;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 11px 14px;
  border: 1px solid #dde0e3;
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 20px rgba(21, 25, 29, 0.05);
}

.news-categories {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.news-categories::-webkit-scrollbar {
  display: none;
}

.news-categories button,
.news-refresh {
  min-height: 40px;
  border: 1px solid #e0e3e6;
  border-radius: 4px;
  background: #f7f8f9;
  color: #555b63;
  cursor: pointer;
}

.news-categories button {
  flex: 0 0 auto;
  min-width: 62px;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 700;
}

.news-categories button:hover,
.news-categories button.is-active {
  border-color: #17191c;
  background: #17191c;
  color: #fff;
}

.news-search input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #dfe2e5;
  border-radius: 4px;
  outline: 0;
  background: #fff;
  color: #191b1e;
  font-size: 13px;
}

.news-search input:focus {
  border-color: #b98520;
  box-shadow: 0 0 0 3px rgba(185, 133, 32, 0.12);
}

.news-refresh {
  width: 42px;
  padding: 0;
  font-size: 20px;
}

.news-refresh:hover {
  border-color: #bd8823;
  color: #9b6c13;
}

.news-refresh:disabled {
  cursor: wait;
  opacity: 0.62;
}

.news-refresh.is-spinning {
  animation: newsSpin 0.8s linear infinite;
}

.news-workbench {
  display: grid;
  grid-template-columns: minmax(420px, 0.85fr) minmax(0, 1.15fr);
  min-height: 650px;
  border: 1px solid #dde0e3;
  background: #fff;
  box-shadow: 0 22px 50px rgba(23, 27, 31, 0.08);
}

.news-stream {
  min-width: 0;
  border-right: 1px solid #e3e5e8;
  background: #fbfbfc;
}

.news-stream > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 20px;
  border-bottom: 1px solid #e4e6e8;
  background: #fff;
}

.news-stream > header div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.news-stream > header strong {
  font-size: 16px;
}

.news-stream > header span,
.news-stream > header small {
  color: #8a9098;
  font-size: 11px;
}

.news-list {
  max-height: 650px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.news-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 13px;
  width: 100%;
  min-height: 98px;
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid #e6e8ea;
  background: transparent;
  color: #17191c;
  text-align: left;
  cursor: pointer;
}

.news-row:hover {
  background: #f3f4f5;
}

.news-row.is-active {
  box-shadow: inset 3px 0 #c28b23;
  background: #eee9de;
}

.news-source-mark,
.news-detail-source > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ded7c7;
  border-radius: 4px;
  background: #fff;
  color: #9c7019;
  font-size: 11px;
  font-weight: 900;
}

.news-row-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.news-row-copy > strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #8a9098;
  font-size: 11px;
}

.news-row-meta b {
  padding: 3px 6px;
  border-radius: 3px;
  background: #eee2ca;
  color: #885e10;
}

.news-row-meta em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.news-detail {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 650px;
  background: #fff;
}

.news-detail-body {
  flex: 1;
  padding: 46px 50px 36px;
}

.news-detail-source {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-detail-source > div {
  display: grid;
  gap: 2px;
}

.news-detail-source strong {
  font-size: 14px;
}

.news-detail-source small {
  color: #91969d;
  font-size: 11px;
}

.news-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 50px 0 14px;
  color: #8d9298;
  font-size: 12px;
}

.news-detail-meta b {
  color: #a27117;
}

.news-detail h2 {
  max-width: 780px;
  margin: 0;
  font-size: 34px;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.news-detail-body > p {
  max-width: 780px;
  margin: 24px 0 34px;
  color: #61676f;
  font-size: 15px;
  line-height: 1.85;
}

.news-detail dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 780px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e1e3e5;
  border-radius: 4px;
  background: #e1e3e5;
}

.news-detail dl div {
  min-width: 0;
  padding: 14px;
  background: #f7f8f8;
}

.news-detail dt {
  margin-bottom: 6px;
  color: #92979e;
  font-size: 10px;
}

.news-detail dd {
  margin: 0;
  overflow: hidden;
  color: #34383d;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
  padding: 18px 28px 18px 50px;
  border-top: 1px solid #e3e5e7;
  background: #f7f7f6;
}

.news-detail-actions p {
  margin: 0;
  color: #888e95;
  font-size: 11px;
}

.news-detail-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 4px;
  background: #17191c;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.news-detail-actions a:hover {
  background: #9c6e17;
}

.news-detail-empty,
.news-loading,
.news-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  min-height: 420px;
  padding: 30px;
  text-align: center;
}

.news-detail-empty {
  flex: 1;
}

.news-detail-empty > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid #d6c49e;
  border-radius: 4px;
  background: #f3ead7;
  color: #946714;
  font-weight: 900;
}

.news-detail-empty h2,
.news-detail-empty p,
.news-empty strong,
.news-empty span {
  margin: 0;
}

.news-detail-empty p,
.news-empty span,
.news-loading {
  color: #858b92;
  font-size: 13px;
}

.news-loading i {
  width: 24px;
  height: 24px;
  border: 2px solid #e0e2e4;
  border-top-color: #b47e19;
  border-radius: 50%;
  animation: newsSpin 0.8s linear infinite;
}

.news-empty button {
  min-height: 38px;
  margin-top: 8px;
  padding: 0 16px;
  border: 1px solid #c38d27;
  border-radius: 4px;
  background: #fff;
  color: #8b6113;
  cursor: pointer;
}

.news-curated {
  margin-top: 42px;
  padding-top: 38px;
  border-top: 1px solid #d9dcdf;
}

.news-curated > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 20px;
}

.news-curated h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0;
}

.news-curated > header > span {
  max-width: 500px;
  color: #7b8188;
  font-size: 12px;
  text-align: right;
}

.news-widget-frame {
  height: 520px;
  overflow: hidden;
  border: 1px solid #d9dcdf;
  background: #fff;
}

.news-widget-frame .tradingview-widget-container,
.news-widget-frame .tradingview-widget-container__widget {
  width: 100%;
  height: 100%;
}

.news-widget-frame .tradingview-widget-copyright {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
}

.news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 110px;
  padding: 24px max(24px, calc((100vw - 1440px) / 2));
  border-top: 1px solid #282721;
  background: #11100d;
  color: #fff;
}

.news-footer p {
  margin: 0;
  color: #989a9c;
  font-size: 11px;
  text-align: right;
}

@keyframes newsSpin {
  to { transform: rotate(360deg); }
}

@keyframes newsPulse {
  50% { opacity: 0.3; }
}

@media (max-width: 1180px) and (min-width: 821px) {
  .site-header {
    gap: 14px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .site-header .nav {
    gap: 13px;
    font-size: 12px;
  }

  .site-header .header-actions {
    gap: 6px;
  }
}

@media (max-width: 1040px) {
  .news-workbench {
    grid-template-columns: minmax(350px, 0.9fr) minmax(0, 1.1fr);
  }

  .news-detail-body {
    padding: 38px 32px 30px;
  }

  .news-detail h2 {
    font-size: 28px;
  }

  .news-detail-actions {
    padding-left: 32px;
  }
}

@media (max-width: 820px) {
  .news-shell {
    width: min(100% - 28px, 720px);
    padding: 38px 0 54px;
  }

  .news-heading,
  .news-curated > header,
  .news-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-heading h1 {
    font-size: 38px;
  }

  .news-feed-status {
    align-self: stretch;
  }

  .news-controls {
    position: static;
    grid-template-columns: 1fr 42px;
    border-bottom: 1px solid #dde0e3;
  }

  .news-categories {
    grid-column: 1 / -1;
  }

  .news-workbench {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .news-stream {
    border-right: 0;
    border-bottom: 1px solid #e3e5e8;
  }

  .news-list {
    max-height: 520px;
  }

  .news-detail,
  .news-workbench {
    min-height: 560px;
  }

  .news-curated > header > span,
  .news-footer p {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .course-quiz-review > header { align-items: flex-start; flex-direction: column; gap: 4px; }
  .course-quiz-review .quiz-review-question, .course-quiz-result .quiz-review-question { grid-template-columns: 28px minmax(0, 1fr); }
  .course-quiz-review .quiz-review-question em, .course-quiz-result .quiz-review-question em { grid-column: 2; justify-self: start; }
  .course-quiz-review .quiz-review-answers, .course-quiz-review .quiz-review-explanation, .course-quiz-result .quiz-review-answers, .course-quiz-result .quiz-review-explanation { margin-left: 38px; }
  .quiz-review-answers > div, .quiz-review-explanation { grid-template-columns: 1fr; gap: 3px; }
  .ynq-video-player { grid-template-rows: minmax(0, 1fr) auto; }
  .ynq-video-controls { grid-template-columns: 36px minmax(0, 1fr) 36px 60px 36px; gap: 5px; padding: 6px 8px; }
  .ynq-video-controls [data-video-time], .ynq-video-controls [data-video-volume] { display: none; }
  .ynq-video-controls [data-video-seek] { grid-column: 2; }
}

@media (max-width: 560px) {
  .news-heading h1 {
    font-size: 34px;
  }

  .news-heading > div > span {
    font-size: 13px;
    line-height: 1.7;
  }

  .news-controls {
    padding: 10px;
  }

  .news-categories button {
    min-width: 56px;
    padding: 0 12px;
  }

  .news-stream > header small {
    display: none;
  }

  .news-row {
    grid-template-columns: 32px minmax(0, 1fr);
    min-height: 94px;
    padding: 14px 12px;
  }

  .news-source-mark {
    width: 32px;
    height: 32px;
  }

  .news-row-meta em {
    display: none;
  }

  .news-detail-body {
    padding: 30px 20px;
  }

  .news-detail-meta {
    margin-top: 34px;
  }

  .news-detail h2 {
    font-size: 24px;
  }

  .news-detail dl {
    grid-template-columns: 1fr;
  }

  .news-detail-actions {
    align-items: stretch;
    flex-direction: column;
    padding: 18px 20px;
  }

  .news-detail-actions a {
    width: 100%;
  }

  .news-widget-frame {
    height: 460px;
  }

  .news-footer {
    min-height: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-feed-status.is-loading i,
  .news-refresh.is-spinning,
  .news-loading i {
    animation: none;
  }
}

/* Chinese market news terminal */
.news-terminal {
  width: min(1600px, calc(100% - 32px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 18px 0 38px;
}

.news-terminal-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 0 4px 14px;
}

.news-terminal-title > div:first-child {
  display: flex;
  align-items: center;
  gap: 16px;
}

.news-terminal-title h1,
.news-terminal-title p {
  margin: 0;
}

.news-terminal-title h1 {
  font-size: 25px;
  line-height: 1.2;
}

.news-terminal-title p {
  margin-top: 4px;
  color: #737980;
  font-size: 12px;
}

.news-live-mark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #292a27;
  border-radius: 3px;
  background: #151612;
  color: #e0ad3b;
  font-size: 12px;
  font-weight: 900;
}

.news-live-mark i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4d40;
  box-shadow: 0 0 0 4px rgba(239, 77, 64, 0.14);
}

.news-terminal .news-controls {
  top: 72px;
  grid-template-columns: minmax(0, 1fr) 320px 42px;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid #d9dcdf;
  box-shadow: 0 8px 18px rgba(17, 19, 21, 0.05);
}

.news-terminal .news-categories button {
  min-width: 58px;
  min-height: 38px;
  padding: 0 13px;
  background: #fff;
}

.news-terminal .news-categories button:hover,
.news-terminal .news-categories button.is-active {
  border-color: #17191c;
  background: #17191c;
  color: #fff;
}

.news-terminal .news-categories .news-priority-toggle {
  margin-left: 5px;
  border-color: #d5b46b;
  color: #8c6518;
}

.news-terminal .news-categories .news-priority-toggle:hover {
  border-color: #d29a28;
  background: #fff7e7;
  color: #7b5510;
}

.news-terminal .news-categories .news-priority-toggle.is-active {
  border-color: #d29a28;
  background: #d29a28;
  color: #11120f;
}

.news-terminal .news-workbench {
  grid-template-columns: minmax(480px, 0.92fr) minmax(0, 1.08fr);
  height: calc(100vh - 230px);
  min-height: 620px;
  max-height: 800px;
  border-top: 0;
  box-shadow: 0 16px 40px rgba(20, 23, 27, 0.08);
}

.news-terminal .news-stream {
  display: grid;
  grid-template-rows: 50px minmax(0, 1fr);
  min-height: 0;
}

.news-terminal .news-stream > header {
  min-height: 50px;
  padding: 0 16px;
}

.news-terminal .news-list {
  max-height: none;
  min-height: 0;
}

.news-terminal .news-row {
  grid-template-columns: 48px 8px minmax(0, 1fr);
  gap: 10px;
  min-height: 90px;
  padding: 13px 16px 13px 12px;
  align-items: start;
}

.news-terminal .news-row.is-active {
  box-shadow: inset 3px 0 #d29a28;
  background: #f2efe8;
}

.news-row-clock {
  padding-top: 2px;
  color: #34383d;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.news-impact {
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: #b6bbc1;
}

.news-impact.is-high {
  background: #ef4d40;
  box-shadow: 0 0 0 3px rgba(239, 77, 64, 0.12);
}

.news-terminal .news-row-copy {
  gap: 5px;
}

.news-terminal .news-row-copy > strong {
  font-size: 14px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
}

.news-terminal .news-row-copy > small {
  display: -webkit-box;
  overflow: hidden;
  color: #858b92;
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.news-terminal .news-row-meta {
  gap: 7px;
}

.news-terminal .news-row-meta b {
  padding: 1px 5px;
  background: #eee7d8;
}

.news-terminal .news-row-meta span {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid #d8b665;
  border-radius: 2px;
  color: #946a19;
  font-size: 10px;
  font-weight: 900;
}

.news-terminal .news-detail {
  min-height: 0;
  height: 100%;
}

.news-terminal .news-detail-body {
  min-height: 0;
  overflow-y: auto;
  padding: 34px 42px 28px;
}

.news-terminal .news-detail-source small {
  margin-top: 2px;
}

.news-terminal .news-detail-meta {
  margin: 34px 0 12px;
}

.news-terminal .news-detail-meta em,
.news-terminal .news-detail-meta span {
  padding: 3px 7px;
  border-radius: 2px;
  background: #eceff1;
  color: #626970;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.news-terminal .news-detail-meta em {
  background: #fbe5e2;
  color: #c83f34;
}

.news-terminal .news-detail h2 {
  max-width: 800px;
  font-size: 30px;
  line-height: 1.42;
}

.news-chinese-brief {
  max-width: 800px;
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 3px solid #d29a28;
  background: #f3f4f4;
}

.news-chinese-brief small {
  color: #986c17;
  font-size: 10px;
  font-weight: 900;
}

.news-chinese-brief p {
  margin: 8px 0 0;
  color: #3f444a;
  font-size: 15px;
  line-height: 1.85;
}

.news-original-title {
  max-width: 800px;
  margin: 0 0 24px;
  border-top: 1px solid #e1e3e5;
  border-bottom: 1px solid #e1e3e5;
}

.news-original-title summary {
  padding: 12px 0;
  color: #6e747b;
  font-size: 11px;
  cursor: pointer;
}

.news-original-title p {
  margin: 0;
  padding: 0 0 14px;
  color: #7e848b;
  font-size: 12px;
  line-height: 1.6;
}

.news-terminal .news-detail dl {
  max-width: 800px;
}

.news-terminal .news-detail-actions {
  min-height: 72px;
  padding: 14px 22px 14px 42px;
}

.news-source-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 64px;
  padding: 14px 18px;
  border: 1px solid #d9dcdf;
  border-top: 0;
  background: #fff;
}

.news-source-note strong {
  flex: 0 0 auto;
  font-size: 12px;
}

.news-source-note p {
  margin: 0;
  color: #777d84;
  font-size: 11px;
  line-height: 1.6;
  text-align: right;
}

@media (max-width: 1050px) {
  .news-terminal .news-workbench {
    grid-template-columns: minmax(390px, 0.95fr) minmax(0, 1.05fr);
  }

  .news-terminal .news-detail-body {
    padding-right: 30px;
    padding-left: 30px;
  }

  .news-terminal .news-detail-actions {
    padding-left: 30px;
  }
}

@media (max-width: 820px) {
  .news-terminal {
    width: min(100% - 20px, 720px);
    padding-top: 14px;
  }

  .news-terminal-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .news-terminal-title h1 {
    font-size: 23px;
  }

  .news-terminal .news-feed-status {
    align-self: stretch;
  }

  .news-terminal .news-controls {
    position: static;
    grid-template-columns: 1fr 42px;
    border-bottom: 1px solid #d9dcdf;
  }

  .news-terminal .news-categories {
    grid-column: 1 / -1;
  }

  .news-terminal .news-workbench {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    max-height: none;
    margin-top: 10px;
    border-top: 1px solid #d9dcdf;
    overflow: visible;
  }

  .news-terminal .news-stream {
    height: min(590px, 68vh);
    border-right: 0;
  }

  .news-terminal .news-detail {
    height: auto;
    min-height: 0;
    scroll-margin-top: 78px;
  }

  .news-terminal .news-detail-body {
    overflow: visible;
  }

  .news-source-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #d9dcdf;
  }

  .news-source-note p {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .news-terminal-title > div:first-child {
    align-items: flex-start;
  }

  .news-terminal-title p {
    max-width: 245px;
    line-height: 1.55;
  }

  .news-terminal .news-categories .news-priority-toggle {
    margin-left: 0;
  }

  .news-terminal .news-row {
    grid-template-columns: 42px 7px minmax(0, 1fr);
    min-height: 96px;
    padding-right: 11px;
    padding-left: 10px;
  }

  .news-terminal .news-row-meta em {
    display: inline;
  }

  .news-terminal .news-detail-body {
    padding: 26px 18px;
  }

  .news-terminal .news-detail h2 {
    font-size: 23px;
  }

  .news-chinese-brief {
    padding: 16px;
  }

  .news-terminal .news-detail-actions {
    padding: 16px 18px;
  }
}

/* AI 量化投研实战营：付费学习工作台 */
.course-content.is-learning { grid-template-columns: 250px minmax(0, 1fr) 300px; max-width: 1480px; align-items: start; }
.course-content.is-learning > .course-trial-panel { grid-column: 2 / -1; }
.course-content.is-learning > .course-overview { grid-column: 2; }
.course-content.is-learning > .course-sidebar { grid-column: 3; }
.course-learning-index { position: sticky; top: 96px; grid-column: 1; grid-row: 1 / span 3; max-height: calc(100vh - 118px); overflow: hidden; border: 1px solid #d8d9d4; background: #fff; box-shadow: 0 18px 46px rgba(17, 19, 15, .08); }
.course-learning-index > header { padding: 22px 20px 16px; border-bottom: 1px solid #e6e7e3; background: #11120f; color: #fff; }
.course-learning-index > header span { display: block; color: #d3a13a; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.course-learning-index > header strong { display: block; margin-top: 7px; font-size: 20px; }
.course-learning-index > header small { display: block; margin-top: 6px; color: #bfc3bc; }
.course-learning-index > label { display: flex; align-items: center; gap: 8px; margin: 14px; padding: 0 12px; border: 1px solid #dedfdc; background: #f8f8f5; }
.course-learning-index > label input { width: 100%; min-height: 38px; border: 0; outline: 0; background: transparent; }
.course-index-list { max-height: calc(100vh - 286px); overflow: auto; padding: 0 14px 18px; }
.course-index-list section { padding: 14px 0; border-top: 1px solid #ecece8; }
.course-index-list section:first-child { border-top: 0; }
.course-index-list h3 { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 8px; font-size: 13px; line-height: 1.45; }
.course-index-list h3 b { color: #b07b17; font-size: 10px; }
.course-index-list button { width: 100%; display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 7px; padding: 8px 6px; border: 0; background: transparent; color: #555c63; text-align: left; cursor: pointer; }
.course-index-list button strong { font-size: 12px; font-weight: 700; line-height: 1.5; }
.course-index-list button:hover, .course-index-list button.is-active { background: #f5ead0; color: #171713; }
.course-index-list button.is-completed span { color: #197a49; font-weight: 900; }
.course-assistant-fab { position: fixed; right: 24px; bottom: 18px; z-index: 90; display: flex; align-items: center; gap: 7px; padding: 2px 13px 2px 3px; border: 1px solid rgba(197,151,51,.62); border-radius: 999px; background: rgba(17,18,15,.94); color: #fff; box-shadow: 0 18px 52px rgba(0,0,0,.25); backdrop-filter: blur(10px); cursor: pointer; }
.course-assistant-fab:hover .course-assistant-mascot { transform: translateY(-5px) rotate(-2deg) scale(1.05); }
.course-assistant-mascot { width: 70px; height: 76px; display: block !important; margin: -22px 0 -4px -5px; transform-origin: 50% 90%; animation: none; transition: transform .25s ease; filter: drop-shadow(0 8px 9px rgba(22,44,104,.28)); }
.course-assistant-mascot svg { width: 100%; height: 100%; overflow: visible; }
.mascot-cloud { fill: #4d82e5; stroke: #173d8b; stroke-width: 3; }
.mascot-face { fill: #101c3a; stroke: #7ca6ff; stroke-width: 2; }
.mascot-eyes rect, .mascot-smile { fill: #f2bd45; stroke: #f2bd45; stroke-width: 2; stroke-linecap: round; }
.mascot-eyes { transform-origin: center; animation: youning-mascot-blink 5.8s infinite; }
.mascot-body { fill: #315fbd; stroke: #173d8b; stroke-width: 3; }
.mascot-book { fill: #f2bd45; stroke: #a66c08; stroke-width: 2; }
.mascot-arm, .mascot-foot, .mascot-antenna { fill: none; stroke: #173d8b; stroke-width: 5; stroke-linecap: round; }
.mascot-spark { fill: #f2bd45; animation: youning-mascot-spark 1.8s ease-in-out infinite; }
.course-assistant-fab-copy { display: grid !important; text-align: left; }
.course-assistant-fab strong { font-size: 14px; }
.course-assistant-fab small { margin-top: 2px; color: #d2b46f; font-size: 10px; }
.course-assistant-nudge { position: fixed; right: 24px; bottom: 104px; z-index: 92; width: min(280px, calc(100vw - 34px)); padding: 14px 34px 14px 16px; border: 1px solid #d6b66d; border-radius: 14px 14px 3px 14px; background: #fffaf0; color: #26251f; box-shadow: 0 16px 45px rgba(30,25,14,.2); cursor: pointer; animation: youning-nudge-in .35s ease both; }
.course-assistant-nudge::after { content:""; position:absolute; right:28px; bottom:-8px; width:15px; height:15px; border-right:1px solid #d6b66d; border-bottom:1px solid #d6b66d; background:#fffaf0; transform:rotate(45deg); }
.course-assistant-nudge strong, .course-assistant-nudge span { display:block; }
.course-assistant-nudge strong { margin-bottom:5px; color:#805b16; font-size:13px; }
.course-assistant-nudge span { font-size:12px; line-height:1.65; }
.course-assistant-nudge > button { position:absolute; top:6px; right:8px; border:0; background:transparent; color:#999; font-size:18px; cursor:pointer; }
@keyframes youning-mascot-float { 0%,100%{transform:translateY(0) rotate(0)} 50%{transform:translateY(-6px) rotate(1.5deg)} }
@keyframes youning-mascot-blink { 0%,44%,48%,100%{transform:scaleY(1)} 46%{transform:scaleY(.12)} }
@keyframes youning-mascot-spark { 0%,100%{opacity:.35;transform:scale(.7)} 50%{opacity:1;transform:scale(1.25)} }
@keyframes youning-nudge-in { from{opacity:0;transform:translateY(8px) scale(.97)} to{opacity:1;transform:none} }
.course-assistant-panel { position: fixed; right: 24px; bottom: 92px; z-index: 91; width: min(410px, calc(100vw - 32px)); height: min(650px, calc(100vh - 130px)); overflow: hidden; border: 1px solid #c69733; border-radius: 14px; background: #f7f5ee; box-shadow: 0 26px 90px rgba(0,0,0,.28); }
.course-assistant-panel > header { display: grid; grid-template-columns: 52px minmax(0,1fr) 32px; gap: 10px; align-items: center; min-height: 68px; padding: 10px 15px; background: #11120f; color: #fff; }
.course-assistant-avatar { width: 52px; height: 54px; display: block; margin-top: -3px; filter: drop-shadow(0 5px 7px rgba(14,37,90,.32)); animation: youning-mascot-float 3.2s ease-in-out infinite; }
.course-assistant-avatar svg { width: 100%; height: 100%; overflow: visible; }
.course-assistant-panel > header div { display: grid; gap: 3px; }
.course-assistant-panel > header button { border: 0; background: transparent; color: #fff; font-size: 24px; cursor: pointer; }
.course-assistant-context { padding: 10px 14px; border-bottom: 1px solid #e0d6be; background: #efe2c5; color: #684b15; font-size: 11px; font-weight: 800; }
.course-assistant-messages { height: calc(100% - 260px); overflow: auto; padding: 16px; }
.course-assistant-messages article { max-width: 88%; margin-bottom: 13px; padding: 11px 13px; border-radius: 10px; }
.course-assistant-messages article strong { display: block; margin-bottom: 5px; font-size: 11px; }
.course-assistant-messages article p { margin: 0; white-space: pre-wrap; font-size: 13px; line-height: 1.7; }
.course-assistant-messages .is-assistant { background: #fff; color: #252721; box-shadow: 0 4px 18px rgba(30,25,15,.06); }
.course-assistant-messages .is-user { margin-left: auto; background: #171813; color: #fff; }
.course-assistant-upgrade { width: max-content; display: block; margin: -4px 0 14px; padding: 9px 13px; border-radius: 6px; background: #c9952d; color: #111; font-size: 12px; font-weight: 900; }
.course-assistant-suggestions { display: flex; gap: 6px; overflow-x: auto; padding: 0 14px 10px; }
.course-assistant-suggestions button { flex: 0 0 auto; min-height: 30px; padding: 0 10px; border: 1px solid #d5bd87; border-radius: 999px; background: #fffaf0; color: #765214; font-size: 10px; cursor: pointer; }
#courseAssistantForm { display: grid; grid-template-columns: minmax(0,1fr) 58px; gap: 8px; padding: 0 14px; }
#courseAssistantForm textarea { resize: none; padding: 10px; border: 1px solid #cfcbc0; border-radius: 8px; font: inherit; outline: 0; }
#courseAssistantForm textarea:focus { border-color: #b78420; }
#courseAssistantForm button { border: 0; border-radius: 8px; background: #c9952d; color: #111; font-weight: 900; cursor: pointer; }
.course-assistant-status { display: block; padding: 8px 15px 12px; color: #777b75; font-size: 10px; }
.is-protected-course #courseLessonViewer, .is-protected-course #courseLessonViewer * { -webkit-user-select: none; user-select: none; }
.is-protected-course .course-video-shell video { -webkit-touch-callout: none; }

@media (max-width: 1180px) {
  .course-content.is-learning { grid-template-columns: 230px minmax(0, 1fr); }
  .course-content.is-learning > .course-trial-panel,
  .course-content.is-learning > .course-overview,
  .course-content.is-learning > .course-sidebar { grid-column: 2; }
  .course-content.is-learning > .course-sidebar { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .course-content.is-learning { grid-template-columns: 1fr; }
  .course-learning-index { position: relative; top: auto; grid-column: 1; grid-row: auto; max-height: 430px; }
  .course-index-list { max-height: 270px; }
  .course-content.is-learning > .course-trial-panel,
  .course-content.is-learning > .course-overview,
  .course-content.is-learning > .course-sidebar { grid-column: 1; }
  .course-content.is-learning > .course-sidebar { grid-template-columns: 1fr; }
  .course-assistant-fab { right: 14px; bottom: 14px; }
  .course-assistant-fab small { display: none; }
  .course-assistant-fab-copy strong { display: none; }
  .course-assistant-fab { width: 64px; height: 58px; padding: 0; justify-content: center; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; }
  .course-assistant-mascot { width: 74px; height: 80px; margin: -16px 0 0; }
  .course-assistant-nudge { right: 16px; bottom: 94px; }
  .course-assistant-panel { right: 16px; bottom: 82px; }
}
.academy-flagship-course {
  width: min(1280px, calc(100% - 48px));
  margin: 34px auto 0;
  min-height: 270px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 36px;
  padding: 42px 48px;
  overflow: hidden;
  position: relative;
  color: #fff;
  text-decoration: none;
  border: 1px solid #9b7527;
  border-radius: 10px;
  background: radial-gradient(circle at 80% 25%, rgba(220,170,64,.25), transparent 28%), linear-gradient(125deg, #0b1019 0%, #121824 57%, #241b0d 100%);
  box-shadow: 0 24px 70px rgba(18,22,29,.18);
}
.academy-flagship-course::after { content: "AI"; position: absolute; right: 245px; bottom: -54px; color: rgba(227,174,59,.07); font-size: 230px; font-weight: 950; line-height: 1; }
.academy-flagship-copy, .academy-flagship-action { position: relative; z-index: 1; }
.academy-flagship-copy p { margin: 0 0 9px; color: #e2ad3d; font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.academy-flagship-copy > span { color: #aaaead; font-size: 13px; }
.academy-flagship-copy h2 { margin: 9px 0 7px; color: #fff; font-size: clamp(34px, 4vw, 54px); line-height: 1.08; }
.academy-flagship-copy strong { color: #d2d5d8; font-size: 17px; font-weight: 500; }
.academy-flagship-copy ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.academy-flagship-copy li { padding: 7px 12px; color: #e9d29f; border: 1px solid rgba(218,168,61,.35); border-radius: 999px; background: rgba(216,165,55,.08); font-size: 12px; }
.academy-flagship-action { min-width: 250px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; border-left: 1px solid rgba(255,255,255,.12); }
.academy-flagship-action small { color: #aaaead; }
.academy-flagship-action b { margin: 8px 0 22px; color: #e3ae3b; font-size: 42px; }
.academy-flagship-action b em { font-size: 14px; font-style: normal; }
.academy-flagship-action span { padding: 13px 22px; color: #121212; border-radius: 4px; background: #dda934; font-weight: 900; }
.academy-flagship-course:hover .academy-flagship-action span { background: #f0bf52; transform: translateY(-1px); }
.academy-course-card.is-flagship { border-color: #c8972f !important; box-shadow: 0 18px 56px rgba(169,119,21,.18) !important; }
.academy-course-card.is-flagship > header { background: linear-gradient(110deg, #171713, #423115); }
.academy-specialty-row,
.academy-market-course-row { grid-column: 1 / -1; }
.academy-specialty-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; padding: 28px; border: 1px solid #c9972f; border-radius: 10px; background: linear-gradient(120deg, #11151c, #201a10); }
.academy-specialty-row > header { padding: 12px 8px; color: #fff; }
.academy-specialty-row > header span,
.academy-market-course-row > header span { color: #d7a436; font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.academy-specialty-row > header h3,
.academy-market-course-row > header h3 { margin: 10px 0 8px; font-size: 28px; }
.academy-specialty-row > header p { color: #aeb3ba; line-height: 1.7; }
.academy-specialty-row > div { max-width: 560px; }
.academy-specialty-row .academy-course-card { min-height: 400px !important; }
.academy-market-course-row { margin-top: 22px; padding-top: 34px; border-top: 1px solid #cfd3d8; }
.academy-market-course-row > header { display: grid; grid-template-columns: 130px 280px 1fr; align-items: center; gap: 22px; margin-bottom: 20px; }
.academy-market-course-row > header h3 { margin: 0; color: #181b20; }
.academy-market-course-row > header p { margin: 0; color: #737981; line-height: 1.7; }
.academy-market-stage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.academy-market-stage { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.academy-stage-label { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.academy-stage-label b { color: #b17d18; font-size: 12px; }
.academy-stage-label span { color: #5e646c; font-size: 12px; font-weight: 900; }
.academy-market-stage .academy-course-card { height: 100%; }
@media (max-width: 760px) {
  .academy-flagship-course { width: calc(100% - 28px); flex-direction: column; padding: 30px 24px; }
  .academy-flagship-action { min-width: 0; align-items: flex-start; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); border-left: 0; }
  .academy-flagship-action b { margin-bottom: 14px; }
  .academy-specialty-row { grid-template-columns: 1fr; padding: 20px; }
  .academy-market-course-row > header { grid-template-columns: 1fr; gap: 7px; }
  .academy-market-stage-grid { grid-template-columns: 1fr; }
}
