:root{
  --bg:#f7f7f2;
  --fg:#0f1115;
  --muted:#6b7280;
  --card:#ffffff;
  --border:#e5e7eb;
  --ok:#10b981;
  --bad:#ef4444;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; background:var(--bg); color:var(--fg);
  font:16px/1.4 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}
.wrap{
  min-height:100vh; display:grid; place-items:center; padding:24px;
}
.title{
  font-weight:700; font-size:clamp(24px,4vw,36px); text-align:center; margin:0 0 24px;
}
.search{
  display:flex; gap:12px; width:min(720px,92vw); margin-bottom:6px;
  background:#1f2937; padding:12px; border-radius:16px; align-items:center;
}
.search input{
  flex:1; border:0; outline:0; background:transparent; color:#e5e7eb;
  padding:10px 12px; font-size:16px;
}
.search button{
  border:0; background:#e35300; color:white; padding:10px 14px;
  border-radius:14px; cursor:pointer; font-weight:600;
}
.hint{color:var(--muted); margin:8px 0 20px; text-align:center}
.card{
  width:min(720px,92vw); background:var(--card); border:1px solid var(--border);
  border-radius:18px; padding:18px; box-shadow:0 8px 24px rgba(0,0,0,.04);
}
.card-header{display:flex; justify-content:space-between; align-items:center; margin-bottom:8px}
.card-header #cardSymbol{font-weight:700}
.muted{color:var(--muted)}
.price-row{display:flex; gap:12px; align-items:baseline; margin:4px 0 14px}
.price{font-size:32px; font-weight:700}
.chg{font-weight:600}
.grid{
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px;
}
.label{display:block; font-size:12px; color:var(--muted)}
.loading,.error{margin-top:16px; text-align:center}
.error{color:var(--bad)}
.hidden{display:none}
.up{color:var(--ok)}
.down{color:var(--bad)}
