/* The staff console: the game's chrome, laid out for tables instead of a scene. */
body.staff #app { width: min(100vw, 1100px); }
.staff p.small { font-size: 13px; color: #a8a8a8; }
#tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
#tabs button .count { margin-left: 6px; padding: 0 6px; background: var(--pink); color: var(--paper); }
#tabs button.active .count { background: var(--paper); color: var(--ink); }
#status { min-height: 1.4em; margin: 4px 0; color: #fcfc54; font-size: 14px; }
.note { padding: 8px 10px; background: #000; border: 3px solid var(--pink); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 8px 0 16px; }
.tile { padding: 8px 10px; background: #000; border: 3px solid var(--cyan); }
.tile b { display: block; font-size: 28px; color: var(--pink); line-height: 1.1; }
.tile small { display: block; margin-top: 2px; font-size: 12px; color: #a8a8a8; overflow-wrap: anywhere; }
.tile.live { border-color: #a8fc54; }
.tile.live b { color: #a8fc54; }
.tile.alert { border-color: #fcfc54; }
.tile.alert b { color: #fcfc54; }

.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #000; font-size: 14px; }
th, td { padding: 6px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid #3c2c6c; }
th { color: var(--cyan); font-weight: normal; white-space: nowrap; border-bottom: 3px solid var(--cyan); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.actions { white-space: nowrap; }
td.actions button, td.actions a.button, .detail button { min-height: 34px; padding: 3px 8px; margin: 0 4px 4px 0; }
tr.detail td { background: #120a26; }
.empty { padding: 14px; background: #000; border: 3px solid var(--cyan); }
h2 { margin: 16px 0 6px; font-size: 18px; color: var(--pink); }

.tag { display: inline-block; padding: 0 6px; border: 2px solid; white-space: nowrap; background: #000; font-weight: normal; }
.tag.trial, .tag.official { color: #a8fc54; }
.tag.review { color: #fcfc54; }
.tag.withdrawn, .tag.banned { color: #fcb0d4; }
.tag.staff { color: var(--cyan); }
.tag.out-opened { color: #a8fc54; }
.tag.out-rejected { color: #fcb0d4; }
.tag.out-error { color: #fcfc54; }
td.prompt { min-width: 260px; max-width: 520px; overflow-wrap: anywhere; }
td small { color: #a8a8a8; }
.tag.playing { color: #a8fc54; }
.tag.cellar { color: #a8a8a8; }

/* The table may scroll sideways on a phone; the detail stays within the screen. */
.detail .cols { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; position: sticky; left: 8px; max-width: min(1060px, calc(100vw - 40px)); }
.detail canvas { width: min(100%, 320px); image-rendering: pixelated; border: 3px solid var(--cyan); background: #000; }
.detail .text { flex: 1 1 260px; min-width: 0; }
.detail dt { color: var(--cyan); margin-top: 6px; }
.detail dd { margin: 0; overflow-wrap: anywhere; }
button.danger { background: #fcb0d4; }
