/* 과거정보 전용 스타일: 모바일 한 열 → 3개 구역 → 하위 품종. 기존 두 탭에는 적용하지 않는다. */
#history-screen{max-width:680px}.app-tabs a{font-size:13px}
.history-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}.history-toolbar select{font-size:16px}.history-toolbar button{font-size:12px}
#history-status,#history-period{font-size:12px;color:#50665a;overflow-wrap:anywhere}
.history-group{background:white;border:1px solid var(--line);border-radius:12px;margin:14px 0;overflow:hidden}
.history-group h2{font-size:16px;margin:14px 12px 0}.history-scope{font-size:11px;color:#63716a;margin:3px 12px 10px}
.history-entry{border-top:1px solid var(--line);padding:8px 12px}.history-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,46%);gap:8px;align-items:center}
.history-name{border:0;background:transparent;text-align:left;padding:4px 0;font-size:13px;overflow-wrap:anywhere;font-weight:600;display:flex;align-items:center;gap:5px}
.history-arrow{font-size:11px;flex-shrink:0}.history-spark{border:0;border-radius:0;padding:0;background:transparent;width:100%;touch-action:pan-y;min-width:0}
.history-spark svg{display:block;width:100%;height:84px;overflow:visible}.history-endpoint{font:12px sans-serif;fill:#20382c;font-variant-numeric:tabular-nums}.history-year{font:11px sans-serif;fill:#617367}
.history-detail{background:#edf5ee;padding:10px;border-radius:8px;margin:4px 0 8px;font-size:12px;overflow-wrap:anywhere}.history-metrics{display:flex;justify-content:space-between;gap:5px;flex-wrap:wrap;font-size:13px;margin-top:5px;font-variant-numeric:tabular-nums}.history-period{font-size:11px;color:#617367;margin-top:4px}.history-detail input{width:100%;min-height:32px;accent-color:#287749}
.history-children{border-left:2px solid #dfe7e1;margin:7px 0 0 2px;padding-left:8px}.history-child{border-top:1px solid #eef2ee;padding:5px 0}.history-child .history-name{font-size:12px;font-weight:400}
.history-more{display:block;font-size:12px;min-height:44px;margin:8px auto;border:0;background:transparent}.history-footnote{font-size:11px;color:#63716a}
@media(max-width:350px){.history-entry{padding:8px}.history-row{grid-template-columns:minmax(0,1fr) 130px;gap:4px}.app-tabs a{font-size:12px}.history-name{font-size:12px}}

/* 펼칠 수 있는 글씨에만 링크 형태를 적용한다. 동작은 키보드 접근 가능한 버튼으로 유지한다. */
#history-screen button.history-name,#history-screen .history-section-toggle,#history-screen .history-more{color:#1260c8;text-decoration:underline;text-underline-offset:3px}
.history-section-toggle{border:0;background:transparent;padding:0;text-align:left;font:inherit;font-weight:700;width:100%;min-height:44px}

/* 과거정보 영역도 탭과 같은 황토색 계열로 이어진다. 선과 막대는 형태/범례로 구분한다. */
#history-screen .history-group{background:var(--section-paper);border-color:var(--section-edge)}
#history-screen .history-detail{background:var(--section-tint)}
#history-screen .history-detail input{accent-color:var(--section-ink)}
.history-volume-bar{fill:#dfb773}
.history-volume-bar.is-selected{fill:#a66a1d}
.history-selected-volume{font:11px sans-serif;fill:#70430f}
.history-spark svg{height:130px}

/* 평균 비교값은 적색 기준선과 같은 색으로 구분한다. */
.history-reference-value{color:#c62828}
