/* The Storage page (storage.js): the same in the app (ui/) and on the website (public/), over each one's tokens and its .btn, .wt-tabs and
   .wt-sel. The room on top: a bar in three colours (replays, uploaded files, skins; checked for colour blindness on the dark surface) with
   its legend; then a row for each replay or skin with its size. */
.st [hidden] { display: none !important; }
.st { --st-c0: #e8508f; --st-c1: #2f9fd8; --st-c2: #b0860f; }
.st-head { margin-bottom: 18px; } .st-head h1 { margin: 0; } .st-lead { margin: 6px 0 0; max-width: 60ch; }
.st-room { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.st-room:empty { display: none; }
.st-top { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.st-num { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; } .st-num b { font-size: 26px; font-variant-numeric: tabular-nums; } .st-num span { font-size: 14px; }
.st-plans { display: flex; align-items: center; gap: 10px; }
.st-plan { padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; font-weight: 700; }
.st-plan.on { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 16%, transparent); color: var(--pink); }
.st-bar { display: flex; gap: 2px; height: 14px; padding: 0; border-radius: 99px; background: color-mix(in srgb, var(--text) 8%, transparent); overflow: hidden; }
.st-bar i { display: block; height: 100%; min-width: 3px; transition: width .4s cubic-bezier(.2, 0, 0, 1); }
.st-bar i:first-child { border-radius: 99px 0 0 99px; } .st-bar i:last-child { border-radius: 0 4px 4px 0; }
.st-bar.over { box-shadow: 0 0 0 2px #ff7a7a; }
.st-c0 { background: var(--st-c0); } .st-c1 { background: var(--st-c1); } .st-c2 { background: var(--st-c2); }
.st-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.st-legend li { display: inline-flex; align-items: center; gap: 7px; } .st-legend b { color: var(--text); font-variant-numeric: tabular-nums; }
.st-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; } .st-free { background: none; border: 1.5px solid color-mix(in srgb, var(--text) 30%, transparent); }
.st-warn { margin: 0; color: #ff9a9a; font-size: 13.5px; font-weight: 600; }
.st-tools { display: flex; justify-content: flex-end; margin: -6px 0 10px; }
.st-msg { margin: 0 0 10px; color: var(--muted); font-size: 13.5px; }
.st-list { display: flex; flex-direction: column; gap: 6px; }
.st-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 132px 40px; align-items: center; gap: 14px; padding: 8px 10px 8px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  transition: opacity .2s, transform .2s cubic-bezier(.2, 0, 0, 1); }
.st-row.busy { opacity: .55; } .st-row.gone { opacity: 0; transform: translateX(16px); }
.st-thumb { display: block; width: 76px; height: 44px; border-radius: 8px; background: var(--cover, none) center / cover, repeating-conic-gradient(#221b1e 0 25%, #2c2427 0 50%) 0 0 / 10px 10px; }
.st-what { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.st-what b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.st-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 12.5px; }
.st-kind { padding: 1px 7px; border-radius: 6px; background: color-mix(in srgb, var(--text) 9%, transparent); color: var(--text); font-size: 11.5px; font-style: normal; font-weight: 700; }
.st-star { color: var(--gold); font-style: normal; }
.st-size { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; } .st-size b { font-size: 14px; font-variant-numeric: tabular-nums; }
.st-mini { display: block; width: 100%; height: 4px; border-radius: 99px; background: color-mix(in srgb, var(--text) 8%, transparent); overflow: hidden; }
.st-mini i { display: block; height: 100%; margin-left: auto; border-radius: 99px; background: color-mix(in srgb, var(--pink) 70%, transparent); }
.st-del { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; transition: color .15s, background .15s, border-color .15s; }
.st-del .ic { width: 19px; height: 19px; }
button.st-del:hover { color: #ff8a8a; background: color-mix(in srgb, #ff6b6b 12%, transparent); border-color: color-mix(in srgb, #ff6b6b 35%, transparent); }
button.st-del:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; } button.st-del:disabled { opacity: .4; cursor: default; }
.st-keep { cursor: default; }
.st-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 44px 20px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; }
.st-empty b { font-size: 16px; } .st-empty p { margin: 0; max-width: 46ch; }
.st-foot { display: flex; justify-content: center; margin-top: 16px; }
@media (max-width: 560px) { .st-row { grid-template-columns: 56px minmax(0, 1fr) 36px; } .st-thumb { width: 56px; height: 36px; } .st-size { grid-column: 2; grid-row: 2; align-items: flex-start; } .st-size .st-mini { width: 120px; } .st-del { grid-column: 3; grid-row: 1 / span 2; } }
@media (prefers-reduced-motion: reduce) { .st-bar i, .st-row { transition: none; } }
html.calm .st-bar i, html.calm .st-row { transition: none; }
/* a player's room in Admin → Players (admin.js): the same bar, small */
.ad-room { display: flex; flex-direction: column; gap: 5px; min-width: 150px; font-size: 12.5px; color: var(--muted); } .ad-room b { color: var(--text); font-variant-numeric: tabular-nums; }
.ad-room .st-bar { height: 8px; } .ad-room.over b { color: #ff9a9a; } .ad-room-key .st-dot { display: inline-block; margin: 0 2px 0 8px; vertical-align: -1px; } .ad-room-key { --st-c0: #e8508f; --st-c1: #2f9fd8; --st-c2: #b0860f; }
