.marketList{background:#050607;border:1px solid #202329;border-radius:17px;overflow:hidden;padding:8px 20px 14px;margin-top:12px}
.marketGroup{font-size:14px;color:#9298a3;font-weight:750;padding:22px 2px 10px}
.marketGroup.withAction{display:flex;justify-content:space-between;align-items:center}
.marketList .quoteRow{display:grid;grid-template-columns:48px minmax(0,1fr) minmax(180px,42%);gap:13px;min-height:90px;padding:11px 2px;border-top:0;border-bottom:1px solid #2b2e34;align-items:center}
.marketList .quoteRow:last-of-type{border-bottom:0}
.quoteIcon{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#27507a;color:#fff;font-size:25px;font-weight:800;flex:none}
.quoteIcon.icon-gold{background:#d9aa3b}.quoteIcon.icon-usd{background:linear-gradient(150deg,#133677,#db3d46)}.quoteIcon.icon-eur{background:#2358ad}.quoteIcon.icon-btc{background:#ee9d37}.quoteIcon.icon-stock{background:#244467;font-size:20px}
.marketList .ownSide b{font-size:17px;font-weight:700;white-space:nowrap}.marketList .ownSide b em{font-size:10px;font-style:normal;color:#ffc77d;margin-left:2px}.marketList .ownSide small{font-size:12px;color:#999da5;white-space:nowrap}
.marketList .priceSide{text-align:right;min-width:0}.marketList .priceSide tv-tickers{min-height:60px;width:100%;display:block}.marketList .priceSide small{font-size:11px}
@media(max-width:600px){.marketList{padding:6px 10px 12px;border-radius:12px}.marketList .quoteRow{grid-template-columns:38px minmax(0,1fr) minmax(142px,43%);gap:7px;min-height:76px;padding:10px 0}.quoteIcon{width:37px;height:37px;font-size:20px}.marketList .ownSide b{font-size:14px}.marketList .ownSide small{font-size:11px}.marketGroup{padding-top:20px;font-size:13px}}
/* Ekran rynku i karty instrumentów */
.indexGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 8px}.indexBox{min-width:0;background:#151c29;border-radius:12px;padding:10px 12px}.indexBox b{display:block;font-size:13px;font-weight:650;color:#eaf0fa}.indexBox tv-tickers{display:block;min-height:62px;max-width:100%;overflow:hidden}.quoteHelp{font-size:11px;color:#96a1b0;line-height:1.4;margin:8px 2px}.quoteColumns{display:flex;justify-content:space-between;color:#8d98a9;font-size:11px;padding:0 2px 5px;border-bottom:1px solid #30343d}.quoteOpen{display:block;text-align:left;padding:0;border:0;background:transparent;color:inherit;min-width:0;width:100%;cursor:pointer}.quoteOpen:hover b{color:#5a8cff}.quoteOpen:focus-visible{outline:2px solid #2962ff;outline-offset:3px}.marketList .ownSide small.purchase{color:#c4cad6;margin-top:2px}.nbpRates{margin:16px 2px 4px;border-radius:10px;background:#172235;color:#d9e6f8;padding:10px 12px;font-size:12px;display:grid;gap:3px}.nbpRates b{color:#77a6ff;font-size:11px}.nbpRates small{font-size:11px;color:#aebbd1}.marketList .quoteRow{grid-template-columns:48px minmax(0,1fr) minmax(180px,42%)}.detailHead{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#0d121b;border:1px solid #2b3340;border-radius:15px;padding:18px;margin-top:12px}.detailHead h2{font-size:24px;margin:4px 0}.detailHead small,.detailHead p{color:#a6afbd;font-size:12px;margin:0}.detailHead tv-tickers{width:min(45%,280px);min-height:75px;display:block}.detailTabs{display:flex;gap:8px;overflow:auto;position:sticky;top:0;background:#0a111f;padding:12px 0;z-index:2}.detailTabs a{white-space:nowrap;text-decoration:none;background:#1a2639;color:#dce9fa;border-radius:8px;padding:7px 10px;font-size:12px}.detailPanel{padding:20px;background:#080b11;border:1px solid #222b39;border-radius:15px;margin:14px 0;scroll-margin-top:52px}.detailPanel h2{margin-bottom:10px}.detailPanel .tvEmbed{min-height:430px}.detailPanel #tvChart{height:480px}.detailPanel #tvFundamentals{height:570px}.detailPanel #tvTechnical{height:450px}.detailPanel .tradingview-widget-container{min-height:100%}.detailPanel .field input[type=number]{min-width:0}.reportResult{background:#172238;border-radius:12px;padding:16px;margin-top:18px}.reportResult h3{margin:0 0 8px}.reportResult p{font-size:13px}.reportResult a{color:#8ab2ff}.reportResult small{display:block;color:#aebbd1;line-height:1.5}.back{margin:0 0 6px}.primary{background:#2962ff;color:#fff}.navBtn.active{background:#1a3264;color:#fff}
@media(max-width:850px){.indexGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.marketList .quoteRow{grid-template-columns:37px minmax(0,1fr) minmax(130px,42%);gap:7px}.marketList .ownSide small{white-space:normal;line-height:1.25}.marketList .priceSide tv-tickers{min-height:66px}.detailHead{padding:13px}.detailHead h2{font-size:20px}.detailHead tv-tickers{width:46%}.detailPanel{padding:13px}.indexBox{padding:8px}.quoteColumns{font-size:10px}}
/* The embedded quote widget has a minimum width; contain it within a mobile card. */
@media(max-width:600px){
 html,body,.shell,.main,#view{width:100%;max-width:100%;min-width:0;overflow-x:clip}
 .topbar{flex-wrap:wrap}.topbar>div:first-child{min-width:0}
 .marketList{width:100%;max-width:100%;min-width:0;overflow:hidden}
 .indexGrid{grid-template-columns:minmax(0,1fr)}
 .indexBox{min-width:0;max-width:100%;overflow:hidden}
 .marketList .quoteRow{grid-template-columns:38px minmax(0,1fr);gap:8px}
 .marketList .quoteRow .priceSide{grid-column:1/-1;width:100%;max-width:100%;overflow:hidden;text-align:left;padding-left:46px}
 .marketList .quoteRow .priceSide tv-tickers{display:block;width:100%;max-width:100%;overflow:hidden}
 .marketList .ownSide b{white-space:normal}
 .quoteColumns{display:none}
}
/* iOS Safari can still pan the page when a shadow-DOM market widget has
   wider internal content. Hidden overflow on the root and the widget hosts
   makes the document's horizontal scroll range zero. */
@media(max-width:600px){
 html,body{width:100%!important;max-width:100vw!important;overflow-x:hidden!important;overscroll-behavior-x:none}
 body{position:relative}
 .shell{display:block;width:100%;max-width:100%;min-width:0;overflow-x:hidden}
 .main{width:100vw;max-width:100vw;min-width:0;overflow-x:hidden;padding-left:15px;padding-right:15px}
 #view,.marketList,.indexGrid,.indexBox,.quoteRow,.priceSide{width:100%;max-width:100%;min-width:0;overflow-x:hidden}
 .indexBox tv-tickers,.priceSide tv-tickers{display:block;width:100%;max-width:100%;overflow:hidden;contain:layout paint;touch-action:pan-y}
 .indexBox tv-tickers,.priceSide tv-tickers{pointer-events:none;user-select:none;-webkit-user-select:none}
 .indexBox,.priceSide{contain:layout paint;clip-path:inset(0)}
 .topbar{width:100%;max-width:100%;overflow-x:hidden}
 .bottomNav{width:100vw;max-width:100vw}
}
