narabekata-sim{--sim-accent-ink:#ad5500;display:block}@media (prefers-color-scheme:dark){narabekata-sim{--sim-accent-ink:var(--c-accent)}}.nb-tree{width:100%;max-width:480px;height:auto;margin-inline:auto;display:block}.nb-tree text{font-weight:700}.nb-tree .nb-head,.nb-tree .nb-node,.nb-tree .nb-more{fill:var(--c-text)}.nb-tree .nb-seq{fill:var(--c-text);font-weight:400}.nb-tree .nb-seq.is-new{fill:var(--sim-accent-ink);font-weight:700}.nb-tree .nb-branch{stroke:var(--c-primary)}.nb-tree .nb-root{fill:var(--c-text)}.nb-tree .nb-g,.nb-tree .nb-g--col{pointer-events:none}.nb-tree .is-hl .nb-branch{stroke-width:3.5px}.nb-tree .is-hl .nb-node,.nb-tree .is-hl .nb-head{fill:var(--sim-accent-ink)}.nb-tree .is-dim .nb-branch{stroke-width:1px}@media (prefers-color-scheme:light){.nb-tree .is-dim .nb-node,.nb-tree .is-dim .nb-head{fill:var(--c-muted)}}@media (prefers-color-scheme:dark){.nb-tree .is-dim .nb-node,.nb-tree .is-dim .nb-head{opacity:.85}}.nb rt{font-size:.5em}.nb-tabs{border-radius:var(--radius);background:var(--c-border);grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;display:grid}.nb-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}.nb-tabs [role=tab][aria-selected=true]{background:var(--c-surface);color:var(--c-primary);box-shadow:0 1px 2px #00000026}.nb-panel{border:1px solid var(--c-border);border-radius:var(--radius);background:var(--c-surface);margin-top:.75rem;padding:1rem}.nb-panel>:first-child{margin-top:0}.nb-problem{margin:0 0 .25rem;font-size:1.0625rem;font-weight:700;line-height:2}.nb-mission{margin:0 0 .75rem;line-height:2}.nb-scene{font-weight:700;display:block}.nb-goal{color:var(--c-muted);display:block}.nb-chart{border-radius:var(--radius);background:var(--c-surface-2);margin:.75rem 0 0;padding:.5rem}.nb-notree{text-align:center;margin:0;padding:.5rem;line-height:2}.nb-status{text-align:center;margin-block:.75rem .25rem}.nb-count{font-variant-numeric:tabular-nums;margin:0}.nb-count strong{color:var(--c-primary);font-size:1.5rem}.nb-event-area{margin-bottom:.75rem}.nb-event{border-radius:var(--radius);background:var(--c-surface-2);margin:0;padding:.4rem .75rem;line-height:2}.nb-event.is-step{background:var(--c-primary-soft);font-weight:700}.nb-event.is-done{background:var(--c-primary);color:var(--c-on-primary);font-weight:700}@media (prefers-reduced-motion:no-preference){.nb-event.is-done{animation:.6s ease-out nb-cheer}}@keyframes nb-cheer{0%{transform:scale(.96)}50%{transform:scale(1.03)}to{transform:scale(1)}}.nb-event-area .nb-formula{font-variant-numeric:tabular-nums;color:var(--c-primary);text-align:center;margin:.25rem 0 0;font-size:1.125rem;font-weight:700}.nb-controls{grid-template-columns:1fr 1.3fr;gap:.5rem;display:grid}.nb-controls .btn{padding-inline:.5rem;font-size:.9375rem}.nb-actions{flex-wrap:wrap;gap:.5rem;margin-top:1rem;display:flex}.nb-actions .btn{flex:auto}.nb-seg{grid-auto-columns:1fr;grid-auto-flow:column;gap:4px;margin-bottom:1rem;display:grid}.nb-seg.nb-seg--3col{grid-template-columns:repeat(3,1fr);grid-auto-flow:row}.nb-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}.nb-seg__btn[aria-pressed=true]{border-color:var(--c-primary);background:var(--c-primary-soft);color:var(--c-primary)}.nb-answer{flex-wrap:wrap;align-items:end;gap:.75rem;margin-top:.75rem;display:flex}.nb-answer__field{white-space:nowrap;align-items:center;gap:.4rem;font-weight:700;display:flex}.nb-answer__name{flex:none}.nb-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}.nb-answer__field input:focus{border-color:var(--c-primary)}.nb-result-area:not(:empty){border-radius:var(--radius);background:var(--c-surface-2);margin-top:1rem;padding:.75rem 1rem}.nb-result-area p{margin:0;line-height:2}.nb-result{font-size:1.25rem;font-weight:800}.nb-result.is-correct{color:var(--c-success)}.nb-result.is-wrong{color:var(--c-danger)}.nb-result.is-info{color:var(--c-text)}.nb-result-area .nb-check,.nb-result-area .nb-hint{margin-top:.25rem}.nb-result-area .nb-check{font-variant-numeric:tabular-nums;font-weight:700}.nb-score{color:var(--c-muted);margin:.75rem 0 0;font-size:.875rem}.nb-steps{counter-reset:nb-step;margin:1rem 0 0;padding:0;list-style:none}.nb-step{counter-increment:nb-step;border-radius:var(--radius);background:var(--c-surface-2);opacity:.75;margin-top:.5rem;padding:.5rem .75rem .5rem 2.75rem;position:relative}.nb-step.is-current{opacity:1;outline:2px solid var(--c-primary)}.nb-step:before{content:counter(nb-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}.nb-step p{margin:0;line-height:2}.nb-step__title{font-weight:800}.nb-step__text{font-size:.9375rem}.nb-step__note{color:var(--sim-accent-ink);font-weight:800}.nb-step__formula{font-variant-numeric:tabular-nums;color:var(--c-primary);overflow-wrap:anywhere;font-size:1.125rem;font-weight:700}.nb-stepnav{grid-template-columns:1fr auto 1fr;align-items:center;gap:.75rem;margin-top:1rem;display:grid}.nb-stepnav__count{font-variant-numeric:tabular-nums;font-weight:700}.nb-noscript{color:var(--c-danger);margin-top:.75rem}
