
body{margin:0;background:#0d1118;color:#e7edf5;font:14px system-ui}main{max-width:1600px;margin:auto;padding:28px}header{display:flex;justify-content:space-between;gap:20px;align-items:center}h1{font-size:30px;margin:7px 0}h2{font-size:18px}a{color:#e4c87c}small,.muted{color:#a5b2c4}button,input,select{font:inherit;color:inherit;background:#171e29;border:1px solid #354155;border-radius:7px;padding:10px}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}label{display:grid;gap:6px}nav,.filters,.actions{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0;align-items:end}.filters label{flex:1;min-width:140px}nav button[aria-pressed=true]{background:#d9ba69;color:#15191e}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}.card{padding:18px;background:#171e29;border:1px solid #2c3747;border-radius:10px}.card strong{display:block;font-size:24px;margin-top:8px}.positive{color:#7bdfb1}.negative{color:#ff979d}.table-wrap{overflow:auto;border:1px solid #2c3747;border-radius:10px}table{border-collapse:collapse;min-width:1250px;width:100%}th,td{text-align:left;padding:13px;border-bottom:1px solid #2c3747;white-space:nowrap}th{background:#1a2331;font-size:12px}td small{display:block;margin-top:5px}.notice{padding:14px;border-left:3px solid #d9ba69;background:#171e29;line-height:1.6}dialog{background:#141c27;color:#edf2f9;border:1px solid #526079;border-radius:12px;width:min(900px,90vw);max-height:85vh}dialog::backdrop{background:#0009}pre{white-space:pre-wrap;overflow-wrap:anywhere}#timeline article{border-left:2px solid #d9ba69;padding:8px 18px;margin:12px 0;background:#171e29}#status{min-height:22px}footer{display:flex;gap:14px;align-items:center;justify-content:flex-end;margin:18px 0}@media(max-width:650px){main{padding:16px}header{display:block}h1{font-size:25px}.filters label{min-width:120px}}

*{box-sizing:border-box}.filters input,.filters select{width:100%;min-width:0}.filters label{min-width:140px;max-width:100%}

#historyCalendar{margin:24px 0;padding:18px;border:1px solid #354155;border-radius:12px;background:#101722}
.calendar-head{display:flex;justify-content:space-between;gap:15px;align-items:center;flex-wrap:wrap}.calendar-head .actions{margin:0}.calendar-head select{max-width:270px}
.day-legend{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.day-legend span{padding:7px;border-left:4px solid var(--day,#8796af);border-radius:4px;background:#202a38}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;border-top:5px solid var(--month,#66a9ff);padding-top:12px}
.calendar-day{display:flex;flex-direction:column;gap:9px;text-align:left;padding:12px 8px;min-height:145px;border-top:4px solid var(--day);background:#172231;min-width:0;white-space:normal;overflow-wrap:anywhere}
.calendar-day strong{font-size:16px}.calendar-day span{font-size:12px}.calendar-day[aria-pressed=true]{outline:2px solid #fff;outline-offset:1px}.calendar-day:hover{filter:brightness(1.18)}
.weekday-0{--day:#d5a2ff}.weekday-1{--day:#66a9ff}.weekday-2{--day:#58cdb4}.weekday-3{--day:#edc06e}.weekday-4{--day:#ef99aa}.weekday-5{--day:#81ccef}.weekday-6{--day:#b69cff}
.calendar-weekend{background:#29223b!important}.calendar-holiday{background:#3a2b16!important;border-bottom:2px solid #edc06e!important}.calendar-unknown{background:repeating-linear-gradient(135deg,#1b2330,#1b2330 7px,#273040 7px,#273040 9px)!important}
.month-0{--month:#66a9ff}.month-1{--month:#b69cff}.month-2{--month:#58cdb4}.month-3{--month:#edc06e}.month-4{--month:#ef99aa}.month-5{--month:#81ccef}.month-6{--month:#d5a2ff}.month-7{--month:#f2a775}.month-8{--month:#b0cf78}.month-9{--month:#d4a2e4}.month-10{--month:#ed8c81}.month-11{--month:#80bba6}
.history-date-divider{border-left:5px solid var(--month);background:#202b3b;font-weight:600;color:#e6edf7}.history-date-divider td{padding:12px}.history-date-divider:not(tr){padding:12px}
#table tr[class*=weekday] td:first-child{border-left:4px solid var(--day)}#timeline article[class*=weekday]{border-left:4px solid var(--day)}
.exchange-now{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.exchange-now .card{padding:14px}.exchange-now p{margin:8px 0}
@media(max-width:850px){.calendar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.calendar-spacer{display:none}.calendar-head .actions{width:100%}.calendar-head label{max-width:100%}.calendar-head select{max-width:100%}}
