/* KRYPTA v0.11 — premium historical USD charts, dark/light and mobile */
.krypta-history-section{margin:36px 0 52px}
.krypta-history-heading .eyebrow{margin-bottom:7px}
.krypta-history-badge{font-size:.76rem;font-weight:760;letter-spacing:.035em;background:var(--paper);border:1px solid var(--line);border-radius:100px;padding:9px 14px;white-space:nowrap;color:var(--muted)}
.krypta-history-card{padding:clamp(19px,3vw,34px);border:1px solid var(--line);background:var(--paper);border-radius:22px;box-shadow:var(--soft-shadow)}
.krypta-history-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap}
.krypta-history-values{display:flex;align-items:start;flex-direction:column;gap:8px}
.krypta-history-overline{font-size:.72rem;font-weight:750;letter-spacing:.11em;text-transform:uppercase;color:var(--muted)}
.krypta-history-values strong{font-size:clamp(1.05rem,2.4vw,1.55rem);line-height:1.25;font-variant-numeric:tabular-nums;letter-spacing:-.027em;color:var(--text);overflow-wrap:anywhere}
.krypta-history-values>span:last-child{display:flex;gap:7px;align-items:baseline;font-size:.98rem;font-weight:820}
.krypta-history-values small{font-size:.72rem;font-weight:550;color:var(--muted)}
.history-positive{color:#238547}.history-negative{color:#bf4350}
html[data-theme="dark"] .history-positive{color:#93edaa}
html[data-theme="dark"] .history-negative{color:#ff929b}
.krypta-history-tabs{display:inline-flex;align-items:center;gap:4px;padding:5px;background:var(--bg);border-radius:13px;border:1px solid var(--line)}
.krypta-history-tabs button{appearance:none;border:0;background:transparent;color:var(--muted);font-weight:840;padding:10px 16px;border-radius:9px;cursor:pointer;font-size:.8rem;min-height:41px;transition:background .17s ease,color .17s ease}
.krypta-history-tabs button:hover{color:var(--text)}
.krypta-history-tabs button[aria-pressed="true"]{background:#baff65;color:#183026;box-shadow:0 4px 9px #102a1b1f}
.krypta-history-graph{color:#438960;outline-offset:4px;cursor:crosshair;margin:20px 0 0;touch-action:pan-y;border-radius:12px}
.krypta-history-graph svg{display:block;width:100%;height:auto;max-height:340px;overflow:visible}
.krypta-history-axis{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:11px;fill:var(--muted);font-weight:550;letter-spacing:-.02em}
html[data-theme="dark"] .krypta-history-graph{color:#b9ff66}
.krypta-history-range{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:.75rem;gap:12px;padding:11px 4px 17px}
.krypta-history-footer{border-top:1px solid var(--line);padding-top:18px;display:flex;align-items:baseline;gap:10px 24px;justify-content:space-between;flex-wrap:wrap;color:var(--muted);font-size:.75rem;line-height:1.5}
.krypta-history-footer a{color:var(--muted);font-weight:700;text-decoration:underline}
.krypta-history-footer a:hover{color:var(--text)}
.krypta-history-disclaimer{font-size:.72rem;line-height:1.7;color:var(--muted);margin:16px 0 0}
.krypta-history-empty{border:1px solid var(--line);background:var(--paper);border-radius:18px;padding:23px 28px;color:var(--text)}
.krypta-history-empty strong{font-size:1.1rem}
.krypta-history-empty p{color:var(--muted);font-size:.87rem;line-height:1.65;max-width:600px;margin:9px 0 0}
@media(max-width:600px){.krypta-history-toolbar{flex-direction:column;gap:18px}.krypta-history-tabs{width:100%;justify-content:space-between}.krypta-history-tabs button{flex:1}.krypta-history-values strong{font-size:1.06rem}.krypta-history-graph{margin-top:12px}.krypta-history-badge{font-size:.7rem}}
@media(prefers-reduced-motion:reduce){.krypta-history-tabs button{transition:none}}
