/* Players: the list, a character sheet, and a chest-like grid for what they carry. */
.players-page, .sheet { max-width: 1100px; margin: 0 auto; padding: 14px 22px 60px; display: flex; flex-direction: column; gap: 12px; width: 100%; box-sizing: border-box; }
.players-filters { flex-wrap: wrap; }
.quest-filter { display: inline-flex; gap: 4px; align-items: center; }
.players-list { display: flex; flex-direction: column; gap: 6px; }
.prow { display: grid; grid-template-columns: 34px minmax(180px, 2.4fr) 0.8fr 1fr 1fr minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; align-items: center; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--fg); text-decoration: none; box-shadow: 0 1px 3px var(--shadow); }
.prow:hover, .prow:focus-visible { border-color: var(--accent); }
.pname { display: flex; gap: 6px; align-items: baseline; min-width: 0; flex-wrap: wrap; }
.pstat { font-variant-numeric: tabular-nums; }
.phead { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 4px; color: #fff; font: 700 15px var(--display, var(--mono)); box-shadow: inset 0 -3px 0 rgb(0 0 0 / .25); }
.phead.big { width: 46px; height: 46px; font-size: 22px; }
.online { color: var(--good, #2e7d32); font-weight: 600; }
.players-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.pager { display: inline-flex; gap: 6px; align-items: center; }
.unreadable code { margin: 0 3px; }
.sheet-head { display: flex; gap: 12px; align-items: center; }
.chars { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.char { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg); text-decoration: none; background: var(--panel); font-size: 13px; }
.char.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--panel)); font-weight: 600; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tab { all: unset; cursor: pointer; padding: 7px 12px; border-radius: 6px 6px 0 0; color: var(--muted); font: 600 12px var(--mono); letter-spacing: .03em; }
.tab.on { color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-bottom-color: var(--panel); margin-bottom: -1px; }
.tab:focus-visible { outline: 2px solid var(--accent); }
.scards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.scard { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; box-shadow: 0 1px 3px var(--shadow); }
.scard h5, .gear h5, .pquests h5 { margin: 4px 0 2px; font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.scard .big { font: 600 22px var(--display, var(--body)); }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.kv .stat-name { border-left: 4px solid var(--sc); padding-left: 6px; }
.xpbar { display: block; height: 8px; background: var(--raise); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, #6aa84f, #b6d7a8); }
.xpbar.small { display: inline-block; width: 80px; height: 6px; margin-left: 6px; vertical-align: middle; }
.slots { display: grid; grid-template-columns: repeat(var(--cols), 54px); gap: 3px; padding: 6px; background: #c6c6c6; border: 2px solid #555; border-radius: 4px; width: max-content; max-width: 100%; overflow-x: auto; }
.slot { position: relative; width: 54px; height: 54px; box-sizing: border-box; background: #8b8b8b; border: 2px solid; border-color: #373737 #fff #fff #373737; display: flex; align-items: center; justify-content: center; text-align: center; font: 600 9px/1.1 var(--mono); color: #1d1d1d; overflow: hidden; padding: 2px; cursor: default; }
.slot.custom { background: #9f8fbf; }
.slot.empty { background: #8b8b8b; opacity: .85; }
.slot.bad { background: #b55; color: #fff; }
.slot:focus-visible { outline: 2px solid var(--accent); }
.slot-n { position: absolute; right: 3px; bottom: 1px; font: 700 12px var(--mono); color: #fff; text-shadow: 1px 1px 0 #3f3f3f; }
.slot-label { position: absolute; left: 2px; top: 1px; font: 600 7px var(--mono); color: #2a2a2a; opacity: .8; }
.qrows { display: flex; flex-direction: column; gap: 4px; }
.qrow { display: grid; grid-template-columns: 110px minmax(160px, 1.6fr) 1fr 1.3fr auto; gap: 10px; align-items: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.qrow .pc { text-align: center; }
.flagchips { display: flex; flex-wrap: wrap; gap: 5px; }
.history-list li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.their { margin-top: 5px; font-size: 11.5px; padding: 2px 6px; border-radius: 4px; background: var(--raise); border-left: 3px solid var(--muted); }
.their.active, .their.ready { border-left-color: var(--accent); }
.their.done { border-left-color: var(--good, #2e7d32); }
.pchips .pc { cursor: pointer; }
.gnode.tnode.untaken { opacity: .55; }
.gnode.tnode.taken { box-shadow: 0 0 0 2px var(--act), 0 2px 6px var(--shadow); }
.trank { position: absolute; right: 6px; top: 6px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--act); color: #fff; font: 700 11px/18px var(--mono); text-align: center; }
@media (max-width: 900px) {
  .prow { grid-template-columns: 34px 1fr auto; }
  .prow > :nth-child(n+4) { display: none; }
  .qrow { grid-template-columns: 1fr; }
}
