/* wynd — flat monochrome dashboard. */

:root {
    --bg: #0b0b0b;
    --side: #0f0f0f;
    --panel: #121212;
    --line: rgba(255, 255, 255, 0.04);
    --line-2: rgba(255, 255, 255, 0.06);
    --fg: #ffffff;
    --dim: #a6a6a6;
    --muted: #6e6e6e;
    --divider: rgba(255, 255, 255, 0.05);
    --radius: 14px;
    --radius-sm: 10px;
    --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
    --nav: 232px;
    --nav-mini: 68px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { scrollbar-gutter: stable; }

@supports not (scrollbar-gutter: stable) {
    html { overflow-y: scroll; }
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body { --nav-w: var(--nav); }
body.sidebar-collapsed { --nav-w: var(--nav-mini); }

a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--fg); }
h1, h2, h3 { margin: 0; font-weight: 600; }
img { max-width: 100%; }
form { margin: 0; }

.mono { font-family: var(--mono); font-size: 0.95em; }
.muted { color: var(--muted); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.empty { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

.ic { width: 18px; height: 18px; display: inline-block; vertical-align: middle; }

/* ------------------------------------------------------------- sidebar */

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    width: var(--nav-w);
    display: flex;
    flex-direction: column;
    padding: 14px 12px 16px;
    background: var(--side);
    border-right: 1px solid var(--line);
    overflow: hidden;
    transition: width 0.26s cubic-bezier(0.22, 1.2, 0.36, 1);
}

.sidebar_top { display: flex; align-items: center; gap: 8px; min-height: 40px; }

.sidebar_brand { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; padding: 4px 6px; border-radius: var(--radius-sm); }
.sidebar_brand:hover { background: rgba(255, 255, 255, 0.06); }
.sidebar_brand .mark { display: block; width: 28px; height: auto; }

.sidebar_toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.sidebar_toggle:hover { background: rgba(255, 255, 255, 0.08); color: var(--fg); }
.sidebar_toggle .toggle-collapsed { display: none; }

.sidebar_nav {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 18px 0;
    min-height: 0;
}

.side-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--dim);
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.16s ease, color 0.16s ease;
}
.side-item:hover { background: rgba(255, 255, 255, 0.06); color: var(--fg); }
.side-item.active { background: rgba(255, 255, 255, 0.1); color: var(--fg); }
.side-item .ic { width: 20px; height: 20px; }

.sidebar_bottom { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }

.sidebar_balance {
    padding: 7px 12px;
    margin-bottom: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar_user { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px; border-radius: var(--radius-sm); }
.sidebar_user:hover { background: rgba(255, 255, 255, 0.06); }
.sidebar_user_name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

body.sidebar-collapsed .sidebar_brand { display: none; }
body.sidebar-collapsed .sidebar_top { justify-content: center; }
body.sidebar-collapsed .toggle-expanded { display: none; }
body.sidebar-collapsed .toggle-collapsed { display: inline-flex; }
body.sidebar-collapsed .side-label,
body.sidebar-collapsed .sidebar_user_name { display: none; }
body.sidebar-collapsed .side-item { justify-content: center; gap: 0; padding: 10px 0; }
body.sidebar-collapsed .sidebar_balance { padding: 7px 2px; font-size: 11px; }

/* --------------------------------------------------------------- layout */

.shell { flex: 1 1 auto; margin-left: var(--nav-w); min-width: 0; transition: margin-left 0.26s cubic-bezier(0.22, 1.2, 0.36, 1); }
.wrap { width: 1040px; max-width: calc(100% - 40px); margin: 0 auto; }
main.content { padding: 20px 0 64px; }
main.content > * + * { margin-top: 12px; }

.toolbar { display: flex; align-items: center; gap: 8px; padding-top: 20px; }
.toolbar + main.content { padding-top: 12px; }
.toolbar_actions { display: flex; gap: 8px; margin-left: auto; }

.search { display: flex; align-items: center; gap: 6px; flex: 0 1 320px; }
.search input {
    width: 100%;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #1a1a1a;
    color: var(--fg);
    font: inherit;
    font-size: 13px;
    outline: none;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: rgba(255, 255, 255, 0.18); }
.search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--dim);
    cursor: pointer;
}
.search button:hover { background: var(--panel); color: var(--fg); }
.search .ic { width: 16px; height: 16px; }

.actions { display: flex; justify-content: flex-end; gap: 8px; }

/* -------------------------------------------------------------- surface */

.panel { padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.panel > h2 { margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.panel .tbl th:first-child, .panel .tbl td:first-child { padding-left: 0; }
.panel .tbl th:last-child, .panel .tbl td:last-child { padding-right: 0; }

.notice {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-left: 3px solid #ffffff;
    border-radius: 12px;
    background: var(--panel);
    font-size: 13px;
}
.notice-err { border-left-color: #b0463c; color: #e8c4c0; }

/* --------------------------------------------------------------- items */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }

.tile {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    border-bottom: 2px solid var(--rar, #262626);
    border-radius: var(--radius);
    overflow: hidden;
}
.tile:hover { border-color: rgba(255, 255, 255, 0.09); border-bottom-color: var(--rar, #444444); }
.tile-img { position: relative; display: flex; align-items: center; justify-content: center; height: 122px; padding: 12px; background: #0e0e0e; }
.tile-img img { max-width: 100%; max-height: 100%; display: block; }
.tile-count { position: absolute; top: 7px; right: 7px; padding: 2px 7px; border-radius: 8px; background: rgba(0, 0, 0, 0.7); font-size: 11px; font-weight: 600; }
.tile-name { padding: 8px 10px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); }
.tile-price { font-size: 13px; font-weight: 600; }

.thumb-empty { display: inline-flex; color: #454545; }
.thumb-empty .ic { width: 30px; height: 30px; }

.stack { display: flex; flex-direction: column; gap: 8px; }
.card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 3px solid var(--rar, #262626);
    border-radius: var(--radius);
}
.card-img { flex: 0 0 56px; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: #0e0e0e; border-radius: 9px; overflow: hidden; }
.card-img img { max-width: 100%; max-height: 100%; }
.card-main { flex: 1 1 auto; min-width: 0; }
.card-name { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-note { margin-top: 2px; font-size: 12px; }
.card-note a { color: var(--muted); }
.card-note a:hover { color: var(--fg); }
.card-side { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.card-price { font-size: 13.5px; font-weight: 600; }
.row-act { display: inline-flex; align-items: center; gap: 6px; }

[data-rar="1"] { --rar: #b0c3d9; }
[data-rar="2"] { --rar: #5e98d9; }
[data-rar="3"] { --rar: #4b69ff; }
[data-rar="4"] { --rar: #8847ff; }
[data-rar="5"] { --rar: #d32ce6; }
[data-rar="6"] { --rar: #eb4b4b; }
[data-rar="7"] { --rar: #e4ae39; }
[data-rar="99"] { --rar: #ffd700; }

.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn {
    height: 26px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: transparent;
    color: var(--dim);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}
.chip-btn:hover { border-color: rgba(255, 255, 255, 0.14); color: var(--fg); }
.chip-btn.on { background: #ffffff; border-color: #ffffff; color: #111111; font-weight: 600; }

/* --------------------------------------------------------------- chips */

.chip { display: inline-block; padding: 3px 8px; border-radius: 8px; background: var(--divider); border: 1px solid #2a2a2a; font-size: 11px; color: var(--dim); white-space: nowrap; }
.chip-on { background: #ffffff; border-color: #ffffff; color: #111111; font-weight: 600; }
.chip-off { color: var(--muted); }
.chip-warn { color: #d9b36a; border-color: #3d3624; }
.chip-set { display: inline-flex; flex-wrap: wrap; gap: 4px; }

.place { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 9px; background: #1c1c1c; font-size: 12px; font-weight: 600; }
.place-1 { background: #e8c96a; color: #1f1a05; }
.place-2 { background: #c9c9c9; color: #1d1d1d; }
.place-3 { background: #c58d5b; color: #211002; }

/* ------------------------------------------------------------ segments */

.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.seg-item { padding: 5px 12px; border-radius: 8px; font-size: 12.5px; color: var(--dim); }
.seg-item:hover { color: var(--fg); }
.seg-item.on { background: #ffffff; color: #111111; font-weight: 600; }

/* -------------------------------------------------------------- tables */

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { padding: 0 10px 8px; text-align: left; font-size: 11px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--divider); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl-scroll { overflow-x: auto; }
.tbl-scroll .tbl { min-width: 680px; }

/* ------------------------------------------------------------- profile */

.player-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.player-side { display: flex; flex-direction: column; gap: 14px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.player-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.who { display: flex; align-items: center; gap: 12px; }
.who-name { font-size: 15px; font-weight: 600; }
.who .row-note { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

.row-main { flex: 1 1 auto; min-width: 0; }
.row-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-note { margin-top: 2px; font-size: 12px; color: var(--muted); }

.avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: #1d1d1d; color: var(--muted); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar .ic { width: 16px; height: 16px; }
.avatar_big { width: 44px; height: 44px; }
.avatar.big { width: 64px; height: 64px; margin-bottom: 14px; }

.kv { display: flex; flex-direction: column; }
.kv-row { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--divider); font-size: 13px; }
.kv-row:last-child { border-bottom: 0; }
.kv-key { flex: 0 0 96px; padding-top: 1px; font-size: 12px; color: var(--muted); }
.kv-val { flex: 1 1 auto; min-width: 0; word-break: break-word; }

/* -------------------------------------------------------------- privacy */

.panel .panel-note { margin: -6px 0 4px; font-size: 12px; color: var(--muted); }
.privacy { display: flex; flex-direction: column; }
.switch-row { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--divider); cursor: pointer; }
.switch-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.switch-text { flex: 1 1 auto; min-width: 0; }
.switch-label { display: block; font-size: 13.5px; }
.switch-note { display: block; margin-top: 1px; font-size: 12px; color: var(--muted); }
.switch { position: relative; flex: 0 0 auto; width: 36px; height: 20px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch-track { position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; transition: background 0.16s ease, border-color 0.16s ease; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #6e6e6e; transition: transform 0.16s ease, background 0.16s ease; }
.switch-row:hover .switch-track { border-color: rgba(255, 255, 255, 0.22); }
.switch input:checked + .switch-track { background: #ffffff; border-color: #ffffff; }
.switch input:checked + .switch-track::after { background: #111111; transform: translateX(16px); }
.switch input:focus-visible + .switch-track { outline: 2px solid rgba(255, 255, 255, 0.3); outline-offset: 2px; }

/* -------------------------------------------------------------- trades */

.trade { padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.trade-grid { display: grid; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.trade-side { min-width: 0; }
.trade-side-head { display: flex; flex-direction: column; gap: 1px; padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 13px; }
.trade-side-head .muted { font-size: 11.5px; }
.trade-items { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.trade-swap { display: flex; align-items: center; justify-content: center; padding-top: 44px; color: var(--muted); }
.trade-swap .ic { width: 20px; height: 20px; }
.trade-add { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-top: 4px; border: 1px dashed rgba(255, 255, 255, 0.12); border-radius: 10px; color: var(--muted); font-size: 18px; line-height: 1; }
.trade-add:hover { border-color: rgba(255, 255, 255, 0.20); color: var(--fg); }
.trade-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.trade-buttons { display: flex; gap: 8px; margin-left: auto; }

.row { display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 9px; }
.row .thumb { flex: 0 0 38px; width: 38px; height: 38px; }
.thumb { display: inline-flex; align-items: center; justify-content: center; background: #0e0e0e; border-radius: 9px; overflow: hidden; }
.thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.thumb .thumb-empty .ic { width: 18px; height: 18px; }

/* ------------------------------------------------------------- dialogs */

.dialog { display: none; position: fixed; inset: 0; z-index: 500; padding: 64px 16px; overflow: auto; background: rgba(0, 0, 0, 0.72); }
.dialog:target, .dialog.dialog-open { display: block; }
.dialog-box-sm { width: 440px; }
.dialog.dialog-open .dialog-box { animation: dialog-lift 0.16s ease-out; }
@keyframes dialog-lift { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.dialog-body p { margin: 0; font-size: 13px; line-height: 1.5; }
.dialog-box { width: 560px; max-width: 100%; margin: 0 auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 4px; }
.dialog-head h2 { font-size: 14px; }
.dialog-body { padding: 12px 16px 16px; }
.dialog-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 16px 16px; }
.dialog-foot .field { width: auto; }

.cols { display: flex; gap: 16px; }
.cols-2 > * { flex: 1 1 0; min-width: 0; }

.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; max-height: 320px; overflow: auto; }
.pick { display: flex; align-items: center; gap: 10px; padding: 7px; border: 1px solid var(--line); border-radius: 10px; background: #151515; cursor: pointer; }
.pick:hover { border-color: rgba(255, 255, 255, 0.14); }
.pick:has(.pick-check:checked) { background: #ffffff; border-color: #ffffff; color: #111111; }
.pick .thumb { flex: 0 0 38px; width: 38px; height: 38px; }
.pick-check { accent-color: #111111; }

/* --------------------------------------------------------------- forms */

.field {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #1a1a1a;
    color: var(--fg);
    font: inherit;
    font-size: 13px;
    outline: none;
}
.field::placeholder { color: var(--muted); }
.field:focus { border-color: rgba(255, 255, 255, 0.18); }
.field.mono { font-family: var(--mono); font-size: 12.5px; }
.field.slim { flex: 0 0 84px; width: 84px; }
textarea.field { height: auto; min-height: 60px; padding: 10px 12px; line-height: 1.4; resize: vertical; }

.form-col { display: flex; flex-direction: column; gap: 8px; }
.form-row { display: flex; flex-wrap: wrap; gap: 8px; }
.form-row .field { flex: 1 1 150px; width: auto; }
.form-gap { margin-top: 16px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #1c1c1c;
    color: var(--fg);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: #242424; }
.btn:active { transform: scale(0.98); }
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: #ffffff; color: #111111; }
.btn-primary:hover { background: #e6e6e6; color: #111111; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--dim); }
.btn-ghost:hover { background: var(--panel); border-color: rgba(255, 255, 255, 0.16); color: var(--fg); }
.btn-danger { background: transparent; border-color: #4a2d2a; color: #e0b0aa; }
.btn-danger:hover { background: #1f1312; border-color: #5e3a36; color: #f0c9c5; }
.btn.mini { height: 28px; padding: 0 10px; font-size: 12px; }
.btn.wide { display: flex; width: 100%; height: 40px; }

/* --------------------------------------------------------------- admin */

.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.admin-grid > .panel { display: flex; flex-direction: column; }
.admin-grid .panel > form.form-col { flex: 1 1 auto; }
.admin-grid .panel > form.form-col > *:last-child { margin-top: auto; }
.admin-grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.tool-groups { display: flex; flex-direction: column; gap: 8px; }

.odds-table { display: flex; flex-direction: column; gap: 6px; }
.odds-head, .odds-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; align-items: center; }
.odds-table-pairs .odds-head, .odds-table-pairs .odds-row { grid-template-columns: 1.3fr 1fr; }
.odds-name { font-size: 12.5px; color: var(--dim); }
.odds-head .odds-name { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }

/* ------------------------------------------------------------- updates */

.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: #151515;
    text-align: center;
    cursor: pointer;
}
.dropzone:hover, .dropzone.dropzone-hot { border-color: rgba(255, 255, 255, 0.20); background: #1b1b1b; }
.dropzone input[type="file"] { display: none; }
.dropzone-mark { color: var(--dim); }
.dropzone-mark .ic { width: 26px; height: 26px; }
.dropzone-title { font-size: 13px; font-weight: 500; word-break: break-all; }
.dropzone-note { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- auth */

.auth_main { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.auth_col { width: 360px; max-width: 100%; }
.auth_mark { display: flex; justify-content: center; margin-bottom: 14px; }
.auth_mark .ic { width: 32px; height: 32px; }
.auth_mark .mark { display: block; width: 44px; height: auto; }
.auth_col h1 { font-size: 20px; }
.auth_col .sub { margin: 8px 0 18px; font-size: 13px; color: var(--muted); }
.auth_col .kv { margin-bottom: 18px; }
.auth-actions { display: flex; flex-direction: column; gap: 8px; }
.auth-foot { margin: 16px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

#global_header { border-bottom: 1px solid var(--line); }
.header_in { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand .mark { display: block; width: 26px; height: auto; }
.global_action_link { font-size: 12.5px; color: var(--muted); }

/* -------------------------------------------------------- small screens */

@media (max-width: 980px) {
    .wrap { max-width: calc(100% - 28px); }
    .toolbar { flex-wrap: wrap; }
    .search { flex: 1 1 100%; }
    .player-layout { grid-template-columns: 1fr; }
    .cols { flex-direction: column; }
    .trade-grid { grid-template-columns: 1fr; }
    .trade-swap { display: none; }
}

@media (max-width: 980px) {
    body { --nav-w: var(--nav-mini); }
    .sidebar_brand { display: none; }
    .sidebar_top { justify-content: center; }
    .sidebar_toggle { display: none; }
    .side-label, .sidebar_user_name { display: none; }
    .side-item { justify-content: center; gap: 0; padding: 10px 0; }
    .sidebar_balance { padding: 7px 2px; font-size: 11px; }
}
