/* Design tokens follow the shadcn/ui neutral zinc design language (MIT). */
:root{color-scheme:light;--background:#fff;--foreground:#09090b;--card:#fff;--muted:#f4f4f5;--muted-foreground:#71717a;--border:#e4e4e7;--primary:#18181b;--primary-foreground:#fafafa;--radius:12px;--green:#15803d;--red:#dc2626;--shadow:0 1px 2px #0000000a} .dark{color-scheme:dark;--background:#09090b;--foreground:#fafafa;--card:#09090b;--muted:#18181b;--muted-foreground:#a1a1aa;--border:#27272a;--primary:#fafafa;--primary-foreground:#18181b;--green:#4ade80;--red:#f87171;--shadow:0 1px 2px #00000030}*{box-sizing:border-box}body{margin:0;background:var(--background);color:var(--foreground);font:16px/1.5 ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:inherit}button,input,select{font:inherit;color:inherit}button,a.button{cursor:pointer}header{height:64px;border-bottom:1px solid var(--border);display:flex;align-items:center}.bar{width:min(1100px,calc(100% - 40px));margin:auto;display:flex;align-items:center;gap:18px}.brand{font-weight:700;text-decoration:none;margin-right:auto;display:flex;gap:10px;align-items:center}.brand-mark{background:var(--primary);color:var(--primary-foreground);height:30px;width:30px;border-radius:9px;display:grid;place-items:center;font-size:15px}.navlink{text-decoration:none;color:var(--muted-foreground);font-size:14px}.icon-btn,.btn{border:1px solid var(--border);background:var(--card);border-radius:9px;padding:9px 13px;min-height:42px}.wrap{width:min(1100px,calc(100% - 40px));margin:0 auto}.hero{padding:48px 0 30px}.hero h1{font-size:clamp(32px,5vw,44px);letter-spacing:-.04em;line-height:1.1;margin:0 0 12px}.hero p{margin:0;color:var(--muted-foreground)}.tool-layout{display:grid;grid-template-columns:minmax(0, .92fr) minmax(0,1.08fr);gap:22px;align-items:start}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow)}.card h2{font-size:16px;margin:0 0 18px}.field{display:grid;gap:7px;margin:0 0 15px}.field label,.label{font-size:13px;font-weight:550;color:var(--muted-foreground)}.field input,.field select,.field textarea{width:100%;min-height:44px;border:1px solid var(--border);border-radius:9px;background:var(--background);padding:9px 11px;outline:none}.field input:focus,.field select:focus{border-color:#a1a1aa;box-shadow:0 0 0 3px #71717a20}.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.segmented{display:flex;background:var(--muted);padding:4px;border-radius:10px;gap:4px}.segmented button{flex:1;min-height:38px;border:0;border-radius:7px;background:transparent;color:var(--muted-foreground)}.segmented button.active{background:var(--card);color:var(--foreground);box-shadow:var(--shadow)}.results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.result{border:1px solid var(--border);border-radius:var(--radius);padding:20px;min-height:114px;background:var(--card)}.result.primary{grid-column:span 2;min-height:150px;background:var(--muted);display:flex;flex-direction:column;justify-content:center}.result .value{font-size:clamp(25px,4vw,34px);font-weight:700;letter-spacing:-.04em;line-height:1.2;overflow-wrap:anywhere}.result.primary .value{font-size:clamp(36px,6vw,50px)}.result .name{font-size:13px;color:var(--muted-foreground);margin-top:7px}.positive{color:var(--green)}.negative{color:var(--red)}.note{color:var(--muted-foreground);font-size:13px}.below{margin:24px 0 48px}.below details{border-top:1px solid var(--border);padding:16px 0}.below summary{cursor:pointer;font-weight:600}.below p{color:var(--muted-foreground);max-width:78ch}.home-hero{padding:64px 0 30px}.home-hero h1{font-size:42px;letter-spacing:-.04em;margin:0 0 8px}.group{margin:28px 0 38px}.group h2{font-size:18px;margin:0 0 14px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.tool-card{border:1px solid var(--border);border-radius:var(--radius);padding:19px;text-decoration:none;min-height:130px;transition:border-color .15s,transform .15s}.tool-card:hover{border-color:#a1a1aa;transform:translateY(-2px)}.tool-icon{font-size:21px;margin-bottom:10px}.tool-card strong{display:block;font-size:16px}.tool-card span{font-size:13px;color:var(--muted-foreground)}footer{border-top:1px solid var(--border);padding:18px 0;color:var(--muted-foreground);font-size:12px}footer .bar{justify-content:space-between}table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}th,td{text-align:right;padding:10px 8px;border-bottom:1px solid var(--border);white-space:nowrap}th:first-child,td:first-child{text-align:left}th{font-size:12px;color:var(--muted-foreground);cursor:pointer}td{font-size:13px}.table-wrap{overflow:auto}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--primary);color:var(--primary-foreground);padding:10px 16px;border-radius:9px;opacity:0;pointer-events:none;transition:opacity .2s}.toast.show{opacity:1}.gauge{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:210px}.gauge svg{width:260px;max-width:100%}.chart{width:100%;height:180px}.chips{display:flex;gap:7px;flex-wrap:wrap}.chip{border:1px solid var(--border);border-radius:99px;padding:7px 11px;background:var(--background);font-size:13px}.warn{padding:10px 12px;background:#fef2f2;color:#991b1b;border-radius:8px;font-size:13px}.dark .warn{background:#3f1515;color:#fecaca}@media(max-width:760px){.wrap,.bar{width:calc(100% - 32px)}.hero{padding:32px 0 22px}.tool-layout{grid-template-columns:1fr;gap:14px}.card{padding:17px}.results{gap:9px}.result{padding:15px;min-height:102px}.result.primary{min-height:132px}.grid{grid-template-columns:repeat(2,1fr);gap:10px}.tool-card{padding:15px;min-height:132px}.home-hero{padding:42px 0 20px}.home-hero h1{font-size:34px}.below{margin-bottom:34px}footer .bar{display:block}header{height:60px}}

/* Shared segmented controls, sticky calculator results and narrow data tables. */
.segmented{flex-wrap:wrap;min-width:0}.segmented button{flex:1 1 0;min-width:0;padding:0 8px;white-space:normal}.tool-layout{align-items:start}.tool-layout>*{min-width:0}.card,.field,.row,.results,.result-column{min-width:0}.field input,.field select,.field textarea{width:100%;min-width:0}.result-column{position:sticky;top:18px}.advanced{margin:8px 0 16px;border-top:1px solid var(--border);padding-top:12px}.advanced summary{cursor:pointer;font-weight:600;padding:6px 0}.sticky-result{display:none}.more-tools{width:min(1100px,calc(100% - 40px));margin:10px auto 28px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px;color:var(--muted-foreground)}.more-tools a{color:var(--foreground);text-decoration:none;border:1px solid var(--border);border-radius:99px;padding:6px 10px}.market-shell{min-height:230px}.table-wrap{max-width:100%;overscroll-behavior-x:contain}.table-wrap th:first-child,.table-wrap td:first-child{position:sticky;left:0;background:var(--card);z-index:1}.table-wrap th:first-child{z-index:2}
@media(max-width:767px){#fields{grid-template-columns:1fr}body:has(.sticky-result){padding-bottom:78px}.result-column{position:static}.sticky-result{display:block;position:fixed;z-index:20;left:0;right:0;bottom:0;padding:14px 16px calc(14px + env(safe-area-inset-bottom));background:var(--primary);color:var(--primary-foreground);font-weight:650;text-align:center;box-shadow:0 -4px 18px #0002;cursor:pointer}.more-tools{width:calc(100% - 32px)}.table-wrap{overflow-x:auto}.table-wrap table{min-width:720px}}
.sentiment-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.5fr);gap:18px;align-items:start}.sentiment-left{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.sentiment-left .gauge{grid-column:1/-1;min-height:0}.result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;grid-column:1/-1}.result-grid .result{min-width:0;min-height:82px;padding:12px}.result-grid .value{font-size:24px}.result-grid .name{font-size:11px;line-height:1.25}.chart-header{align-items:center}.chart-header h2{margin:0}.sentiment-chart-card{position:relative}.chart-tooltip{position:absolute;top:48px;background:var(--primary);color:var(--primary-foreground);padding:7px 10px;border-radius:8px;font-size:12px;pointer-events:none;transform:translateX(-50%);white-space:nowrap}.attribution{margin-top:2px}.interval-hint{display:block;color:var(--muted-foreground);font-size:10px}.result-column .btn{margin-top:10px}.chart{display:block;width:100%;height:340px}.chart text{font-size:12px}
.refresh-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.refresh-row #updated{margin:2px 0 0;font-size:12px}.refresh-row .btn{width:auto;flex:0 0 auto;min-height:36px;padding:6px 11px}.exchange-note{margin:10px 0;font-size:12px}.empty-cell{color:var(--muted-foreground)}
@media(max-width:760px){.sentiment-layout{grid-template-columns:1fr}.sentiment-left{grid-template-columns:1fr}.result-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.chart{height:220px}.sentiment-chart-card{padding:15px}.chart-header{display:flex}.sentiment-chart-card .segmented button{padding:0 6px}.result-grid .result{padding:10px 8px}.result-grid .value{font-size:22px}}
.score-number{font-size:34px;line-height:1;font-weight:750;margin-top:-8px}.score-class{margin:3px 0 12px;color:var(--muted-foreground);font-size:13px}.gauge svg{display:block}
@media(max-width:767px){.sticky-result{font-size:13px;line-height:20px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}

/* Keep grid and segmented children within narrow cards without clipping content. */
.row{grid-template-columns:repeat(2,minmax(0,1fr))}
.row>*{min-width:0}
@media(max-width:760px){.segmented{gap:2px}.segmented button{padding-inline:3px;font-size:12px}.field input[data-eth="Wei"]{font-size:12px;letter-spacing:-.03em}}
[hidden]{display:none!important}
footer .bar a{display:inline-block;margin-left:4px}
.group-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.group-chips a{border:1px solid var(--border);border-radius:999px;padding:6px 11px;color:var(--muted-foreground);font-size:12px;text-decoration:none}.group-chips a:hover{color:var(--foreground);border-color:#a1a1aa}.tool-card{position:relative;min-height:106px;padding:14px}.tool-icon{display:inline-grid;place-items:center;width:25px;height:25px;margin:0 0 5px;color:var(--muted-foreground);font-size:18px}.tool-card strong{font-size:14px;line-height:1.3}.tool-card span:last-child{display:block;line-height:1.4;margin-top:4px}.group{scroll-margin-top:20px}@media(min-width:761px){.grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}}@media(max-width:760px){.tool-card{min-height:116px;padding:12px}.tool-card strong{font-size:13px}.group-chips{gap:6px}.group-chips a{font-size:11px;padding:5px 9px}}

/* Shared prose and guide layouts. */
.faq-visible{margin-top:28px;padding-top:18px;border-top:1px solid var(--border)}.faq-visible h2,.tool-guides h2,.guide-related h2{font-size:19px;margin:0 0 14px}.faq-item{padding:12px 0;border-bottom:1px solid var(--border)}.faq-item h3{font-size:15px;margin:0 0 5px}.faq-item p{margin:0;color:var(--muted-foreground);max-width:78ch}.guide-page{max-width:850px}.guide-hero{padding:40px 0 18px}.guide-hero h1{font-size:clamp(32px,5vw,44px);letter-spacing:-.04em;line-height:1.12;margin:0 0 12px}.guide-hero>p:last-child{color:var(--muted-foreground);margin:0;max-width:72ch}.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted-foreground);margin:0 0 10px}.breadcrumbs{padding-top:22px;font-size:13px;color:var(--muted-foreground)}.breadcrumbs a{text-decoration:none}.guide-cta{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0 28px;padding:18px 20px;border:1px solid var(--border);border-radius:var(--radius);background:var(--muted);text-decoration:none}.guide-cta strong{font-size:16px}.guide-cta span{font-size:13px;color:var(--muted-foreground)}.prose{max-width:76ch;font-size:16px;line-height:1.75}.prose h2{font-size:25px;line-height:1.25;letter-spacing:-.025em;margin:34px 0 10px}.prose h3{font-size:19px;margin:26px 0 8px}.prose p,.prose ul,.prose ol{margin:0 0 17px}.prose li{margin:6px 0}.prose a{color:var(--foreground);text-decoration-thickness:1px;text-underline-offset:3px}.prose blockquote{margin:20px 0;padding:4px 0 4px 18px;border-left:3px solid var(--border);color:var(--muted-foreground)}.prose pre{overflow:auto;background:var(--muted);border:1px solid var(--border);border-radius:9px;padding:14px;font-size:13px}.prose code{font-size:.9em;background:var(--muted);padding:2px 4px;border-radius:4px}.guide-related,.tool-guides,.guide-group{margin:30px 0}.guide-related ul,.tool-guides ul{padding-left:20px}.guide-related li,.tool-guides li{margin:10px 0}.tool-guides p{margin:3px 0;color:var(--muted-foreground);font-size:14px}.guide-list{display:grid;gap:10px}.guide-card{display:grid;gap:4px;padding:16px 18px;border:1px solid var(--border);border-radius:var(--radius);text-decoration:none}.guide-card strong{font-size:16px}.guide-card span{color:var(--muted-foreground);font-size:14px}.guide-group h2{font-size:18px;margin-bottom:12px}.group-chips a{border:1px solid var(--border);border-radius:99px;padding:6px 11px;text-decoration:none;font-size:13px}
@media(max-width:600px){.guide-hero{padding:30px 0 14px}.guide-cta{align-items:flex-start;flex-direction:column;gap:4px;padding:16px}.prose{font-size:15px}.prose h2{font-size:22px}}
