:root{--bg:#0b0d10;--card:#13161b;--line:#22262d;--text:#eef0f3;--muted:#8b93a1;--accent:#f7931a;--accent-soft:rgba(247,147,26,.12);--sans:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;--mono:ui-monospace,"SF Mono",SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--bg);color:var(--text);font-family:var(--sans);-webkit-font-smoothing:antialiased}
body{min-height:100vh;background:radial-gradient(1200px 500px at 50% -200px,rgba(247,147,26,.10),transparent 70%)}
a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}
.mono{font-family:var(--mono);font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.wrap{max-width:880px;margin:0 auto;padding:20px 18px calc(32px + env(safe-area-inset-bottom))}
.top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:28px}
.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:17px;white-space:nowrap}
.dot{width:12px;height:12px;border-radius:50%;background:var(--accent);box-shadow:0 0 12px var(--accent)}
.controls{display:flex;gap:8px;align-items:center}
.seg{display:flex;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:3px}
.seg button{background:none;border:0;color:var(--muted);font:600 13px var(--sans);padding:7px 11px;border-radius:7px;cursor:pointer;white-space:nowrap}
.seg button.on{background:var(--accent-soft);color:var(--accent)}
select{appearance:none;-webkit-appearance:none;background:var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238b93a1' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 11px center;border:1px solid var(--line);color:var(--text);font:600 13px var(--sans);padding:9px 30px 9px 12px;border-radius:10px;cursor:pointer;white-space:nowrap}
.hero{text-align:center;padding:28px 0 34px}
.eyebrow{color:var(--accent);font-weight:600;font-size:13px;text-transform:uppercase;letter-spacing:.12em;white-space:nowrap}
.big{font-size:clamp(48px,13vw,104px);font-weight:700;line-height:1.05;margin:12px 0 4px;white-space:nowrap}
.unit{color:var(--muted);font-size:17px;white-space:nowrap}
.sub{color:var(--muted);font-size:15px;line-height:1.5;margin-top:14px}
.hero .sub{max-width:460px;margin-left:auto;margin-right:auto}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:18px;min-width:0}
.card.accent{border-color:rgba(247,147,26,.45);background:linear-gradient(180deg,var(--accent-soft),var(--card))}
.label{color:var(--muted);font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.value{font-size:clamp(22px,4.6vw,32px);font-weight:700;margin:8px 0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card.accent .value{color:var(--accent)}
.note{color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.panel{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:18px;margin-top:12px}
.row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:6px 0}
.small{font-size:15px;white-space:nowrap}
#buy{padding:22px 18px}
.buy-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
h2{font-size:20px;white-space:nowrap}
h3{font-size:13px;color:var(--muted);text-transform:uppercase;letter-spacing:.1em;margin:22px 0 10px;white-space:nowrap}
#buy-intro{margin:8px 0 14px}
.buy-list{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.buy-list a{display:flex;flex-direction:column;gap:4px;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:#0f1216;color:var(--text);min-width:0;transition:border-color .15s}
.buy-list a:hover{border-color:var(--accent);text-decoration:none}
.buy-name{font-weight:700;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.buy-name::after{content:" ↗";color:var(--accent);font-weight:400}
.buy-desc{color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fine{color:var(--muted);font-size:12px;line-height:1.5;margin-top:16px}
#history{padding:20px 18px 18px}
.hist-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.hist-title{min-width:0}
.hist-title .note{margin-top:4px}
.chart{position:relative;margin-top:14px;transition:opacity .2s}
.chart.loading{opacity:.5}
#chart-svg{display:block;width:100%;height:260px;outline:none;touch-action:pan-y}
#chart-svg:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:6px}
#chart-svg .grid line{stroke:#22262d;stroke-width:1}
#chart-svg .tick{fill:#8b93a1;font:12px var(--mono)}
#chart-svg .line{fill:none;stroke:#f7931a;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
#chart-svg .today{fill:#f7931a;stroke:#13161b;stroke-width:2}
#chart-svg .cross{stroke:#8b93a1;stroke-width:1;stroke-dasharray:3 3}
#chart-svg .cross-dot{fill:#f7931a;stroke:#13161b;stroke-width:2}
.chart-status{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:14px;pointer-events:none}
.chart-status:empty{display:none}
.tip{position:absolute;pointer-events:none;background:#0b0d10;border:1px solid var(--line);border-radius:10px;padding:9px 11px;box-shadow:0 6px 20px rgba(0,0,0,.4);white-space:nowrap}
.tip-cost{font-size:17px;font-weight:700;color:var(--text)}
.tip-line{color:var(--muted);font-size:12px;margin-top:2px}
.hist-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.hist-stats>div{min-width:0}
.stat{font-size:18px;font-weight:700;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hist-table{margin-top:14px}
.hist-table summary{cursor:pointer;color:var(--muted);font-size:13px;font-weight:600}
.hist-table summary:hover{color:var(--text)}
.table-wrap{overflow-x:auto;margin-top:10px}
.hist-table table{width:100%;border-collapse:collapse;font-size:13px}
.hist-table th{color:var(--muted);font-weight:600;text-align:right;padding:6px 8px;border-bottom:1px solid var(--line);white-space:nowrap}
.hist-table td{font-family:var(--mono);font-variant-numeric:tabular-nums;text-align:right;padding:6px 8px;border-bottom:1px solid #1a1d22;white-space:nowrap}
.hist-table th:first-child,.hist-table td:first-child{text-align:left}
@media (max-width:560px){#chart-svg{height:220px}.hist-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.hist-head{flex-wrap:wrap}}
.foot{color:var(--muted);font-size:12px;line-height:1.6;margin-top:24px;text-align:center}
.foot p+p{margin-top:6px}
@media (max-width:560px){.top{flex-wrap:wrap}.grid,.buy-list{grid-template-columns:1fr}.hero{padding:16px 0 26px}.buy-head{flex-wrap:wrap}}