/* Standalone Basira Markets surface. Uses the shared Basira tokens. */
.markets-page{background:var(--ink);color:var(--t);min-height:100vh}
.markets-nav{height:72px;border-bottom:1px solid var(--b2);display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1180px)/2));position:sticky;top:0;z-index:20;background:rgba(10,10,15,.94);backdrop-filter:blur(12px)}
.markets-brand{display:flex;align-items:center;gap:10px;color:var(--t);text-decoration:none}.markets-brand img{width:38px;height:38px}.markets-brand span{display:flex;flex-direction:column}.markets-brand strong{font:700 17px var(--font-display)}.markets-brand small{font:600 8px var(--font-mono);letter-spacing:.12em;color:var(--brand)}
.markets-nav nav{display:flex;gap:8px}.markets-nav nav a{min-height:44px;display:flex;align-items:center;padding:0 13px;border-radius:var(--radius-sm);color:var(--t2);text-decoration:none;font-size:13px}.markets-nav nav a:hover,.markets-nav nav a:focus-visible{background:var(--ink3);color:var(--t)}
.markets-shell{max-width:1180px;margin:0 auto;padding:42px 24px 64px}.markets-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:28px}.markets-kicker,.markets-section-head span{display:block;color:var(--brand);font:700 10px var(--font-mono);letter-spacing:.11em}.markets-hero h1{font-size:46px;line-height:1.2;margin:6px 0}.markets-hero p{max-width:660px;color:var(--t2);line-height:1.8}.markets-status{display:flex;align-items:center;gap:8px;color:var(--t3);font-size:12px;white-space:nowrap}.markets-status-dot{width:8px;height:8px;border-radius:50%;background:var(--A)}.markets-status.ok .markets-status-dot{background:var(--G)}.markets-status.error .markets-status-dot{background:var(--R)}
.markets-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px;border:1px solid var(--b2);background:var(--ink2);border-radius:var(--radius-md);margin-bottom:16px}.markets-tabs{display:flex;gap:4px;overflow-x:auto}.markets-tabs button,.markets-refresh{min-height:44px;border:0;border-radius:var(--radius-sm);padding:0 15px;background:transparent;color:var(--t2);font:700 12px var(--font-body);cursor:pointer;white-space:nowrap}.markets-tabs button.active{background:var(--brand-soft);color:var(--brand)}.markets-tabs button:focus-visible,.markets-refresh:focus-visible,.market-card:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.markets-refresh{border:1px solid var(--b2)}.markets-refresh:hover{border-color:var(--brand-border);color:var(--brand)}.markets-refresh:disabled{opacity:.55;cursor:wait}
.markets-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:28px}.market-card{min-height:138px;padding:16px;text-align:right;border:1px solid var(--b2);border-radius:var(--radius-md);background:var(--ink2);color:var(--t);cursor:pointer}.market-card:hover{border-color:var(--brand-border);background:var(--ink3)}.market-card.active{border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand-soft)}.market-card-head{display:flex;justify-content:space-between;gap:12px}.market-card-head strong{font-size:14px}.market-card-head small{color:var(--t3);font:500 9px var(--font-mono)}.market-price{display:block;margin-top:22px;font:700 24px var(--font-mono);direction:ltr;text-align:right}.market-change{display:inline-block;margin-top:5px;font:700 11px var(--font-mono);direction:ltr}.market-change.up{color:var(--G)}.market-change.down{color:var(--R)}
.markets-skeleton{height:138px;border:1px solid var(--b);border-radius:var(--radius-md);background:linear-gradient(90deg,var(--ink2),var(--ink3),var(--ink2));background-size:200% 100%;animation:marketsShimmer 1.2s linear infinite}@keyframes marketsShimmer{to{background-position:-200% 0}}
.markets-detail,.markets-news{border:1px solid var(--b2);border-radius:var(--radius-md);background:var(--ink2);padding:22px;margin-bottom:16px}.markets-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.markets-section-head h2{font-size:20px;margin-top:4px}.markets-section-head>strong{font:700 18px var(--font-mono);direction:ltr}.markets-chart{height:260px;border-top:1px solid var(--b);padding-top:16px}.markets-chart svg{width:100%;height:100%;overflow:visible}.markets-chart path.line{fill:none;stroke:var(--brand);stroke-width:2;vector-effect:non-scaling-stroke}.markets-chart path.area{fill:var(--brand-soft);stroke:none}.markets-chart line{stroke:var(--b2);stroke-width:1;vector-effect:non-scaling-stroke}.markets-empty{min-height:96px;display:flex;align-items:center;justify-content:center;text-align:center;color:var(--t3);font-size:13px;line-height:1.8}.markets-news-item{display:grid;grid-template-columns:1fr auto;gap:10px;padding:14px 0;border-top:1px solid var(--b)}.markets-news-item:first-child{border-top:0}.markets-news-item a{color:var(--t);text-decoration:none;font-weight:700;line-height:1.65}.markets-news-item a:hover{text-decoration:underline;text-decoration-color:var(--brand)}.markets-news-item span{color:var(--t3);font-size:10px;white-space:nowrap}
.markets-pro-note{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid var(--brand-border);background:var(--brand-soft);border-radius:var(--radius-md);padding:18px 20px}.markets-pro-note div{display:flex;flex-direction:column;gap:4px}.markets-pro-note span{color:var(--t2);font-size:12px}.markets-pro-note a{min-height:44px;display:flex;align-items:center;padding:0 16px;border-radius:var(--radius-sm);background:var(--brand);color:var(--on-brand);text-decoration:none;font-weight:800;font-size:12px;white-space:nowrap}
@media(max-width:900px){.markets-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.markets-nav{height:64px;padding:0 14px}.markets-nav nav a:not(:last-child){display:none}.markets-shell{padding:26px 14px 100px}.markets-hero{align-items:flex-start;flex-direction:column}.markets-hero h1{font-size:36px}.markets-toolbar{align-items:stretch;flex-direction:column}.markets-refresh{width:100%}.markets-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.market-card{min-height:126px}.markets-detail,.markets-news{padding:16px}.markets-pro-note{align-items:stretch;flex-direction:column}.markets-pro-note a{justify-content:center}}
@media(max-width:380px){.markets-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.markets-skeleton{animation:none}}

