
body{background:radial-gradient(ellipse at 90% 0%,#393059 0,transparent 34rem),radial-gradient(ellipse at 3% 28rem,#382329 0,transparent 30rem),#100f19}
main,nav{max-width:1220px}main{isolation:isolate}section{background:linear-gradient(125deg,#302838e8,#1c1c2be8 66%);border-color:#665468;box-shadow:inset 0 1px 0 #ffffff26,0 9px 0 -5px #302236,0 20px 40px #05040d70;backdrop-filter:blur(14px)}
h2{font-size:clamp(1.65rem,4vw,2.65rem);letter-spacing:-.04em;margin-top:0}fieldset{border:1px solid #786176;border-radius:14px;padding:18px}legend{padding:0 8px;color:#ffcfac}select,button,input{min-height:44px}.art{float:right;width:clamp(75px,12vw,136px);height:auto;margin:0 0 12px 16px}
th{font-size:.84rem;color:#ffdbbd}td{font-variant-numeric:tabular-nums}tr:hover{background:#ffffff08}.filters{display:flex;gap:16px;align-items:end;flex-wrap:wrap}.filters label{flex:1;min-width:145px}
.compact :is(th,td):is(:nth-child(3),:nth-child(4),:nth-child(5),:nth-child(6),:nth-child(7),:nth-child(8)){display:none}
#details-toggle{display:inline-block;width:auto;vertical-align:middle;min-height:20px}.region-menu{position:relative;margin:10px 0}.region-menu summary,.region-menu button{display:flex;align-items:center;gap:10px;cursor:pointer;text-align:left}.region-menu summary{padding:12px;background:#1c1725;border:1px solid #897184;border-radius:10px}.region-menu div{max-height:280px;overflow:auto;background:#211c2c;padding:6px}.region-menu button{background:transparent;color:#fff;width:100%;border:0;font-weight:450}.region-menu button:hover{background:#493548}.region-menu img{width:24px;height:16px;object-fit:cover}.region-menu summary:after{content:'▾';margin-left:auto}
@media(max-width:760px){section{padding:17px;margin:20px 0}.scroll table,.scroll tbody,.scroll tr,.scroll td{display:block}.scroll thead{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.scroll tr{border:1px solid #665266;border-radius:12px;margin:10px 0;padding:8px;background:#15121db3}.scroll td{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:right}.scroll td:before{content:attr(data-label);text-align:left;color:#dac4ce;font-size:.85rem}.scroll td:first-child{justify-content:flex-start;text-align:left;font-weight:700}.scroll td:first-child:before{display:none}.scroll td:last-child{border:0}.art{width:70px}.compact :is(th,td):is(:nth-child(3),:nth-child(4),:nth-child(5),:nth-child(6),:nth-child(7),:nth-child(8)){display:none}}
.terminal{display:grid;grid-template-columns:minmax(230px,1fr) 2fr;gap:18px}.terminal article,#watchlist{border:1px solid #665268;background:#14131ee6;border-radius:12px;padding:14px;min-width:0}#watchlist{max-height:470px;overflow:auto}#watchlist button{display:flex;align-items:center;gap:8px;background:transparent;color:#fcf6ed;width:100%;border:0;border-bottom:1px solid #453949;border-radius:3px;text-align:left;font-size:.85rem}#watchlist button strong{margin-left:auto}#watchlist button[aria-pressed=true]{background:#44354e;box-shadow:inset 3px 0 #edbd92}#watchlist img{width:20px;height:20px;object-fit:contain;background:#eee;border-radius:4px}#m-price{font-size:clamp(2rem,5vw,3.8rem);letter-spacing:-.04em}#m-change,#m-flow{color:#afe4cc}#market-chart{width:100%}#instrument h3{margin:0 0 8px}#instrument h4{margin-bottom:0}@media(max-width:760px){.terminal{grid-template-columns:1fr}#watchlist{max-height:160px}}

#markets .filters{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:end;margin:18px 0}
#markets .filters label[hidden]{display:none}
.market-switch{min-width:0;max-width:100%;margin:0;padding:4px;border:1px solid #645468;border-radius:13px;background:#191720}
.market-switch legend{font-size:.78rem;font-weight:650;color:#e5c7b4}
.market-switch button{min-height:44px;padding:6px clamp(8px,1.3vw,17px);border:0;border-radius:9px;background:transparent;color:#ddd5df;font:650 .9rem CopperwaySaira,system-ui;cursor:pointer}
.market-switch button[aria-pressed=true]{background:#ffd0a8;color:#291c20}
#markets button:focus-visible{outline:2px solid #a7f4da;outline-offset:-2px}
.market-switch button:hover,#watchlist button:hover{background:#49394d;color:#fff}
#markets .terminal{grid-template-columns:minmax(245px,.9fr) minmax(0,1.5fr);align-items:start}
#watchlist{scrollbar-width:thin;scrollbar-color:#806b86 transparent;padding:8px}
#watchlist button{border-radius:9px;margin-bottom:3px;padding:11px 10px;font-family:CopperwaySaira,system-ui}
#watchlist button[aria-pressed=true]{background:linear-gradient(100deg,#50394b,#312a3d);box-shadow:inset 3px 0 #ffbf8e}
#markets #instrument{background:radial-gradient(ellipse at top right,#303238,transparent 64%),#191821;border-radius:15px;padding:clamp(16px,2vw,28px)}
#m-flow{padding:12px 15px;background:#20322e;border:1px solid #466356;border-radius:10px}
@media(max-width:760px){#markets .terminal{grid-template-columns:minmax(0,1fr)}.market-switch button{font-size:.82rem;padding:6px 8px}#watchlist{max-height:180px}}
