:root {
  --bg: #25292e;
  --nav: #1d2024;
  --panel: #31363d;
  --panel2: #3a3f46;
  --panel-dark: #2b2f35;
  --border: #20232733;
  --text: #e8eaed;
  --muted: #8b9199;
  --blue: #1f8f35;
  --blue-light: #4fcf6c;
  --green: #1fbf4f;
  --red: #e5483f;
  --gold: #e9b72b;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 14px/1.4 "Source Sans Pro", "Segoe UI", system-ui, Arial, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
.container { width: 100%; max-width: 1110px; margin: 0 auto; padding: 0 12px; }
main { flex: 1; padding-bottom: 50px; }

/* nav */
.nav { background: var(--nav); height: 54px; display: flex; align-items: center; box-shadow: 0 2px 6px #0005; position: sticky; top: 0; z-index: 50; }
.nav .container { display: flex; align-items: center; gap: 4px; }
.brand { font-size: 22px; font-weight: 700; letter-spacing: .5px; margin-right: 18px; display: flex; align-items: center; gap: 8px; }
.brand .logo { width: 26px; height: 26px; border-radius: 6px; background: var(--blue); display: grid; place-items: center; font-size: 15px; }
.nav a.link { padding: 16px 12px; color: #c4c8ce; font-weight: 600; }
.nav a.link:hover, .nav a.link.active { color: #fff; box-shadow: inset 0 -3px var(--blue); }
.nav .spacer { flex: 1; }
.nav-search { background: var(--panel); border: 0; border-radius: 4px; padding: 7px 10px; width: 190px; outline: none; }
.footer { color: var(--muted); text-align: center; padding: 22px 0; font-size: 12px; border-top: 1px solid #1d2024; }

/* filter buttons */
.filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 34px; position: relative; }
.fbtn { background: var(--panel2); border: 0; height: 46px; cursor: pointer; text-align: center; box-shadow: 0 1px 3px #0004; position: relative; }
.fbtn:hover, .fbtn.open { background: #454b53; }
.fbtn .count { color: var(--blue-light); margin-left: 5px; font-size: 12px; }
.fpanel { position: absolute; top: 52px; z-index: 20; background: var(--panel); box-shadow: 0 6px 18px #000a; padding: 10px; min-width: 200px; display: none; }
.fpanel.open { display: block; }
.fpanel label { display: flex; align-items: center; gap: 8px; padding: 5px 4px; cursor: pointer; }
.fpanel label:hover { background: var(--panel2); }
.fpanel .range { display: grid; grid-template-columns: 60px 1fr 1fr; gap: 6px; align-items: center; margin-bottom: 8px; }
.fpanel .range input { width: 100%; background: var(--panel-dark); border: 1px solid #444a52; padding: 5px; border-radius: 3px; }
.searchbox { width: 100%; margin-top: 16px; background: var(--panel2); border: 0; height: 50px; padding: 0 16px; font-size: 16px; outline: none; box-shadow: inset 0 1px 4px #0005; }
.searchbox:focus { box-shadow: inset 0 1px 4px #0005, 0 0 0 1px var(--blue); }

/* pagination */
.pager { display: flex; gap: 6px; margin: 18px 0; align-items: center; }
.pager button { background: var(--panel2); border: 0; min-width: 34px; height: 30px; cursor: pointer; border-radius: 3px; }
.pager button:hover { background: #4a5058; }
.pager button.on { background: var(--nav); }
.pager .dots { padding: 0 8px; color: var(--muted); font-weight: bold; }

/* item grid */
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--panel); box-shadow: 0 2px 4px #0006; display: block; }
.card:hover { outline: 1px solid var(--blue); }
.card .t { background: var(--panel2); padding: 5px 8px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.card .img { height: 108px; background: linear-gradient(#41464d, #2e3238 55%, #2a2e33); position: relative; display: grid; place-items: center; }
.card .img > svg, .card .img > img { width: 86px; height: 86px; object-fit: contain; }
.card .img .tag { position: absolute; left: 8px; bottom: 6px; display: flex; gap: 3px; }
.card .stats { padding: 6px 8px 8px; }
.card .row { display: flex; justify-content: space-between; font-size: 13px; line-height: 22px; }
.card .row span:first-child { color: var(--muted); font-size: 12px; }
.card .row b { font-weight: 400; }
.gem { color: #43b3ff; font-size: 15px; }

/* generic panels */
h1.title { font-size: 22px; margin: 28px 0 12px; }
.panel { background: var(--panel); box-shadow: 0 2px 4px #0006; padding: 14px; }
.panel h2 { margin: 0 0 10px; font-size: 17px; }
.table { width: 100%; border-collapse: collapse; background: var(--panel); box-shadow: 0 2px 4px #0006; }
.table th { background: var(--panel2); text-align: left; padding: 9px 12px; font-size: 13px; cursor: default; user-select: none; }
.table th.sortable { cursor: pointer; }
.table th.sortable:hover { color: var(--blue-light); }
.table td { padding: 8px 12px; border-top: 1px solid #272b30; vertical-align: middle; }
.table tr:hover td { background: #353a41; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table td .thumb, .table td .thumb img { width: 38px; height: 38px; vertical-align: middle; margin-right: 10px; background: #2a2e33; border-radius: 3px; }
.up { color: var(--green); } .down { color: var(--red); }
.muted { color: var(--muted); }
.blue { color: var(--blue-light); }
.btn { background: var(--blue); border: 0; color: #fff; padding: 9px 16px; border-radius: 20px; font-weight: 700; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; }
.btn:hover { background: #28a843; }
.btn.gray { background: var(--panel2); } .btn.gray:hover { background: #4a5058; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: var(--panel2); margin-right: 4px; }
.row-items { display: flex; gap: 6px; flex-wrap: wrap; }
.mini { width: 60px; text-align: center; font-size: 11px; }
.mini .box { width: 60px; height: 60px; background: #2a2e33; border-radius: 3px; display: grid; place-items: center; }
.mini svg, .mini img { width: 48px; height: 48px; }
.mini div.n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; color: #c4c8ce; }

/* item page */
.item-head { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 14px; flex-wrap: wrap; gap: 10px; }
.item-head h1 { margin: 0; font-size: 28px; font-weight: 600; }
.item-head h1 small { color: var(--muted); font-weight: 400; font-size: 24px; }
.item-head .creator { color: var(--blue-light); font-size: 20px; }
.item-head .btns { display: flex; gap: 8px; }
.overview { background: var(--panel); box-shadow: 0 2px 4px #0006; display: grid; grid-template-columns: 250px 1fr; }
.overview .pic { padding: 16px; position: relative; display: grid; place-items: center; }
.overview .pic .imgbox { width: 250px; height: 250px; background: #2b2f34; display: grid; place-items: center; position: relative; }
.overview .pic .imgbox > svg, .overview .pic .imgbox > img { width: 190px; height: 190px; }
.badge-lim { position: absolute; left: 0; bottom: 0; display: flex; font-size: 10px; font-weight: 800; }
.badge-lim .a { background: #1fbf4f; color: #fff; padding: 1px 5px; } .badge-lim .b { background: #ffd62e; color: #111; padding: 1px 6px; }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; text-align: center; }
.tabs button { background: var(--panel-dark); border: 0; padding: 11px; cursor: pointer; color: #b9bec6; font-size: 15px; }
.tabs button.on { background: #2a2e34; color: #fff; box-shadow: inset 0 -2px #fff; }
.tabpane { display: none; padding: 20px 18px; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.tabpane.on { display: grid; }
.kv { display: flex; gap: 12px; align-items: center; }
.kv .ic { width: 30px; height: 30px; opacity: .65; flex: none; display: grid; place-items: center; font-size: 22px; }
.kv .k { color: var(--muted); font-size: 13px; line-height: 1.1; }
.kv .v { font-size: 18px; font-weight: 700; line-height: 1.25; }
.stat4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.stat4 .s { background: var(--panel); border-top: 2px solid var(--blue); box-shadow: 0 2px 4px #0006; padding: 14px; display: flex; gap: 12px; align-items: center; height: 70px; }
.stat4 .s .ic { font-size: 32px; opacity: .6; width: 40px; text-align: center; }
.stat4 .s .k { color: var(--blue-light); font-weight: 600; font-size: 14px; line-height: 1; }
.stat4 .s .v { font-size: 18px; font-weight: 700; }
.charts h2 { font-size: 22px; margin: 24px 0 8px; font-weight: 700; }
.charttabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--panel-dark); text-align: center; }
.charttabs button { background: var(--panel-dark); border: 0; padding: 11px; cursor: pointer; color: #b9bec6; font-size: 15px; }
.charttabs button.on { background: var(--panel); color: #fff; box-shadow: inset 0 -2px #fff; }
.chartbox { background: var(--panel); padding: 12px; }
.ranges { display: flex; gap: 4px; margin-bottom: 8px; align-items: center; }
.ranges button { background: #4a5058; border: 0; font-size: 12px; padding: 3px 9px; cursor: pointer; border-radius: 2px; }
.ranges button.on { background: #000; }
.ranges .sp { flex: 1; }
.ranges .date { background: var(--panel-dark); padding: 2px 8px; font-size: 12px; border: 1px solid #444a52; }
canvas.chart { width: 100%; height: 340px; display: block; }
.legend { display: flex; gap: 18px; justify-content: center; padding-top: 6px; font-size: 12px; color: #c4c8ce; flex-wrap: wrap; }
.legend i { display: inline-block; width: 14px; height: 4px; margin-right: 5px; vertical-align: middle; }
.tip { position: fixed; pointer-events: none; background: #14171a; border: 1px solid #444; padding: 6px 9px; font-size: 12px; z-index: 99; display: none; border-radius: 3px; }

/* two col */
.cols { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-top: 16px; }
.pbar { display: flex; align-items: center; gap: 16px; margin: 28px 0 12px; }
.avatar { width: 110px; height: 110px; border-radius: 50%; background: var(--panel2); display: grid; place-items: center; font-size: 44px; font-weight: 700; flex: none; }

/* calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.slot { min-height: 330px; }
.slot .picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.slot .pick { background: var(--panel-dark); padding: 6px; text-align: center; font-size: 11px; position: relative; cursor: pointer; }
.slot .pick svg, .slot .pick img { width: 50px; height: 50px; }
.slot .pick:hover::after { content: '✕'; position: absolute; top: 2px; right: 5px; color: var(--red); }
.results { margin-top: 16px; text-align: center; font-size: 18px; }
.results .big { font-size: 26px; font-weight: 700; }
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.dd { position: relative; }
.dd .list { position: absolute; left: 0; right: 0; top: 100%; z-index: 10; background: var(--panel); box-shadow: 0 8px 18px #000a; max-height: 280px; overflow: auto; }
.dd .list div { padding: 6px 10px; display: flex; gap: 8px; align-items: center; cursor: pointer; }
.dd .list div:hover { background: var(--panel2); }
.dd .list svg, .dd .list img { width: 28px; height: 28px; }
.dd input { width: 100%; background: var(--panel-dark); border: 1px solid #444a52; padding: 9px; border-radius: 3px; outline: none; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .overview, .cols, .calc, .results-grid { grid-template-columns: 1fr; }
  .stat4 { grid-template-columns: 1fr 1fr; }
  .nav a.link { padding: 16px 7px; font-size: 13px; }
  .nav-search { display: none; }
}
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tabpane { grid-template-columns: 1fr; } }

/* ownership + owner lists + players */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--panel); border-top: 2px solid var(--blue); text-align: center; padding: 8px 6px 10px; box-shadow: 0 2px 4px #0006; }
.tile .k { color: var(--blue-light); font-size: 15px; } .tile .v { font-size: 20px; font-weight: 700; }
.ownerbox { background: var(--panel); padding: 8px 8px 14px; }
.otools { display: flex; justify-content: space-between; padding: 8px; color: var(--muted); gap: 12px; flex-wrap: wrap; }
.otools input, .otools select { background: #fff; color: #222; border: 0; border-radius: 3px; padding: 5px 8px; }
.otable { box-shadow: none; } .otable td { padding: 4px 12px; } .otable tr:nth-child(odd) td { background: #3a3f46; }
.otable tr:hover td { background: #424850; }
.who { display: inline-flex; align-items: center; gap: 12px; } .who:hover { color: var(--blue-light); }
img.hs { width: 36px; height: 36px; border-radius: 4px; background: #2a2e33; object-fit: cover; }
.btn.small { padding: 5px 14px; font-size: 13px; }
.ofoot { display: flex; justify-content: space-between; align-items: center; padding: 10px 8px 0; }
.pbar { align-items: flex-start; }
.pbar img.avatar { width: 150px; height: 150px; border-radius: 6px; background: var(--panel2); object-fit: cover; flex: none; }
.pbar h1 { margin: 0; font-size: 30px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* player profile (Rolimons-style) */
.ph { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; margin: 22px 0 14px; }
.ph h1 { margin: 0; font-size: 28px; font-weight: 600; } .ph h1 a { color: var(--muted); font-size: 20px; margin-left: 6px; }
.ph .sub { color: #5fc2b0; font-size: 22px; }
.pgrid { display: grid; grid-template-columns: 368px minmax(0, 1fr); gap: 16px; }
.pcard { background: var(--panel); box-shadow: 0 2px 4px #0006; }
.pcard .av { height: 290px; background: var(--panel); display: grid; place-items: center; }
.pcard .av img { max-height: 270px; max-width: 100%; }
.pstats { background: var(--panel-dark); display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; padding: 18px 26px; }
.pstats .kv .ic { opacity: .55; }
.pchart { padding: 14px; }
.pchart canvas.chart { height: 330px; }
.prow { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; margin-top: 16px; }
.prow .pcard { padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; }
.invbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 6px 0 14px; }
.invbar select, .invbar input[type=text] { background: var(--panel2); border: 0; height: 40px; padding: 0 12px; min-width: 150px; box-shadow: 0 1px 3px #0004; }
.invbar input[type=text] { flex: 1; min-width: 180px; }
.switch { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); cursor: pointer; }
.switch i { width: 42px; height: 22px; background: #555; border-radius: 12px; position: relative; transition: .15s; }
.switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .15s; }
.switch input { display: none; } .switch input:checked + i { background: var(--blue); } .switch input:checked + i::after { left: 23px; }
.card .row b.serial { color: #f2994a; } .card .row b.since { color: #3ddc84; font-size: 12px; }
.card .row b.cy { color: var(--blue-light); }
.card .stats .btn.small { width: 100%; justify-content: center; border-radius: 3px; margin-top: 6px; background: #1e9e55; }
.card .img .x { position: absolute; right: 8px; bottom: 6px; background: #2b2f35; color: #ddd; padding: 1px 8px; border-radius: 10px; font-size: 12px; }
.modalbg { position: fixed; inset: 0; background: #000a; z-index: 100; display: grid; place-items: center; }
.modal { background: var(--panel); width: min(440px, 92vw); max-height: 80vh; overflow: auto; box-shadow: 0 10px 30px #000; }
.modal h3 { margin: 0; padding: 12px 16px; background: var(--panel2); display: flex; justify-content: space-between; }
.modal h3 span { cursor: pointer; }
@media (max-width: 900px) { .pgrid, .prow { grid-template-columns: 1fr; } }

/* icons */
svg.ico { display: block; }
.kv .ic, .stat4 .s .ic { color: #8b9199; }
.stat4 .s .ic { display: grid; place-items: center; width: 40px; opacity: 1; font-size: 0; }
.kv .ic { opacity: 1; }
.pstats .kv .ic { color: #8b9199; }
.badge-lim { position: absolute; left: 0; bottom: 0; line-height: 0; }
svg.lim { display: block; }
.btn svg.ico { margin-right: 0; }
.card .img .tag { align-items: center; }

/* tag icons (rare / projected) sit small in the bottom-left corner of a card image */
.card .img .tag svg { width: 18px; height: 18px; display: block; }
.card .img .tag { gap: 3px; left: 6px; bottom: 5px; }
.container { max-width: 1138px; }
.fbtn .count { color: #fff; background: var(--blue); border-radius: 8px; padding: 0 6px; font-size: 11px; margin-left: 6px; }
.fbtn .count:empty { display: none; }

/* accounts / admin */
.aform { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.aform label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 3px; }
.aform input, .aform select { background: #eee; color: #222; border: 0; border-radius: 3px; height: 32px; padding: 0 8px; font-size: 14px; }
.aform label:has(input[name=comment]), .aform label:has(input[name=t]), .aform .aerr { grid-column: 1 / -1; }
.aerr { color: var(--red); min-height: 18px; font-size: 13px; }
.adminbox { margin-top: 16px; border-left: 3px solid var(--blue); }
.adminbox table { margin-top: 12px; }
.btn.tiny { padding: 3px 10px; font-size: 12px; border-radius: 3px; }
.btn.danger { background: #b83a34; } .btn.danger:hover { background: #d3463f; }
.loginbox { max-width: 520px; margin: 40px auto; }
.codebox { background: #1b1e22; padding: 12px; font-family: Consolas, monospace; font-size: 16px; word-break: break-all; user-select: all; border-radius: 3px; margin: 10px 0; }
.nav .link { white-space: nowrap; }

/* top bar: icon over label, evenly spaced */
.nav { height: 56px; background: #393b3d; background: #3a3d40; }
.navbar { width: 100%; max-width: 1138px; margin: 0 auto; padding: 0 12px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.navbar .brand { margin-right: 8px; font-size: 20px; }
.navbar .brand .logo { height: 34px; width: auto; border-radius: 0; background: none; display: block; object-fit: contain; }
.navbar .brand { gap: 10px; padding-right: 6px; }
.nl { flex: 1; max-width: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%; color: #fff; font-size: 11px; opacity: .85; }
.nl span { color: #c9cdd2; line-height: 1; white-space: nowrap; }
.nl:hover, .nl.active { opacity: 1; background: #45484c; }
.nl svg { color: #fff; }
@media (max-width: 560px) { .navbar .bn { display: none; } .nl span { font-size: 10px; } }

/* value changes cards */
.vc-top { margin-top: 22px; }
.vc-search { width: 100%; height: 38px; border: 0; background: #eee; color: #222; padding: 0 12px; font-size: 15px; outline: none; }
.vc-search::placeholder { color: #888; }
.vc-sw { margin: 14px 0 6px; font-size: 13px; color: #c4c8ce; }
.vc-sw .switch { color: #c4c8ce; gap: 8px; }
.vc-sw .switch i { width: 22px; height: 12px; background: #ddd; }
.vc-sw .switch i::after { width: 10px; height: 10px; top: 1px; left: 1px; background: #888; }
.vc-sw .switch input:checked + i { background: var(--blue); }
.vc-sw .switch input:checked + i::after { left: 11px; background: #fff; }
.vgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 4px; }
@media (max-width: 1000px) { .vgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 800px) { .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vcard { background: var(--panel); box-shadow: 0 2px 4px #0006; display: block; padding-bottom: 8px; }
.vcard:hover { outline: 1px solid var(--blue); }
.vcard .t { background: var(--panel2); padding: 5px 6px; font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcard .img { height: 82px; background: linear-gradient(#41464d, #2e3238 55%, #2a2e33); display: grid; place-items: center; }
.vcard .img svg, .vcard .img img { width: 66px; height: 66px; object-fit: contain; }
.vcard .k { color: #3fd062; font-size: 13px; padding: 7px 6px 3px; }
.vcard .r { display: flex; justify-content: space-between; padding: 0 6px; font-size: 12px; line-height: 16px; }
.vcard .r span { color: #9aa0a8; font-size: 11px; }
.vcard .r b { font-weight: 400; }
.vcard .ago { color: #3ddc84; padding: 8px 6px 0; font-size: 13px; }
.vcard .ts { color: #7d838b; padding: 2px 6px 0; font-size: 11px; }
.vcard .adm { padding: 6px 6px 0; display: flex; gap: 4px; }
.vcard .by { color: #9aa0a8; font-size: 11px; padding: 2px 6px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* owner lists (Rolimons-style) */
.otabs button { background: #2c3035; color: #cfd3d8; font-size: 13px; padding: 9px; }
.otabs button.on { background: #3a3f45; color: #fff; box-shadow: inset 0 -2px #fff; }
.ownerbox { background: #3a3f45; padding: 10px 12px 14px; }
.otools { padding: 0 0 8px; font-size: 13px; align-items: center; }
.otools input, .otools select { background: #fff; color: #222; border: 1px solid #ccc; border-radius: 3px; padding: 3px 6px; height: 26px; margin-left: 4px; }
.otools input { width: 90px; }
.otable { background: transparent; box-shadow: none; }
.otable th { background: transparent; border-bottom: 1px solid #1d2024; padding: 7px 8px; font-size: 13px; font-weight: 700; color: #e8eaed; white-space: nowrap; }
.otable th.sortable { cursor: pointer; }
.otable th.sortable:hover { color: #fff; }
.otable th.tr, .otable td.tr { text-align: right; width: 90px; }
.otable td { padding: 3px 8px; border-top: 0; font-size: 13px; height: 33px; }
.otable tr:nth-child(odd) td { background: transparent; }
.otable tr:nth-child(even) td { background: #343940; }
.otable tr:hover td { background: #41464d; }
.otable td.uaid { color: #fff; font-variant-numeric: tabular-nums; }
.sarr { display: inline-flex; flex-direction: column; margin-left: 5px; vertical-align: middle; line-height: 6px; font-size: 6px; font-style: normal; }
.sarr i { font-style: normal; color: #7b8189; }
.sarr i.on { color: var(--blue-light); }
.otable .who { gap: 8px; color: #fff; font-size: 13px; }
.otable .who:hover { color: var(--blue-light); }
img.hs { width: 26px; height: 26px; border-radius: 3px; }
.otable td .muted svg { display: inline; vertical-align: -3px; width: 13px; height: 13px; }
.otable .btn.small { padding: 3px 16px; font-size: 12px; border-radius: 14px; font-weight: 600; box-shadow: 0 2px 3px #0005; }
.ofoot { padding: 12px 0 0; }
.ofoot .sh { font-size: 13px; }
.opager { gap: 0; border: 1px solid #1d2024; border-radius: 3px; overflow: hidden; }
.opager button { background: #2c3035; border-radius: 0; height: 28px; min-width: 30px; padding: 0 9px; border-right: 1px solid #1d2024; font-size: 13px; }
.opager button:last-child { border-right: 0; }
.opager button.on { background: #14171a; font-weight: 700; }
.opager button:disabled { color: #7b8189; cursor: default; }
.opager .dots { background: #2c3035; padding: 0 8px; line-height: 28px; border-right: 1px solid #1d2024; }
.otable .who.hid { color: #a9aeb5; cursor: default; }
.otable .who.hid .hx { margin: 0 6px 0 6px; flex: none; }
.otable .who.hid:hover { color: #a9aeb5; }

/* "More <creator> Items" strip */
.morewrap { position: relative; }
.more { display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 2px 2px 10px; }
.more::-webkit-scrollbar { display: none; }
.mcard { flex: 0 0 calc((100% - 72px) / 7); min-width: 118px; background: var(--panel); box-shadow: 0 2px 4px #0006; display: block; transition: transform .15s, box-shadow .15s; }
.mcard:hover { transform: translateY(-2px); box-shadow: 0 6px 12px #0008; }
.mcard .t { background: var(--panel2); padding: 5px 7px; font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard .img { height: 128px; background: linear-gradient(#41464d, #2e3238 55%, #2a2e33); display: grid; place-items: center; position: relative; }
.mcard .img img, .mcard .img svg.art { width: 92px; height: 92px; object-fit: contain; }
.mcard .img .tag { position: absolute; left: 6px; bottom: 5px; display: flex; gap: 3px; }
.mcard .img .tag svg { width: 18px; height: 18px; }
.mcard .r { display: flex; justify-content: space-between; padding: 0 7px; font-size: 12px; line-height: 19px; }
.mcard .r span { color: #8b9199; } .mcard .r b { font-weight: 400; }
.mcard .r:last-child { padding-bottom: 6px; }
.morenext { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 6px #0008; z-index: 2; }
.morenext:hover { background: #28a843; }

/* shared: trade calculator + trade ads slots/picker */
  .tc { background: var(--panel); box-shadow: 0 2px 4px #0006; margin-top: 18px; padding: 14px 16px 18px; }
  .tc-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; }
  .tc-side h3 { margin: 0 0 12px; text-align: center; font-size: 15px; font-weight: 700; }
  .tc-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .tc-slot { aspect-ratio: 1; background: #2a2e33; position: relative; display: grid; place-items: center; overflow: hidden; cursor: pointer; user-select: none;
    transition: background .18s, box-shadow .18s, transform .18s; }
  .tc-slot::after { content: ''; position: absolute; inset: 0; opacity: 0; transform: scale(.7); transition: opacity .18s, transform .18s; pointer-events: none; background: linear-gradient(#8b9199,#8b9199) center / 34px 4px no-repeat, linear-gradient(#8b9199,#8b9199) center / 4px 34px no-repeat; }
  .tc-slot.e:hover { background: #343a41; box-shadow: 0 4px 10px #0007; transform: translateY(-1px); }
  .tc-slot.e:hover::after { opacity: 1; transform: scale(1); }
  .tc-slot.arm { background: #343a41; box-shadow: 0 4px 10px #0007, inset 0 0 0 1px #5a6169; }
  .tc-slot.arm::after { content: 'SELECT'; display: grid; place-items: center; background: none; font-size: 20px; font-weight: 800; letter-spacing: .5px; opacity: 1; transform: none; color: #7b838c; animation: pulse 1.4s ease-in-out infinite; }
  .tc-slot.arm img, .tc-slot.arm svg.art, .tc-slot.arm .tag, .tc-slot.arm .rm { opacity: .12; animation: none; }
  @keyframes pulse { 50% { color: #a3abb4; } }
  .tc-slot.f { background: linear-gradient(#41464d, #2e3238 60%, #2a2e33); }
  .tc-slot.f:hover { box-shadow: 0 4px 10px #0007; transform: translateY(-1px); }
  .tc-slot.f:not(.arm)::after { content: none; }
  .tc-slot img, .tc-slot svg.art { width: 80%; height: 80%; object-fit: contain; animation: pop .22s ease-out; }
  @keyframes pop { from { opacity: 0; transform: scale(.82); } }
  .tc-slot .tag { position: absolute; left: 5px; bottom: 4px; display: flex; gap: 2px; }
  .tc-slot .tag svg { width: 15px; height: 15px; }
  .tc-slot .rm { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #000a; color: #fff; font-size: 12px; line-height: 20px; text-align: center; opacity: 0; transition: opacity .15s, background .15s; z-index: 2; }
  .tc-slot.f:hover .rm { opacity: 1; } .tc-slot .rm:hover { background: var(--red); }
  .tc-rb { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 24px 0 10px; }
  .tc-rb input { width: 116px; height: 22px; background: #2a2e33; border: 0; color: #fff; padding: 0 7px; outline: none; font-size: 13px; transition: box-shadow .15s; }
  .tc-rb input:focus { box-shadow: 0 0 0 1px #5a6169; }
  .tc-rb input::-webkit-inner-spin-button { display: none; }
  .tc-tot { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: baseline; column-gap: 8px; font-size: 11px; line-height: 1.35; }
  .tc-tot span { color: #aab0b7; text-align: right; } .tc-tot b { font-size: 17px; font-variant-numeric: tabular-nums; }
  .tc-tot .v { color: #55b7e8; } .tc-tot .r { color: #7ac36a; }
  .tc-res { margin: 22px auto 0; max-width: 374px; background: #2a2e33; text-align: center; padding: 14px 10px; font-size: 12px; color: #9aa0a8; min-height: 48px; box-shadow: inset 0 1px 4px #0005; display: grid; align-content: center; gap: 2px; }
  .tc-res .big { font-size: 15px; font-weight: 700; }
  .tc-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
  .tc-bar select { background: #2a2e33; border: 0; height: 36px; padding: 0 10px; min-width: 150px; box-shadow: 0 1px 3px #0004; }
  .tc-opt { position: relative; }
  .tc-opt .btn { border-radius: 14px; padding: 5px 14px; font-size: 13px; }
  .tc-menu { position: absolute; right: 0; top: 38px; z-index: 30; background: var(--panel-dark); box-shadow: 0 6px 18px #000a; padding: 8px 12px; display: none; min-width: 190px; }
  .tc-menu.open { display: block; }
  .tc-menu label { display: flex; gap: 8px; align-items: center; padding: 4px 0; cursor: pointer; font-size: 13px; }
  .tc-menu select { width: 100%; margin-top: 4px; background: #eee; color: #222; border: 0; height: 26px; }
  .tc-search { position: relative; margin-top: 12px; }
  .tc-search input { width: 100%; height: 38px; border: 0; background: #2a2e33; padding: 0 48px 0 12px; font-size: 16px; outline: none; box-shadow: inset 0 1px 4px #0005; }
  .tc-search button { position: absolute; right: 0; top: 0; width: 38px; height: 38px; background: #3a3f46; border: 0; cursor: pointer; font-size: 16px; }
  .tc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
  @media (max-width: 1000px) { .tc-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
  @media (max-width: 700px) { .tc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tc-sides { gap: 14px; } .tc-slot.arm::after { font-size: 12px; } }
  .tcard { background: #3a3f46; cursor: pointer; box-shadow: 0 2px 4px #0006; user-select: none; transition: transform .15s, box-shadow .15s; }
  .tcard:hover { transform: translateY(-2px); box-shadow: 0 6px 12px #0008; }
  .picking .tcard:hover { outline: 1px solid var(--blue-light); }
  .tcard .t { padding: 4px 5px; font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tcard .img { height: 74px; background: linear-gradient(#41464d, #2e3238 55%, #2a2e33); display: grid; place-items: center; position: relative; }
  .tcard .img img, .tcard .img svg.art { width: 62px; height: 62px; object-fit: contain; }
  .tcard .img .tag { position: absolute; left: 5px; bottom: 3px; display: flex; gap: 2px; }
  .tcard .img .tag svg { width: 15px; height: 15px; }
  .tcard .r { display: flex; justify-content: space-between; padding: 0 5px; font-size: 11px; line-height: 15px; }
  .tcard .r span { color: #9aa0a8; } .tcard .r.v b { color: #55b7e8; font-weight: 400; }
  .tcard .r:last-child { padding-bottom: 4px; }
  .hint { color: var(--muted); font-size: 12px; margin-top: 6px; }

/* account dropdown */
.nlw { position: relative; flex: 1; max-width: 110px; height: 100%; display: flex; }
.nlw .nl { flex: 1; max-width: none; }
.nl .av { display: grid; place-items: center; height: 26px; width: 26px; }
.nl .av img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: #2a2e33; }
.nl .lbl { color: #c9cdd2; line-height: 1; white-space: nowrap; }
.nlw.open .nl, .nlw:hover .nl { opacity: 1; background: #45484c; }
.navmenu { display: none; position: absolute; right: 0; top: 100%; width: 210px; background: #2b2e32; box-shadow: 0 8px 20px #000a; padding: 6px 0; z-index: 60; animation: menuin .14s ease-out; }
.nlw.open .navmenu { display: block; }
@media (hover: hover) { .nlw:hover .navmenu { display: block; } }
@keyframes menuin { from { opacity: 0; transform: translateY(-4px); } }
.navmenu a { display: flex; align-items: center; gap: 14px; padding: 11px 18px; color: #e8eaed; font-size: 14px; font-weight: 600; }
.navmenu a svg { color: #fff; flex: none; }
.navmenu a:hover { background: #3a3e44; }
.navmenu .sep { height: 1px; background: #3f4349; margin: 5px 0; }

/* trade ads */
.adpage-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin: 24px 0 12px; }
.adpage-h h1 { margin: 0; font-size: 26px; font-weight: 600; }
.adpage-h .sub { color: var(--blue-light); font-size: 18px; }
.pbtns { display: flex; gap: 6px; }
.pbtn { background: var(--blue); color: #fff; border: 0; border-radius: 14px; padding: 3px 14px; font-size: 12px; font-weight: 600; cursor: pointer; display: inline-block; box-shadow: 0 2px 3px #0005; line-height: 18px; transition: background .15s; }
.pbtn:hover { background: #28a843; }
.pbtn.danger { background: #b83a34; } .pbtn.danger:hover { background: #d3463f; }
.adhero { display: flex; background: linear-gradient(90deg, #14602a, #0b3a1a); margin-bottom: 14px; min-height: 126px; box-shadow: 0 2px 4px #0006; }
.adhero .pic { width: 148px; background: linear-gradient(#41464d, #2a2e33); display: grid; place-items: center; flex: none; }
.adhero .pic img { max-height: 126px; max-width: 148px; }
.adhero .tx { padding: 14px 22px; }
.adhero h2 { margin: 0 0 8px; font-size: 19px; } .adhero p { margin: 0 0 18px; font-size: 12px; color: #d4ecd9; }
.adhero .btn { padding: 8px 26px; margin-right: 12px; }
.adfilters { background: #2e3338; padding: 12px 16px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; margin-bottom: 14px; }
.adfilters h3 { margin: 0 0 2px; font-size: 20px; font-weight: 600; }
.adfilters label { font-size: 10px; color: #aab0b7; display: block; margin-top: 2px; }
.adfilters input[type=text] { width: 142px; height: 30px; background: #1d2024; border: 0; border-radius: 3px; padding: 0 8px; color: #fff; outline: none; margin: 2px 0 8px; display: block; }
.fbtns { display: flex; gap: 6px; position: relative; }
.fsq { width: 34px; height: 30px; background: var(--blue); border: 0; border-radius: 3px; cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 3px #0005; color: #fff; }
.fsq:hover, .fsq.on { background: #28a843; } .fsq.on { box-shadow: inset 0 0 0 2px #fff6; }
.fpop { position: absolute; top: 36px; left: 0; z-index: 20; background: var(--panel-dark); box-shadow: 0 6px 18px #000a; padding: 10px 12px; min-width: 190px; display: none; }
.fpop.open { display: block; }
.fpop label { font-size: 12px; color: #ccd; display: flex; align-items: center; gap: 8px; margin: 4px 0; cursor: pointer; }
.fpop input[type=number] { width: 100%; height: 26px; background: #eee; color: #222; border: 0; border-radius: 3px; padding: 0 6px; margin-bottom: 6px; }
.ad { background: #25292e; margin-bottom: 16px; box-shadow: 0 2px 4px #0006; }
.adh { background: #1d2024; display: flex; justify-content: space-between; align-items: center; padding: 3px 8px; }
.adh .who { display: flex; align-items: center; gap: 8px; }
.adh .who:hover .nm { color: var(--blue-light); }
.adh .hs { width: 28px; height: 28px; border-radius: 3px; background: #2a2e33; }
.adh .nm { font-size: 13px; line-height: 1.1; display: flex; flex-direction: column; } .adh .nm small { font-size: 10.5px; color: #8b9199; }
.adh .adb { display: flex; gap: 6px; }
.adbody { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; padding: 8px 12px 14px; background: #2b2f35; }
.adside h4 { text-align: center; margin: 4px 0 8px; font-size: 13px; }
.aslots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.aslot { aspect-ratio: 1; background: #2a2e33; display: grid; place-items: center; position: relative; overflow: hidden; }
.aslot.f { background: linear-gradient(#41464d, #2e3238 60%, #2a2e33); }
a.aslot.f:hover { outline: 1px solid var(--blue-light); }
.aslot img, .aslot svg.art { width: 84%; height: 84%; object-fit: contain; }
.aslot .tag { position: absolute; left: 4px; bottom: 3px; display: flex; gap: 2px; } .aslot .tag svg { width: 14px; height: 14px; }
.aslot .ser { position: absolute; right: 3px; bottom: 3px; font-size: 10px; background: #000a; padding: 0 4px; border-radius: 8px; color: #f2994a; }
.atot { display: grid; grid-template-columns: auto auto; justify-content: center; column-gap: 8px; align-items: baseline; margin-top: 8px; font-size: 11px; line-height: 1.4; min-height: 44px; align-content: start; }
.atot span { color: #aab0b7; text-align: right; } .atot b { font-size: 13px; font-variant-numeric: tabular-nums; }
.atot .v { color: #55b7e8; } .atot .r { color: #7ac36a; } .atot .rb { color: #fff; } .atot .rbx { display: flex; justify-content: flex-end; }
.adempty { background: #1f2327; text-align: center; padding: 58px 10px; margin-top: 16px; }
.adempty b { display: block; font-size: 13px; } .adempty span { color: #8b9199; font-size: 11px; }
@media (max-width: 760px) { .adbody { grid-template-columns: 1fr; gap: 14px; } .adfilters { grid-template-columns: 1fr; } .adhero .pic { display: none; } }

/* create ad */
.quota { background: #3a3d40; display: grid; grid-template-columns: 1fr 1fr; text-align: center; padding: 8px 10px; margin-top: 18px; box-shadow: 0 2px 4px #0006; }
.quota span { font-size: 11px; color: var(--blue-light); display: block; } .quota b { font-size: 14px; }
.ca-sub { display: flex; justify-content: center; margin-top: 22px; }
.ca-sub button { background: #2a2e33; color: #c9cdd2; border: 0; padding: 9px 22px; font-weight: 700; cursor: pointer; font-size: 14px; transition: background .15s, color .15s; }
.ca-sub button:hover:not(:disabled) { background: var(--blue); color: #fff; } .ca-sub button:disabled { opacity: .5; cursor: not-allowed; }
.ca-msg { text-align: center; min-height: 18px; margin-top: 8px; font-size: 13px; color: var(--red); }
.ptabs { display: grid; grid-template-columns: 1fr 1fr; margin: -14px -16px 12px; }
.ptabs button { background: #3a3d40; border: 0; padding: 11px; cursor: pointer; color: #b9bec6; font-size: 14px; transition: background .15s; }
.ptabs button.on { background: #2b2f35; color: #fff; box-shadow: inset 0 -2px #fff; }
.tc-search input { background: #eee; color: #222; } .tc-search input::placeholder { color: #888; }
.tcard .ser { color: #f2994a; font-size: 11px; }
.tcard.used { opacity: .35; pointer-events: none; }
.tcard .img .sbadge { position: absolute; right: 4px; bottom: 3px; background: #000a; color: #f2994a; font-size: 10px; padding: 0 5px; border-radius: 8px; }
.tcard.tagcard .img { height: 74px; }
.tcard.tagcard .img svg { width: 74px; height: 74px; }
.tc-slot .ser { position: absolute; right: 4px; bottom: 4px; font-size: 11px; background: #000a; padding: 0 5px; border-radius: 8px; color: #f2994a; }

.aslot img.tagimg, .tc-slot img.tagimg { width: 96%; height: 96%; }
.tcard.tagcard .img img.tagimg, .tcard.tagcard .img svg.tagsvg { width: 72px; height: 72px; }

/* search dialog */
.noscroll { overflow: hidden; }
.searchbg { position: fixed; inset: 0; background: #000b; z-index: 120; display: grid; place-items: start center; padding-top: 7vh; animation: sfade .15s ease-out; }
@keyframes sfade { from { opacity: 0; } }
.searchdlg { width: min(680px, 94vw); height: min(600px, 84vh); background: #3a3f45; border-radius: 10px; box-shadow: 0 14px 40px #000; display: flex; flex-direction: column; overflow: hidden; animation: sdrop .18s ease-out; }
@keyframes sdrop { from { transform: translateY(-10px); opacity: 0; } }
.searchdlg .sh { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #31353a; font-weight: 700; font-size: 15px; }
.searchdlg .sx { background: none; border: 0; color: #c9cdd2; cursor: pointer; font-size: 15px; padding: 2px 6px; } .searchdlg .sx:hover { color: #fff; }
.stabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 12px 16px 0; }
.stabs button { background: none; border: 0; color: #b9bec6; cursor: pointer; padding: 8px 6px 7px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; transition: background .15s, color .15s; }
.stabs button svg { color: #aab0b7; }
.stabs button:hover { background: #41464d; }
.stabs button.on { background: linear-gradient(#1f6b34, #184f27); color: #fff; box-shadow: inset 0 -2px #cfe9d6; } .stabs button.on svg { color: #fff; }
.sbox { display: flex; margin: 12px 16px 0; box-shadow: 0 2px 5px #0006; }
.sbox input { flex: 1; height: 36px; border: 0; background: #eee; color: #222; padding: 0 12px; font-size: 15px; outline: none; }
.sbox button { width: 38px; border: 0; background: #4a5058; color: #fff; cursor: pointer; } .sbox button:hover { background: #596069; }
.sres { flex: 1; overflow-y: auto; margin: 10px 16px 14px; }
.srow { display: flex; align-items: center; gap: 12px; padding: 5px 8px; border-top: 1px solid #343940; }
.srow:first-child { border-top: 0; } .srow:hover { background: #454b52; }
.srow .sth { width: 38px; height: 38px; background: #2a2e33; border-radius: 4px; display: grid; place-items: center; flex: none; overflow: hidden; }
.srow .sth img, .srow .sth svg { width: 100%; height: 100%; object-fit: cover; }
.srow .sn { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; } .srow .sn small { color: #8b9199; font-weight: 400; margin-left: 4px; }
.srow .sv { color: #55b7e8; font-variant-numeric: tabular-nums; }
.snone { text-align: center; color: #8b9199; padding: 30px 0; }
.searchdlg { width: min(780px, 95vw); }
.sres.sgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-content: start; }
.sres.sgrid .snone { grid-column: 1 / -1; }
@media (max-width: 640px) { .sres.sgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tcard.ptile .img { height: 124px; }
.tcard.ptile .img img { width: 112px; height: 112px; object-fit: contain; }
.tcard.ptile .t { font-size: 12px; }

/* wish / asking list strip on profiles */
.wl-h { margin: 30px 0 12px; font-size: 28px; font-weight: 600; }
.wl-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.wl-row .tcard .img { height: 82px; }
