/* WikiVibe Trade — Daisy DS inspired monochrome theme. */
:root{--bg:#171819;--surface:#202123;--surface2:#27282b;--line:#393a3d;--text:#f7f7f5;--muted:#9d9da1;--green:#fff;--cyan:#fff;--violet:#fff;--amber:#fff;--red:#ff7676;--shadow:none}
html,body{background:#171819;color:#f7f7f5;font-family:Inter,"Segoe UI",Arial,sans-serif}
body{overflow:hidden}.ambient{display:none}
.shell{grid-template-rows:82px 1fr 32px;background:#171819}
.topbar{grid-column:1;grid-row:1;display:grid;grid-template-columns:minmax(195px,1fr) auto minmax(405px,1fr);align-items:center;column-gap:14px;height:82px;padding:0 max(24px,calc((100vw - 1320px)/2));background:#171819;border-bottom:1px solid #38393b}
.topbar .brand{order:1;min-width:0;margin:0}.brand-mark{position:relative;width:38px;height:38px;clip-path:none;border:0;border-radius:9px;background:#f7f7f5;color:#171819;box-shadow:none;font-size:0;transform:rotate(-3deg)}
.brand-mark:after{content:"Wb";font-family:Arial,"Segoe UI",sans-serif;font-size:18px;font-style:italic;font-weight:950;letter-spacing:-.13em;transform:rotate(3deg) skewX(-8deg) translateX(-1px)}
.brand-mark:before{content:"";position:absolute;left:9px;right:7px;bottom:7px;height:2px;border-radius:4px;background:#171819;transform:rotate(3deg)}
.brand-name{font-family:Arial,"Segoe UI",sans-serif;font-size:21px;line-height:1;font-style:italic;letter-spacing:-.065em;font-weight:950;transform:skewX(-5deg);transform-origin:left center}.brand-subtitle{font-size:9px;letter-spacing:.06em;color:#9d9da1;text-transform:none;margin-top:6px}
.topbar .top-stats{order:3;min-width:0;min-height:44px;margin:0;padding:4px;justify-self:end;gap:3px;border:1px solid #343538;border-radius:10px;background:#1d1e20}.topbar .stat{height:34px;min-width:66px;padding:0 9px;justify-content:center;border-right:1px solid #393a3d}.stat span{color:#77787c;font-size:8px}.stat strong{color:#fff;font-size:12px}.cyan{color:#fff!important}
.badge{border-radius:999px;background:#202123;border-color:#3a3b3e}.badge i,.badge.online i{background:#fff;box-shadow:none}
.theme-toggle{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #414246;border-radius:7px;background:#242527;color:#fff;font:20px/1 Arial,sans-serif;cursor:pointer;transition:background .2s,color .2s,border-color .2s,transform .2s}.theme-toggle:hover{transform:rotate(14deg);background:#2a2b2d}.theme-toggle:focus-visible{outline:2px solid #fff;outline-offset:3px}
.sidebar{position:static;z-index:auto;grid-column:2;grid-row:1;order:2;transform:none;width:auto;height:44px;min-height:0;padding:3px;border:1px solid #343538;border-radius:10px;background:#1d1e20}.sidebar nav{display:flex;gap:3px;height:36px}.nav-item{height:36px;padding:0 12px;border:0;background:transparent;color:#c7c7c8;border-radius:7px;gap:7px;white-space:nowrap}.nav-item:hover{background:#292a2c;color:#fff}.nav-item.active{background:#f7f7f5;color:#171819;border:0;box-shadow:none}.nav-icon{font-size:11px}.sidebar-safety,.version{display:none}
.content{grid-column:1;grid-row:2;padding:40px max(24px,calc((100vw - 1320px)/2)) 70px;background:#171819}.page{max-width:1320px}.footer{grid-column:1;grid-row:3;padding:0 max(24px,calc((100vw - 1320px)/2));background:#171819;border-color:#38393b;color:#77787c}.status-light{background:#fff;box-shadow:none}
.status-banner{min-height:150px;margin-bottom:18px;padding:28px 34px;border:1px solid #3a3b3e;border-radius:30px;background:#191a1b}.status-banner>div:first-child{grid-template-columns:34px auto}.status-banner .crown{color:#fff;font-size:25px}.status-banner strong{font-size:30px;letter-spacing:-.045em}.status-banner small{max-width:690px;margin-top:9px;color:#a7a7aa;font-size:12px}.actions{align-self:flex-end}.button{height:42px;border-radius:999px;padding:0 18px}.button.primary{background:#f7f7f5;color:#171819;box-shadow:none}.button.secondary{background:#242527;border-color:#424347;color:#fff}.button.ghost{border-color:#4a4b4e;color:#eee;background:transparent}.button.running{background:#f7f7f5;color:#171819}
.subscription-banner{min-height:58px;margin-bottom:12px;padding:9px 14px;border:1px solid #7a591b;border-radius:6px;background:linear-gradient(90deg,rgba(120,87,18,.2),rgba(70,59,30,.16));display:flex;align-items:center;justify-content:space-between;gap:18px}.subscription-copy{display:flex!important;align-items:center;min-width:0;gap:11px}.subscription-crown{flex:none;color:#f3a91e;font-size:20px;line-height:1}.subscription-copy>span:last-child{min-width:0}.subscription-copy strong{display:block;color:#f5f5f4;font-size:11px;line-height:1.2;letter-spacing:0}.subscription-copy small{display:block;max-width:none;margin-top:4px;color:#8ea2af;font-size:9px;line-height:1.25}.subscription-button{flex:none;height:31px;padding:0 14px;border:1px solid #f0a524;border-radius:5px;background:#f0a524;color:#17120a;font:750 10px/1 Inter,"Segoe UI",sans-serif;cursor:pointer;transition:filter .15s,transform .15s}.subscription-button span{margin-left:7px;font-size:15px;vertical-align:-1px}.subscription-button:hover{filter:brightness(1.08);transform:translateY(-1px)}.subscription-button:active{transform:translateY(0)}.legacy-ranking-controls[hidden]{display:none!important}
.subscription-banner.is-paid,.subscription-banner.is-admin{border-color:#3c5d6a;background:linear-gradient(90deg,rgba(54,94,108,.2),rgba(38,46,50,.14))}.subscription-banner.is-paid .subscription-crown,.subscription-banner.is-admin .subscription-crown{color:#71c7e8}.subscription-banner.is-paid .subscription-button,.subscription-banner.is-admin .subscription-button{border-color:#56656b;background:#2b3033;color:#e9eaeb}
.steam-account{position:relative;min-width:0}.steam-auth-button{height:34px;max-width:142px;padding:0 9px;display:flex;align-items:center;gap:6px;border:1px solid #2d4656;border-radius:7px;background:#172733;color:#a9c7d8;font:650 9px/1 Inter,"Segoe UI",sans-serif;cursor:pointer;white-space:nowrap}.steam-auth-button img{width:17px;height:17px}.steam-auth-button:hover{border-color:#4b8cab;color:#e6f6ff}.steam-auth-button.authenticated{background:#152b38;border-color:#35627a;color:#79d2fb}.steam-auth-button span{min-width:0;overflow:hidden;text-overflow:ellipsis}.steam-auth-chevron{flex:none;color:#73a8c1;font-size:11px}.steam-auth-chevron[hidden]{display:none}.steam-account-menu{position:absolute;z-index:1100;top:42px;right:0;width:225px;padding:6px;border:1px solid #3f484d;border-radius:8px;background:#202224;box-shadow:0 18px 45px rgba(0,0,0,.52)}.steam-account-menu[hidden]{display:none}.steam-account-summary{display:flex;align-items:center;gap:9px;padding:8px 9px 10px;border-bottom:1px solid #373a3d}.steam-account-summary img{width:22px;height:22px}.steam-account-summary span,.steam-account-summary strong,.steam-account-summary small{display:block;min-width:0}.steam-account-summary strong{color:#f2f3f3;font-size:10px}.steam-account-summary small{margin-top:3px;overflow:hidden;color:#84898d;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.steam-account-menu a{height:34px;margin-top:4px;padding:0 9px;display:flex;align-items:center;gap:9px;border-radius:5px;color:#c8cbcd;font-size:9px;text-decoration:none}.steam-account-menu a:hover{background:#2b2e31;color:#fff}.steam-account-menu a span{width:14px;color:#73c8ed;text-align:center;font-size:14px}.topbar .badge{height:34px;padding:0 10px;border-radius:7px;font-size:9px;white-space:nowrap}
.pricing-dialog{width:min(780px,calc(100vw - 32px));border-radius:8px}.pricing-dialog form{padding:20px}.pricing-head p:last-child{margin:7px 0 0;color:#92969a;font-size:10px}.pricing-plans{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}.pricing-dialog.is-admin .pricing-plans{grid-template-columns:repeat(3,minmax(0,1fr))}.pricing-plan[hidden]{display:none!important}.pricing-plan{min-height:210px;padding:16px;border:1px solid #414246;border-radius:7px;background:#27282a}.pricing-dialog.can-preview .pricing-plan{cursor:pointer;transition:border-color .15s,background .15s,transform .15s}.pricing-dialog.can-preview .pricing-plan:hover{border-color:#6a8794;transform:translateY(-2px)}.pricing-plan.featured{border-color:#77613d;background:linear-gradient(145deg,#302b23,#252628)}.pricing-plan.admin{border-color:#3f6674;background:linear-gradient(145deg,#253036,#252628)}.pricing-plan-label{display:inline-block;margin-bottom:18px;color:#93979a;font-size:8px;font-weight:850;letter-spacing:.14em}.pricing-plan h3{margin:0;color:#f4f4f2;font-size:13px}.pricing-plan>strong{display:block;margin:12px 0 10px;color:#fff;font-size:24px}.pricing-plan p{min-height:48px;margin:0;color:#92969a;font-size:9px;line-height:1.55}.pricing-plan i{display:block;margin-top:16px;color:#92969a;font-size:9px;font-style:normal}.pricing-plan.active{border-color:#72c9e8;box-shadow:inset 0 0 0 1px rgba(114,201,232,.14)}.pricing-plan.active i{color:#72c9e8;font-weight:750}.activation-box{margin-top:12px;padding:14px;border:1px solid #414246;border-radius:7px;background:#242527}.activation-box>div:first-child strong,.activation-box>div:first-child small{display:block}.activation-box>div:first-child strong{font-size:11px}.activation-box>div:first-child small{margin-top:4px;color:#8c9094;font-size:9px}.activation-row{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:11px}.activation-row input{margin:0;height:39px;border-radius:5px}.activation-box>p{margin:9px 0 0;color:#777b7e;font-size:8px}.pricing-dialog.is-admin .activation-box{display:none}
.pricing-dialog.price-limit-warning .pricing-head p:last-child{max-width:650px;padding:10px 12px;border:1px solid #75591f;border-radius:5px;background:rgba(126,89,19,.18);color:#f0c56a;font-size:10px;line-height:1.5}
@media(max-width:800px){.pricing-plans{grid-template-columns:1fr}.pricing-plan{min-height:0}.pricing-plan p{min-height:0}.pricing-dialog form{max-height:calc(100vh - 30px);overflow:auto}}
.catalog-toolbar{margin-bottom:12px;padding:12px 16px;border:1px solid #2a3a46;border-radius:12px;background:#151f27;box-shadow:inset 0 1px rgba(255,255,255,.015);overflow:hidden}.catalog-toolbar-scroll{display:flex;align-items:center;gap:12px;min-width:max-content}.catalog-games{display:flex;align-items:center;height:38px;padding:3px;border:1px solid #2a4150;border-radius:7px;background:#111b23}.catalog-game{height:30px;padding:0 13px;border:0;border-radius:4px;background:transparent;color:#5fc7ff;font:700 11px/1 Inter,"Segoe UI",sans-serif;cursor:pointer}.catalog-game.active{background:#f1bd36;color:#fff}.catalog-game.rust{color:#ff5757}.catalog-game.tf2{color:#b277db}.catalog-filter,.catalog-toggle,.catalog-refresh{height:38px;border:1px solid #2b4251;border-radius:5px;background:#1c2b36;color:#81939f;font:500 10px/1 Inter,"Segoe UI",sans-serif;white-space:nowrap}.catalog-filter{display:flex;align-items:center;gap:5px;padding:0 12px;cursor:pointer}.catalog-filter strong{color:#f3f6f7;font-weight:600}.catalog-filter-icon{display:inline-grid;place-items:center;min-width:17px;color:#9fb2bd;font-size:17px}.catalog-toggle{display:flex;align-items:center;gap:7px;margin:0;padding:0 11px;cursor:pointer}.catalog-toggle.active{border-color:#3987af;background:#173347;color:#8bd8ff}.catalog-toggle input{display:none}.catalog-toggle i{position:relative;width:29px;height:16px;border-radius:999px;background:#344653;flex:none}.catalog-toggle i:after{content:"";position:absolute;top:3px;left:3px;width:10px;height:10px;border-radius:50%;background:#eef4f6;transition:.18s}.catalog-toggle input:checked+i{background:#54b8e8}.catalog-toggle input:checked+i:after{left:16px;background:#fff}.catalog-toggle b{min-width:20px;padding:3px 4px;border-radius:4px;background:#33434e;color:#9baab2;text-align:center;font-size:8px}.catalog-refresh{width:38px;padding:0;color:#7bcfff;font-size:19px;cursor:pointer}.catalog-filter:hover,.catalog-toggle:hover,.catalog-refresh:hover{border-color:#4b8cab}.catalog-toolbar ::-webkit-scrollbar{height:5px}.catalog-toolbar ::-webkit-scrollbar-thumb{background:#3b5667;border-radius:10px}
.currency-settings{display:flex;align-items:center;gap:4px;height:40px}.display-currency-picker{position:relative;width:208px;height:38px}.currency-select-button{width:208px;height:38px;margin:0;padding:0 9px;display:grid;grid-template-columns:24px minmax(0,1fr) 18px;align-items:center;gap:4px;border:1px solid #2b4251;border-radius:5px;background:#1c2b36;color:#e9f1f4;font:750 12px/1 Inter,"Segoe UI",sans-serif;cursor:pointer}.currency-select-button:hover,.currency-select-button[aria-expanded="true"]{border-color:#4e829f;background:#203441}.currency-select-symbol,.currency-menu-symbol{display:grid;place-items:center;color:#5fcaff;font-weight:850}.currency-select-button strong{text-align:left}.currency-select-chevron{color:#c9d6dc;font-size:15px;transition:transform .15s}.currency-select-button[aria-expanded="true"] .currency-select-chevron{transform:rotate(180deg)}.currency-select-menu{position:fixed;z-index:1000;max-height:min(440px,calc(100vh - 24px));padding:5px;overflow-y:auto;border:1px solid #2b4251;border-radius:5px;background:#192832;box-shadow:0 18px 45px rgba(0,0,0,.55)}.currency-select-menu[hidden]{display:none}.currency-select-menu button{width:100%;height:39px;padding:0 8px;display:grid;grid-template-columns:24px 38px minmax(0,1fr) 18px;align-items:center;gap:7px;border:0;border-radius:4px;background:transparent;color:#a8bac3;text-align:left;font:500 10px/1 Inter,"Segoe UI",sans-serif;cursor:pointer}.currency-select-menu button:hover,.currency-select-menu button.selected{background:#213744;color:#eaf5f9}.currency-select-menu button strong{color:#bcd7e4;font-size:11px}.currency-select-menu button small{overflow:hidden;color:#758c98;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.currency-select-menu button i{color:#68cdf6;font-style:normal;font-size:13px;opacity:0}.currency-select-menu button.selected i{opacity:1}.currency-select-menu::-webkit-scrollbar{width:6px}.currency-select-menu::-webkit-scrollbar-thumb{border-radius:8px;background:#405b69}.currency-settings-button{width:42px;height:40px;padding:0;display:grid;place-items:center;border:2px solid #60caff;border-radius:6px;background:#1c2b36;color:#8ca4b0;cursor:pointer;transition:background .15s,color .15s}.currency-settings-button:hover{background:#243b4a;color:#dff5ff}.sliders-icon{position:relative;width:17px;height:17px;display:grid;align-content:space-around}.sliders-icon i{position:relative;display:block;height:1px;background:currentColor}.sliders-icon i:after{content:"";position:absolute;top:-2px;width:5px;height:5px;border:1px solid currentColor;border-radius:1px;background:#1c2b36}.sliders-icon i:nth-child(1):after,.sliders-icon i:nth-child(3):after{left:4px}.sliders-icon i:nth-child(2):after{right:3px}
.quality-menu{position:absolute;z-index:15;width:310px;margin-top:-4px;margin-left:0;padding:7px;border:1px solid #2f4554;border-radius:7px;background:#1c2b36;box-shadow:0 18px 40px rgba(0,0,0,.45)}.quality-menu[hidden]{display:none}.quality-menu button{width:100%;height:38px;padding:0 10px;border:0;border-radius:4px;background:transparent;color:#a4b2ba;display:grid;grid-template-columns:34px 1fr 20px;align-items:center;text-align:left;gap:7px;font:10px Inter,"Segoe UI",sans-serif;cursor:pointer}.quality-menu button:hover,.quality-menu button.selected{background:#293b48;color:#f3f7f8}.quality-menu button>span:nth-child(2){display:flex;align-items:center;justify-content:space-between;min-width:0}.quality-menu button strong{font-weight:500}.quality-menu button small{color:#637984;font-size:8px;margin-left:auto}.quality-menu button i{font-style:normal;color:#66c8f1;opacity:0}.quality-menu button.selected i{opacity:1}.wear-badge{width:31px;height:20px;display:grid;place-items:center;border-radius:4px;border:1px solid #52636b;font-size:9px;font-weight:800}.wear-badge.fn{color:#57df9b;border-color:#237b5d;background:#183c32}.wear-badge.mw{color:#9bdd45;border-color:#5c8f2e;background:#2a3b25}.wear-badge.ft{color:#d9bd4b;border-color:#9b7e22;background:#403a22}.wear-badge.ww{color:#ff8734;border-color:#a64b1b;background:#452c1e}.wear-badge.bs{color:#f07d8a;border-color:#a04d59;background:#442a32}.wear-badge.none{color:#80919a}
.panel{background:#202123;border-color:#393a3d;border-radius:22px;box-shadow:none}.quick-filters{padding:12px 15px;margin-bottom:12px;border-radius:22px}.game-tabs{background:#171819;border-color:#3a3b3e;border-radius:999px}.game-tab{border-radius:999px;background:#f7f7f5;color:#171819}.market-chip{background:#27282b;border-color:#404144;border-radius:14px}.route-arrow{color:#fff}.market-logo{overflow:hidden}.market-logo.market,.market-logo.steam{background:transparent;border-color:transparent;color:#fff}.compact-switch{background:#27282b;border-color:#414245;border-radius:999px;color:#d0d0d2}.compact-switch input:checked+i{background:#f7f7f5}.compact-switch input:checked+i:after{background:#171819;box-shadow:none}
.filter-panel{grid-template-columns:repeat(2,minmax(140px,1fr)) repeat(3,minmax(115px,.8fr)) minmax(180px,1.2fr) minmax(270px,1.4fr);padding:12px;border-radius:22px;gap:8px;overflow:hidden}.filter-panel>*{min-width:0;max-width:100%}.filter-field{background:#27282b;border-color:#404144;border-radius:14px}.filter-field>span{color:#8b8c90}.filter-field input{color:#fff}.filter-control-stack{align-self:center;display:grid;grid-template-rows:40px 40px;gap:7px;min-width:270px!important}.filter-exclusions,.filter-reset{height:40px;border:1px solid #404144;border-radius:14px;background:#27282b;color:#a5a6aa;font:500 10px/1 Inter,"Segoe UI",sans-serif;cursor:pointer}.filter-control-icon{font-size:17px;color:#a0a1a5}.filter-control-middle{display:grid;grid-template-columns:minmax(0,1fr) 82px;gap:7px}.filter-exclusions{display:flex;align-items:center;justify-content:center;gap:6px}.filter-exclusions b{padding:3px 6px;border-radius:4px;background:#343538;color:#a8a9ad;font-size:8px}.filter-reset{display:flex;align-items:center;justify-content:center;gap:6px}.filter-reset span{font-size:17px}.filter-exclusions:hover,.filter-reset:hover{border-color:#66686c;color:#fff}.refresh-box{width:100%;height:40px;min-width:0;max-width:100%;overflow:hidden;padding:0!important;border:1px solid #404144!important;border-radius:14px!important;background:#27282b!important;color:#f2f2f3!important;display:grid!important;grid-template-columns:18px minmax(0,1fr) 52px 35px!important;align-items:center;gap:0!important}.refresh-box .live-dot{width:6px;height:6px;margin-left:9px;background:#45bfff!important;box-shadow:none}.refresh-box>div{min-width:0;max-width:100%;overflow:hidden;padding-left:3px}.refresh-box strong{display:block;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#f0f0f1!important;font-size:10px}.refresh-box small{display:none}.refresh-box b{display:none}.refresh-box .refresh-interval{align-self:stretch;display:block;width:52px;height:38px;margin:0;padding:0 4px;border:0;border-left:1px solid #404144;border-right:1px solid #404144;border-radius:0;background:#202123;color:#fff;text-align:center;font-size:11px;box-shadow:none;appearance:textfield}.refresh-box .refresh-interval::-webkit-inner-spin-button,.refresh-box .refresh-interval::-webkit-outer-spin-button{opacity:.55}.refresh-box em{font-style:normal;color:#8f9094;font-size:9px;text-align:center}
.market-table-panel{position:relative;isolation:isolate;overflow:hidden;border-radius:5px}.market-table-panel .table-wrap{position:relative;isolation:isolate;contain:paint}.market-table{border-collapse:separate;border-spacing:0}.market-table thead{position:sticky;top:0;z-index:50;background:#202123}.market-table thead tr{background:#202123}.market-table th{position:relative;top:auto;z-index:auto;background:#202123;color:#999a9d;border-color:#3b3c3f;box-shadow:0 1px 0 #3b3c3f}.market-table td,.market-table tbody tr:nth-child(even) td{background:#202123;border-color:#38393c}.market-table tbody tr:hover td{background:#292a2c}.item-tile,.item-image{background:#292a2c;border-color:#414246}.item-tile{isolation:isolate;z-index:0;border-radius:2px;color:#fff}.item-info strong{color:#fff}.item-info small,.price-sub{color:#8c8d91}.price-main,.price-main.market-color,.price-main.steam-color{color:#fff}.profit-main,.profit-sub{color:#45bfff}.profit-main.negative{color:#ff8585}.profit-main.negative+.profit-sub{color:#ff8585}.sale-box{background:#292a2c;border-radius:10px}.decision{border-radius:999px}.decision.good{background:#f7f7f5;color:#171819;border-color:#f7f7f5}.decision.bad{color:#ff8585}.market-item-link:hover{filter:brightness(1.2)}
.favorite-button{display:inline-grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:transparent;color:#60727d;font:20px/1 Arial,sans-serif;cursor:pointer;transition:color .15s,transform .15s,background .15s}.favorite-button:hover,.favorite-button.active{color:#ff625f}.favorite-button:hover{transform:scale(1.14);background:rgba(255,98,95,.08)}.favorite-button.active{font-size:17px}.favorite-button:focus-visible{outline:2px solid #ff625f;outline-offset:2px}
.market-table .favorite-col,.market-table td.favorite-star{width:38px;min-width:38px;max-width:38px;padding-left:3px;padding-right:3px;text-align:center}.favorite-star{height:76px!important}.item-action-stack{display:inline-flex;height:62px;flex-direction:column;align-items:center;justify-content:center;gap:0}.item-action-stack .favorite-button{width:28px;height:28px}.exclude-button{display:inline-grid;place-items:center;width:28px;height:27px;padding:0;border:0;border-radius:50%;background:transparent;color:#77787c;font:17px/1 Arial,sans-serif;cursor:pointer;transition:color .15s,transform .15s,background .15s}.exclude-button:hover{color:#fff;background:#343538;transform:scale(1.12)}.exclude-button:focus-visible{outline:2px solid #fff;outline-offset:1px}.exclusions-dialog{width:min(720px,calc(100vw - 32px))}.exclusions-dialog form{max-height:min(720px,calc(100vh - 40px));display:flex;flex-direction:column}.exclusions-dialog .dialog-head p:last-child{max-width:520px;margin-top:7px;color:#97989c;font-size:10px}.exclusions-list{min-height:150px;max-height:520px;margin-top:18px;overflow-y:auto;border-top:1px solid #3e3f42}.exclusion-item{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:13px;min-height:76px;padding:10px 4px;border-bottom:1px solid #3e3f42}.exclusion-image{position:relative;width:50px;height:50px;display:grid;place-items:center;overflow:hidden;border:1px solid #414246;border-radius:12px;background:#292a2c;color:#77787c;font-size:9px;font-weight:800}.exclusion-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.exclusion-info{min-width:0}.exclusion-info small,.exclusion-info strong{display:block}.exclusion-info small{margin-bottom:5px;color:#85868a;font-size:9px}.exclusion-info strong{overflow:hidden;color:#fff;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.unblock-button{height:35px!important}.exclusions-empty{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#818286;text-align:center}.exclusions-empty>span{font-size:30px}.exclusions-empty strong{margin-top:10px;color:#ddd;font-size:12px}.exclusions-empty small{margin-top:6px;font-size:9px}
.collapsed-panel{border-radius:22px}.panel-head{border-color:#393a3d}.settings-card,.api-panel{border-radius:22px}.icon-box{border-radius:12px;background:#f7f7f5;color:#171819!important;border:0}.settings-card input,.api-panel input,dialog input{background:#171819;border-color:#414246;border-radius:12px;color:#fff}.switch-row{background:#27282b;border-color:#414246;border-radius:14px}.switch-row input:checked+i{background:#f7f7f5;box-shadow:none}.switch-row input:checked+i:after{background:#171819;box-shadow:none}.notice{border-radius:18px;border-color:#414246;background:#202123}.notice strong{color:#fff}.log-panel{border-radius:22px}.log-type,.log-value{color:#fff}
dialog{background:#202123;border-color:#4a4b4e;border-radius:24px;color:#fff}.toast{background:#f7f7f5;color:#171819;border:0;border-radius:16px}.toast.good,.toast.bad{border:0}
@media(max-width:1450px){.topbar{column-gap:10px;padding-left:16px;padding-right:16px}.nav-item{padding-left:10px;padding-right:10px}.catalog-toolbar{overflow-x:auto}.catalog-toolbar-scroll{padding-bottom:2px}}
@media(max-width:1220px){.shell{grid-template-rows:126px 1fr 32px}.topbar{height:126px;grid-template-columns:minmax(195px,1fr) auto;grid-template-rows:70px 56px;column-gap:16px;padding:0 20px}.topbar .brand{grid-column:1;grid-row:1}.topbar .top-stats{grid-column:2;grid-row:1}.topbar .stat{display:flex}.sidebar{grid-column:1/-1;grid-row:2;justify-self:center}.content{grid-row:2;padding-top:24px}.footer{grid-row:3}.status-banner{align-items:flex-start;gap:20px}.status-banner strong{font-size:24px}.quick-filters{overflow:auto}.compact-switch{display:none}}
@media(max-width:840px){.topbar .stat{display:none}.topbar{grid-template-columns:minmax(170px,1fr) auto}.topbar .top-stats{min-height:42px}.brand-name{font-size:18px}.brand-subtitle{font-size:8px}.sidebar{max-width:100%;overflow-x:auto;justify-self:stretch}.sidebar nav{width:max-content;min-width:100%;justify-content:center}}
@media(max-width:620px){.topbar{padding-left:10px;padding-right:10px}.brand-mark{width:34px;height:34px}.brand-name{font-size:16px}.brand-subtitle{display:none}.topbar .badge{width:34px;padding:0;justify-content:center}.topbar .badge span{display:none}.steam-auth-button{width:34px;padding:0;justify-content:center}.steam-auth-button span{display:none}.sidebar nav{justify-content:flex-start}.nav-item{padding-left:9px;padding-right:9px}}
@media(max-width:1200px) and (min-width:761px){.filter-panel{grid-template-columns:repeat(4,minmax(0,1fr))}.filter-panel .search-field{grid-column:span 2}.filter-control-stack{grid-column:span 2;min-width:0!important}}
@media(max-width:760px){.filter-panel{display:grid;grid-template-columns:minmax(0,1fr)!important}.filter-panel .search-field,.filter-control-stack{grid-column:1/-1;width:100%;min-width:0!important}.content{padding-left:10px;padding-right:10px}}

.quality-menu{position:fixed;margin:0}
.type-menu{max-height:min(520px,calc(100vh - 90px));overflow-y:auto}.type-menu::-webkit-scrollbar{width:6px}.type-menu::-webkit-scrollbar-thumb{border-radius:8px;background:#526b79}.type-badge{width:31px;height:20px;display:grid;place-items:center;border-radius:4px;border:1px solid #396a88;background:#19374a;color:#6dc7ff;font-size:9px;font-weight:800}.type-badge.sm,.type-badge.ri,.type-badge.sr{border-color:#257d92;background:#153b43;color:#56d0dd}.type-badge.sg{border-color:#338566;background:#193d32;color:#66d6a1}.type-badge.mg{border-color:#668c2c;background:#2d3d1e;color:#aada46}.type-badge.kn,.type-badge.pn{border-color:#967c1d;background:#423817;color:#f1c933}.type-badge.gl{border-color:#985b2f;background:#442b1c;color:#e99a5c}.type-badge.ag,.type-badge.gr{border-color:#76549b;background:#332543;color:#b78ce2}.type-badge.st{border-color:#a04c7f;background:#43263a;color:#ec85c4}.type-badge.pa{border-color:#9f4d58;background:#42272c;color:#ef7e8b}.type-badge.mk{border-color:#5365a2;background:#282f4b;color:#94a9ef}.type-badge.ct{border-color:#536671;background:#29363d;color:#9cafb9}
.category-badge{width:31px;height:20px;display:grid;place-items:center;border-radius:4px;border:1px solid #52636b;font-size:9px;font-weight:800}.category-badge.st{border-color:#a65a1d;background:#452b18;color:#ff9239}.category-badge.sv{border-color:#779326;background:#34421b;color:#b4d94d}.category-badge.sk,.category-badge.gr{border-color:#8c4f91;background:#3d2741;color:#d586db}
.api-help-row{grid-template-columns:minmax(240px,1fr) auto auto auto}.steam-inventory-row{grid-template-columns:minmax(240px,1fr) auto auto}.help-button{background:transparent;border-color:#4a9bc5;color:#69caff}.help-button:hover{background:#173347;border-color:#69caff}.catalog-refresh:disabled{opacity:.45;cursor:wait}.catalog-refresh.loading{animation:inventory-spin .8s linear infinite}@keyframes inventory-spin{to{transform:rotate(360deg)}}

.auto-instant-toggle{height:38px;min-width:58px;padding:0 13px;border:1px solid #414245;border-radius:7px;background:#27282b;color:#8f9094;font:800 10px/1 Inter,"Segoe UI",sans-serif;letter-spacing:.12em;cursor:pointer;transition:border-color .18s,background .18s,color .18s,box-shadow .18s,transform .12s}.auto-instant-toggle:hover{border-color:#5baed2;color:#d8f4ff}.auto-instant-toggle:active{transform:translateY(1px)}.auto-instant-toggle.active{border-color:#3bc5ff;background:#13364a;color:#75ddff;box-shadow:0 0 0 1px rgba(62,200,255,.22),0 0 14px rgba(42,188,255,.52),inset 0 0 13px rgba(55,190,255,.13);text-shadow:0 0 8px rgba(112,221,255,.9)}.auto-instant-toggle:focus-visible{outline:2px solid #65d7ff;outline-offset:2px}html[data-theme="light"] .auto-instant-toggle{background:#fff;border-color:#d7dfe3;color:#7b898f}html[data-theme="light"] .auto-instant-toggle.active{border-color:#209fd4;background:#eaf8fe;color:#087dad;box-shadow:0 0 0 1px rgba(32,159,212,.13),0 0 12px rgba(32,159,212,.25);text-shadow:none}
html[data-theme="light"] .help-button{background:#fff;border-color:#1683b7;color:#126e99}
@media(max-width:900px){.api-help-row,.steam-inventory-row{grid-template-columns:1fr 1fr}.api-help-row input,.steam-inventory-row input{grid-column:1/-1}}

/* Светлая тема: кнопка показывает луну и возвращает тёмную тему. */
html[data-theme="light"]{--bg:#fff;--surface:#f5f5f5;--surface2:#ededed;--line:#dedede;--text:#0d0d0e;--muted:#68686c;--green:#0d0d0e;--cyan:#0d0d0e;--violet:#0d0d0e;--amber:#0d0d0e;color-scheme:light}
html[data-theme="light"],html[data-theme="light"] body{background:#fff;color:#0d0d0e}
html[data-theme="light"] .shell,html[data-theme="light"] .topbar,html[data-theme="light"] .content,html[data-theme="light"] .footer{background:#fff;color:#0d0d0e}
html[data-theme="light"] .topbar,html[data-theme="light"] .footer{border-color:#dedede}
html[data-theme="light"] .brand-mark{background:#0d0d0e;color:#fff}
html[data-theme="light"] .brand-mark:before{background:#fff}
html[data-theme="light"] .brand-name{color:#0d0d0e}
html[data-theme="light"] .brand-subtitle,html[data-theme="light"] .stat span{color:#76767a}
html[data-theme="light"] .stat strong,html[data-theme="light"] .cyan{color:#0d0d0e!important}
html[data-theme="light"] .theme-toggle{background:#f5f5f5;color:#0d0d0e;border-color:#dedede}
html[data-theme="light"] .theme-toggle:hover{background:#e9e9e9}
html[data-theme="light"] .theme-toggle:focus-visible{outline-color:#0d0d0e}
html[data-theme="light"] .sidebar,html[data-theme="light"] .topbar .top-stats{background:#f7f7f7;border-color:#dedede}
html[data-theme="light"] .topbar .stat{border-color:#dedede}
html[data-theme="light"] .badge{background:#f5f5f5;border-color:#dedede;color:#0d0d0e}
html[data-theme="light"] .badge i,html[data-theme="light"] .badge.online i{background:#0d0d0e}
html[data-theme="light"] .nav-item{color:#333}
html[data-theme="light"] .nav-item:hover{background:#f1f1f1;color:#000}
html[data-theme="light"] .nav-item.active{background:#0d0d0e;color:#fff}
html[data-theme="light"] .status-banner{background:#fff;border-color:#dedede}
html[data-theme="light"] .status-banner .crown,html[data-theme="light"] .status-banner strong{color:#0d0d0e}
html[data-theme="light"] .status-banner small{color:#68686c}
html[data-theme="light"] .catalog-toolbar{background:#f5f7f8;border-color:#d9e0e4}
html[data-theme="light"] .steam-auth-button{background:#fff;border-color:#d8e0e4;color:#38566a}html[data-theme="light"] .steam-auth-button.authenticated{background:#eaf7fd;border-color:#72b9dd;color:#1478a8}
html[data-theme="light"] .steam-account-menu{background:#fff;border-color:#d7dadd;box-shadow:0 18px 40px rgba(20,25,30,.18)}html[data-theme="light"] .steam-account-summary{border-color:#e1e3e5}html[data-theme="light"] .steam-account-summary strong{color:#202124}html[data-theme="light"] .steam-account-menu a{color:#45494d}html[data-theme="light"] .steam-account-menu a:hover{background:#f0f2f3;color:#111}
html[data-theme="light"] .catalog-games{background:#fff;border-color:#d7e0e5}
html[data-theme="light"] .catalog-game{color:#157cae}
html[data-theme="light"] .catalog-game.active{background:#e8b52f;color:#fff}
html[data-theme="light"] .catalog-game.rust{color:#d53c3c}
html[data-theme="light"] .catalog-game.tf2{color:#8554ac}
html[data-theme="light"] .catalog-filter,html[data-theme="light"] .catalog-toggle,html[data-theme="light"] .catalog-refresh{background:#fff;border-color:#d8e0e4;color:#687981}
html[data-theme="light"] .catalog-filter strong{color:#111619}
html[data-theme="light"] .catalog-filter-icon{color:#697e89}
html[data-theme="light"] .catalog-toggle.active{background:#eaf7fd;border-color:#72b9dd;color:#1478a8}
html[data-theme="light"] .quality-menu{background:#fff;border-color:#d4dfe4;box-shadow:0 18px 40px rgba(0,0,0,.16)}
html[data-theme="light"] .quality-menu button{color:#66767e}
html[data-theme="light"] .quality-menu button:hover,html[data-theme="light"] .quality-menu button.selected{background:#eef5f8;color:#111619}
html[data-theme="light"] .quality-menu button small{color:#809098}
html[data-theme="light"] .filter-profile,html[data-theme="light"] .filter-exclusions,html[data-theme="light"] .filter-reset{background:#fff;border-color:#d4dde2;color:#687981}
html[data-theme="light"] .filter-profile strong{color:#111619}
html[data-theme="light"] .filter-exclusions b{background:#e9eef1;color:#52636c}
html[data-theme="light"] .refresh-box{background:#e9f7fd!important;border-color:#4aa9d2!important;color:#102633!important}
html[data-theme="light"] .refresh-box strong{color:#147faf!important}
html[data-theme="light"] .refresh-box b{color:#183541!important}
html[data-theme="light"] .refresh-interval{background:#fff;color:#111;border-color:#c5dce6}
html[data-theme="light"] .button.primary{background:#0d0d0e;color:#fff}
html[data-theme="light"] .button.secondary{background:#f5f5f5;border-color:#d7d7d7;color:#0d0d0e}
html[data-theme="light"] .button.ghost{background:#fff;border-color:#0d0d0e;color:#0d0d0e}
html[data-theme="light"] .button.running{background:#0d0d0e;color:#fff}
html[data-theme="light"] .panel{background:#f5f5f5;border-color:#dedede}
html[data-theme="light"] .game-tabs{background:#fff;border-color:#dedede}
html[data-theme="light"] .game-tab{background:#0d0d0e;color:#fff}
html[data-theme="light"] .market-chip,html[data-theme="light"] .compact-switch,html[data-theme="light"] .filter-field{background:#fff;border-color:#dedede;color:#0d0d0e}
html[data-theme="light"] .market-chip span:not(.market-logo),html[data-theme="light"] .filter-field>span{color:#77777b}
html[data-theme="light"] .market-logo.market,html[data-theme="light"] .market-logo.steam{background:transparent;border-color:transparent;color:#111619}
html[data-theme="light"] .route-arrow{color:#0d0d0e}
html[data-theme="light"] .compact-switch input:checked+i,html[data-theme="light"] .switch-row input:checked+i{background:#0d0d0e}
html[data-theme="light"] .compact-switch input:checked+i:after,html[data-theme="light"] .switch-row input:checked+i:after{background:#fff}
html[data-theme="light"] input,html[data-theme="light"] select{color:#0d0d0e;background:#fff;border-color:#d7d7d7;color-scheme:light}
html[data-theme="light"] .refresh-box{background:#0d0d0e;color:#fff}
html[data-theme="light"] .refresh-box .live-dot{background:#fff}
html[data-theme="light"] .refresh-box strong,html[data-theme="light"] .refresh-box small,html[data-theme="light"] .refresh-box b{color:#fff}
html[data-theme="light"] .market-table th{background:#f5f5f5;color:#68686c;border-color:#dedede}
html[data-theme="light"] .market-table td,html[data-theme="light"] .market-table tbody tr:nth-child(even) td{background:#fff;border-color:#e4e4e4}
html[data-theme="light"] .market-table tbody tr:hover td{background:#f7f7f7}
html[data-theme="light"] .item-tile,html[data-theme="light"] .item-image,html[data-theme="light"] .sale-box{background:#f2f2f2;border-color:#dedede}
html[data-theme="light"] .inventory-quantity{background:rgba(13,13,14,.9);border-color:#fff;color:#fff}
html[data-theme="light"] .item-info strong,html[data-theme="light"] .price-main,html[data-theme="light"] .price-main.market-color,html[data-theme="light"] .price-main.steam-color{color:#0d0d0e}
html[data-theme="light"] .exclude-button{color:#77777b}html[data-theme="light"] .exclude-button:hover{color:#0d0d0e;background:#ececec}html[data-theme="light"] .exclusions-list,html[data-theme="light"] .exclusion-item{border-color:#dedede}html[data-theme="light"] .exclusion-image{background:#f2f2f2;border-color:#dedede;color:#77777b}html[data-theme="light"] .exclusion-info strong,html[data-theme="light"] .exclusions-empty strong{color:#0d0d0e}html[data-theme="light"] .exclusion-info small,html[data-theme="light"] .exclusions-empty{color:#737377}
html[data-theme="light"] .profit-main,html[data-theme="light"] .profit-sub{color:#087fca}
html[data-theme="light"] .profit-main.negative,html[data-theme="light"] .profit-main.negative+.profit-sub{color:#d93855}
html[data-theme="light"] .item-info small,html[data-theme="light"] .price-sub,html[data-theme="light"] .sale-box span{color:#737377}
html[data-theme="light"] .decision.good{background:#0d0d0e;color:#fff;border-color:#0d0d0e}
html[data-theme="light"] .panel-head{border-color:#dedede}
html[data-theme="light"] .icon-box{background:#0d0d0e;color:#fff!important}
.item-info strong.rarity-name,html[data-theme="light"] .item-info strong.rarity-name{color:var(--item-rarity,#b0c3d9)}
.item-info{min-width:0}.item-info .item-meta{display:flex;align-items:center;gap:7px;margin-bottom:5px;min-width:0;white-space:nowrap}.item-meta .item-wear{flex:none;font-size:11px;font-weight:850;letter-spacing:.02em}.item-meta i{flex:none;width:1px;height:11px;background:#4a4b4f}.item-meta span{overflow:hidden;color:#8c8d91;text-overflow:ellipsis;font-size:10px}.item-wear.fn{color:#55dca0}.item-wear.mw{color:#9cdd42}.item-wear.ft{color:#e4c446}.item-wear.ww{color:#ff8b38}.item-wear.bs{color:#ff6f7d}.item-wear.other{color:#63c9ff}.item-info strong.skin-name{display:block;max-width:300px;overflow:hidden;color:#fff!important;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:750}html[data-theme="light"] .item-info strong.skin-name{color:#171819!important}html[data-theme="light"] .item-meta i{background:#c9c9c9}html[data-theme="light"] .item-meta span{color:#737377}
.refresh-box{grid-template-columns:minmax(0,1fr) 52px 35px!important;padding:0!important}
.refresh-toggle{align-self:stretch;min-width:0;display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;padding:0 8px;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}
.refresh-toggle>span:last-child{min-width:0;overflow:hidden;padding-left:3px}
.refresh-toggle .live-dot{width:6px;height:6px;margin:0!important;background:#68696d!important;box-shadow:none!important;transition:.18s}
.refresh-toggle.active .live-dot{background:#48d991!important;box-shadow:0 0 7px rgba(72,217,145,.55)!important}
.refresh-toggle.stopped .live-dot{background:#f3b746!important;box-shadow:0 0 5px rgba(243,183,70,.35)!important}
.refresh-toggle strong{display:block;overflow:hidden;color:#9a9b9f!important;white-space:nowrap;text-overflow:ellipsis}
.refresh-toggle.active strong{color:#5ecaff!important}
.refresh-toggle.stopped strong{color:#f3b746!important}
.refresh-toggle:hover{background:rgba(255,255,255,.025)}
.refresh-toggle:disabled{opacity:.55;cursor:wait}
.refresh-box.active{border-color:#376f8d!important;background:#192d3a!important}
.refresh-box.stopped{border-color:#5f5436!important;background:#2b291f!important}
.refresh-box .refresh-interval:disabled{opacity:.5}
html[data-theme="light"] .refresh-toggle:hover{background:rgba(0,0,0,.035)}
html[data-theme="light"] .refresh-toggle strong{color:#68696d!important}
html[data-theme="light"] .refresh-toggle.active strong{color:#1682ba!important}
.refresh-toggle.refreshing .live-dot{background:#54f0a7!important;animation:refresh-dot-pulse .72s ease-in-out 1!important;transform-origin:center;will-change:transform,opacity,box-shadow}
@keyframes refresh-dot-pulse{0%,100%{transform:scale(.78);opacity:.68;box-shadow:0 0 3px rgba(84,240,167,.35)!important}50%{transform:scale(1.7);opacity:1;box-shadow:0 0 14px rgba(84,240,167,1)!important}}
html[data-theme="light"] .settings-card input,html[data-theme="light"] .api-panel input,html[data-theme="light"] dialog input{background:#fff;border-color:#d7d7d7;color:#0d0d0e}
html[data-theme="light"] .switch-row{background:#fff;border-color:#dedede}
html[data-theme="light"] .switch-row strong,html[data-theme="light"] .watch-name{color:#0d0d0e}
html[data-theme="light"] .notice,html[data-theme="light"] .log-panel{background:#f5f5f5;border-color:#dedede}
html[data-theme="light"] .notice strong,html[data-theme="light"] .log-type,html[data-theme="light"] .log-value{color:#0d0d0e}
html[data-theme="light"] dialog{background:#fff;border-color:#d0d0d0;color:#0d0d0e}
html[data-theme="light"] dialog::backdrop{background:rgba(255,255,255,.78)}
html[data-theme="light"] .toast{background:#0d0d0e;color:#fff}
.exchange-rate-dialog{width:min(600px,calc(100vw - 32px));border-radius:8px}.exchange-rate-dialog form{max-height:min(760px,calc(100vh - 30px));padding:0;display:flex;flex-direction:column}.exchange-rate-head{flex:none;padding:17px 16px 13px;border-bottom:1px solid #35434c}.exchange-rate-head h2{font-size:13px}.exchange-rate-head p{margin:6px 0 0;color:#72838d;font-size:10px}.exchange-rate-head .dialog-close{margin-top:-8px}.exchange-rate-status{flex:none;height:50px;margin:16px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;border:1px solid #33434d;border-radius:5px;background:#202e38;color:#71838d;font-size:10px}.exchange-rate-status button{height:32px;padding:0 12px;border:1px solid #334753;border-radius:4px;background:#1c2a34;color:#8fa1ab;font:650 10px Inter,"Segoe UI",sans-serif;cursor:pointer}.exchange-rate-status button:hover{border-color:#58bce7;color:#dff6ff}.exchange-rate-status button span{display:inline-block;margin-right:6px;font-size:17px;vertical-align:-2px}.exchange-rate-hint{flex:none;margin:0 16px 10px;color:#71838d;font-size:9px}.exchange-rate-rows{min-height:0;overflow-y:auto}.exchange-rate-rows::-webkit-scrollbar{width:6px}.exchange-rate-rows::-webkit-scrollbar-thumb{border-radius:8px;background:#506976}.exchange-rate-row{min-height:50px;margin:0 16px 6px;padding:5px 10px;display:grid;grid-template-columns:25px 160px 158px 38px 96px 16px;align-items:center;gap:7px;border:1px solid #33434d;border-radius:5px;background:#1c2a34}.exchange-symbol{width:25px;height:25px;display:grid;place-items:center;border-radius:4px;background:#294153;color:#70d0f6;font-size:11px;font-weight:850}.exchange-name strong,.exchange-name small{display:block}.exchange-name strong{color:#e5edf0;font-size:11px}.exchange-name small{margin-top:3px;color:#6f8089;font-size:9px}.exchange-mode{height:28px;padding:2px;display:flex;border:1px solid #344954;border-radius:4px;background:#21313c}.exchange-mode button{height:22px;padding:0 9px;border:0;border-radius:3px;background:transparent;color:#82949e;font:650 9px Inter,"Segoe UI",sans-serif;cursor:pointer}.exchange-mode button.active{background:#62c8f4;color:#fff}.exchange-equals,.exchange-suffix{color:#657882;font-size:9px}.exchange-rate-row input{height:30px;margin:0;padding:0 9px;border-color:#30414c;border-radius:4px;background:#18252e;color:#dbe8ed;text-align:right}.exchange-rate-row input:disabled{opacity:.55}.exchange-rate-row.manual-rate input{border-color:#61c9f5;box-shadow:0 0 0 2px rgba(97,201,245,.08)}.exchange-base-label{color:#71838d;font-size:9px}.exchange-rate-footer{flex:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px 16px;color:#70828c;font-size:9px}.exchange-rate-footer .button{height:34px;border-radius:5px}
html[data-theme="light"] .exchange-rate-head{border-color:#ddd}html[data-theme="light"] .exchange-rate-head p,html[data-theme="light"] .exchange-rate-hint,html[data-theme="light"] .exchange-rate-footer{color:#737377}html[data-theme="light"] .exchange-rate-status,html[data-theme="light"] .exchange-rate-row{background:#f5f5f5;border-color:#d7d7d7}html[data-theme="light"] .exchange-rate-status button,html[data-theme="light"] .exchange-mode{background:#fff;border-color:#d7d7d7}html[data-theme="light"] .exchange-name strong{color:#171819}html[data-theme="light"] .exchange-rate-row input{background:#fff;border-color:#d7d7d7;color:#171819}
html[data-theme="light"] .currency-select-button,html[data-theme="light"] .currency-select-menu{background:#fff;border-color:#d3dde2;color:#111619}html[data-theme="light"] .currency-select-button:hover,html[data-theme="light"] .currency-select-button[aria-expanded="true"],html[data-theme="light"] .currency-select-menu button:hover,html[data-theme="light"] .currency-select-menu button.selected{background:#edf6fa;border-color:#6cb7da}html[data-theme="light"] .currency-select-menu button strong{color:#263941}html[data-theme="light"] .currency-select-menu button small{color:#71848d}
@media(max-width:720px){.exchange-rate-row{grid-template-columns:25px minmax(100px,1fr) 158px 38px 82px 12px}.exchange-rate-dialog{width:calc(100vw - 20px)}.display-currency-picker,.currency-select-button{width:150px}}

/* Keep the currency settings control neutral; its outline is not a status light. */
.currency-settings-button,
.currency-settings-button:hover,
.currency-settings-button:focus,
.currency-settings-button:active{
  border-width:1px;
  border-color:#2b4251;
  box-shadow:none;
  text-shadow:none;
}
html[data-theme="light"] .currency-settings-button,
html[data-theme="light"] .currency-settings-button:hover,
html[data-theme="light"] .currency-settings-button:focus,
html[data-theme="light"] .currency-settings-button:active{
  border-color:#d3dde2;
  box-shadow:none;
  text-shadow:none;
}

/* Unified market route and filters. */
.trade-workspace{
  margin-bottom:10px;
  padding:10px;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:80px 36px;
  gap:8px;
  border-radius:8px;
  overflow:visible;
}
.trade-workspace-row{
  min-width:0;
  display:grid;
  gap:8px;
}
.trade-workspace-primary{
  grid-row:1;
  grid-template-columns:170px 36px 170px 108px 64px 135px 120px minmax(220px,280px) minmax(220px,1fr);
  align-items:start;
}
.trade-workspace-secondary{
  grid-row:2;
  grid-template-columns:252px minmax(260px,1fr) 135px 125px;
}
.trade-route-controls>.trade-buy-picker{grid-column:auto;grid-row:auto}
.trade-route-controls>#flipDirection{grid-column:auto;grid-row:auto}
.trade-route-controls>.trade-sell-picker{grid-column:auto;grid-row:auto}
.trade-platform-picker{position:relative;min-width:0;height:36px}
.trade-platform-control,.trade-value-control,.trade-search-control{
  min-width:0;
  border:1px solid #2b4251;
  border-radius:5px;
  background:#1c2b36;
  color:#849aa6;
}
.trade-platform-control{
  width:100%;
  height:36px;
  padding:0 10px;
  display:grid;
  grid-template-columns:22px minmax(0,1fr) 14px;
  align-items:center;
  gap:7px;
  cursor:pointer;
  text-align:left;
}
.trade-platform-control strong{min-width:0;overflow:hidden;color:#91b4c7;font:750 10px/1 Inter,"Segoe UI",sans-serif;text-overflow:ellipsis;white-space:nowrap}
.trade-platform-control .market-logo{width:19px;height:19px;border:0;background:transparent}
.trade-platform-control .market-logo img,.trade-value-control .market-logo img{display:block;width:100%;height:100%;object-fit:cover;transform:scale(1.72)}
.trade-platform-chevron{color:#59717e;font-size:13px;text-align:center}
.trade-platform-select-menu{position:absolute;z-index:120;top:calc(100% + 5px);left:0;width:max(100%,230px);padding:5px;border:1px solid #414348;border-radius:6px;background:#202123;box-shadow:0 14px 30px rgba(0,0,0,.35)}
.trade-sell-picker .trade-platform-select-menu{right:0;left:auto}
.trade-platform-select-menu[hidden]{display:none}
.trade-platform-select-menu button{width:100%;min-height:42px;padding:6px 8px;display:grid;grid-template-columns:26px minmax(0,1fr) 16px;align-items:center;gap:8px;border:0;border-radius:4px;background:transparent;color:#d7d8da;text-align:left;cursor:pointer}
.trade-platform-select-menu button:hover:not(:disabled),.trade-platform-select-menu button.selected{background:#303134}
.trade-platform-select-menu button:disabled{opacity:.48;cursor:not-allowed}
.trade-platform-select-menu button>span strong,.trade-platform-select-menu button>span small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.trade-platform-select-menu button>span strong{font-size:10px}.trade-platform-select-menu button>span small{margin-top:4px;color:#85878b;font-size:8px}.trade-platform-select-menu button>i{color:#65c9f3;font:800 11px/1 Inter;font-style:normal;text-align:center}
html[data-theme="light"] .trade-platform-select-menu{border-color:#d7d7d7;background:#fff;box-shadow:0 14px 30px rgba(0,0,0,.14)}html[data-theme="light"] .trade-platform-select-menu button{color:#222}html[data-theme="light"] .trade-platform-select-menu button:hover:not(:disabled),html[data-theme="light"] .trade-platform-select-menu button.selected{background:#f0f0f0}
.trade-swap-control{
  width:36px;
  height:36px;
  padding:0;
  display:grid;
  place-items:center;
  border:1px solid #2b4251;
  border-radius:5px;
  background:#1c2b36;
  color:#8ba4b0;
  font-size:18px;
  cursor:pointer;
}
.trade-swap-control:hover{border-color:#4e829f;background:#243b4a;color:#dff5ff}
.trade-price-controls{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr) minmax(0,1fr);gap:8px}
.trade-monitor-range{min-width:0;height:80px;display:grid;grid-template-columns:minmax(90px,1fr) minmax(90px,1fr);grid-template-rows:36px 36px;gap:8px}
.trade-monitor-range .trade-age-field{grid-column:1/3;grid-row:2}
.trade-monitor-range .trade-value-control{padding:0 8px}
.trade-monitor-range .trade-value-control b{width:13px;text-align:center}
.trade-monitor-range .trade-age-field b{font-size:15px}
.trade-monitor-range input::placeholder{color:#77797d;opacity:1}
.trade-price-controls>.currency-settings-button{width:36px;height:36px;border-color:#2b4251}
.trade-value-control{height:36px;padding:0 10px;display:flex;align-items:center;gap:8px}
.trade-value-control .market-logo{width:19px;height:19px;flex:none;border:0;background:transparent}
.trade-value-control b{flex:none;color:#63c9f3;font-size:10px}
.trade-value-control input{width:100%;height:32px;margin:0;padding:0;border:0;background:transparent;color:#d7e2e7;font-size:10px;box-shadow:none}
.trade-value-control.range-error{border-color:#ff5876}
.trade-search-control{height:36px;padding:0 10px;display:flex;align-items:center;gap:8px}
.trade-search-control>span{color:#66808d;font-size:17px}
.trade-search-control input{width:100%;height:32px;margin:0;padding:0;border:0;background:transparent;color:#d7e2e7;font-size:10px;box-shadow:none}
.trade-workspace-primary .currency-settings{width:108px;height:36px;display:grid;grid-template-columns:64px 36px;align-items:center;gap:8px}
.trade-workspace-primary .display-currency-picker{width:64px;height:36px;flex:none;min-width:0}
.trade-workspace-primary .currency-select-button{width:64px;height:36px;padding:0 6px;grid-template-columns:12px minmax(0,1fr) 10px;gap:2px;font-size:9px}
.trade-workspace-primary .currency-select-symbol{font-size:9px}
.trade-workspace-primary .currency-select-chevron{font-size:11px}
.trade-workspace-primary .exchange-settings-button{width:36px;height:36px;flex:none;font-size:13px}
.trade-workspace-primary .auto-instant-toggle{height:36px}
.trade-workspace-primary .compact-switch{display:flex;height:36px;margin:0!important;padding:0 10px;border-radius:5px}
.trade-workspace-secondary .filter-exclusions{height:36px;border-radius:5px;min-width:0;padding:0 8px}
.trade-workspace-secondary .filter-reset{height:36px;border-radius:5px}
.help-tips-toggle{width:31px;min-width:31px;height:38px;padding:0;border:0;background:transparent;justify-content:center}.help-tips-toggle>i{margin:0}.help-tips-toggle.active,.help-tips-toggle:hover{border-color:transparent;background:transparent}
.trade-workspace-primary .refresh-box{width:250px;max-width:250px;height:36px;justify-self:end;border-radius:5px!important}
.trade-workspace-primary .refresh-box .refresh-interval{height:34px}
html[data-theme="light"] .trade-platform-control,
html[data-theme="light"] .trade-value-control,
html[data-theme="light"] .trade-search-control,
html[data-theme="light"] .trade-swap-control{background:#fff;border-color:#d8e0e4;color:#687981}
html[data-theme="light"] .trade-platform-control strong,
html[data-theme="light"] .trade-value-control input,
html[data-theme="light"] .trade-search-control input{color:#111619}
@media(max-width:1240px){
  .trade-workspace{grid-template-rows:auto auto}
  .trade-workspace-primary{grid-template-columns:145px 36px 145px 100px 58px 118px 108px minmax(200px,250px);grid-template-rows:36px 36px 36px}
  .trade-workspace-primary .currency-settings{width:100px;grid-template-columns:56px 36px}
  .trade-workspace-primary .display-currency-picker,.trade-workspace-primary .currency-select-button{width:56px}
  .trade-workspace-primary .trade-monitor-range{grid-column:8;grid-row:1/3}
  .trade-workspace-primary .refresh-box{grid-column:1/3;grid-row:3;width:220px;max-width:220px;justify-self:start}
  .trade-workspace-secondary{grid-template-columns:240px minmax(180px,1fr) 125px 110px}
}
@media(max-width:1060px){
  .trade-workspace{grid-template-rows:auto auto}
  .trade-workspace-primary{grid-template-columns:minmax(145px,1fr) 36px minmax(145px,1fr) 100px 58px;grid-template-rows:36px 36px 80px 36px}
  .trade-workspace-primary .compact-switch:first-of-type{grid-column:1/3;grid-row:2}
  .trade-workspace-primary .compact-switch:nth-of-type(2){grid-column:3;grid-row:2}
  .trade-workspace-primary .trade-monitor-range{grid-column:1/6;grid-row:3;width:100%}
  .trade-workspace-primary .refresh-box{grid-column:1/6;grid-row:4;width:220px;max-width:220px;justify-self:start}
  .trade-workspace-secondary{grid-template-columns:252px minmax(180px,1fr) 125px 110px}
}
@media(max-width:720px){
  .trade-workspace{grid-template-rows:auto auto}
  .trade-workspace-primary{grid-template-columns:minmax(105px,1fr) 32px minmax(105px,1fr) 100px 58px;grid-template-rows:36px 36px 80px 36px}
  .trade-workspace-primary .compact-switch:first-of-type{grid-column:1/3;grid-row:2}
  .trade-workspace-primary .compact-switch:nth-of-type(2){grid-column:3/6;grid-row:2}
  .trade-workspace-primary .trade-monitor-range{grid-column:1/6;grid-row:3;width:100%}
  .trade-workspace-primary .refresh-box{grid-column:1/6;grid-row:4;width:250px;max-width:100%;justify-self:start}
  .trade-workspace-secondary{grid-template-columns:minmax(0,1fr) 110px;grid-template-rows:36px 36px 36px}
  .trade-price-controls{grid-column:1/3;grid-row:1}
  .trade-search-control{grid-column:1/3;grid-row:2}
  .trade-workspace-secondary .filter-exclusions{grid-column:1;grid-row:3}
  .trade-workspace-secondary .filter-reset{grid-column:2;grid-row:3}
}

/* Keep the desktop toolbar to exactly two rows. The compact price range sits
   after "Весь рынок" and spans both rows; search stays in row two. */
.trade-workspace{display:block}
.trade-workspace-primary{
  min-height:80px;
  display:grid;
  grid-template-columns:170px 36px 170px 108px 64px 135px 120px minmax(220px,1fr);
  grid-template-rows:36px 36px;
  gap:8px;
  align-items:start;
}
.trade-workspace-primary>.trade-monitor-range{grid-column:8;grid-row:1/3;width:100%}
.trade-workspace-primary>.trade-workspace-secondary{
  grid-column:1/8;
  grid-row:2;
  display:grid;
  grid-template-columns:220px minmax(140px,1fr) 110px 85px 210px;
  grid-template-rows:36px;
  gap:8px;
}
.trade-workspace-primary .refresh-box{grid-column:auto;grid-row:auto;width:210px;max-width:210px;justify-self:stretch}
@media(max-width:1240px) and (min-width:1061px){
  .trade-workspace-primary{grid-template-columns:145px 36px 145px 100px 58px 118px 108px minmax(200px,1fr);grid-template-rows:36px 36px}
  .trade-workspace-primary>.trade-workspace-secondary{grid-column:1/8;grid-row:2;grid-template-columns:220px minmax(140px,1fr) 110px 75px 180px;grid-template-rows:36px}
  .trade-workspace-primary .refresh-box{grid-column:auto;grid-row:auto;width:180px;max-width:180px}
}
@media(max-width:1060px){
  .trade-workspace-primary{min-height:0;grid-template-columns:minmax(145px,1fr) 36px minmax(145px,1fr) 100px 58px;grid-template-rows:36px 36px 80px auto}
  .trade-workspace-primary>.trade-monitor-range{grid-column:1/6;grid-row:3;width:100%}
  .trade-workspace-primary>.trade-workspace-secondary{grid-column:1/6;grid-row:4;grid-template-columns:252px minmax(180px,1fr) 115px 100px;grid-template-rows:36px 36px}
  .trade-workspace-primary .refresh-box{grid-column:1/3;grid-row:2;width:220px;max-width:220px;justify-self:start}
}
@media(max-width:720px){
  .trade-workspace-primary{grid-template-columns:minmax(105px,1fr) 32px minmax(105px,1fr) 100px 58px;grid-template-rows:36px 36px 80px auto}
  .trade-workspace-primary>.trade-workspace-secondary{grid-template-columns:minmax(0,1fr) 110px;grid-template-rows:36px 36px 36px 36px}
  .trade-workspace-primary>.trade-workspace-secondary .trade-price-controls{grid-column:1/3;grid-row:1}
  .trade-workspace-primary>.trade-workspace-secondary .trade-search-control{grid-column:1/3;grid-row:2}
  .trade-workspace-primary>.trade-workspace-secondary .filter-exclusions{grid-column:1;grid-row:3}
  .trade-workspace-primary>.trade-workspace-secondary .filter-reset{grid-column:2;grid-row:3}
  .trade-workspace-primary .refresh-box{grid-column:1/3;grid-row:4;width:250px;max-width:100%}
}

/* One neutral visual language for every control in the unified block. */
.sales-history-head{min-width:155px}.sales-history-head>span:first-child{display:block;margin-bottom:5px}.sales-period-toggle{width:max-content;margin:0 auto;padding:2px;display:inline-flex;gap:1px;border:1px solid #3b3c3f;border-radius:5px;background:#252629}.sales-period-toggle button{min-width:29px;height:23px;padding:0 6px;border:0;border-radius:3px;background:transparent;color:#707176;font:700 9px/1 Inter,"Segoe UI",sans-serif;cursor:pointer}.sales-period-toggle button:hover{color:#d8d8da}.sales-period-toggle button.active{background:#253b4a;color:#65c9f3}.sales-period-toggle button:focus-visible{outline:1px solid #65c9f3;outline-offset:1px}html[data-theme="light"] .sales-period-toggle{border-color:#d6d6d6;background:#eee}html[data-theme="light"] .sales-period-toggle button{color:#777}html[data-theme="light"] .sales-period-toggle button.active{background:#dceef7;color:#147faf}

.trade-workspace .trade-platform-control,
.trade-workspace .trade-swap-control,
.trade-workspace .trade-value-control,
.trade-workspace .trade-search-control,
.trade-workspace .currency-select-button,
.trade-workspace .currency-settings-button,
.trade-workspace .auto-instant-toggle,
.trade-workspace .compact-switch,
.trade-workspace .filter-exclusions,
.trade-workspace .filter-reset,
.trade-workspace .refresh-box{
  margin:0;
  border:1px solid #414245!important;
  border-radius:5px!important;
  background:#27282b!important;
  box-shadow:none!important;
  text-shadow:none!important;
}
.trade-workspace .trade-platform-control:hover,
.trade-workspace .trade-swap-control:hover,
.trade-workspace .currency-select-button:hover,
.trade-workspace .currency-settings-button:hover,
.trade-workspace .auto-instant-toggle:hover,
.trade-workspace .compact-switch:hover,
.trade-workspace .filter-exclusions:hover,
.trade-workspace .filter-reset:hover{
  border-color:#66686c!important;
  background:#303134!important;
}
.trade-workspace .auto-instant-toggle.active{
  border-color:#45bfff!important;
  background:#27282b!important;
  color:#aeb0b4;
}
.market-table .price-sub{display:flex;align-items:center;gap:5px;white-space:nowrap}
.market-table .price-sub span+span:before{content:"·";margin-right:5px;color:#55585d}
.market-table .profit-sub{white-space:nowrap}
.trade-workspace .trade-platform-control strong,
.trade-workspace .currency-select-button strong{color:#d7d8da}
.trade-workspace .trade-platform-chevron,
.trade-workspace .trade-swap-control,
.trade-workspace .trade-value-control b,
.trade-workspace .trade-search-control>span{color:#929499}
.trade-workspace .currency-settings-button{color:#a5a6aa!important}
.trade-workspace .currency-settings-button .sliders-icon i{background:#a5a6aa!important}
.trade-workspace .currency-settings-button .sliders-icon i:after{
  border-color:#a5a6aa!important;
  background:#27282b!important;
}
.trade-workspace .trade-value-control input,
.trade-workspace .trade-search-control input{color:#f1f1f2}
.trade-workspace .trade-value-control,
.trade-workspace .trade-search-control{margin-top:0!important}
.trade-price-controls>.currency-settings-button,
.trade-price-controls>.trade-value-min,
.trade-price-controls>.trade-value-max{align-self:center}
.trade-workspace .refresh-box .refresh-interval{background:#202123}
.applied-filters{min-height:30px;margin:-3px 0 9px;padding:6px 10px;display:flex;align-items:center;gap:6px;overflow-x:auto;border:1px solid #34363a;border-radius:5px;background:#1d1e20;color:#87898d;font:600 8px/1.25 Inter,"Segoe UI",sans-serif;white-space:nowrap}.applied-filters strong{color:#cfd1d3;font-weight:700}.applied-filter-chip{padding:4px 7px;border:1px solid #3c3e42;border-radius:4px;background:#252629;color:#aaacb0}.applied-filter-chip b{color:#6fd0f2}.applied-filter-chip.warning{border-color:#745b25;color:#d7b969}.applied-filters::-webkit-scrollbar{height:4px}.applied-filters::-webkit-scrollbar-thumb{background:#4b4e53;border-radius:4px}
html[data-theme="light"] .applied-filters{border-color:#d2d6d9;background:#f1f3f4;color:#6b7074}html[data-theme="light"] .applied-filter-chip{border-color:#d7dbde;background:#fff;color:#4e555a}
html[data-theme="light"] .trade-workspace .trade-platform-control,
html[data-theme="light"] .trade-workspace .trade-swap-control,
html[data-theme="light"] .trade-workspace .trade-value-control,
html[data-theme="light"] .trade-workspace .trade-search-control,
html[data-theme="light"] .trade-workspace .currency-select-button,
html[data-theme="light"] .trade-workspace .currency-settings-button,
html[data-theme="light"] .trade-workspace .auto-instant-toggle,
html[data-theme="light"] .trade-workspace .compact-switch,
html[data-theme="light"] .trade-workspace .filter-exclusions,
html[data-theme="light"] .trade-workspace .filter-reset,
html[data-theme="light"] .trade-workspace .refresh-box{
  border-color:#d7d7d7!important;
  background:#fff!important;
}
html[data-theme="light"] .help-tips-toggle,html[data-theme="light"] .help-tips-toggle:hover,html[data-theme="light"] .help-tips-toggle.active{border-color:transparent;background:transparent}html[data-theme="light"] .help-tips-toggle>i{background:#ddd}html[data-theme="light"] .help-tips-toggle input:checked+i{background:#bfe5f5}html[data-theme="light"] .help-tips-toggle input:checked+i:after{background:#147faf}
.platform-filter-menu{
  position:absolute;
  z-index:100;
  top:43px;
  left:0;
  width:min(392px,calc(100vw - 18px));
  max-height:min(620px,calc(100vh - 90px));
  overflow:auto;
  padding:8px;
  border:1px solid #414245;
  border-radius:6px;
  background:#202123;
  box-shadow:0 18px 45px rgba(0,0,0,.48);
}
.platform-filter-menu[hidden]{display:none}
.platform-filter-head{min-height:45px;padding:0 7px 8px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #37383b;gap:12px}.platform-filter-head>span{min-width:0}.platform-filter-head small{display:block;margin-top:4px;color:#7e8085;font-size:8px;text-transform:none;letter-spacing:0;font-weight:500}
.platform-filter-head strong{color:#d9dadd;font-size:10px;text-transform:uppercase;letter-spacing:.05em}
.platform-filter-head b{padding:4px 7px;border-radius:4px;background:#343538;color:#9fa1a5;font-size:9px;white-space:nowrap}
.platform-filter-menu label{height:42px;margin:6px 0 0;padding:0 9px;display:grid;grid-template-columns:20px 22px 1fr;align-items:center;gap:8px;border-radius:5px;background:#27282b;color:#d1d2d4}
.platform-filter-menu label input{display:none}
.platform-filter-menu label>i{width:18px;height:18px;display:grid;place-items:center;border-radius:4px;background:#73767b;color:#171819;font:800 11px/1 Inter,"Segoe UI",sans-serif}
.platform-filter-menu label .market-logo{width:19px;height:19px}
.platform-filter-menu label strong{font-size:11px}
.platform-filter-section{padding-top:8px}.platform-filter-section>span{display:block;padding:2px 8px 5px;color:#77797e;font-size:8px;letter-spacing:.07em}.platform-filter-row{min-height:47px;margin:4px 0 0;padding:5px 7px;display:grid;grid-template-columns:17px 25px minmax(0,1fr) auto 23px;align-items:center;gap:7px;border-radius:5px;background:#27282b;color:#d1d2d4;cursor:pointer}.platform-filter-row:hover{background:#303135}.platform-filter-row:focus-visible{outline:1px solid #6eddae;outline-offset:1px}.platform-filter-row.available:not(.connected){opacity:.78}.platform-filter-row .market-logo{width:22px;height:22px}.platform-check{width:16px;height:16px;display:grid;place-items:center;border-radius:4px;background:#4e5155;color:#171819;font:800 10px/1 Inter,"Segoe UI",sans-serif}.platform-filter-row.connected .platform-check{background:#5adca1}.platform-filter-copy{min-width:0}.platform-filter-copy strong,.platform-filter-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.platform-filter-copy strong{font-size:10px}.platform-filter-copy small{margin-top:3px;color:#85868b;font-size:7px}.platform-state{font-size:7px;white-space:nowrap;letter-spacing:.03em}.platform-state.ready{color:#66dca2}.platform-state.api{color:#85878c}.platform-site-link{width:22px;height:22px;padding:0;border:1px solid #414348;border-radius:4px;background:#202123;color:#a9aaae;font:700 12px/1 Inter;cursor:pointer}.platform-site-link:hover{color:#fff;border-color:#6b6d72}.marketplace-mark{width:23px;height:23px;display:grid;place-items:center;border-radius:5px;background:color-mix(in srgb,var(--marketplace-color) 23%,#202123);border:1px solid color-mix(in srgb,var(--marketplace-color) 68%,#414348);color:var(--marketplace-color);font:800 7px/1 Inter,"Segoe UI",sans-serif;font-style:normal;white-space:nowrap}
html[data-theme="light"] .platform-filter-menu{border-color:#d7d7d7;background:#fff;box-shadow:0 18px 40px rgba(0,0,0,.16)}
html[data-theme="light"] .platform-filter-menu label{background:#f3f3f3;color:#202124}
html[data-theme="light"] .platform-filter-row{background:#f3f3f3;color:#202124}html[data-theme="light"] .platform-filter-row:hover{background:#e9e9e9}html[data-theme="light"] .platform-site-link{background:#fff;color:#4d4e51;border-color:#d4d4d4}html[data-theme="light"] .platform-filter-copy small{color:#77787c}

/* Consistent keyboard focus and motion preferences across legacy and current controls. */
:where(button,a,input,select,textarea,[tabindex]):focus-visible{outline:2px solid #65c9f3;outline-offset:2px}

/* Local price database ---------------------------------------------------- */
.price-database-page{--db-blue:#45bfff;--db-green:#58d68d;--db-red:#ff6e67}
.price-database-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:3px 0 18px}.price-database-heading h1{margin:0 0 6px;color:#f5f5f3;font-size:25px;letter-spacing:-.03em}.price-database-heading p:last-child{margin:0;color:#929397;font-size:10px}.price-database-stats{min-width:210px;padding:11px 14px;border:1px solid #3e3f42;border-radius:7px;background:#242527;text-align:right}.price-database-stats strong,.price-database-stats small{display:block}.price-database-stats strong{font-size:10px;color:#e7e7e5}.price-database-stats small{margin-top:4px;color:#85868a;font-size:8px}
.price-database-toolbar{display:flex;align-items:center;gap:7px;min-height:58px;margin-bottom:12px;padding:9px;border-radius:7px;overflow-x:auto}.price-view-tabs,.price-period-tabs{display:flex;flex:none;padding:3px;border:1px solid #3d3e41;border-radius:6px;background:#191a1c}.price-view-tabs button,.price-period-tabs button,.price-db-refresh,.price-pagination button{height:30px;padding:0 12px;border:0;border-radius:4px;background:transparent;color:#999a9d;font:700 9px Inter,"Segoe UI",sans-serif;cursor:pointer;white-space:nowrap}.price-view-tabs button.active,.price-period-tabs button.active{background:#343538;color:#fff}.price-view-tabs button.active{color:#70cdf0}.price-db-field{display:flex;align-items:center;gap:7px;flex:none;height:38px;margin:0;padding:0 9px;border:1px solid #3d3e41;border-radius:6px;background:#27282a}.price-db-field span{color:#85868a;font-size:8px;white-space:nowrap}.price-db-field input,.price-db-field select{width:68px;height:28px;margin:0;padding:0 5px;border:0;background:transparent;color:#efefed;box-shadow:none;font-size:9px}.price-db-field.price-db-type select{width:110px}.price-db-refresh{flex:none;width:38px;height:38px;padding:0;border:1px solid #414245;background:#292a2c;color:#d9d9d7;font-size:16px}.price-db-refresh.loading{animation:db-spin .8s linear infinite}@keyframes db-spin{to{transform:rotate(360deg)}}
.price-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.price-leaderboard{overflow:hidden;border-radius:7px}.price-leaderboard>header{height:44px;padding:0 13px;display:grid;grid-template-columns:18px 1fr auto;align-items:center;border-bottom:1px solid #3c3d40}.price-leaderboard>header strong{font-size:10px}.price-leaderboard>header small{color:#77787b;font-size:8px}.trend-up{color:var(--db-green)}.trend-down{color:var(--db-red)}.trend-sales{color:#e9b94f}.price-leader-list{min-height:465px}.price-leader-row{width:100%;min-height:58px;padding:6px 10px;border:0;border-bottom:1px solid #393a3d;background:transparent;color:#eee;text-align:left;display:grid;grid-template-columns:18px 40px minmax(0,1fr) 70px 70px;align-items:center;gap:7px;cursor:pointer}.price-leader-row:hover{background:#292a2c}.price-leader-rank{color:#65666a;font-size:9px;text-align:center}.price-leader-image{position:relative;width:38px;height:38px;display:grid;place-items:center;overflow:hidden;border-radius:5px;background:#292a2c;border-bottom:2px solid var(--rarity,#777);font-size:8px}.price-leader-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.price-leader-name{min-width:0}.price-leader-name small,.price-leader-name strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.price-leader-name small{margin-bottom:4px;color:#838488;font-size:7px}.price-leader-name strong{font-size:9px}.mini-spark{width:66px;height:26px}.mini-spark path{fill:none;stroke:var(--spark,#45bfff);stroke-width:1.6;vector-effect:non-scaling-stroke}.price-leader-value{text-align:right}.price-leader-value strong,.price-leader-value small{display:block}.price-leader-value strong{font-size:9px}.price-leader-value small{margin-top:3px;color:#77787c;font-size:7px}.price-leader-value .up{color:var(--db-green)}.price-leader-value .down{color:var(--db-red)}.price-db-loading{min-height:180px;display:grid;place-items:center;color:#797a7e;font-size:9px}.price-db-empty{padding:55px 20px;color:#77787b;font-size:9px;text-align:center;line-height:1.55}
.price-overview-grid[hidden],.price-catalog[hidden]{display:none!important}
.price-catalog{overflow:hidden;border-radius:7px}.price-catalog-head{min-height:62px;padding:10px 14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #3c3d40}.price-catalog-head label{width:min(420px,60%);margin:0}.price-catalog-head label>span{display:block;margin-bottom:5px;color:#808185;font-size:8px}.price-catalog-head input{height:30px;margin:0}.price-catalog-head>span{color:#85868a;font-size:9px}.price-catalog .table-wrap{max-height:calc(100vh - 350px);min-height:430px}.price-catalog tbody tr{cursor:pointer}.price-catalog td{height:62px}.price-catalog .db-item{display:flex;align-items:center;gap:10px;min-width:280px}.price-catalog .db-thumb{position:relative;width:42px;height:42px;flex:none;display:grid;place-items:center;overflow:hidden;border-radius:6px;background:#292a2c;border-bottom:2px solid var(--rarity,#777)}.price-catalog .db-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.price-catalog .db-item span strong,.price-catalog .db-item span small{display:block}.price-catalog .db-item span strong{max-width:350px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.price-catalog .db-item span small{margin-top:5px;color:#7e7f83;font-size:8px}.price-pagination{height:46px;display:flex;align-items:center;justify-content:center;gap:14px;border-top:1px solid #3c3d40}.price-pagination button{width:34px;background:#2c2d2f;color:#fff}.price-pagination button:disabled{opacity:.35}.price-pagination span{min-width:70px;text-align:center;color:#96979a;font-size:9px}
.price-item-dialog{width:min(1120px,calc(100vw - 34px));border-radius:8px}.price-item-dialog form{max-height:calc(100vh - 34px);padding:20px;overflow:auto}.price-item-dialog .dialog-head p:last-child{margin:6px 0 0;color:#8d8e92;font-size:9px}.price-item-layout{display:grid;grid-template-columns:255px minmax(0,1fr);gap:12px;margin-top:17px}.price-item-summary,.price-chart-panel{border:1px solid #3e3f42;border-radius:7px;background:#232426}.price-item-summary{padding:12px}.price-item-image{position:relative;height:150px;display:grid;place-items:center;overflow:hidden;border-radius:6px;background:#1c1d1f;border-bottom:3px solid var(--rarity,#777);color:#777;font-size:10px}.price-item-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.price-item-metrics{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}.price-item-metric{padding:9px;border:1px solid #3b3c3f;border-radius:5px;background:#292a2c}.price-item-metric span,.price-item-metric strong{display:block}.price-item-metric span{color:#7e7f83;font-size:7px}.price-item-metric strong{margin-top:5px;color:#fff;font-size:11px}.price-chart-panel{min-width:0;padding:12px}.price-chart-toolbar{display:flex;align-items:center;justify-content:space-between}.price-chart-toolbar>strong{font-size:10px}.price-chart-toolbar span{display:flex}.price-chart-toolbar button{height:25px;padding:0 9px;border:1px solid #3e3f42;background:#252628;color:#88898d;font:700 8px Inter;cursor:pointer}.price-chart-toolbar button:first-child{border-radius:4px 0 0 4px}.price-chart-toolbar button:last-child{border-radius:0 4px 4px 0}.price-chart-toolbar button.active{background:#36373a;color:#fff}.price-item-chart{height:200px;margin-top:8px}.price-item-chart svg{width:100%;height:100%;overflow:visible}.price-item-chart .grid{stroke:#3a3b3e;stroke-width:.6}.price-item-chart .steam-chart{fill:none;stroke:#45bfff;stroke-width:2;vector-effect:non-scaling-stroke}.price-item-chart .market-chart{fill:none;stroke:#f2c14f;stroke-width:2;vector-effect:non-scaling-stroke}.price-chart-empty{height:100%;display:grid;place-items:center;color:#7c7d81;font-size:9px}.price-chart-legend{display:flex;justify-content:center;gap:20px;color:#898a8e;font-size:8px}.price-chart-legend span{display:flex;align-items:center;gap:6px}.price-chart-legend i{width:15px;height:2px}.steam-line{background:#45bfff}.market-line{background:#f2c14f}.price-platform-rows{margin-top:12px;border:1px solid #3e3f42;border-radius:7px;overflow:hidden}.price-platform-row{min-height:56px;padding:9px 12px;display:grid;grid-template-columns:minmax(180px,1fr) repeat(4,minmax(90px,130px)) auto;align-items:center;gap:10px;border-bottom:1px solid #3b3c3f}.price-platform-row:last-child{border-bottom:0}.price-platform-name{display:flex;align-items:center;gap:9px;font-size:10px}.price-platform-name img{width:24px;height:24px}.price-platform-cell span,.price-platform-cell strong{display:block}.price-platform-cell span{color:#7c7d81;font-size:7px}.price-platform-cell strong{margin-top:4px;font-size:9px}.price-platform-link{height:30px;padding:0 12px;border:1px solid #444548;border-radius:4px;background:#2a2b2d;color:#ddd;font:700 8px Inter;cursor:pointer}
.price-platform-divider{min-height:35px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #3b3c3f;border-bottom:1px solid #3b3c3f;background:#1d1e20}.price-platform-divider strong{font-size:8px;color:#a8a9ad;letter-spacing:.07em}.price-platform-divider span{font-size:8px;color:#77787c}.pending-platform{grid-template-columns:minmax(180px,1fr) minmax(190px,1.3fr) auto}.pending-platform .price-platform-name{min-width:0}.pending-platform .price-platform-name>span{min-width:0}.pending-platform .price-platform-name strong,.pending-platform .price-platform-name small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pending-platform .price-platform-name small{margin-top:3px;color:#77787c;font-size:7px}.price-platform-unavailable strong,.price-platform-unavailable small{display:block}.price-platform-unavailable strong{font-size:8px;color:#b0b1b4}.price-platform-unavailable small{margin-top:4px;color:#737579;font-size:7px}
html[data-theme="light"] .price-database-heading h1{color:#111}html[data-theme="light"] .price-database-stats,html[data-theme="light"] .price-database-toolbar,html[data-theme="light"] .price-item-summary,html[data-theme="light"] .price-chart-panel{background:#fff;border-color:#ddd}html[data-theme="light"] .price-leader-row:hover{background:#f3f3f3}html[data-theme="light"] .price-leader-row{color:#171717;border-color:#e1e1e1}html[data-theme="light"] .price-db-field{background:#fff;border-color:#ddd}html[data-theme="light"] .price-db-field input,html[data-theme="light"] .price-db-field select{color:#111}html[data-theme="light"] .price-view-tabs,html[data-theme="light"] .price-period-tabs{background:#f4f4f4;border-color:#ddd}html[data-theme="light"] .price-view-tabs button.active,html[data-theme="light"] .price-period-tabs button.active{background:#111;color:#fff}html[data-theme="light"] .price-platform-divider{background:#f4f4f4;border-color:#ddd}
@media(max-width:1180px){.price-overview-grid{grid-template-columns:1fr}.price-leader-list{min-height:0}.price-leader-row{grid-template-columns:20px 42px minmax(0,1fr) 100px 90px}.price-item-layout{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:760px){.price-database-heading{align-items:flex-start;flex-direction:column}.price-database-stats{width:100%;text-align:left}.price-item-layout{grid-template-columns:1fr}.price-platform-row{grid-template-columns:1fr 1fr}.price-platform-name{grid-column:1/-1}.pending-platform{grid-template-columns:minmax(0,1fr) auto}.pending-platform .price-platform-unavailable{grid-column:1/2}.price-platform-divider{align-items:flex-start;flex-direction:column;padding-top:8px;padding-bottom:8px}.price-leader-row{grid-template-columns:18px 40px minmax(0,1fr) 65px}.price-leader-row .mini-spark{display:none}}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
  /* This status dot is functional feedback, not decorative motion. */
  .refresh-toggle.refreshing .live-dot{animation-duration:.72s!important;animation-iteration-count:1!important}
}

/* Branded contextual help for controls and strategy settings. */
.help-tooltip{
  --tooltip-arrow-left:50%;
  position:fixed;
  z-index:10000;
  width:min(330px,calc(100vw - 16px));
  min-height:58px;
  padding:11px 13px 11px 11px;
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  align-items:start;
  gap:10px;
  border:1px solid #45474b;
  border-radius:7px;
  background:linear-gradient(145deg,#252629,#1d1e20);
  box-shadow:0 16px 42px rgba(0,0,0,.48),inset 0 1px rgba(255,255,255,.025);
  color:#f1f1f2;
  opacity:0;
  visibility:hidden;
  transform:translateY(-3px);
  pointer-events:none;
  transition:opacity .14s ease,transform .14s ease,visibility .14s;
}
.help-tooltip.visible{opacity:1;visibility:visible;transform:translateY(0)}
.help-tooltip-icon{
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  border:1px solid #4b8199;
  border-radius:50%;
  background:#24333a;
  color:#75d6ff;
  font:800 12px/1 Inter,"Segoe UI",sans-serif;
}
.help-tooltip-copy{min-width:0;display:block;padding-top:1px}
.help-tooltip-copy strong{display:block;margin-bottom:4px;color:#f4f4f5;font-size:10px;line-height:1.25;letter-spacing:.025em}
.help-tooltip-copy small{display:block;color:#a8aaae;font-size:9px;line-height:1.55}
.help-tooltip-arrow{position:absolute;left:var(--tooltip-arrow-left);width:9px;height:9px;background:#222326;border:solid #45474b;transform:translateX(-50%) rotate(45deg)}
.help-tooltip[data-placement="bottom"] .help-tooltip-arrow{top:-5px;border-width:1px 0 0 1px}
.help-tooltip[data-placement="top"] .help-tooltip-arrow{bottom:-5px;border-width:0 1px 1px 0}
html[data-theme="light"] .help-tooltip{border-color:#cfd2d5;background:linear-gradient(145deg,#fff,#f5f6f7);box-shadow:0 16px 38px rgba(25,30,35,.18);color:#202124}
html[data-theme="light"] .help-tooltip-icon{border-color:#7abbd7;background:#eaf7fc;color:#167fa9}
html[data-theme="light"] .help-tooltip-copy strong{color:#202124}
html[data-theme="light"] .help-tooltip-copy small{color:#656a70}
html[data-theme="light"] .help-tooltip-arrow{background:#fafbfc;border-color:#cfd2d5}

/* База цен v2 — более контрастная информационная панель. */
.content:has(.price-database-page.active){padding-left:max(24px,calc((100vw - 1680px)/2));padding-right:max(24px,calc((100vw - 1680px)/2));overflow-x:hidden}
.price-database-page{
  --db-blue:#4fc3ff;
  --db-green:#4ee6a0;
  --db-red:#ff6868;
  --db-amber:#ffbd48;
  width:100%;
  max-width:1680px;
  margin:0 auto;
  transform:none;
}
.price-database-heading{align-items:center;margin:0 0 18px;padding:0 2px}
.price-database-title{min-width:0}
.price-database-title .eyebrow{margin-bottom:7px;color:#55c8ff;font-size:10px;letter-spacing:.18em}
.price-database-heading h1{margin:0 0 8px;color:#fff;font-size:31px;line-height:1;letter-spacing:-.045em}
.price-database-heading p:last-child{max-width:760px;color:#aab7c0;font-size:12px;line-height:1.5}
.price-database-stats{
  min-width:270px;
  min-height:62px;
  padding:11px 16px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:11px;
  border:1px solid #365061;
  border-radius:9px;
  background:linear-gradient(135deg,#1b2b35,#182128);
  text-align:left;
  box-shadow:inset 0 1px rgba(255,255,255,.025);
}
.price-db-status-dot{width:9px;height:9px;flex:none;border-radius:50%;background:#4ee6a0;box-shadow:0 0 0 4px rgba(78,230,160,.1)}
.price-database-stats>span:last-child{min-width:0}
.price-database-stats strong{color:#f7fbfd;font-size:12px;line-height:1.2}
.price-database-stats small{margin-top:5px;color:#8299a8;font-size:9px}
.price-database-toolbar{
  min-height:76px;
  margin-bottom:14px;
  padding:10px;
  display:grid;
  grid-template-columns:auto minmax(420px,1fr) 88px;
  align-items:end;
  gap:12px;
  overflow:visible;
  border:1px solid #314653;
  border-radius:9px;
  background:#18232b;
}
.price-toolbar-leading{display:flex;align-items:flex-end;gap:10px;min-width:max-content}
.price-control-group{display:grid;gap:5px}
.price-control-label{padding-left:3px;color:#718795;font-size:8px;font-weight:800;letter-spacing:.13em}
.price-view-tabs,.price-period-tabs{height:40px;padding:3px;border-color:#344b59;border-radius:7px;background:#111a20}
.price-view-tabs button,.price-period-tabs button{height:32px;padding:0 13px;border-radius:5px;color:#9eafba;font-size:10px;transition:background .15s,color .15s,border-color .15s}
.price-view-tabs button span{margin-right:4px;color:#5bcaff}
.price-view-tabs button:hover,.price-period-tabs button:hover{background:#22323d;color:#fff}
.price-view-tabs button.active,.price-period-tabs button.active{background:#23485d;color:#f2fbff;box-shadow:inset 0 0 0 1px #316983}
.price-view-tabs button.active{color:#77d6ff}
.price-toolbar-filters{display:grid;grid-template-columns:minmax(105px,.75fr) repeat(2,minmax(105px,.8fr)) minmax(155px,1.25fr);gap:7px;min-width:0}
.price-db-field{height:51px;padding:6px 10px;display:grid;grid-template-columns:1fr;grid-template-rows:14px 24px;gap:0;border-color:#354a57;border-radius:7px;background:#202d35}
.price-db-field:focus-within{border-color:#4aaed7;box-shadow:0 0 0 2px rgba(74,174,215,.1)}
.price-db-field span{color:#718591;font-size:8px;font-weight:800;letter-spacing:.08em}
.price-db-field input,.price-db-field select{width:100%!important;height:24px;padding:0;border:0;background:transparent;color:#f2f7fa;font-size:11px;font-weight:700}
.price-db-field select{cursor:pointer}.price-db-field select option{background:#202d35;color:#fff}
.price-db-refresh{width:88px;height:51px;padding:0 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-color:#3a596a;border-radius:7px;background:#203541;color:#61ceff}
.price-db-refresh span{font-size:17px;line-height:1}.price-db-refresh em{color:#a9c4d2;font-size:8px;font-style:normal;font-weight:750;letter-spacing:.04em}
.price-db-refresh:hover{border-color:#58bde8;background:#284758;color:#8adeff}
.price-db-refresh.loading span{animation:db-spin .8s linear infinite}.price-db-refresh.loading{animation:none}
.price-overview-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch}
.price-leaderboard{overflow:hidden;border:1px solid #314653;border-radius:9px;background:#18232b;box-shadow:0 12px 28px rgba(0,0,0,.12)}
.price-leaderboard>header{height:58px;padding:0 14px;display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:9px;border-bottom:1px solid #304552;background:#1d2b34}
.price-board-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:7px;font-size:16px;font-weight:900}
.rising-board .price-board-icon{border:1px solid rgba(78,230,160,.28);background:rgba(78,230,160,.1)}
.falling-board .price-board-icon{border:1px solid rgba(255,104,104,.28);background:rgba(255,104,104,.1)}
.sales-board .price-board-icon{border:1px solid rgba(255,189,72,.3);background:rgba(255,189,72,.1)}
.price-board-title{min-width:0}.price-board-title strong,.price-board-title small{display:block}
.price-board-title strong{color:#f5fafc;font-size:13px;line-height:1.15}.price-board-title small{margin-top:4px;color:#8095a2;font-size:9px}
.price-leaderboard>header>b{padding:5px 7px;border:1px solid #3a4e59;border-radius:5px;color:#7f939e;font-size:7px;letter-spacing:.09em}
.rising-board>header>b{border-color:rgba(78,230,160,.22);color:#65dca3}.falling-board>header>b{border-color:rgba(255,104,104,.22);color:#ff8585}.sales-board>header>b{border-color:rgba(255,189,72,.22);color:#f1bd60}
.price-leader-list{min-height:520px;max-height:calc(100vh - 346px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#486170 transparent}
.price-leader-list::-webkit-scrollbar{width:6px}.price-leader-list::-webkit-scrollbar-thumb{border-radius:8px;background:#486170}
.price-leader-row{min-height:65px;padding:7px 10px;grid-template-columns:22px 46px minmax(0,1fr) 92px 82px;gap:8px;border-bottom-color:#2c414d;color:#eef5f8;transition:background .12s,transform .12s}
.price-leader-row:hover{background:#22333e}.price-leader-row:focus-visible{position:relative;z-index:2;outline:2px solid #53c7f6;outline-offset:-2px}
.price-leader-rank{width:19px;height:19px;display:grid;place-items:center;border-radius:5px;background:#22333d;color:#8fa4b0;font-size:9px;font-weight:800}
.price-leader-image{width:44px;height:44px;border-radius:6px;background:linear-gradient(145deg,#24343e,#1b252c);border-bottom-width:3px}
.price-leader-name small{margin-bottom:5px;color:#78909e;font-size:8px;text-transform:uppercase;letter-spacing:.045em}.price-leader-name strong{color:#f4f8fa;font-size:11px;line-height:1.25}
.mini-spark{width:88px;height:32px;padding:3px;border-radius:5px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.018))}.mini-spark path{stroke-width:2}
.rising-board .mini-spark path{stroke:var(--db-green)!important}.falling-board .mini-spark path{stroke:var(--db-red)!important}.sales-board .mini-spark path{stroke:var(--db-amber)!important}
.price-leader-value strong{color:#f9fcfd;font-size:11px}.price-leader-value small{margin-top:4px;font-size:9px;font-weight:800}.price-leader-value .up{color:var(--db-green)}.price-leader-value .down{color:var(--db-red)}
.price-db-loading,.price-db-empty{color:#8aa0ad;font-size:10px;line-height:1.65}.price-db-empty{padding:60px 28px}
.price-db-progress{margin:22px 18px;padding:18px;display:grid;grid-template-columns:34px minmax(0,1fr);gap:2px 10px;border:1px dashed #36505e;border-radius:8px;background:#1b2932;color:#849aa7}
.price-db-progress>span{grid-row:1/3;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#203b49;color:#58caff;font-size:16px}.price-db-progress strong{color:#c9d6dd;font-size:10px}.price-db-progress small{font-size:9px;line-height:1.45}
.price-catalog{border:1px solid #393a3d;border-radius:7px;background:#171819}.price-catalog-head{min-height:72px;padding:11px 15px;border-bottom-color:#393a3d;background:#202123}.price-catalog-head label>span{color:#898a8d;font-size:9px;font-weight:750}.price-catalog-head input{height:35px;border-color:#414246;border-radius:5px;background:#191a1c;color:#fff;font-size:11px}.price-catalog-head>span{padding:6px 9px;border-radius:4px;background:#292a2c;color:#74cfee;font-size:10px;font-weight:750}
.price-card-grid{min-height:430px;max-height:calc(100vh - 350px);padding:10px;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px;align-content:start;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#486170 transparent}
.price-card-grid::-webkit-scrollbar{width:6px}.price-card-grid::-webkit-scrollbar-thumb{border-radius:8px;background:#486170}
.price-catalog-card{position:relative;min-width:0;min-height:350px;padding:10px 11px 0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #414246;border-radius:7px;background:#202123;color:#eef1f2;font:inherit;text-align:left;cursor:pointer;box-shadow:none;transition:border-color .14s,background .14s,transform .14s}
.price-catalog-card::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--rarity,#6f8290)}
.price-catalog-card:hover{border-color:#62737c;background:#242527;transform:translateY(-1px)}
.price-catalog-card:focus-visible{outline:2px solid #55c7f5;outline-offset:-2px}
.price-card-topline{min-height:23px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.price-card-difference{padding:4px 6px;border:1px solid #46535a;border-radius:4px;background:#26343b;color:#aebcc3;font-size:9px;font-weight:850;line-height:1}
.price-card-difference.positive{border-color:rgba(80,218,145,.35);background:rgba(51,178,111,.13);color:#61dda0}.price-card-difference.negative{border-color:rgba(255,102,96,.34);background:rgba(227,74,69,.12);color:#ff7771}
.price-card-sales{color:#78909e;font-size:8px;font-weight:700;white-space:nowrap}
.price-card-image{position:relative;width:100%;height:160px;flex:0 0 160px;margin:2px 0 8px;padding:4px;display:grid;place-items:start center;overflow:hidden;background:transparent;color:#747578;font-size:10px}
.price-card-image::before{content:none}
.price-card-image img,.price-card-image .item-image{position:relative!important;inset:auto!important;z-index:1;display:block;width:100%!important;height:100%!important;max-width:100%;max-height:100%;object-fit:contain!important;object-position:center top!important;background:transparent!important;border:0!important;transition:transform .16s}.price-catalog-card:hover .price-card-image img{transform:scale(1.02)}
.price-card-copy{display:block;min-height:43px}.price-card-copy small,.price-card-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.price-card-copy small{margin-bottom:5px;color:#79909d;font-size:8px;text-transform:uppercase;letter-spacing:.035em}.price-card-copy strong{color:#f4f8fa;font-size:11px;line-height:1.3}
.price-card-range{min-height:43px;margin-top:6px;display:flex;align-items:flex-end;justify-content:space-between;gap:8px}.price-card-range>span{min-width:0}.price-card-range small,.price-card-range strong{display:block}.price-card-range small{color:#747579;font-size:7px;text-transform:uppercase}.price-card-range strong{margin-top:5px;overflow:hidden;color:#f4f6f7;font-size:13px;letter-spacing:.015em;text-overflow:ellipsis;white-space:nowrap}.price-card-range>b{flex:none;padding-bottom:1px;font-size:9px}.price-card-range>b.positive{color:#58d68d}.price-card-range>b.negative{color:#ff6e67}.price-card-range>b.neutral{color:#7d7e82}
.price-card-chart{height:38px;margin-top:3px;display:block;overflow:hidden;border-bottom:1px solid #38393c}.price-card-chart .mini-spark{width:100%;height:38px;padding:0;border-radius:0;background:transparent}.price-card-chart .mini-spark path{stroke-width:1.8}
.price-card-footer{min-height:29px;margin:0;padding:6px 0 5px;display:flex;align-items:center;justify-content:space-between;gap:7px;border:0;color:#7b7c80;font-size:8px}.price-card-footer span{white-space:nowrap}.price-card-footer .sales{color:#58d68d}
.price-card-details{min-height:24px;padding:0 0 7px;display:flex;align-items:center;justify-content:space-between;gap:7px;color:#6f7074;font-size:7px}.price-card-details b{color:#aeb2b4;font-weight:750}.price-card-details time{white-space:nowrap}
.price-card-grid>.price-db-loading,.price-card-grid>.price-db-empty{grid-column:1/-1;width:100%}
.price-pagination{border-top-color:#393a3d;background:#202123}.price-pagination button{background:#2c2d2f;color:#bde8f9}.price-pagination span{color:#a5a6a9;font-size:10px;font-weight:700}
html[data-theme="light"] .price-database-heading h1{color:#15222a}
html[data-theme="light"] .price-database-heading p:last-child{color:#607784}
html[data-theme="light"] .price-database-stats{border-color:#bfd6e2;background:linear-gradient(135deg,#f8fdff,#eaf5fa)}
html[data-theme="light"] .price-database-stats strong{color:#1a2b34}
html[data-theme="light"] .price-database-toolbar,html[data-theme="light"] .price-leaderboard,html[data-theme="light"] .price-catalog{border-color:#cbdde6;background:#f7fbfd}
html[data-theme="light"] .price-leaderboard>header,html[data-theme="light"] .price-catalog-head,html[data-theme="light"] .price-pagination{border-color:#d1e0e7;background:#edf5f8}
html[data-theme="light"] .price-board-title strong,html[data-theme="light"] .price-leader-name strong,html[data-theme="light"] .price-leader-value strong,html[data-theme="light"] .price-card-copy strong{color:#17272f}
html[data-theme="light"] .price-leader-row{color:#17272f;border-color:#d8e5eb}html[data-theme="light"] .price-leader-row:hover{background:#e9f4f8}
html[data-theme="light"] .price-catalog-card{border-color:#cbdde6;background:linear-gradient(145deg,#fff,#edf5f8);color:#17272f;box-shadow:0 5px 14px rgba(41,81,99,.08)}
html[data-theme="light"] .price-catalog-card:hover{border-color:#8eb8ca;background:linear-gradient(145deg,#fff,#e7f2f6)}html[data-theme="light"] .price-card-range{border-color:#d1e1e8}html[data-theme="light"] .price-card-range strong,html[data-theme="light"] .price-card-details b{color:#233943}html[data-theme="light"] .price-card-chart{border-color:#d1e1e8}
html[data-theme="light"] .price-view-tabs,html[data-theme="light"] .price-period-tabs{background:#e7f0f4;border-color:#c4d8e2}
html[data-theme="light"] .price-view-tabs button.active,html[data-theme="light"] .price-period-tabs button.active{background:#d4eef9;color:#147da9;box-shadow:inset 0 0 0 1px #78bdda}
html[data-theme="light"] .price-db-field{background:#fff;border-color:#c9dce5}html[data-theme="light"] .price-db-field input,html[data-theme="light"] .price-db-field select{color:#1a2931}
@media(max-width:1420px){.price-database-toolbar{grid-template-columns:1fr auto}.price-toolbar-leading{grid-column:1/-1}.price-toolbar-filters{grid-column:1}.price-db-refresh{grid-column:2}.price-leader-row{grid-template-columns:20px 44px minmax(0,1fr) 76px 74px}.mini-spark{width:72px}}
@media(max-width:1180px){.price-overview-grid{grid-template-columns:1fr}.price-leader-list{min-height:0;max-height:520px}.price-leader-row{grid-template-columns:24px 48px minmax(0,1fr) 120px 100px}.mini-spark{width:112px}.price-database-toolbar{grid-template-columns:1fr}.price-toolbar-leading{flex-wrap:wrap;min-width:0}.price-toolbar-filters{grid-column:1;grid-template-columns:repeat(4,minmax(0,1fr))}.price-db-refresh{grid-column:1;width:100%;height:40px;flex-direction:row}.price-db-refresh em{font-size:9px}}
@media(max-width:720px){.price-database-heading{align-items:flex-start}.price-database-heading h1{font-size:27px}.price-database-stats{min-width:0;width:100%}.price-toolbar-leading{display:grid}.price-toolbar-filters{grid-template-columns:1fr 1fr}.price-db-field.price-db-type{grid-column:1/-1}.price-view-tabs,.price-period-tabs{width:100%;overflow-x:auto}.price-leader-row{grid-template-columns:20px 44px minmax(0,1fr) 76px}.price-leader-row .mini-spark{display:none}.price-board-title small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.price-leaderboard>header>b{display:none}}

/* Full-viewport layout ---------------------------------------------------
   The application is a data workspace, so every page uses the available
   window instead of being constrained by a centred desktop container. */
.topbar{
  width:100%;
  padding-left:12px;
  padding-right:12px;
}
.content,
.content:has(.price-database-page.active){
  width:100%;
  min-width:0;
  padding-left:12px;
  padding-right:12px;
  overflow-x:hidden;
}
.page,
.price-database-page{
  width:100%;
  max-width:none;
  margin-left:0;
  margin-right:0;
  transform:none;
}
.footer{
  width:100%;
  padding-left:12px;
  padding-right:12px;
}
.catalog-toolbar,
.trade-workspace,
.market-table-panel,
.settings-grid,
.api-panel,
.log-panel,
.price-database-toolbar,
.price-overview-grid,
.price-catalog{
  width:100%;
  max-width:100%;
  min-width:0;
}
.catalog-toolbar-scroll,
.table-wrap{
  max-width:100%;
  overscroll-behavior-inline:contain;
}
.market-table-panel .table-wrap,
.price-catalog .table-wrap,
.page>.table-panel .table-wrap{
  width:100%;
  overflow-x:auto;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}

/* Compact monitors: move navigation below the brand and preserve all
   controls without allowing the document itself to grow horizontally. */
@media(max-width:980px){
  .shell{grid-template-rows:112px minmax(0,1fr) 30px}
  .topbar{
    height:112px;
    padding:0 10px;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:60px 45px;
    column-gap:8px;
    row-gap:0;
  }
  .topbar .brand{grid-column:1;grid-row:1;order:initial}
  .topbar .top-stats{grid-column:2;grid-row:1;order:initial;max-width:100%;gap:3px}
  .topbar .top-stats .stat{display:none}
  .topbar .sidebar{
    grid-column:1/-1;
    grid-row:2;
    order:initial;
    width:100%;
    max-width:100%;
    overflow:hidden;
  }
  .topbar .sidebar nav{
    width:100%;
    max-width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:none;
    overscroll-behavior-inline:contain;
  }
  .topbar .sidebar nav::-webkit-scrollbar{display:none}
  .content{padding-top:14px;padding-bottom:44px}
  .footer{grid-row:3}
  .subscription-banner{align-items:flex-start;flex-wrap:wrap}
  .subscription-copy{flex:1 1 420px}
  .settings-grid{grid-template-columns:1fr}
  .page-heading{align-items:flex-start;flex-wrap:wrap}
  .page-heading .actions{width:100%;overflow-x:auto}
  dialog{max-width:calc(100vw - 20px)}
  dialog form{max-width:100%;max-height:calc(100vh - 20px);overflow:auto}
}

/* Phones: near edge-to-edge canvas, horizontal navigation and local table
   scrolling. No panel is allowed to widen the whole page. */
@media(max-width:600px){
  .shell{grid-template-rows:106px minmax(0,1fr) 26px}
  .topbar{height:106px;padding:0 6px;grid-template-rows:57px 43px}
  .brand{gap:8px}
  .brand-mark{width:32px;height:32px;border-radius:7px}
  .brand-mark:after{font-size:15px}
  .brand-name{font-size:17px}
  .brand-subtitle{display:none}
  .topbar .top-stats{padding:3px;min-height:40px}
  .topbar .badge{display:none}
  .steam-auth-button{width:34px;min-width:34px;max-width:34px;padding:0;justify-content:center}
  .steam-auth-button span,.steam-auth-chevron{display:none!important}
  .theme-toggle{width:32px;height:32px}
  .sidebar{height:40px;padding:2px;border-radius:7px}
  .sidebar nav{height:34px;gap:2px}
  .nav-item{height:34px;padding:0 10px;border-radius:5px;gap:5px;font-size:10px}
  .nav-icon{font-size:10px}
  .content,
  .content:has(.price-database-page.active){padding:10px 6px 34px}
  .footer{padding:0 6px;font-size:8px}
  .footer>span:last-child{display:none}
  .status-banner{min-height:0;padding:11px;border-radius:7px;gap:10px}
  .subscription-copy{flex-basis:100%;align-items:flex-start!important}
  .subscription-copy strong{font-size:10px}
  .subscription-copy small{font-size:8px;line-height:1.4}
  .subscription-button{width:100%}
  .catalog-toolbar{padding:6px;border-radius:7px;overflow-x:auto}
  .catalog-toolbar-scroll{gap:6px}
  .trade-workspace{padding:7px}
  .trade-workspace-primary{grid-template-columns:minmax(88px,1fr) 32px minmax(88px,1fr) 100px 58px}
  .trade-platform-control{min-width:0}
  .trade-platform-control strong{overflow:hidden;text-overflow:ellipsis}
  .trade-price-controls{grid-column:1/-1}
  .trade-search-control{grid-column:1/-1}
  .trade-workspace-primary .currency-settings{min-width:0}
  .trade-workspace-primary .display-currency-picker,
  .trade-workspace-primary .currency-select-button{min-width:0}
  .market-table-panel{border-radius:4px}
  .market-table{min-width:1120px}
  .market-table-panel .table-wrap{min-height:320px;max-height:calc(100vh - 315px)}
  .page-heading{gap:12px;margin-bottom:14px}
  .page-heading h1{font-size:21px}
  .page-heading>button{width:100%}
  .settings-card,.api-panel{padding:14px}
  .api-row,.api-help-row,.steam-inventory-row{grid-template-columns:1fr}
  .api-row input,.api-help-row input,.steam-inventory-row input{grid-column:1}
  .watch-item{grid-template-columns:28px minmax(0,1fr) 34px}
  .watch-limit{grid-column:2}
  .log-panel{padding:6px 10px;min-height:300px}
  .log-item{grid-template-columns:80px minmax(0,1fr);gap:7px}
  .log-message,.log-value{grid-column:2}
  .price-database-heading h1{font-size:25px}
  .price-database-toolbar{padding:7px;gap:8px}
  .price-toolbar-filters{grid-template-columns:1fr}
  .price-db-field.price-db-type{grid-column:auto}
  .price-leader-row{padding-left:6px;padding-right:6px;grid-template-columns:18px 42px minmax(0,1fr) 68px}
  .price-leader-value strong{font-size:10px}
  .price-catalog-head{align-items:flex-start;flex-direction:column;gap:9px}
  .price-catalog-head label{width:100%}
  .price-card-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:7px;padding:7px;min-height:360px;max-height:calc(100vh - 330px)}
  .price-catalog-card{min-height:350px;padding:8px 8px 0;border-radius:6px}
  .price-card-image{height:132px;flex-basis:132px;margin-top:1px;padding:3px}
  .price-card-copy{min-height:39px}.price-card-copy strong{font-size:10px}.price-card-copy small{font-size:7px}
  .price-card-price{padding:6px}.price-card-price strong{font-size:9px}
  .price-card-range strong{font-size:10px}.price-card-range>b{font-size:8px}
  .price-card-details time{display:none}
  .price-item-dialog,.pricing-dialog,.exchange-rate-dialog,.exclusions-dialog{width:calc(100vw - 12px)}
  .price-item-dialog form,.pricing-dialog form{padding:14px}
  .price-platform-row{grid-template-columns:1fr 1fr}
  .exchange-rate-status{height:auto;min-height:50px;margin:10px;padding:8px;gap:8px;flex-wrap:wrap}
  .exchange-rate-hint{margin-left:10px;margin-right:10px}
  .exchange-rate-row{margin-left:10px;margin-right:10px;grid-template-columns:25px minmax(0,1fr) 74px;gap:6px}
  .exchange-mode{grid-column:2/4;width:100%}
  .exchange-equals{display:none}
  .exchange-rate-row input{grid-column:2}
  .exchange-suffix{grid-column:3}
  .exchange-rate-footer{align-items:flex-start;flex-direction:column;padding:10px}
  .exchange-rate-footer .button{width:100%}
  .quality-menu,.type-menu,.category-menu,.platform-filter-menu{width:min(310px,calc(100vw - 12px));max-width:calc(100vw - 12px)}
  .steam-account-menu{right:-40px;width:min(225px,calc(100vw - 12px))}
  .toast-container{left:6px;right:6px;bottom:34px}
  .toast{width:100%}
}

/* Unified application header ---------------------------------------------
   Keep the brand, primary navigation and account controls on one visual
   line on desktop. Older responsive rules above are intentionally
   overridden here so the header cannot switch to the former detached
   two-panel layout on ordinary monitors. */
.shell{
  grid-template-rows:88px minmax(0,1fr) 32px;
}
.topbar{
  height:88px;
  padding:0 12px;
  display:grid;
  grid-template-columns:auto minmax(380px,1fr) auto;
  grid-template-rows:1fr;
  align-items:center;
  gap:8px;
  background:#171819;
  border-bottom:1px solid #34373a;
}
.topbar .brand{
  grid-column:3;
  grid-row:1;
  order:initial;
  justify-self:end;
  align-items:flex-start;
  width:min(230px,100%);
  min-width:0;
  max-width:100%;
  overflow:hidden;
}
.topbar .brand-mark{flex:none}
.topbar .brand>div:last-child{min-width:0;max-width:100%;flex:1;overflow:hidden}
.topbar .brand-name,
.topbar .brand-subtitle{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar .sidebar{
  grid-column:1;
  grid-row:1;
  order:initial;
  justify-self:start;
  width:auto;
  max-width:100%;
  height:44px;
  padding:3px;
  overflow:hidden;
  border:1px solid #34373a;
  border-radius:6px;
  background:#1d1f21;
}
.topbar .sidebar nav{
  width:max-content;
  min-width:0;
  height:36px;
  display:flex;
  justify-content:center;
  gap:3px;
  overflow:visible;
}
.topbar .nav-item{
  height:36px;
  padding:0 11px;
  border-radius:4px;
}
.topbar .top-stats{
  grid-column:2;
  grid-row:1;
  order:initial;
  justify-self:end;
  width:max-content;
  max-width:100%;
  min-height:44px;
  padding:4px;
  gap:3px;
  overflow:visible;
  border:1px solid #34373a;
  border-radius:6px;
  background:#1d1f21;
}
.topbar .stat,
.topbar .steam-auth-button,
.topbar .theme-toggle,
.topbar .badge{border-radius:4px}
.topbar .balance-stat{
  min-width:102px;
  padding:0 9px;
  display:grid;
  grid-template-columns:25px minmax(0,1fr);
  align-items:center;
  gap:7px;
  border:0;
  border-right:1px solid #393a3d;
  background:transparent;
  color:inherit;
  text-align:left;
  cursor:pointer;
}
.topbar .balance-stat>span{min-width:0;display:block}
.topbar .balance-stat small,.topbar .balance-stat strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar .balance-stat small{color:#77787c;font:700 8px/1 Inter,"Segoe UI",sans-serif;letter-spacing:.08em;text-transform:uppercase}
.topbar .balance-stat strong{margin-top:4px;color:#45bfff;font-size:11px}
.topbar .balance-stat:hover{background:#27292b}
.topbar .balance-stat.loading .balance-wallet{animation:balance-wallet-pulse .7s ease-in-out infinite}
.balance-wallet{position:relative;width:24px;height:18px;border-radius:3px;background:#9ca0a5}
.balance-wallet:before{content:"";position:absolute;left:2px;right:2px;top:-4px;height:5px;border:2px solid #73777c;border-bottom:0;border-radius:3px 3px 0 0}
.balance-wallet:after{content:"";position:absolute;right:-2px;top:6px;width:8px;height:6px;border-radius:2px;background:#bfc2c5;box-shadow:inset 3px 0 #74787c}
@keyframes balance-wallet-pulse{50%{opacity:.5;transform:scale(.94)}}
html[data-theme="light"] .topbar .balance-stat{border-color:#dedede}
html[data-theme="light"] .topbar .balance-stat:hover{background:#ececec}
html[data-theme="light"] .topbar .balance-stat small{color:#76767a}
html[data-theme="light"] .topbar .balance-stat strong{color:#147faf}

.content,
.content:has(.price-database-page.active){
  grid-row:2;
  padding-top:10px;
}
.subscription-banner{
  width:100%;
  min-height:58px;
  margin:0 0 10px;
  padding:9px 14px;
  border-radius:5px;
  gap:12px;
}
.footer{grid-row:3}

/* A compact desktop still keeps the one-line composition. */
@media(max-width:1320px) and (min-width:1161px){
  .topbar{grid-template-columns:auto minmax(365px,1fr) auto;gap:6px;padding:0 10px}
  .topbar .nav-item{padding-left:8px;padding-right:8px;gap:5px;font-size:10px}
  .topbar .top-stats{gap:2px}
  .topbar .stat{min-width:58px;padding-left:6px;padding-right:6px}
  .topbar .balance-stat{min-width:86px;grid-template-columns:21px minmax(0,1fr);gap:5px}
  .topbar .balance-wallet{width:20px;height:16px}
  .topbar .steam-auth-button{max-width:126px;padding-left:7px;padding-right:7px}
  .topbar .badge{padding-left:7px;padding-right:7px}
}

/* Only genuinely narrow screens use a second header row. */
@media(max-width:1160px){
  .shell{grid-template-rows:112px minmax(0,1fr) 30px}
  .topbar{
    height:112px;
    padding:0 12px;
    grid-template-columns:auto minmax(0,1fr);
    grid-template-rows:60px 44px;
    column-gap:8px;
    row-gap:0;
  }
  .topbar .brand{grid-column:2;grid-row:1;justify-self:end;width:min(230px,100%)}
  .topbar .top-stats{grid-column:1;grid-row:1;max-width:100%}
  .topbar .top-stats .stat{display:none}
  .topbar .sidebar{
    grid-column:1/-1;
    grid-row:2;
    justify-self:stretch;
    width:100%;
  }
  .topbar .sidebar nav{
    width:100%;
    max-width:100%;
    justify-content:center;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:none;
  }
  .topbar .sidebar nav::-webkit-scrollbar{display:none}
  .content,
  .content:has(.price-database-page.active){padding-top:10px}
  .subscription-banner{align-items:center;flex-wrap:nowrap}
  .subscription-copy strong{font-size:11px;line-height:1.2}
  .subscription-copy small{font-size:9px;line-height:1.3}
}

@media(max-width:600px){
  .shell{grid-template-rows:106px minmax(0,1fr) 26px}
  .topbar{height:106px;padding:0 6px;grid-template-rows:57px 43px}
  .topbar .brand{gap:8px}
  .topbar .brand-mark{width:32px;height:32px;border-radius:5px}
  .topbar .brand-name{font-size:17px}
  .topbar .brand-subtitle{display:none}
  .topbar .top-stats{min-height:40px;padding:3px}
  .topbar .badge{display:none}
  .topbar .steam-auth-button{width:34px;min-width:34px;max-width:34px;padding:0;justify-content:center}
  .topbar .steam-auth-button span,
  .topbar .steam-auth-chevron{display:none!important}
  .topbar .theme-toggle{width:32px;height:32px}
  .topbar .sidebar{height:40px;padding:2px;border-radius:5px}
  .topbar .sidebar nav{height:34px;justify-content:flex-start}
  .topbar .nav-item{height:34px;padding:0 10px;border-radius:3px;gap:5px;font-size:10px}
  .content,
  .content:has(.price-database-page.active){padding-top:10px}
  .subscription-banner{align-items:flex-start;flex-wrap:wrap;padding:11px;border-radius:5px}
  .subscription-copy{flex-basis:100%}
}

/* Sales history: compact marketplace cards with the selected period in the heading. */
.sales-history-head{min-width:150px}
.sales-pair{
  display:grid;
  grid-template-columns:repeat(2,minmax(58px,1fr));
  gap:7px;
  min-width:132px;
}
.sale-box{
  min-width:0;
  min-height:55px;
  padding:6px 8px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border:1px solid transparent;
  border-radius:4px;
  background:#292a2c;
  text-align:center;
}
.sale-platform-icon{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
}
.sale-platform-icon img{
  display:block;
  width:20px;
  height:20px;
  object-fit:contain;
  border-radius:50%;
  clip-path:circle(50%);
}
.sale-box strong{
  display:block;
  margin-top:3px;
  color:#70caff;
  font-size:11px;
  line-height:1;
}
html[data-theme="light"] .sale-box{
  background:#f2f2f2;
  border-color:#dedede;
}
html[data-theme="light"] .sale-box strong{color:#218bc1}

/* Detailed sale events shown only while contextual help is enabled. */
.sales-history-tooltip{
  --tooltip-arrow-left:50%;
  position:fixed;
  z-index:10001;
  width:min(310px,calc(100vw - 16px));
  overflow:visible;
  border:1px solid #3d8fb4;
  border-radius:5px;
  background:#192731;
  box-shadow:0 16px 42px rgba(0,0,0,.5);
  color:#eef5f8;
  opacity:0;
  visibility:hidden;
  transform:translateY(-3px);
  pointer-events:none;
  transition:opacity .14s ease,transform .14s ease,visibility .14s;
}
.sales-history-tooltip.visible{opacity:1;visibility:visible;transform:translateY(0)}
.sales-tooltip-head{height:30px;padding:0 10px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #31434e}
.sales-tooltip-head img{width:17px;height:17px;object-fit:contain;border-radius:50%;clip-path:circle(50%)}
.sales-tooltip-head strong{font-size:9px;color:#cdd8de}
.sales-tooltip-stats{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #31434e}
.sales-tooltip-stats>span{min-height:46px;padding:8px 5px;text-align:center;border-right:1px solid #31434e}
.sales-tooltip-stats>span:last-child{border-right:0}
.sales-tooltip-stats small,.sales-tooltip-stats strong{display:block}
.sales-tooltip-stats small{color:#647984;font-size:7px}
.sales-tooltip-stats strong{margin-top:5px;color:#dce8ed;font-size:9px}
.sales-tooltip-list{max-height:250px;overflow:hidden}
.sales-tooltip-row{min-height:28px;padding:0 10px;display:grid;grid-template-columns:1fr 32px auto;align-items:center;gap:6px;border-bottom:1px solid #293b46;font-size:8px}
.sales-tooltip-row:last-child{border-bottom:0}
.sales-tooltip-row time{color:#697d88}
.sales-tooltip-row span{color:#81939c;text-align:center}
.sales-tooltip-row strong{color:#e4edf1;text-align:right}
.sales-tooltip-row strong.up{color:#58e99a}
.sales-tooltip-row strong.down{color:#ff7272}
.sales-tooltip-empty{padding:18px 14px;color:#81939c;font-size:9px;line-height:1.55;text-align:center}
.sales-tooltip-arrow{position:absolute;left:var(--tooltip-arrow-left);width:9px;height:9px;background:#192731;border:solid #3d8fb4;transform:translateX(-50%) rotate(45deg)}
.sales-history-tooltip[data-placement="bottom"] .sales-tooltip-arrow{top:-5px;border-width:1px 0 0 1px}
.sales-history-tooltip[data-placement="top"] .sales-tooltip-arrow{bottom:-5px;border-width:0 1px 1px 0}
.sale-platform-icon{cursor:help}
.sale-platform-icon:focus-visible{outline:1px solid #70caff;outline-offset:2px;border-radius:50%}
html[data-theme="light"] .sales-history-tooltip{border-color:#5ea4c2;background:#fff;color:#202124;box-shadow:0 16px 38px rgba(25,30,35,.2)}
html[data-theme="light"] .sales-tooltip-head,html[data-theme="light"] .sales-tooltip-stats,html[data-theme="light"] .sales-tooltip-stats>span,html[data-theme="light"] .sales-tooltip-row{border-color:#dce4e8}
html[data-theme="light"] .sales-tooltip-head strong,html[data-theme="light"] .sales-tooltip-stats strong,html[data-theme="light"] .sales-tooltip-row strong{color:#202124}
html[data-theme="light"] .sales-tooltip-row strong.up{color:#16884f}
html[data-theme="light"] .sales-tooltip-row strong.down{color:#c93b3b}
html[data-theme="light"] .sales-tooltip-arrow{background:#fff;border-color:#5ea4c2}

/* Price overview: use the same neutral surfaces as the catalog cards.
   Trend colours remain semantic; only the blue-tinted containers are unified. */
html:not([data-theme="light"]) .price-leaderboard{
  border-color:#414246;
  border-radius:7px;
  background:#202123;
  box-shadow:none;
}
html:not([data-theme="light"]) .price-leaderboard>header{
  border-bottom-color:#3b3c3f;
  background:#202123;
}
html:not([data-theme="light"]) .price-leaderboard>header>b{
  border-color:#414246;
  background:#242527;
}
html:not([data-theme="light"]) .price-leader-row{
  border-bottom-color:#393a3d;
  color:#eef1f2;
}
html:not([data-theme="light"]) .price-leader-row:hover{
  background:#292a2c;
}
html:not([data-theme="light"]) .price-leader-rank{
  background:#292a2c;
  color:#999a9d;
}
html:not([data-theme="light"]) .price-leader-image{
  background:#292a2c;
}
html:not([data-theme="light"]) .price-leader-name small{
  color:#898a8d;
}
html:not([data-theme="light"]) .price-board-title small,
html:not([data-theme="light"]) .price-leader-value small{
  color:#898a8d;
}
html:not([data-theme="light"]) .mini-spark{
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.012));
}
html:not([data-theme="light"]) .price-leader-list{
  scrollbar-color:#5a5b5f transparent;
}
html:not([data-theme="light"]) .price-leader-list::-webkit-scrollbar-thumb{
  background:#5a5b5f;
}

/* Ultra-narrow screens: the brand uses the same horizontal boundaries as
   the subscription banner, so its full name is never clipped. */
@media(max-width:420px){
  .topbar{
    grid-template-columns:minmax(0,1fr);
  }
  .topbar .brand{
    grid-column:1/-1;
    grid-row:1;
    justify-self:stretch;
    width:100%;
    max-width:none;
    display:grid;
    grid-template-columns:32px minmax(0,1fr);
    align-items:start;
    gap:8px;
    overflow:hidden;
  }
  .topbar .brand>div:last-child{
    width:100%;
    max-width:none;
    overflow:hidden;
  }
  .topbar .brand-name{
    width:100%;
    max-width:none;
    overflow:hidden;
    text-align:right;
    text-overflow:clip;
    font-size:clamp(15px,8vw,17px);
  }
  .topbar .top-stats{
    display:none;
  }
}

/* Brand boundary ---------------------------------------------------------
   The content column owns the vertical scrollbar, while the header does
   not. Reserve the same scrollbar strip in the header and keep the italic
   wordmark inside its box, so its right edge always follows the right edge
   of the subscription/content panels. */
.topbar{
  padding-right:calc(12px + var(--content-scrollbar-width, 0px));
}
.topbar .brand,
.topbar .brand>div:last-child{
  min-width:0;
  max-width:100%;
  overflow:hidden;
}
.topbar .brand-name{
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  padding-right:2px;
  overflow:hidden;
  white-space:nowrap;
  text-align:right;
  text-overflow:clip;
  transform:none;
  font-size:clamp(15px,1.5vw,21px);
}

@media(max-width:1160px){
  .topbar{
    padding-right:calc(12px + var(--content-scrollbar-width, 0px));
  }
}

@media(max-width:600px){
  .topbar{
    padding-right:calc(6px + var(--content-scrollbar-width, 0px));
  }
  .topbar .brand-name{
    font-size:clamp(13px,5.5vw,17px);
  }
}

@media(max-width:420px){
  .topbar .brand{
    max-width:100%;
  }
  .topbar .brand>div:last-child{
    max-width:100%;
  }
  .topbar .brand-name{
    max-width:100%;
    padding-right:2px;
  }
}

/* Catalog artwork must always stay completely inside the visible card.
   Row snapping also prevents the internal scroller from resting halfway
   through an item and visually cutting its artwork at the top edge. */
.price-card-grid{
  scroll-snap-type:y mandatory;
  scroll-padding-block:10px;
  overscroll-behavior-y:contain;
}
.price-catalog-card{
  scroll-snap-align:start;
  scroll-snap-stop:always;
}
.price-card-image{
  place-items:center;
  padding:10px 12px;
  contain:paint;
}
.price-card-image img,
.price-card-image .item-image{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  transform:none!important;
}
.price-catalog-card:hover .price-card-image img{
  transform:none!important;
}
@media(max-width:600px){
  .price-card-grid{scroll-padding-block:7px}
  .price-card-image{padding:8px 9px}
}

/* Steam profile and remembered account picker. */
.steam-auth-button.authenticated{height:36px;max-width:190px;padding:3px 8px}.steam-auth-button>img{width:28px;height:28px;flex:none;border-radius:4px;object-fit:cover}.steam-auth-button>img.profile-avatar{border:1px solid #456173}.steam-auth-copy{min-width:0;display:flex;align-items:center}.steam-auth-copy strong{display:block;max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit;font-size:10px;font-weight:750}.steam-account-menu{width:260px}.steam-account-summary img,.remembered-steam-account>img{width:30px;height:30px;flex:none;border-radius:4px;object-fit:cover}.steam-account-summary img.profile-avatar,.remembered-steam-account>img:not([src$="steam-logo.svg"]){border:1px solid #48565e}.remembered-steam-accounts{padding:6px 0;border-bottom:1px solid #373a3d}.remembered-steam-title{display:block;padding:3px 9px 4px;color:#737b80;font-size:7px;letter-spacing:.11em}.steam-account-menu .remembered-steam-account{height:43px;margin-top:2px}.remembered-steam-account>span{min-width:0}.remembered-steam-account strong,.remembered-steam-account small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.remembered-steam-account strong{font-size:9px}.remembered-steam-account small{margin-top:3px;color:#858c91;font-size:7px}.steam-account-menu a[hidden],.steam-account-summary[hidden],.remembered-steam-accounts[hidden]{display:none}
html[data-theme="light"] .remembered-steam-accounts{border-color:#e1e3e5}

/* Final two-row monitor toolbar -----------------------------------------
   Keep the familiar compact layout. Both rows end on the same vertical
   line; none of the range fields stretch across an ultrawide monitor. */
@media(min-width:821px){
  .trade-workspace{
    display:block;
    padding:10px;
  }
  .trade-workspace-primary{
    min-height:80px;
    display:grid;
    width:1051px;
    max-width:100%;
    grid-template-columns:150px 36px 150px 108px 58px 120px 93px 280px;
    grid-template-rows:36px 36px;
    gap:8px;
    align-items:start;
    justify-content:start;
  }
  .trade-workspace-primary>.trade-monitor-range{
    grid-column:8;
    grid-row:1/3;
    width:100%;
    height:80px;
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:36px 36px;
    gap:8px;
  }
  .trade-workspace-primary>.trade-monitor-range .trade-range-field{
    width:100%;
  }
  .trade-workspace-primary>.trade-monitor-range .trade-age-field{
    grid-column:1/3;
    grid-row:2;
    width:100%;
  }
  .trade-workspace-primary>.trade-workspace-secondary{
    grid-column:1/8;
    grid-row:2;
    min-width:0;
    display:grid;
    grid-template-columns:200px 95px 110px 75px 251px;
    grid-template-rows:36px;
    gap:8px;
    align-items:stretch;
  }
  .trade-workspace-primary>.trade-workspace-secondary .trade-price-controls,
  .trade-workspace-primary>.trade-workspace-secondary .trade-search-control,
  .trade-workspace-primary>.trade-workspace-secondary .filter-exclusions,
  .trade-workspace-primary>.trade-workspace-secondary .filter-reset,
  .trade-workspace-primary>.trade-workspace-secondary .refresh-box{
    grid-row:1;
    min-width:0;
    height:36px;
  }
  .trade-workspace-primary>.trade-workspace-secondary .trade-search-control{
    width:95px;
    max-width:95px;
  }
  .trade-workspace-primary>.trade-workspace-secondary .refresh-box{
    width:251px;
    max-width:251px;
    justify-self:stretch;
  }
}

@media(min-width:821px) and (max-width:1100px){
  .trade-workspace-primary{
    width:778px;
    grid-template-columns:110px 32px 110px 88px 50px 86px 76px 170px;
  }
  .trade-workspace-primary>.trade-workspace-secondary{
    grid-template-columns:160px 90px 88px 65px 165px;
  }
  .trade-workspace-primary>.trade-workspace-secondary .trade-search-control{
    width:90px;
    max-width:90px;
  }
  .trade-workspace-primary>.trade-workspace-secondary .refresh-box{
    width:165px;
    max-width:165px;
  }
  .trade-workspace-primary .compact-switch{
    padding-left:7px;
    padding-right:7px;
    gap:5px;
  }
}

/* Temporary visual toolbar editor. The selected layout is kept locally so
   it survives a reload while the final fixed grid is being prepared. */
.trade-layout-editor-tools{
  position:fixed;
  z-index:600;
  right:14px;
  bottom:42px;
  display:flex;
  align-items:center;
  gap:7px;
  padding:5px;
  border:1px solid #45474b;
  border-radius:7px;
  background:rgba(31,32,34,.96);
  box-shadow:0 10px 26px rgba(0,0,0,.38);
  backdrop-filter:blur(8px);
}
.trade-layout-editor-tools button{
  height:31px;
  padding:0 10px;
  border:1px solid #4a4c50;
  border-radius:5px;
  background:#292a2d;
  color:#d6d8da;
  font:700 9px/1 Inter,"Segoe UI",sans-serif;
  cursor:pointer;
}
.trade-layout-editor-tools button:hover{border-color:#6bc9ef;color:#fff}
.trade-layout-editor-tools.active{border-color:#4e9fc2}
.trade-layout-editor-tools.active .trade-layout-toggle{border-color:#55bee9;color:#6dd1fa}
.trade-layout-editor-hint{padding:0 5px;color:#a5a9ad;font:650 9px/1.2 Inter,"Segoe UI",sans-serif;white-space:nowrap}
.trade-layout-reset{color:#a9aaad!important}
.trade-workspace-primary.custom-toolbar-layout{
  position:relative!important;
  display:block!important;
  width:100%!important;
  max-width:none!important;
}
.trade-workspace-primary.custom-toolbar-layout>.trade-workspace-secondary{display:contents!important}
.trade-workspace-primary.custom-toolbar-layout [data-toolbar-layout-item]{
  position:absolute!important;
  max-width:none!important;
  margin:0!important;
  box-sizing:border-box!important;
}
.trade-workspace-primary.layout-editing [data-toolbar-layout-item]{
  z-index:20!important;
  outline:1px dashed #58c7f4;
  outline-offset:2px;
  cursor:move!important;
  user-select:none!important;
  touch-action:none!important;
}
.trade-workspace-primary.layout-editing [data-toolbar-layout-item]>*:not(.trade-layout-resize-handle){pointer-events:none!important}
.trade-workspace-primary.layout-editing [data-toolbar-layout-item]::before{
  content:attr(data-layout-title);
  position:absolute;
  z-index:5;
  left:3px;
  bottom:calc(100% + 4px);
  display:none;
  padding:3px 5px;
  border:1px solid #4f9cba;
  border-radius:3px;
  background:#1e272d;
  color:#87dafb;
  font:700 8px/1 Inter,"Segoe UI",sans-serif;
  white-space:nowrap;
  pointer-events:none;
}
.trade-workspace-primary.layout-editing [data-toolbar-layout-item]:hover::before,
.trade-workspace-primary.layout-editing [data-toolbar-layout-item].layout-item-active::before{display:block}
.trade-layout-resize-handle{
  display:none;
  position:absolute;
  z-index:30;
  top:2px;
  right:-5px;
  width:10px;
  height:calc(100% - 4px);
  border-right:3px solid #62cef8;
  cursor:ew-resize;
  pointer-events:auto!important;
  touch-action:none;
}
.trade-workspace-primary.layout-editing .trade-layout-resize-handle{display:block}
.trade-workspace-primary.layout-editing [data-toolbar-layout-item].layout-item-active{
  z-index:40!important;
  outline-style:solid;
  background-color:#303236!important;
  box-shadow:0 8px 20px rgba(0,0,0,.32)!important;
}
html[data-theme="light"] .trade-layout-editor-tools{border-color:#cfd2d5;background:rgba(255,255,255,.96)}
html[data-theme="light"] .trade-layout-editor-tools button{border-color:#d3d6d8;background:#f4f5f6;color:#34373a}
html[data-theme="light"] .trade-layout-editor-hint{color:#62676b}
@media(max-width:1279px){.trade-layout-editor-tools{display:none}}
