/* Coming-soon improvement loop, drawn on the page itself so it continues the diagnosis section. */
html body main #model-diagnostics.home-loop {
  --lp-ink: #203749;
  --lp-muted: #5c6d76;
  --lp-rule: #d9ddd5;
  --lp-surface: #f5f7f7;
  --lp-mind: #49796b;
  --lp-act: #446f86;
  --lp-mind2act: #91793d;
  --lp-focus: var(--lp-act);
  box-sizing: border-box;
  width: var(--home-column, min(1024px, calc(100% - 64px))) !important;
  max-width: 1024px !important;
  margin: 0 auto !important;
  padding: 8px 0 72px !important;
  border: 0 !important;
  scroll-margin-top: 96px;
  color: var(--lp-ink);
}
#model-diagnostics .lp-head { max-width: 680px; }
html body main #model-diagnostics h2 { margin: 0 0 12px !important; font-size: 30px !important; font-weight: 650 !important; line-height: 1.25 !important; letter-spacing: -.75px !important; color: var(--lp-ink) !important; text-align: left !important; }
html body main #model-diagnostics .lp-head p:not(.home-eyebrow) { margin: 0 !important; font-size: 17px !important; line-height: 1.6 !important; color: var(--lp-muted) !important; }
html body main #model-diagnostics .home-eyebrow { display: inline-block; padding: 2px 9px; border: 1px solid var(--lp-rule); border-radius: 999px; color: var(--lp-mind) !important; }

#model-diagnostics .lp-figure { position: relative; margin-top: 36px; padding: 34px 0 64px; }
#model-diagnostics .lp-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
#model-diagnostics .lp-path { fill: none; stroke: #c9d3d1; stroke-width: 1.5; stroke-dasharray: 3 5; }
#model-diagnostics .lp-path--return { stroke: color-mix(in srgb, var(--lp-focus) 45%, #d6dcda); stroke-dasharray: none; stroke-width: 1.5; transition: stroke .4s; }
#model-diagnostics .lp-tokens circle { fill: var(--lp-ink); }
#model-diagnostics .lp-tokens rect { fill: var(--lp-focus); }

#model-diagnostics .lp-steps { position: relative; display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; gap: 36px; margin: 0; padding: 0; list-style: none; }
#model-diagnostics .lp-node { position: relative; box-sizing: border-box; display: flex; flex-direction: column; min-height: 168px; padding: 16px 16px 14px; border: 1px solid var(--lp-rule); border-radius: 10px; background: #fff; transition: border-color .35s, box-shadow .35s; }
#model-diagnostics .lp-node.is-active { border-color: color-mix(in srgb, var(--lp-focus) 60%, #fff); box-shadow: 0 6px 22px #20374914; }
html body main #model-diagnostics .lp-node p { margin: 0 !important; }
html body main #model-diagnostics .lp-step { font-size: 11.5px !important; font-weight: 650 !important; letter-spacing: .08em; text-transform: uppercase; color: var(--lp-muted) !important; }
html body main #model-diagnostics .lp-desc { margin-top: auto !important; padding-top: 12px; font-size: 12.5px !important; line-height: 1.45 !important; color: var(--lp-muted) !important; }
html body main #model-diagnostics .lp-title { margin-top: 4px !important; font-size: 16px !important; font-weight: 650 !important; line-height: 1.35 !important; color: var(--lp-ink) !important; }

/* Model: a pixel character whose look follows its profile; it changes family as the letters move. */
#model-diagnostics .lp-node--model { display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; align-items: start; background: var(--lp-surface); }
#model-diagnostics .lp-avatar { grid-row: span 3; position: relative; width: 64px; height: 64px; overflow: hidden; border-radius: 10px; }
#model-diagnostics .lp-avatar-img { position: absolute; inset: 0; width: 64px; height: 64px; opacity: 0; transform: scale(calc(var(--grow, .82) * .9)); transform-origin: 50% 100%; transition: opacity .35s, transform .6s cubic-bezier(.3, 1.6, .5, 1); }
#model-diagnostics .lp-avatar-img.is-current { opacity: 1; transform: scale(var(--grow, .82)); }
#model-diagnostics .lp-node--model.is-final { border-color: #a2451f; box-shadow: 0 0 0 3px #fae8e0, 0 6px 22px #a2451f1f; }
html body main #model-diagnostics .lp-node--model.is-final .lp-type { color: #a2451f !important; }
html body main #model-diagnostics .lp-type { grid-column: 2; margin-top: 3px !important; font: 700 12.5px/1.3 'Pixelify Sans', 'JetBrains Mono', monospace !important; color: var(--lp-ink) !important; }
html body main #model-diagnostics .lp-node--model .lp-title { margin-top: 2px !important; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
#model-diagnostics .lp-round { font-size: 12px; font-weight: 600; color: var(--lp-muted); white-space: nowrap; }
#model-diagnostics .lp-skills { display: grid; gap: 5px; margin: 10px 0 0; padding: 0; list-style: none; }
#model-diagnostics .lp-skill { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 6px; font-size: 11.5px; color: var(--lp-muted); }
#model-diagnostics .lp-skill i { position: relative; height: 6px; border-radius: 3px; background: #e4e9e8; overflow: hidden; }
#model-diagnostics .lp-skill i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--c); transition: width 1s cubic-bezier(.3, .8, .3, 1); }
#model-diagnostics .lp-skill--mind { --c: var(--lp-mind); }
#model-diagnostics .lp-skill--act { --c: var(--lp-act); }
#model-diagnostics .lp-skill--mind2act { --c: var(--lp-mind2act); }
#model-diagnostics .lp-skill.is-growing span { color: var(--c); font-weight: 650; }

/* Evaluate: the three views light up in turn. */
#model-diagnostics .lp-suites { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
#model-diagnostics .lp-suites li { padding: 3px 9px; border: 1px solid var(--lp-rule); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--lp-muted); transition: background .3s, color .3s, border-color .3s; }
#model-diagnostics .lp-suites .lp-suite--mind { --c: var(--lp-mind); }
#model-diagnostics .lp-suites .lp-suite--act { --c: var(--lp-act); }
#model-diagnostics .lp-suites .lp-suite--mind2act { --c: var(--lp-mind2act); }
#model-diagnostics .lp-suites li.is-lit { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }

/* Diagnose: a miniature of the card above. */
#model-diagnostics .lp-card { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
#model-diagnostics .lp-code { flex: none; padding: 5px 7px 3px; border-radius: 5px; background: #17232e; color: #f4f6ef; font: 700 18px/1 'Pixelify Sans', 'JetBrains Mono', monospace; letter-spacing: .08em; }
#model-diagnostics .lp-code span { display: inline-block; transition: color .3s, transform .3s; }
#model-diagnostics .lp-code span.is-new { color: #f2d27a; transform: translateY(-1px); }
html body main #model-diagnostics .lp-profile { grid-column: 2; display: flex; align-items: center; gap: 6px; margin-top: 4px !important; font-size: 11.5px !important; color: var(--lp-muted) !important; }
#model-diagnostics .lp-profile .lp-code { padding: 3px 5px 2px; font-size: 13px; }
#model-diagnostics .lp-node--model .lp-skills { grid-column: 1 / -1; }
#model-diagnostics .lp-weak { font-size: 12.5px; line-height: 1.4; color: var(--lp-muted); }
#model-diagnostics .lp-weak b { color: var(--lp-focus); transition: color .3s; }
#model-diagnostics .lp-figure:not([data-step="2"]):not([data-step="3"]):not([data-step="4"]) .lp-card { opacity: .35; }
#model-diagnostics .lp-card { transition: opacity .4s; }

/* Prescribe: the data engine fills a batch in the colour of the weak view. */
#model-diagnostics .lp-data { display: grid; grid-template-columns: repeat(6, 14px); gap: 5px; margin-top: 16px; }
#model-diagnostics .lp-data i { width: 14px; height: 14px; border: 1px solid #d3dad8; border-radius: 3px; background: #fff; transition: background .25s, border-color .25s; }
#model-diagnostics .lp-data i.is-filled { border-color: var(--lp-focus); background: var(--lp-focus); }

/* Return path label and harness strip. */
html body main #model-diagnostics .lp-return-label { position: absolute; left: 50%; bottom: 14px; margin: 0 !important; transform: translateX(-50%); padding: 0 10px; background: #fff; font-size: 13px !important; line-height: 1.4 !important; color: var(--lp-muted) !important; white-space: nowrap; }
#model-diagnostics .lp-return-label .lp-step { margin-right: 4px; color: var(--lp-focus) !important; }
#model-diagnostics .lp-harness { position: absolute; top: 0; right: 0; display: flex; align-items: center; gap: 10px; width: calc(75% - 9px); font-size: 12px; color: var(--lp-muted); }
#model-diagnostics .lp-harness::before { content: ""; position: absolute; left: 0; right: 0; top: 24px; height: 8px; border: 1px solid #c9d3d1; border-bottom: 0; border-radius: 6px 6px 0 0; }
#model-diagnostics .lp-harness-name { font-weight: 650; letter-spacing: .04em; color: var(--lp-ink); }
#model-diagnostics .lp-harness-xp { position: relative; width: 84px; height: 5px; border-radius: 3px; background: #e4e9e8; overflow: hidden; }
#model-diagnostics .lp-harness-xp i { position: absolute; inset: 0 auto 0 0; width: calc(var(--xp, .25) * 100%); background: var(--lp-ink); transition: width 1s ease; }

#model-diagnostics .lp-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
html body main #model-diagnostics .lp-disclaimer { margin: 0 !important; font-size: 13px !important; line-height: 1.5 !important; color: var(--lp-muted) !important; }
#model-diagnostics .lp-toggle { flex: none; min-height: 30px; padding: 4px 12px; border: 1px solid var(--lp-rule); border-radius: 999px; background: #fff; color: var(--lp-ink); font-size: 12px; cursor: pointer; }
#model-diagnostics .lp-toggle:hover { border-color: var(--lp-muted); }
#model-diagnostics .lp-toggle:focus-visible { outline: 2px solid var(--lp-ink); outline-offset: 2px; }

@media (max-width: 860px) {
  #model-diagnostics .lp-figure { display: flex; flex-direction: column; padding: 0; }
  #model-diagnostics .lp-harness { order: -1; }
  #model-diagnostics .lp-steps { grid-template-columns: 1fr; gap: 26px; margin-right: 34px; }
  #model-diagnostics .lp-node { min-height: 0; }
  #model-diagnostics .lp-harness { position: static; flex-wrap: wrap; width: auto; margin: 0 0 16px; }
  #model-diagnostics .lp-harness::before { display: none; }
  html body main #model-diagnostics .lp-return-label { position: static; transform: none; margin: 14px 0 8px !important; padding: 0; white-space: normal; }
}
@media (max-width: 700px) {
  html body main #model-diagnostics.home-loop { width: calc(100% - 32px) !important; padding-bottom: 56px !important; }
  html body main #model-diagnostics h2 { font-size: 25px !important; }
  html body main #model-diagnostics .lp-head p:not(.home-eyebrow) { font-size: 15.5px !important; }
}
@media (prefers-reduced-motion: reduce) {
  #model-diagnostics .lp-avatar, #model-diagnostics .lp-avatar-img, #model-diagnostics .lp-skill i::after, #model-diagnostics .lp-harness-xp i, #model-diagnostics .lp-node, #model-diagnostics .lp-data i, #model-diagnostics .lp-suites li { transition: none; }
}
