.steep-explorer {
    --explorer-line: color-mix(in srgb, var(--ink) 18%, var(--page-bg));
    --explorer-soft: color-mix(in srgb, var(--ink) 4%, var(--page-bg));
    --explorer-accent: #9a582e;
    margin-top: 64px;
    padding-top: 38px;
    border-top: 1px solid var(--explorer-line);
    text-align: left;
    line-height: 1.55;
}

.steep-explorer .explorer-intro { text-align: center; margin-bottom: 30px; }
.steep-explorer .eyebrow { color: var(--muted); font-size: 0.8rem; }
.steep-explorer h2 { margin: 10px 0 14px; font-size: clamp(1.7rem, 4vw, 2.2rem); font-weight: 400; line-height: 1.2; }
.steep-explorer .explorer-intro p { max-width: 490px; margin: auto; color: var(--muted); }
.steep-explorer h3 { margin: 0; font-size: 1.2rem; font-weight: 400; }
.steep-explorer .panel { border: 1px solid var(--explorer-line); border-radius: 10px; overflow: hidden; }
.steep-explorer .controls { display: flex; flex-wrap: wrap; gap: 16px; padding: 20px; border-bottom: 1px solid var(--explorer-line); }
.steep-explorer label { flex: 1 1 150px; font-size: 0.85rem; }
.steep-explorer input, .steep-explorer button { font: inherit; color: var(--ink); background: var(--page-bg); border: 1px solid var(--explorer-line); border-radius: 4px; }
.steep-explorer input { width: 100%; min-width: 0; margin-top: 6px; padding: 8px; font-variant-numeric: tabular-nums; }
.steep-explorer button { padding: 8px 12px; cursor: pointer; font-size: 0.85rem; }
.steep-explorer button:hover { background: var(--explorer-soft); }
.steep-explorer :is(input, button, summary):focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.steep-explorer input[aria-invalid="true"] { border-color: var(--explorer-accent); }
.steep-explorer .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.steep-explorer #error { width: 100%; margin: 0; font-size: 0.85rem; color: var(--explorer-accent); }
.steep-explorer #error:empty { display: none; }
.steep-explorer .chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 18px 20px 0; font-size: 0.8rem; color: var(--muted); }
.steep-explorer .legend { display: flex; gap: 16px; }
.steep-explorer .legend span::before { content: ''; display: inline-block; width: 18px; border-top: 2px dashed var(--muted); margin: 0 6px 3px 0; }
.steep-explorer .legend span:last-child::before { border-top: 3px solid var(--ink); }
.steep-explorer .chart-wrap { overflow-x: auto; padding: 0 8px; }
.steep-explorer svg { display: block; width: 100%; min-width: 460px; height: auto; }
.steep-explorer svg text { font: 14px Georgia, serif; fill: var(--muted); }
.steep-explorer .dot { cursor: pointer; }
.steep-explorer .dot:hover, .steep-explorer .dot:focus { stroke: var(--explorer-accent); stroke-width: 4; outline: none; }
.steep-explorer #status { margin: 8px 20px 18px; color: var(--muted); font-size: 0.8rem; }
.steep-explorer .schedule { border-top: 1px solid var(--explorer-line); padding: 18px 20px; }
.steep-explorer .hint { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 4px; }
.steep-explorer .table-wrap { max-height: 280px; overflow: auto; margin-top: 14px; }
.steep-explorer table { width: 100%; border-collapse: collapse; text-align: right; font-size: 0.85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.steep-explorer th, .steep-explorer td { padding: 8px; border-bottom: 1px solid var(--explorer-line); }
.steep-explorer th { position: sticky; top: 0; z-index: 1; background: var(--page-bg); color: var(--muted); font-size: 0.75rem; font-weight: 400; }
.steep-explorer th:first-child, .steep-explorer td:first-child { text-align: left; }
.steep-explorer td input { width: 85px; padding: 5px; margin: 0; }
.steep-explorer td button { padding: 4px 8px; font-size: 1rem; }
.steep-explorer .overridden td:first-child { color: var(--explorer-accent); font-weight: 700; }
.steep-explorer .below { display: grid; gap: 30px; max-width: 560px; margin: 38px auto 0; }
.steep-explorer .note h3 { margin-top: 6px; font-size: 1.45rem; }
.steep-explorer .note p { margin: 12px 0; color: var(--muted); }
.steep-explorer .formula { overflow-x: auto; padding: 14px 16px; margin: 18px 0; background: var(--explorer-soft); border-radius: 4px; font-size: 1.1rem; }
.steep-explorer .formula small { font-size: 0.8rem; color: var(--muted); }
.steep-explorer details { margin-top: 14px; }
.steep-explorer summary { cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }
.steep-explorer .caveat { max-width: 560px; margin: 30px auto 0; padding-left: 18px; border-left: 2px solid var(--explorer-line); font-size: 0.9rem; color: var(--muted); }
.steep-explorer .caveat strong { color: var(--ink); }
.steep-explorer footer { margin-top: 22px; text-align: center; font-size: 0.8rem; color: var(--muted); }

@media (prefers-color-scheme: dark) {
    .steep-explorer { --explorer-accent: #dfaa79; }
}

@media (max-width: 640px) {
    .steep-explorer { margin-top: 44px; padding-top: 30px; }
    .steep-explorer .controls, .steep-explorer .schedule { padding: 16px 12px; }
    .steep-explorer .chart-head { margin-inline: 12px; }
    .steep-explorer #status { margin-inline: 12px; }
    .steep-explorer .formula { font-size: 1rem; padding: 12px; }
}
