:root {
  color-scheme: light;
  --background: #ffffff;
  --text: #24282e;
  --muted: #69717d;
  --line: #e7e9ec;
  --orange: #f7931a;
  --yellow: #e5d000;
  --neutral: #ececec;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--background); color: var(--text); font-size: 14px; line-height: 1.5; }
a { color: inherit; text-underline-offset: 3px; }
button, input { font: inherit; }
button, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
h1, h2, p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: absolute; top: -80px; left: 20px; background: var(--text); color: white; padding: 10px 16px; z-index: 5; }
.skip-link:focus { top: 12px; }
.quiet-home { max-width: 1160px; margin-inline: auto; padding-inline: 24px; }
.quiet-home { padding-top: 42px; }
#history-updated-date { font-variant-numeric: tabular-nums; }
#history-introduction { max-width: 540px; margin-inline: auto; text-align: center; font-size: 20px; font-weight: 400; line-height: 1.5; letter-spacing: -.3px; }
#history-introduction strong { font-weight: 700; }
.history-legend { max-width: 580px; margin: 30px auto 32px; }
.history-legend-labels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; margin-bottom: 7px; font-size: 11px; font-variant-numeric: tabular-nums; }
.history-legend-labels > :last-child { text-align: right; }
.history-legend-coin { display: flex; align-items: center; gap: 7px; }
.history-legend-coin:last-child { justify-content: flex-end; }
.history-legend-coin img { flex: 0 0 28px; }
.history-legend-coin [data-legend-label]:empty { display: none; }
.history-legend-swatches { display: grid; grid-template-columns: repeat(9, 1fr); gap: 1px; height: 14px; }
.history-legend-swatches > [data-bin] { background: var(--bin-color); }
.history-legend-multiples { display: flex; justify-content: space-between; gap: 6px; margin-top: 6px; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted); }
[data-bin="-4"] { --bin-color: #f7931a; }
[data-bin="-3"] { --bin-color: #ffb55a; }
[data-bin="-2"] { --bin-color: #ffd49b; }
[data-bin="-1"] { --bin-color: #fff0da; }
[data-bin="0"] { --bin-color: #ececec; }
[data-bin="1"] { --bin-color: #fffce3; }
[data-bin="2"] { --bin-color: #fff6a1; }
[data-bin="3"] { --bin-color: #ffee5a; }
[data-bin="4"] { --bin-color: #e5d000; }
.history-legend-swatches [data-unavailable="true"] { background: #f4f5f6; }
.history-heatmap { overflow-x: auto; overflow-y: hidden; padding-block: 5px 13px; overscroll-behavior-x: contain; scroll-padding-left: 56px; scrollbar-width: thin; scrollbar-color: #bcc2ca transparent; }
.history-year, .history-months { display: grid; grid-template-columns: 48px repeat(366, 8px); column-gap: 1px; align-items: center; min-width: max-content; height: 24px; }
.history-month-label { color: #59616c; font-size: 12px; }
.history-year-label { position: sticky; left: 0; z-index: 2; align-self: stretch; display: flex; align-items: center; background: var(--background); color: #59616c; font-size: 12px; font-variant-numeric: tabular-nums; padding-right: 10px; }
.history-day { display: block; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 0; background: var(--bin-color, #f4f5f6); cursor: pointer; }
.history-day[data-kind="blank"], .history-day[data-kind="calendar-placeholder"] { background: transparent; cursor: default; }
.history-day[data-kind="missing"] { background: repeating-linear-gradient(135deg, #c2c8cf 0 1px, #f1f2f4 1px 3px); }
.history-day:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--text); outline-offset: 1px; }
.history-winner-marker { position: fixed; z-index: 9; width: 20px; height: 20px; transform: translate(-50%, -50%); pointer-events: none; }
.history-winner-marker[hidden], .history-winner-marker img { display: none; }
.history-winner-marker[data-winner="btc"] img[data-coin="btc"], .history-winner-marker[data-winner="zec"] img[data-coin="zec"] { display: block; }
.history-tooltip { position: fixed; z-index: 10; width: max-content; max-width: min(300px, calc(100vw - 24px)); padding: 13px 15px; border: 1px solid #dce0e5; border-radius: 4px; background: #fff; box-shadow: 0 4px 18px #24282e16; font-size: 14px; color: var(--muted); }
.history-tooltip[hidden] { display: none; }
.history-tooltip-prices, .history-price-note { color: #757575; font-size: 11px; }
.history-tooltip-prices { margin-top: 10px; margin-bottom: 0; padding-top: 8px; border-top: 1px solid var(--line); line-height: 1.8; }
.history-tooltip-prices img { width: 13px; height: 13px; vertical-align: -2px; }
.history-outcome { font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; }
.history-outcome-worse { color: #ad574b; }
.history-outcome-better { color: #16803c; }
.history-price-note { padding-block: 22px 12px; line-height: 1.8; }
.history-footer-meta { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 20px; }
#history-data-details { margin-left: auto; text-align: right; }
.history-price-note .history-stale { color: var(--text); }
.history-no-script { padding-block: 12px; color: var(--muted); font-size: 12px; }
.history-unavailable { padding-block: 58px 66px; max-width: 560px; margin-inline: auto; }
.history-unavailable h2 { font-size: 17px; font-weight: 500; }
.history-unavailable p { color: var(--muted); margin-top: 10px; font-size: 13px; line-height: 1.7; }
.history-save-bar { text-align: center; margin-bottom: 14px; }
.history-save-bar button { padding: 3px 12px; border: 1px solid var(--line); border-radius: 20px; background: white; color: var(--muted); font-size: 12px; cursor: pointer; }
.history-save-bar button:disabled { opacity: .5; cursor: default; }
.history-tooltip-editing { position: absolute; width: 300px; }
.history-tooltip fieldset { margin: 10px 0 0; padding: 0; border: 0; min-width: 0; }
.saved-field { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; align-items: center; margin-block: 10px; }
.saved-field input { width: 100%; min-width: 0; padding: 6px 8px; border: 1px solid #dce0e5; border-radius: 4px; background: white; color: var(--text); }
.saved-form-actions { display: flex; gap: 8px; margin-top: 14px; }
.saved-form-actions button, .saved-form-actions input { padding: 5px 13px; border: 1px solid #dce0e5; border-radius: 4px; color: var(--muted); background: white; cursor: pointer; }
.saved-form-actions input { color: white; background: #414b59; border-color: #414b59; }
.saved-form-note { font-size: 11px; margin-top: 12px; }
#saved-form-errors { color: #ad574b; font-size: 12px; }
.history-day[data-saved] { position: relative; }
.history-day[data-saved]::after { content: ""; position: absolute; inset: -4px -3px; border: 1px solid #69717d; border-radius: 50%; pointer-events: none; }
.history-year-label[data-saved], .history-month-label[data-saved] { text-decoration: underline; text-underline-offset: 4px; }
.saved-total { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.saved-total img { flex: 0 0 18px; }
.text-button { border: 0; padding: 0; background: none; color: inherit; text-decoration: underline; cursor: pointer; }
.data-details { max-width: 680px; padding-bottom: 42px; color: var(--muted); }
.data-details h1 { font-size: 20px; color: var(--text); }
.data-details p { margin-top: 18px; }
@media (max-width: 700px) {
  .quiet-home { padding-inline: 16px; }
  .quiet-home { padding-top: 28px; }
  #history-introduction { font-size: 18px; }
  .history-legend { margin-block: 24px 26px; }
  .history-legend-labels { font-size: 10px; gap: 4px; }
  .history-legend-multiples { font-size: 10px; gap: 4px; }
}
