* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
.kr-container { max-width: 1600px; margin: 0 auto; }
.kr-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 16px; }
.kr-heading h1 { margin: 0 0 8px; font-size: 26px; letter-spacing: -0.7px; }
.kr-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.kr-frequency { color: var(--accent); font-size: 12px; white-space: nowrap; }
.kr-notice { margin: 0 0 14px; line-height: 1.7; color: var(--muted); }
.kr-notice[data-state="error"] { color: var(--danger); }
.kr-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.kr-jump a { padding: 7px 10px; background: var(--surface); color: var(--muted); border: 1px solid var(--border); border-radius: 6px; text-decoration: none; font-size: 12px; }
.kr-jump a:hover { color: var(--accent); border-color: var(--accent); }
.kr-panel { scroll-margin-top: 100px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); padding: 18px 20px 14px; margin-bottom: 18px; min-width: 0; }
.kr-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.kr-panel h2 { font-size: 17px; margin: 0 0 7px; letter-spacing: -0.3px; }
.kr-description { color: var(--muted); margin: 0; font-size: 12px; line-height: 1.6; }
.kr-controls { display: flex; gap: 4px; flex-wrap: wrap; flex: 0 0 auto; }
.kr-button { font: inherit; font-size: 12px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); background: var(--surface); cursor: pointer; min-height: 30px; }
.kr-button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.kr-button:hover:not(:disabled) { border-color: var(--accent); }
.kr-button:disabled { opacity: 0.45; cursor: default; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.kr-readout { color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums; min-height: 24px; margin-bottom: 4px; }
.kr-plot-wrap { position: relative; }
.kr-chart { height: 350px; width: 100%; }
.kr-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); background: var(--surface); line-height: 1.7; }
.kr-empty[hidden] { display: none; }
.kr-chart-meta { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 10px 0; }
.kr-table-details { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 10px; }
.kr-table-details summary { cursor: pointer; color: var(--muted); font-size: 12px; padding: 3px 0; }
.kr-table-wrap { max-height: 330px; overflow: auto; margin-top: 12px; }
.kr-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 12px; }
.kr-table th, .kr-table td { border-bottom: 1px solid var(--border); padding: 9px 12px; text-align: right; white-space: nowrap; }
.kr-table th:first-child, .kr-table td:first-child { text-align: left; }
.kr-table th { position: sticky; top: 0; z-index: 1; background: var(--surface-muted); color: var(--muted); font-weight: 600; }
.kr-table-pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 10px; font-size: 12px; color: var(--muted); }
.kr-footer { margin: 22px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.kr-footer p { margin: 5px 0; }
.kr-footer a { color: var(--accent); }
@media (max-width: 720px) {
    .kr-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .kr-heading h1 { font-size: 23px; }
    .kr-panel { padding: 14px 10px 12px; }
    .kr-panel-head { flex-direction: column; gap: 10px; }
    .kr-chart { height: 280px; }
    .kr-controls { width: 100%; }
    .kr-controls .kr-button { flex: 1; }
    .kr-readout { font-size: 12px; line-height: 1.7; min-height: 30px; }
    .kr-table th, .kr-table td { padding: 9px 7px; }
}
