:root { --bg: #0B0F14; --s: #11171E; --line: #1E2832; --t1: #F5F8FB; --t3: #9AA7B4; --tm: #7D8A97; --up: #00E596; --dn: #FF4D66; --ac: #2FC6D6; color-scheme: dark; }
:root.claro { --bg: #FFFFFF; --s: #F4F6F9; --line: #DDE3EA; --t1: #0B141C; --t3: #44525F; --tm: #5F6D7A; --up: #00915F; --dn: #C8102E; --ac: #0E7C8A; color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; background: transparent; }
body { font: 14px/1.4 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--t1); -webkit-font-smoothing: antialiased; }
.wg-box { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; min-width: 260px; }
.wg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; } .wg-head b { font-size: 15px; } .wg-head span { font-size: 11px; color: var(--tm); }
.wg-f { display: grid; gap: 3px; font-size: 11px; color: var(--tm); font-weight: 600; min-width: 0; }
.wg-f input, .wg-f select { width: 100%; min-height: 38px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--s); color: var(--t1); font: 600 14px inherit; font-family: inherit; }
.wg-row { display: grid; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); gap: 6px; align-items: end; }
#sw { height: 38px; border-radius: 9px; border: 1px solid var(--line); background: var(--s); color: var(--t1); cursor: pointer; font-size: 15px; }
.wg-res { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--s); border: 1px solid var(--line); }
.wg-res b { font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; word-break: break-all; } .wg-res small { font-size: 11px; color: var(--t3); font-variant-numeric: tabular-nums; }
.wg-t { width: 100%; border-collapse: collapse; } .wg-t td { padding: 7px 2px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.wg-t tr:last-child td { border-bottom: 0; } .wg-t td:nth-child(2) { text-align: right; font-weight: 700; } .wg-t td:nth-child(3) { text-align: right; font-size: 12px; width: 70px; }
.wg-t small { color: var(--tm); }
.up { color: var(--up); } .dn { color: var(--dn); }
.wg-cred { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--tm); text-decoration: none; justify-self: start; }
.wg-cred:hover { color: var(--ac); } .wg-cred b { color: var(--t1); } .wg-cred img { border-radius: 4px; }
.wg-its { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wg-it { --c: var(--ac); position: relative; display: grid; gap: 1px; padding: 10px 11px; border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--t1);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%), var(--s); border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line)); }
.wg-it::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--c); }
.wg-it small { font-size: 11px; color: var(--t3); font-weight: 600; } .wg-it b { font-size: 19px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; } .wg-it span { font-size: 10.5px; font-weight: 650; }
a.wg-it:hover { border-color: var(--c); }
.wg-cal { --c: #F2B04A; display: grid; place-items: center; width: 42px; height: 44px; border-radius: 9px; line-height: 1; background: color-mix(in srgb, var(--c) 14%, var(--s)); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.wg-cal small { font-size: 9.5px; text-transform: uppercase; color: var(--c); font-weight: 700; } .wg-cal b { font-size: 17px; text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
