/* Weapon-market detail panel: mirrors the desktop application's ability view. */
.copy-toast{position:fixed;right:22px;bottom:22px;z-index:120;display:flex;align-items:center;gap:9px;max-width:min(360px,calc(100vw - 32px));padding:12px 15px;border:1px solid #2e855b;border-radius:9px;background:#173b2c;color:#effff5;box-shadow:0 12px 34px rgba(13,32,24,.28);font-weight:700;font-size:13px}.copy-toast span{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#48b878;color:#0b2919;font-size:12px}.copy-toast.error{border-color:#b65a67;background:#4c2028}.copy-toast.error span{background:#f18a96;color:#40141b}.toast-enter-active,.toast-leave-active{transition:opacity .18s ease,transform .18s ease}.toast-enter-from,.toast-leave-to{opacity:0;transform:translateY(12px)}
.ability-panel{margin-top:13px;padding:14px 15px;background:#fff;border-top:2px solid #fc525f}
.ability-heading{font-size:14px;color:#26364c;margin-bottom:8px}
.ability-total{margin-left:112px;font-size:12px;color:#718198}
.ability-meter{height:9px;background:#e1e6ed;display:flex;margin:7px 0 10px}
.ability-meter span{display:block;height:100%;background:#f5bc1b;min-width:4px}
.ability-meter span:nth-child(2){background:#45a5ee}.ability-meter span:nth-child(3){background:#b55ae3}.ability-meter span:nth-child(4){background:#35b76c}
.ability-option{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:10px 0;border-top:1px dotted #ced7e2}
.ability-option div{min-width:0}.ability-option b{display:block;color:#1672cf;font-size:13px}.ability-option small{display:block;white-space:pre-wrap;color:#425b7e;margin-top:2px}.ability-option>strong{white-space:nowrap;color:#d88b00;font-size:14px}.ability-option:nth-of-type(5)>strong{color:#19a45f}
@media(max-width:600px){.ability-total{margin-left:0}.ability-option{align-items:flex-start}.ability-option>strong{font-size:12px}}
.item-art.image-missing img{display:none}.item-art.image-missing:after{content:'TFD';color:#fff;font-weight:900;font-size:25px}

/* Red-card listings follow the official market's gold text and dense three-column sheet. */
.module-information{padding:14px 16px 16px}.module-options-wrap{max-height:205px;overflow:auto;background:#fff;border-top:2px solid #fc525f;scrollbar-color:#cfd2d5 transparent}.module-option-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding-top:0;border-top:0;min-width:660px}.module-option-card{min-width:0;min-height:78px;padding:10px 28px 10px 13px;border-left:0;border-right:1px solid #d7dce2;background:#fff;color:#d69c18;overflow-wrap:anywhere;word-break:break-word}.module-option-card:nth-child(3n){border-right:0}.module-option-card span,.module-option-card b,.module-option-card small{display:inline;color:#d69c18;font-size:14px;line-height:1.52;font-weight:500;white-space:pre-wrap}.module-option-card b{margin-left:8px;font-weight:800}.module-option-card small{margin-left:8px}.module-information .option-summary{white-space:pre-wrap;color:#d69c18}.module-listing .item-information{margin-top:0}
.module-option-card small{display:block;margin:4px 0 0}.ability-option small,.option-summary{overflow-wrap:anywhere;word-break:break-word}
@media(max-width:700px){.module-information{padding:11px}.module-options-wrap{max-height:210px}.module-option-grid{min-width:560px}.module-option-card{padding:9px 12px;font-size:12px}.module-option-card span,.module-option-card b,.module-option-card small{font-size:12px}.module-option-card b,.module-option-card small{margin-left:4px}}

/* Appearance controls and a full variable-driven dark surface. */
.preferences{margin-left:auto;display:flex;gap:8px;align-items:center}.language-switch{display:flex;padding:3px;border:1px solid var(--line);border-radius:8px;background:var(--soft)}.language-switch button{min-width:31px;height:27px;padding:0 7px;border:0;border-radius:5px;background:transparent;color:var(--muted);font:700 11px/1 inherit;cursor:pointer}.language-switch button.active{background:var(--blue);color:#fff;box-shadow:0 2px 6px rgba(28,94,190,.26)}.theme-picker{position:relative}.theme-trigger{height:35px;display:flex;align-items:center;gap:7px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:600 12px/1 inherit;cursor:pointer}.theme-trigger i,.theme-menu i{width:16px;font-style:normal;text-align:center}.theme-trigger b{font-size:15px;color:var(--muted);font-weight:600}.theme-menu{position:absolute;z-index:60;top:calc(100% + 7px);right:0;min-width:142px;padding:5px;border:1px solid var(--line);border-radius:11px;background:var(--surface);box-shadow:var(--shadow)}.theme-menu button{display:flex;align-items:center;gap:8px;width:100%;padding:9px 8px;border:0;border-radius:7px;background:transparent;color:var(--ink);font:600 12px/1 inherit;text-align:left;cursor:pointer}.theme-menu button:hover,.theme-menu button.active{background:var(--blue-pale);color:var(--blue)}.account{margin-left:12px!important}.telegram-guide{margin:10px 0 12px;padding-left:18px;color:var(--muted);font-size:12px}.telegram-guide li{margin:4px 0}.telegram-guide a{color:var(--blue);font-weight:700}

/* Custom catalogue picker: avoids platform-native select styling and keeps long names readable. */
.catalog-picker{position:relative;margin-top:5px}.catalog-picker-trigger{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:40px;padding:8px 10px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);font:600 13px/1.35 inherit;text-align:left;cursor:pointer}.catalog-picker-trigger span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.catalog-picker-trigger i{flex:none;color:var(--muted);font-size:16px;font-style:normal}.catalog-picker.open .catalog-picker-trigger{border-color:var(--blue);box-shadow:0 0 0 3px color-mix(in srgb,var(--blue) 14%,transparent)}.catalog-picker-menu{position:absolute;z-index:45;top:calc(100% + 5px);left:0;right:0;max-height:280px;overflow:auto;padding:5px;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:var(--shadow)}.catalog-picker-menu button{display:block;width:100%;padding:9px 10px;border:0;border-radius:5px;background:transparent;color:var(--ink);font:500 13px/1.35 inherit;text-align:left;cursor:pointer}.catalog-picker-menu button:hover,.catalog-picker-menu button.selected{background:var(--blue-pale);color:var(--blue);font-weight:700}.catalog-picker-menu p{margin:8px;color:var(--muted);font-size:12px}
html[data-theme="dark"]{color-scheme:dark;--ink:#e7edf8;--muted:#aab8cf;--blue:#73a5ff;--blue-deep:#4e88ed;--blue-pale:#202c42;--line:#34445d;--surface:#182235;--soft:#202b3e;--green:#51c986;--yellow:#f2b54b;--red:#ff7884;--shadow:0 8px 26px rgba(0,0,0,.3)}
html[data-theme="dark"] body,html[data-theme="dark"] .topbar{background:#111927;color:var(--ink)}html[data-theme="dark"] .topbar{background:rgba(17,25,39,.96)}html[data-theme="dark"] .panel,html[data-theme="dark"] .listing-card,html[data-theme="dark"] .option-card,html[data-theme="dark"] .module-option-card,html[data-theme="dark"] .ability-panel,html[data-theme="dark"] .ancestor-option{background:var(--surface)}html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] .button,html[data-theme="dark"] .button.outline{background:#172237;color:var(--ink);border-color:#455a78}html[data-theme="dark"] .button.primary{background:var(--blue);color:#071321;border-color:var(--blue)}html[data-theme="dark"] .button.dark{background:#07111f;color:#e7edf8;border-color:#07111f}html[data-theme="dark"] .item-information,html[data-theme="dark"] .heading-note,html[data-theme="dark"] .empty-state{background:var(--soft)}html[data-theme="dark"] .info-lines p,html[data-theme="dark"] .ability-option,html[data-theme="dark"] .module-option-card{border-color:#40516b}html[data-theme="dark"] .tag{background:#24334b;border-color:#4b607d;color:#b9d5ff}html[data-theme="dark"] .listing-meta small,html[data-theme="dark"] .listing-meta p,html[data-theme="dark"] .ability-total,html[data-theme="dark"] .section-title p{color:var(--muted)}html[data-theme="dark"] .price,html[data-theme="dark"] .ability-heading{color:var(--ink)}html[data-theme="dark"] .module-options-wrap{background:var(--surface)}html[data-theme="dark"] .module-option-card{color:#f2bd58}html[data-theme="dark"] .module-option-card span,html[data-theme="dark"] .module-option-card b,html[data-theme="dark"] .module-option-card small{color:#f2bd58}
@media(max-width:860px){.preferences{order:3;width:100%;justify-content:flex-end;margin:0}.topbar{height:auto;min-height:70px}.topbar-inner{flex-wrap:wrap;padding-top:7px;padding-bottom:7px}}@media(max-width:600px){.preferences{gap:5px}.preferences label{font-size:9px}.preferences select{max-width:94px}.account{margin-left:auto!important}}
