* { box-sizing: border-box }
:root { color-scheme: dark; --bg:#0e1520; --surface:#182231; --line:#303e51; --text:#f4f7fc; --muted:#b6c1d0; --accent:#8bb4ff; --hero:#1c3458 }
:root.light { color-scheme:light; --bg:#f4f7fc; --surface:white; --line:#cfdae8; --text:#142137; --muted:#485b72; --accent:#255bbc; --hero:#e2edff }
body { margin:0; background:var(--bg); color:var(--text); font:1rem/1.8 Tahoma,Arial,sans-serif }
a { color:inherit; text-decoration:none }
a:hover { color:var(--accent) }
button,input { font:inherit }
button { cursor:pointer }
:focus-visible { outline:3px solid var(--accent); outline-offset:3px }
header { border-bottom:1px solid var(--line) }
.bar,main,footer { width:min(1024px,calc(100% - 40px)); margin:auto }
.bar,.brand,nav,footer { display:flex; align-items:center; gap:1rem }
.bar { min-height:70px }
.brand { gap:.6rem; font-size:1.35rem }
nav { margin-inline-start:auto; font-size:.95rem; color:var(--muted) }
#theme { border:1px solid var(--line); background:var(--surface); color:var(--text); border-radius:50%; width:38px; height:38px; line-height:1; font-size:1.4rem }
.hero { position:relative; isolation:isolate; overflow:hidden; display:flex; align-items:center; justify-content:space-between; margin:32px 0; padding:32px 5%; border:1px solid var(--line); border-radius:18px; background:linear-gradient(115deg,var(--surface),var(--hero)) }
.market { display:inline-block; font: bold .8rem/1.6 monospace; letter-spacing:.13em; color:var(--accent) }
h1,h2,h3,p { margin:0 }
h1 { font-size:clamp(2rem,5vw,3.8rem); line-height:1.55 }
h1 em { font-style:normal; color:var(--accent) }
p,footer { color:var(--muted) }
.chart { width:32%; color:var(--accent) }
h2 { font-size:1.22rem }
.cards { margin-top:14px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px }
article,#entry { border:1px solid var(--line); border-radius:14px; background:var(--surface) }
article { padding:19px; display:flex; gap:13px; align-items:flex-start }
h3 { font-size:1rem }
article p,#entry p { font-size:.9rem; margin-top:4px }
.icon { flex:none; display:grid; place-items:center; width:38px; height:38px; border-radius:11px; color:white; background:linear-gradient(145deg,#467fff,#2453b7) }
.icon svg { width:22px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round }
#entry { margin:26px 0; padding:26px; display:flex; align-items:center; gap:24px; justify-content:space-between }
form { width:min(100%,340px) }
label { font-size:.88rem }
.field { display:flex; direction:ltr; align-items:center; gap:10px; padding:6px 12px; background:var(--bg); border:1px solid var(--line); border-radius:8px }
.field span { color:var(--muted); border-right:1px solid var(--line); padding-right:10px }
input { min-width:0; width:100%; border:0; color:var(--text); background:transparent }
.submit { margin-top:8px; width:100%; padding:6px; border:none; border-radius:8px; background:#285dd1; color:white; font-weight:bold }
output { display:block; font-size:.88rem }
footer { justify-content:space-between; padding:15px 0 25px; border-top:1px solid var(--line); font-size:.85rem }
@media(max-width:850px) { .cards { grid-template-columns:repeat(2,minmax(0,1fr)) } }
@media(max-width:640px) {
  .bar,main,footer { width:calc(100% - 28px) }
  .hero { margin:18px 0; padding:20px }
  .chart { position:absolute; left:-15px; bottom:0; opacity:.17; width:40%; z-index:-1 }
  .cards { gap:8px }
  article { flex-direction:column; gap:8px; padding:13px }
  #entry { flex-direction:column; align-items:stretch; padding:18px; gap:12px }
  form { width:100% }
}
@media(max-width:340px) { .cards { grid-template-columns:1fr } }
