/* bf-skins.css — the Skins tab of the cabinet (mycabinet.html#skins).
   Compact, Apple HIG: plain text, neutral fills, no side rails, no outlined badges. */
#view-skins, .sk-sheet { --sk-fill: rgba(118,118,128,0.24); --sk-fill-2: rgba(255,255,255,0.045); --sk-sep: rgba(255,255,255,0.08);
    --sk-label-2: rgba(235,235,245,0.62); --sk-accent: #00d4ff;
    --sk-t: 224,176,74; --sk-ct: 106,155,224; }
/* The cabinet styles every input as a boxed field; inside this tab they are plain. */
#view-skins input, .sk-sheet input { background: transparent !important; border: 0 !important; box-shadow: none !important;
    border-radius: 0 !important; padding: 0 !important; height: auto !important; min-height: 0 !important; backdrop-filter: none !important; }
#view-skins input[type=search]::-webkit-search-cancel-button, .sk-sheet input[type=search]::-webkit-search-cancel-button { filter: grayscale(1) brightness(2); }

.sk-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; align-items: start; }
@media (max-width: 1180px) { .sk-wrap { grid-template-columns: minmax(0, 1fr); } }

.sk-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.sk-plan { font-size: 12px; color: var(--sk-label-2); margin: 3px 0 0; }
.sk-search { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 9px;
    background: var(--sk-fill); width: 220px; max-width: 100%; box-sizing: border-box; }
.sk-search svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--sk-label-2); }
.sk-search input { flex: 1; min-width: 0; outline: 0; color: #fff; font: inherit; font-size: 14px !important; }
.sk-search input::placeholder { color: rgba(235,235,245,0.45); }

/* A side: its stock agent's face on the side's colour. */
.sk-face { position: relative; display: inline-block; width: 20px; height: 20px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    background: rgba(var(--sk-t), .55); }
.sk-face.ct { background: rgba(var(--sk-ct), .55); }
.sk-face img { position: absolute; width: 230%; max-width: none; max-height: none; left: -65%; top: 2%; }
.sk-face + .sk-face { margin-left: -5px; box-shadow: 0 0 0 1.5px #1f1f22; }
/* Which side is being dressed. */
.sk-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 2px; margin-top: 12px; border-radius: 11px; background: var(--sk-fill-2); }
.sk-sides button { appearance: none; border: 0; border-radius: 9px; height: 38px; background: transparent; color: var(--sk-label-2);
    font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s;
    display: flex; align-items: center; justify-content: center; gap: 8px; }
.sk-sides button .sk-face { width: 24px; height: 24px; }
.sk-sides button:hover { color: #fff; }
.sk-sides button.t[aria-checked="true"] { background: rgba(var(--sk-t), .2); color: #fff; }
.sk-sides button.ct[aria-checked="true"] { background: rgba(var(--sk-ct), .22); color: #fff; }
.sk-team { color: var(--sk-label-2); }

.sk-sec { margin-top: 14px; }
.sk-sec h3 { margin: 0 0 7px; font-family: 'Blastron', sans-serif; font-size: 0.64em; letter-spacing: 1px;
    text-transform: uppercase; color: rgba(255,255,255,0.5); font-weight: 700; }
.sk-grid { display: grid; gap: 6px; }
.sk-tile { border-radius: 12px; background: var(--sk-fill-2); color: #fff; display: flex; flex-direction: column; min-width: 0;
    overflow: hidden; transition: background-color .2s; }
.sk-tile.set { background: rgba(255,255,255,0.065); }
.sk-tile:hover { background: rgba(255,255,255,0.08); }
.sk-tile.set:hover { background: rgba(255,255,255,0.1); }
.sk-tile.on { background: rgba(255,255,255,0.14); }
.sk-tmain { appearance: none; border: 0; background: transparent; padding: 6px 8px 8px; text-align: left; cursor: pointer; color: #fff;
    display: flex; flex-direction: column; gap: 1px; min-width: 0; width: 100%; font: inherit; border-radius: 12px; flex: 1; }
.sk-tmain:focus-visible { outline: 2px solid var(--sk-accent); outline-offset: -2px; }
.sk-tile .sk-img { height: 52px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.sk-tile .sk-img img { max-width: 100%; max-height: 52px; object-fit: contain; }
.sk-sec.top .sk-tile .sk-img { height: 78px; }
.sk-sec.top .sk-tile .sk-img img { max-height: 78px; }
.sk-tile.agent .sk-img { overflow: hidden; }
.sk-tile.agent .sk-img img { max-height: none; height: 100px; margin-top: 18px; }
.sk-tile .w { font-size: 11px; color: var(--sk-label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-tile .f { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-tile .f.def { color: rgba(235,235,245,0.4); font-weight: 500; }
.sk-tile.locked { opacity: 0.6; }

.sk-upsell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 14px; border-radius: 12px; background: var(--sk-fill-2); margin-top: 16px; }
.sk-upsell b { display: block; font-size: 14px; color: #fff; }
.sk-upsell span { font-size: 12px; color: var(--sk-label-2); }

/* Item panel */
.sk-side { position: relative; }
@media (min-width: 1181px) {
    .sk-side { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; }
}
.sk-hero { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 8px; }
.sk-hero .pic { width: 100%; height: 160px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.045); }
.sk-hero img { max-width: 82%; max-height: 144px; object-fit: contain; }
.sk-hero small { display: block; margin-top: 10px; font-size: 12px; color: var(--sk-label-2); }
.sk-hero b { display: block; margin-top: 2px; font-size: 17px; color: #fff; line-height: 1.25; }
.sk-row-btn { appearance: none; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    height: 40px; padding: 0 12px; margin-top: 6px; border: 0; border-radius: 10px; background: var(--sk-fill-2);
    color: #fff; font: inherit; font-size: 14px; cursor: pointer; box-sizing: border-box; }
.sk-row-btn:hover { background: rgba(255,255,255,0.08); }
a.sk-row-btn { text-decoration: none; }
.sk-row-btn > span:first-child { flex-shrink: 0; }
.sk-row-btn .v { display: flex; align-items: center; gap: 4px; color: var(--sk-label-2); min-width: 0; }
.sk-row-btn .v span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sk-row-btn .v svg { flex-shrink: 0; }
.sk-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.sk-lbl { font-size: 13px; color: #fff; }
.sk-st { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #fff; }
.sk-st small { color: var(--sk-label-2); font-size: 11px; }
.sk-switch { position: relative; width: 42px; height: 26px; border-radius: 13px; border: 0; padding: 0; cursor: pointer;
    background: rgba(120,120,128,0.32); transition: background-color .2s; flex-shrink: 0; }
.sk-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%;
    background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .2s; }
.sk-switch[aria-checked="true"] { background: #34c759; }
.sk-switch[aria-checked="true"]::after { transform: translateX(16px); }
.sk-seg { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--sk-fill); }
.sk-seg button { appearance: none; border: 0; background: transparent; color: #fff; font: inherit; font-size: 12px; font-weight: 600;
    height: 26px; padding: 0 10px; border-radius: 7px; cursor: pointer; }
.sk-seg button[aria-pressed="true"] { background: rgba(255,255,255,0.22); }
#view-skins .sk-field { display: block; width: 100%; box-sizing: border-box; height: 38px !important; margin-top: 10px;
    padding: 0 12px !important; border-radius: 10px !important; background: var(--sk-fill-2) !important; color: #fff; font: inherit; font-size: 14px; outline: 0; }
.sk-field::placeholder { color: rgba(235,235,245,0.45); }
.sk-ctl { margin-top: 12px; }
.sk-ctl .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: #fff; }
.sk-ctl .val { font-variant-numeric: tabular-nums; color: var(--sk-label-2); }
.sk-range { -webkit-appearance: none; appearance: none; width: 100%; height: 18px !important; margin: 6px 0 0; cursor: pointer; }
.sk-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--sk-track, rgba(255,255,255,0.18)); }
.sk-range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--sk-track, rgba(255,255,255,0.18)); }
.sk-range.plain::-webkit-slider-runnable-track { background: rgba(255,255,255,0.18); }
.sk-range.plain::-moz-range-track { background: rgba(255,255,255,0.18); }
.sk-range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.sk-range::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.sk-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.sk-slot { aspect-ratio: 1; border: 0; border-radius: 9px; background: var(--sk-fill-2); cursor: pointer; display: flex;
    align-items: center; justify-content: center; padding: 3px; color: var(--sk-label-2); }
.sk-slot:hover { background: rgba(255,255,255,0.08); }
.sk-slot img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sk-slot svg { width: 15px; height: 15px; }
.sk-buyb { display: grid; gap: 6px; margin-top: 14px; }
.sk-buy { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 12px;
    background: rgba(255,255,255,0.06); color: #fff; text-decoration: none; box-sizing: border-box; transition: background-color .2s; }
.sk-buy:hover { background: rgba(255,255,255,0.1); }
.sk-buy .logo { width: 30px; height: 30px; flex-shrink: 0; border-radius: 7px; }
.sk-buy .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sk-buy .t b { font-size: 13px; }
.sk-buy .t small { font-size: 13px; font-weight: 600; color: rgba(235,235,245,0.85); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-buy .go { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 9px; flex-shrink: 0;
    background: var(--sk-accent); color: #000; font-size: 13px; font-weight: 600; }
.sk-buy.steam .go { background: var(--sk-fill); color: #fff; gap: 4px; }
.sk-btn { appearance: none; box-sizing: border-box; border: 0; border-radius: 10px; height: 40px; padding: 0 14px; font: inherit; font-size: 14px;
    font-weight: 600; cursor: pointer; background: var(--sk-fill); color: #fff; width: 100%; margin-top: 10px;
    display: flex; align-items: center; justify-content: center; text-decoration: none; }
.sk-btn.primary { background: var(--sk-accent); color: #000; }
.sk-btn.primary:hover { background: #5fe4ff; }
.sk-btn.plain { background: transparent; color: var(--sk-label-2); font-weight: 500; height: 32px; }
.sk-btn.plain:hover { color: #fff; }
.sk-btn.sk-inline { width: auto; margin: 0; }
.sk-locked { margin-top: 10px; padding: 14px 12px 12px; border-radius: 12px; background: var(--sk-fill-2); text-align: center; }
.sk-locked b { display: block; color: #fff; font-size: 14px; margin-bottom: 2px; }
.sk-locked span { display: block; font-size: 12px; color: var(--sk-label-2); }
.sk-foot { font-size: 12px; color: var(--sk-label-2); text-align: center; margin: 10px 0 0; min-height: 16px; }
.sk-empty { color: var(--sk-label-2); text-align: center; padding: 24px 0; font-size: 14px; }

/* Picker sheet */
.sk-sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 9000; display: flex;
    align-items: center; justify-content: center; padding: 16px; }
.sk-sheet { width: min(720px, 100%); max-height: min(84vh, 820px); background: #1c1c1e; border-radius: 16px;
    display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.5); color: #fff; }
.sk-sheet-h, .sk-sheet-tools { flex-shrink: 0; }
.sk-sheet-h { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 48px; padding: 0 16px; }
.sk-sheet-h b { font-size: 16px; color: #fff; }
.sk-sheet-h button { appearance: none; border: 0; background: transparent; color: var(--sk-accent); font: inherit; font-size: 16px; cursor: pointer; padding: 0; justify-self: start; }
.sk-sheet-h button.back { display: inline-flex; align-items: center; margin-left: -6px; }
.sk-sheet-tools { padding: 0 16px 10px; display: flex; flex-direction: column; gap: 8px; }
.sk-sheet-tools .sk-search { width: 100%; }
.sk-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.sk-chips:empty { display: none; }
.sk-chip { flex-shrink: 0; height: 30px; padding: 0 12px; border: 0; border-radius: 15px; font: inherit; font-size: 13px;
    font-weight: 500; cursor: pointer; background: var(--sk-fill); color: #fff; }
.sk-chip[aria-pressed="true"] { background: #fff; color: #000; }
.sk-sheet-body { overflow-y: auto; padding: 0 16px 16px; min-height: 0; flex: 1; }
.sk-back { appearance: none; border: 0; background: transparent; color: var(--sk-accent); font: inherit; font-size: 14px;
    cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 0; margin: 0 0 10px; }
.sk-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.sk-pick { appearance: none; position: relative; border: 0; border-radius: 12px; padding: 8px; cursor: pointer;
    background: #2c2c2e; display: flex; flex-direction: column; gap: 3px; text-align: left;
    color: #fff; font: inherit; min-width: 0; }
.sk-pick:hover { background: #3a3a3c; }
.sk-pick[aria-pressed="true"] { background: #4a4a4e; }
.sk-pick .sk-img { height: 62px; display: flex; align-items: center; justify-content: center; }
.sk-pick img { max-width: 100%; max-height: 62px; object-fit: contain; }
.sk-pick .n { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-pick .s { font-size: 11px; color: var(--sk-label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) {
    .sk-sheet-bg { padding: 0; align-items: flex-end; }
    .sk-sheet { border-radius: 14px 14px 0 0; max-height: 92vh; }
    .sk-pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.sk-cap { font-size: 12px; color: var(--sk-label-2); margin: 14px 2px 0; }
