.model-overview {
  --mo-pretrain-core: 180px;
  --mo-volume-width: 112px;
  --mo-volume-height: 100px;
  padding: 48px 40px 12px;
  color: var(--text, #f0f0f0);
  font-family: var(--font-ui, Arial, Helvetica, sans-serif);
  min-width: 0;
}
.model-overview + .model-overview { position: relative; margin-top: 64px; padding-top: 56px; border-top: 1px solid #292c34; }
.model-overview > .mo-next-story { top: -21px; bottom: auto; z-index: 2; }
.model-overview .mo-heading h2 { scroll-margin-top: 96px; }
.model-overview .mo-story { max-width: 1000px; margin: 0 auto; }
.model-overview .mo-story + .mo-story { margin-top: 64px; padding-top: 56px; border-top: 1px solid #292c34; }
.model-overview .mo-heading { text-align: center; }
.model-overview .mo-heading h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 2.65vw, 35.328px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.model-overview .mo-heading h2 span { color: var(--accent, #b4c0e4); }
.model-overview .mo-heading p,
.model-overview .mo-bridge {
  max-width: 730px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 24px;
  text-wrap: pretty;
  color: var(--muted, #a5a5b2);
}
.model-overview .mo-task-heading { margin: 0; }
.model-overview .mo-stage-label { margin: 0; color: var(--accent, #b4c0e4); font-size: 12px; line-height: 18px; font-weight: 500; letter-spacing: .015em; }
.model-overview .mo-pretraining { max-width: 1000px; margin: 34px auto 0; }
.model-overview .mo-pretraining > .mo-stage-label { text-align: center; margin-bottom: 18px; }
.model-overview .mo-pretrain-flow { display: grid; grid-template-columns: minmax(0,1fr) 20px 68px 20px var(--mo-pretrain-core) 20px 68px 20px minmax(0,1fr); gap: 8px; align-items: stretch; }
.model-overview .mo-pretrain-step { display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 156px; padding: 12px 14px; text-align: center; border: 1px solid #2b2d34; border-radius: 9px; background: #17181c; }
.model-overview .mo-pretrain-step strong { display: block; font-size: 14px; line-height: 20px; font-weight: 500; }
.model-overview .mo-pretrain-step span { display: block; margin-top: 5px; color: var(--muted, #a5a5b2); font-size: 12px; line-height: 18px; text-wrap: balance; }
.model-overview :is(.mo-pretrain-source, .mo-pretrain-output) { min-height: 0; justify-content: flex-start; padding: 0; border: 0; background: transparent; }
.model-overview .mo-scan-volume { display: block; width: var(--mo-volume-width); max-width: 100%; height: auto; margin: 0 auto 8px; overflow: visible; }
.model-overview .mo-pretrain-learning { align-self: center; min-height: 72px; height: 72px; }
.model-overview .mo-scan-volume path { fill: none; stroke: #8995bc; stroke-width: 1; stroke-linejoin: round; }
.model-overview .mo-pretrain-learning strong { color: var(--text, #f0f0f0); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0; }
.model-overview .mo-pretrain-learning { background: #20232d; border-color: #66718e; }
.model-overview .mo-token-grid { position: relative; display: grid; grid-template-columns: repeat(6,13px); gap: 4px; width: max-content; margin: 12px auto 8px; }
.model-overview .mo-token-grid i { width: 13px; height: 13px; border: 1px solid #b4c0e4; border-radius: 2px; background: #8496c3; opacity: var(--token-opacity); }
.model-overview .mo-token-grid.is-noisy i { border-color: #a0a5b4; background: #777e91; }
.model-overview .mo-token-stage { align-self: center; min-width: 0; text-align: center; color: var(--muted, #a5a5b2); font-size: 11px; line-height: 16px; font-weight: 500; text-wrap: balance; }
.model-overview .mo-token-stage > span { display: flex; align-items: flex-end; justify-content: center; min-height: 32px; }
.model-overview .mo-token-stage .mo-token-grid { grid-template-columns: repeat(6,7px); gap: 3px; margin: 9px auto 7px; }
.model-overview .mo-token-stage .mo-token-grid i { width: 7px; height: 7px; border-radius: 1px; }
.model-overview .mo-token-stage small { display: block; min-height: 28px; font-size: 10px; line-height: 14px; font-weight: 400; }
.model-overview .mo-pretrain-arrow { display: block; align-self: center; width: 40px; height: 16px; fill: none; stroke: #77839f; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.model-overview .mo-pretrain-small-arrow { width: 20px; }
.model-overview .mo-adaptation-label { max-width: 1000px; margin: 28px auto 0; text-align: center; }
.model-overview .mo-diagram {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  gap: 40px;
  align-items: center;
  max-width: 1000px;
  margin: 24px auto 28px;
  min-width: 0;
}
.model-overview .mo-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.model-overview .mo-wire {
  fill: none;
  stroke: #343640;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .2s ease;
}
.model-overview .mo-flow-pulse { fill: var(--accent, #b4c0e4); pointer-events: none; }
.model-overview .mo-wire-in.is-active { stroke: var(--accent, #b4c0e4); }
.model-overview .mo-wire-out.is-active { stroke: var(--accent, #b4c0e4); }
.model-overview .mo-ports { position: relative; display: grid; grid-template-columns: minmax(0,1fr); justify-items: center; gap: 8px; min-width: 0; }
.model-overview .mo-port {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  width: 100%;
  max-width: 220px;
  height: 144px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a4a4af;
  opacity: .28;
  transition: opacity .3s ease, color .2s ease;
}
.model-overview[data-overview="pretraining"] .mo-port { cursor: default; }
.model-overview[data-overview="pretraining"] .mo-details { min-height: 0; }
.model-overview .mo-port.is-active { color: var(--text, #f0f0f0); opacity: 1; }
.model-overview .mo-port:not(.is-active):hover,
.model-overview .mo-port:not(.is-active):focus-visible { opacity: .6; }
.model-overview .mo-port-content { flex: 0 0 var(--mo-volume-height); width: var(--mo-volume-width); max-width: 100%; height: var(--mo-volume-height); min-width: 0; overflow: visible; background: transparent; }
.model-overview .mo-port-content img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #070708;
  border-radius: 5px;
  opacity: .75;
  transition: opacity .2s ease;
}
.model-overview .mo-port-content:has(.mo-scan-volume) { display: flex; align-items: center; justify-content: center; overflow: visible; background: transparent; box-shadow: none; }
.model-overview .mo-port-content .mo-scan-volume { width: 100%; height: auto; margin: 0; opacity: .75; transition: opacity .2s ease; }
.model-overview .mo-port.is-active .mo-scan-volume { opacity: 1; }
.model-overview .mo-port-content picture { display: block; width: 100%; height: 100%; }
.model-overview .mo-port.is-active .mo-port-content img { opacity: 1; }
.model-overview .mo-port-label { flex: 0 0 auto; min-width: 0; width: 100%; min-height: 34px; text-align: center; font-size: 14px; line-height: 20px; font-weight: 500; text-wrap: balance; }
.model-overview .mo-port-label small { display: block; font-size: 10px; line-height: 14px; font-weight: 400; color: var(--faint, #9696a4); }
.model-overview .mo-input-type {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 0 4px;
  color: var(--accent, #b4c0e4);
  font-size: 10px;
  line-height: 17px;
  text-align: center;
}
.model-overview .mo-input-type span:first-child { font-size: 11px; font-weight: 600; }
.model-overview .mo-report {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--accent, #b4c0e4);
}
.model-overview .mo-report svg { width: 32px; height: 44px; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.model-overview .mo-core { display: grid; grid-template-columns: 68px 20px var(--mo-pretrain-core) 20px 68px; align-items: center; justify-self: center; gap: 8px; min-height: 104px; width: max-content; }
.model-overview .mo-core .mo-token-stage { position: relative; width: 68px; }
.model-overview .mo-core .mo-token-stage > span { position: absolute; bottom: calc(100% + 8px); left: -8px; right: -8px; display: block; min-height: 0; }
.model-overview .mo-core .mo-token-grid { margin: 0 auto; }
.model-overview .mo-core-arrow { display: block; width: 20px; height: 16px; fill: none; stroke: #77839f; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.model-overview .mo-model {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  justify-self: center;
  width: var(--mo-pretrain-core);
  height: 72px;
  padding: 12px 14px;
  overflow: hidden;
  text-align: center;
  border: 1px solid #66718e;
  border-radius: 9px;
  background: #20232d;
}
.model-overview .mo-model h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text, #f0f0f0);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0;
}
.model-overview .mo-prior {
  position: absolute;
  top: calc(50% + 100px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--mo-pretrain-core) + 160px);
  max-width: 380px;
  margin: 0;
  pointer-events: none;
}
.model-overview .mo-prior img { display: block; width: 100%; height: auto; }
.model-overview .mo-sampling { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; color: var(--accent, #b4c0e4); }
.model-overview :is(.mo-sampling-underlay, .mo-sampling-trail) { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.model-overview .mo-sampling-underlay { stroke: #111; stroke-width: 5; opacity: .85; }
.model-overview .mo-sampling-trail { stroke: currentColor; stroke-width: 2.8; }
.model-overview .mo-sampling-origin { fill: currentColor; }
.model-overview .mo-sampling-target { fill: currentColor; }
.model-overview .mo-sampling-motion { fill: #e2e9fc; }
.model-overview .mo-task-story {
  position: absolute;
  z-index: 1;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--mo-pretrain-core) + 216px);
  max-width: 390px;
  text-align: center;
}
.model-overview .mo-task-window { height: 28px; overflow: hidden; }
.model-overview .mo-task-track { transition: transform .55s cubic-bezier(.22,.68,.25,1); }
.model-overview .mo-task-name { height: 28px; color: var(--text, #f0f0f0); font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -.02em; }
.model-overview .mo-details { text-align: center; margin: 12px auto 0; min-height: 104px; padding: 0 8px; }
.model-overview .mo-caption { min-height: 63px; margin: 0; color: var(--muted, #a5a5b2); font-size: 13px; line-height: 21px; text-wrap: pretty; }
.model-overview .mo-task-setting { margin: 24px 0 0; color: var(--accent, #b4c0e4); font-size: 13px; line-height: 21px; text-wrap: pretty; }
.model-overview .mo-task-setting em { font-style: italic; font-synthesis: style; }
.model-overview :is(button, a, [tabindex]):focus-visible { outline: 2px solid var(--accent, #b4c0e4); outline-offset: 4px; }
@media (max-width: 1100px) {
  .model-overview { --mo-pretrain-core: 160px; }
  .model-overview .mo-diagram { gap: 32px; }
  .model-overview { padding-right: 12px; padding-left: 12px; }
  .model-overview .mo-port { gap: 9px; }
  .model-overview .mo-port-label { font-size: 12px; }
}
@media (min-width: 768px) and (max-width: 999px) {
  .model-overview { --mo-pretrain-core: 148px; }
  .model-overview .mo-diagram { gap: 24px; }
  .model-overview { padding-right: 0; padding-left: 0; }
  .model-overview .mo-port { gap: 7px; }
  .model-overview .mo-port-label { font-size: 11px; line-height: 15px; }
}
@media (max-width: 767px) {
  .model-overview { --mo-pretrain-core: 132px; }
  .model-overview { padding: 36px 0 8px; }
  .model-overview .mo-story + .mo-story { margin-top: 48px; padding-top: 44px; }
  .model-overview .mo-heading h2 { font-size: 28px; line-height: 35px; margin-bottom: 15px; }
  .model-overview .mo-heading p,
  .model-overview .mo-bridge { font-size: 14px; line-height: 21px; max-width: 490px; }
  .model-overview .mo-pretraining { max-width: 620px; margin-top: 28px; }
  .model-overview .mo-pretrain-flow { gap: 6px; }
  .model-overview .mo-adaptation-label { max-width: 620px; }
  .model-overview :is(.mo-pretrain-source, .mo-pretrain-output) strong { font-size: 13px; line-height: 19px; }
  .model-overview .mo-pretrain-step span { font-size: 11px; line-height: 16px; }
  .model-overview .mo-diagram { gap: 20px; max-width: 620px; margin-top: 24px; margin-bottom: 24px; }
  .model-overview .mo-port { gap: 8px; }
  .model-overview .mo-port-content img { height: 100%; }
  .model-overview .mo-port-label { font-size: 13px; line-height: 18px; }
  .model-overview .mo-port-label small { font-size: 10px; line-height: 14px; }
  .model-overview .mo-input-type { font-size: 11px; line-height: 20px; }
  .model-overview .mo-input-type span:first-child { font-size: 14px; }
  .model-overview .mo-caption { font-size: 13px; line-height: 19px; }
}
@media (max-width: 679px) {
  .model-overview .mo-pretrain-flow { grid-template-columns: 1fr; gap: 12px; }
  .model-overview .mo-pretrain-learning { width: min(100%,180px); justify-self: center; }
  .model-overview .mo-pretrain-arrow { margin: 0 auto; transform: rotate(90deg); width: 24px; }
  .model-overview .mo-token-stage { justify-self: center; font-size: 11px; line-height: 16px; }
  .model-overview .mo-token-stage .mo-token-grid { grid-template-columns: repeat(6,11px); gap: 3px; }
  .model-overview .mo-token-stage .mo-token-grid i { width: 11px; height: 11px; }
  .model-overview .mo-token-stage small { font-size: 10px; }
}
@media (min-width: 600px) and (max-width: 679px) {
  .model-overview { --mo-pretrain-core: 180px; }
}
@media (min-width: 700px) and (max-width: 767px) {
  .model-overview .mo-diagram { gap: 16px; }
  .model-overview .mo-task-story { width: calc(var(--mo-pretrain-core) + 176px); }
  .model-overview .mo-core { grid-template-columns: 60px 16px var(--mo-pretrain-core) 16px 60px; gap: 6px; }
  .model-overview .mo-core .mo-token-stage { width: 60px; }
  .model-overview .mo-core-arrow { width: 16px; }
}
@media (max-width: 699px) {
  .model-overview .mo-prior { position: relative; top: auto; left: auto; transform: none; justify-self: center; width: min(100%,340px); margin: 0; grid-row: 5; }
  .model-overview .mo-diagram { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .model-overview .mo-task-story { position: static; transform: none; width: min(100%,390px); justify-self: center; }
  .model-overview .mo-task-name { font-size: 19px; }
  .model-overview .mo-details { min-height: 100px; }
  .model-overview .mo-core { display: flex; flex-direction: column; gap: 12px; width: min(100%,180px); min-height: 0; }
  .model-overview .mo-core .mo-token-stage { width: 88px; }
  .model-overview .mo-core .mo-token-stage > span { position: static; margin-bottom: 8px; }
  .model-overview .mo-core-arrow { transform: rotate(90deg); }
  .model-overview .mo-model { width: min(100%,180px); }
  .model-overview .mo-ports { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .model-overview .mo-port:not(.is-active) { display: none; }
  .model-overview[data-overview="pretraining"] .mo-ports { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; }
  .model-overview[data-overview="pretraining"] .mo-port { height: 130px; }
  .model-overview[data-overview="pretraining"] .mo-port-label { font-size: 10px; line-height: 14px; }
  .model-overview[data-overview="pretraining"] .mo-port-content { flex-basis: 88px; height: 88px; }
}
@media (max-width: 519px) {
  .model-overview { --mo-pretrain-core: 110px; }
  .model-overview .mo-pretraining > .mo-stage-label { text-align: center; }
  .model-overview :is(.mo-pretrain-source, .mo-pretrain-output) strong { font-size: 14px; line-height: 20px; }
  .model-overview .mo-pretrain-step span { font-size: 11px; line-height: 16px; }
  .model-overview .mo-heading h2 { font-size: 26px; line-height: 33px; }
  .model-overview .mo-input-type span:first-child { font-size: 12px; }
}
@media (max-width: 359px) {
  .model-overview { --mo-pretrain-core: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .model-overview .mo-flow-pulse { display: none; }
  .model-overview .mo-wire,
  .model-overview .mo-port,
  .model-overview .mo-port-content img,
  .model-overview .mo-port-content .mo-scan-volume,
  .model-overview .mo-task-track { transition: none; }
}
