heikin-sim,.hk-figure{--sim-base:#9fb8d6;--sim-over:#ef7d00;--sim-dent:#c62828;--sim-avg:#2e7d32;--sim-target:#7e57c2;--sim-line:#6b7480;--sim-grid:#818991;--sim-over-ink:#a75800;display:block}@media (prefers-color-scheme:dark){heikin-sim,.hk-figure{--sim-base:#7596bf;--sim-over:#ffa94d;--sim-dent:#ef9a9a;--sim-avg:#81c784;--sim-target:#b39ddb;--sim-line:#9aa3ad;--sim-grid:#7d8692;--sim-over-ink:#ffa94d}}.hk rt{font-size:.5em}.hk-tabs{border-radius:var(--radius);background:var(--c-border);grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;display:grid}.hk-tabs [role=tab]{border-radius:calc(var(--radius) - 4px);min-height:44px;color:var(--c-text);cursor:pointer;background:0 0;border:0;font-weight:700}.hk-tabs [role=tab][aria-selected=true]{background:var(--c-surface);color:var(--c-primary);box-shadow:0 1px 2px #00000026}.hk-panel{border:1px solid var(--c-border);border-radius:var(--radius);background:var(--c-surface);margin-top:.75rem;padding:1rem}.hk-panel>:first-child{margin-top:0}.hk-problem{margin:0 0 .25rem;font-size:1.0625rem;font-weight:700;line-height:2}.hk-mission{color:var(--c-muted);margin:0 0 .75rem;line-height:2}.hk-scene{border-radius:var(--radius);background:var(--c-surface-2);padding:.5rem}.hk-bars{width:100%;max-width:420px;height:auto;margin-inline:auto;display:block}.hk-bars .seg--base{fill:var(--sim-base)}.hk-bars .seg--over,.hk-bars .seg--in{fill:var(--sim-over)}.hk-bars .seg--out{fill:none;stroke:var(--sim-over-ink);stroke-width:1.5px;stroke-dasharray:4 3}.hk-bars .seg--dent{fill:var(--c-surface);fill-opacity:.4;stroke:var(--sim-dent);stroke-width:1.5px;stroke-dasharray:4 3}.hk-bars .seg--unknown{fill:none;stroke:var(--sim-line);stroke-width:1.5px;stroke-dasharray:4 3}.hk-bars .grid{stroke:var(--sim-grid);stroke-width:1px}.hk-bars .tick{fill:var(--c-muted);font-variant-numeric:tabular-nums;font-size:14px}.hk-bars .line{stroke-width:2.5px}.hk-bars .line--avg{stroke:var(--sim-avg)}.hk-bars .line--target{stroke:var(--sim-target);stroke-dasharray:6 4}.hk-bars .lbl{fill:var(--c-text);font-size:14px;font-weight:700}.hk-bars .lbl--top{font-variant-numeric:tabular-nums;font-size:14px}.hk-bars .lbl--sub{fill:var(--c-muted);font-size:14px}@media (prefers-color-scheme:dark){.hk-bars .seg--base,.hk-bars .seg--over,.hk-bars .seg--in{stroke:var(--c-surface);stroke-width:1.5px}}@media (prefers-color-scheme:light){.hk-bars .seg--base,.hk-bars .seg--over,.hk-bars .seg--in{stroke:var(--c-fig-edge);stroke-width:1px}}.hk-bars .lbl--q{fill:var(--c-muted);font-size:18px}@media (prefers-reduced-motion:no-preference){.hk-bars .seg.is-new{transform-box:fill-box;transform-origin:50% 100%;animation:.45s ease-out hk-drop}}@keyframes hk-drop{0%{opacity:.2;transform:translateY(-30px)}to{opacity:1;transform:translateY(0)}}.hk-status{text-align:center;margin-block:.75rem}.hk-meter{flex-wrap:wrap;justify-content:center;align-items:baseline;gap:.25rem .75rem;display:flex}.hk-meter p{margin:0}.hk-count strong{font-variant-numeric:tabular-nums;font-size:1.5rem}.hk-count--sum strong{color:var(--c-primary)}.hk-count--avg strong{color:var(--sim-avg)}.hk-judge{background:var(--c-surface-2);border-radius:999px;margin:.25rem 0 0;padding:.2rem 1rem;font-weight:700;display:inline-block}.hk-judge.is-match{background:var(--c-primary);color:var(--c-on-primary);font-size:1.125rem}@media (prefers-reduced-motion:no-preference){.hk-status.is-match .hk-judge{animation:.6s ease-out hk-cheer}}@keyframes hk-cheer{0%{transform:scale(.8)}50%{transform:scale(1.12)}to{transform:scale(1)}}.hk-controls{grid-template-columns:1fr 1.3fr;gap:.5rem;display:grid}.hk-controls .btn,.hk-play{padding-inline:.5rem;font-size:.9375rem}.hk-play{width:100%;margin-top:.5rem}heikin-sim.is-playing .hk-play{pointer-events:none;opacity:.6}.hk-legend{margin:.75rem 0 0;padding:0;font-size:.9375rem;line-height:2;list-style:none}.hk-legend .hk-note{color:var(--c-muted);display:block}.hk-legend .hk-insight{border-radius:var(--radius);background:var(--c-primary-soft);margin-top:.5rem;padding:.5rem .75rem;font-weight:700;display:block}.hk-bump{border:1px solid var(--c-border);border-radius:var(--radius);margin-top:.75rem;padding:.5rem .75rem}.hk-bump__title{color:var(--c-muted);margin:0 0 .25rem;font-size:.8125rem;font-weight:700}.hk-bump__btns{grid-template-columns:repeat(2,1fr);gap:.5rem;display:grid}.hk-bump__btns .btn{font-variant-numeric:tabular-nums}.hk-bump__note{color:var(--c-muted);margin:.5rem 0 0;font-size:.875rem;line-height:2}.hk-bump__note.is-insight{border-radius:var(--radius);background:var(--c-primary-soft);color:var(--c-text);padding:.5rem .75rem;font-weight:700}.hk-actions{flex-wrap:wrap;gap:.5rem;margin-top:1rem;display:flex}.hk-actions .btn{flex:auto}.hk-seg{grid-auto-columns:1fr;grid-auto-flow:column;gap:4px;margin-bottom:.75rem;display:grid}.hk-seg__btn{border:2px solid var(--c-border);border-radius:var(--radius);background:var(--c-surface);min-height:44px;color:var(--c-text);cursor:pointer;padding:.25rem;font-weight:700}.hk-seg__btn[aria-pressed=true]{border-color:var(--c-primary);background:var(--c-primary-soft);color:var(--c-primary)}.hk-chart{border-radius:var(--radius);background:var(--c-surface-2);margin:.75rem 0 0;padding:.5rem}.hk-chart figcaption{color:var(--c-muted);text-align:center;margin-top:.25rem;font-size:.8125rem;line-height:2}.hk-answer{flex-wrap:wrap;align-items:end;gap:.75rem;margin-top:.75rem;display:flex}.hk-answer__field{align-items:center;gap:.4rem;font-weight:700;display:flex}.hk-answer__field input{border:2px solid var(--c-border);background:var(--c-bg);width:6em;min-height:44px;color:var(--c-text);text-align:right;border-radius:8px;padding:0 .5rem;font-size:1.25rem}.hk-answer__field input:focus{border-color:var(--c-primary)}.hk-result-area:not(:empty){border-radius:var(--radius);background:var(--c-surface-2);margin-top:1rem;padding:.75rem 1rem}.hk-result-area p{margin:0;line-height:2}.hk-result{font-size:1.25rem;font-weight:800}.hk-result.is-correct{color:var(--c-success)}.hk-result.is-wrong{color:var(--c-danger)}.hk-score{color:var(--c-muted);margin:.75rem 0 0;font-size:.875rem}.hk-steps{counter-reset:hk-step;margin:1rem 0 0;padding:0;list-style:none}.hk-step{counter-increment:hk-step;border-radius:var(--radius);background:var(--c-surface-2);opacity:.75;margin-top:.5rem;padding:.5rem .75rem .5rem 2.75rem;position:relative}.hk-step.is-current{opacity:1;outline:2px solid var(--c-primary)}.hk-step:before{content:counter(hk-step);background:var(--c-primary);width:1.5rem;height:1.5rem;color:var(--c-on-primary);border-radius:50%;place-items:center;font-size:.875rem;font-weight:800;display:grid;position:absolute;top:.6rem;left:.75rem}.hk-step p{margin:0;line-height:2}.hk-step__title{font-weight:800}.hk-step__formula{font-variant-numeric:tabular-nums;color:var(--c-primary);overflow-wrap:anywhere;font-size:1.125rem;font-weight:700}.hk-stepnav{grid-template-columns:1fr auto 1fr;align-items:center;gap:.75rem;margin-top:1rem;display:grid}.hk-stepnav__count{font-variant-numeric:tabular-nums;font-weight:700}.hk-noscript{color:var(--c-danger);margin-top:.75rem}
