/* 4ALL GMWEB1 (docs\GMWEB1.md): the GM panel of the team, /account/gm (account-gm.js). Only this page loads it. */
.gm-wrap { display: grid; gap: clamp(14px, 2vw, 22px); }
.gm-wrap h1 { margin: 0; }
.gm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--text-2); }
.gm-head p { margin: 0; }
.gm-ctl-up { color: var(--ok); }
.gm-ctl-down { color: var(--bad); }
.gm-ctl-off { color: var(--muted); }
.gm-card { display: grid; gap: 12px; min-width: 0; }
.gm-card h2 { margin: 0; font-size: 1.2rem; }
.gm-card p { margin: 0; }
.gm-card .hint { color: var(--muted); font-size: .88rem; }
.gm-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gm-grid { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.gm-inline { grid-template-columns: minmax(0, 14rem) auto; align-items: end; }
@media (max-width: 480px) { .gm-inline { grid-template-columns: minmax(0, 1fr); } }
.gm-key { font-family: ui-monospace, Consolas, monospace; font-size: 1.1rem; letter-spacing: .06em; padding: 10px 12px; border: 1px solid var(--gold-line); border-radius: var(--radius); background: rgba(0, 0, 0, .35); overflow-wrap: anywhere; user-select: all; }
.gm-msg { font-weight: 600; }
.gm-msg-ok { color: var(--ok); }
.gm-msg-error { color: var(--bad); }
.gm-msg-info { color: var(--text-2); }
.gm-online { font-size: 1.05rem; color: var(--gold); }
.gm-pages { display: flex; gap: 10px; justify-content: flex-end; }
.gm-card form { align-content: start; }
.gm-card input[type="number"] { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--radius); font: 400 1rem/1.4 var(--sans); color: var(--text); background: rgba(4, 6, 10, .65); border: 1px solid var(--gold-line); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .35); }
table.data.acc-table td.gm-nw { white-space: nowrap; overflow-wrap: normal; }
table.data.acc-table td.gm-detail { min-width: 14rem; overflow-wrap: anywhere; }
.gm-card table.data { min-width: 44rem; }
/* 4ALL GMWEB2 (docs\GMWEB2.md): move / monsters / events / cash sale, and the roles on the Team page (account-gm-team.js) */
.gm-card h3 { margin: 4px 0 0; font-size: 1.05rem; }
.gm-xyz { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gm-two { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.gm-check { display: flex; align-items: center; gap: 10px; }
.gm-check input { width: 20px; height: 20px; flex: none; }
.gm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gm-cash { display: grid; gap: 10px; border: 1px solid var(--gold-line); border-radius: var(--radius); padding: 12px; margin: 0; min-width: 0; }
.gm-cash legend { padding: 0 6px; color: var(--text-2); }
.gm-cash-row { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) 6.5rem auto; align-items: center; }
.gm-cash-row select { min-width: 0; }
@media (max-width: 480px) { .gm-cash-row { grid-template-columns: minmax(0, 1fr) 5.5rem; } .gm-cash-row .btn { grid-column: 1 / -1; justify-self: start; } }
.gm-events table.data { min-width: 60rem; }
.gm-team-add { grid-template-columns: minmax(0, 14rem) minmax(0, 12rem) auto; }
@media (max-width: 640px) { .gm-team-add { grid-template-columns: minmax(0, 1fr); } }
table.data.acc-table td.gm-nw select { width: auto; min-height: 36px; padding: 4px 8px; margin-right: 6px; }
table.data.acc-table td.gm-nw .btn + .btn { margin-left: 6px; }
/* 4ALL GMWEB2: the roles on the Team page sit in the same column as the tickets and the videos */
.gm-team { max-width: 900px; margin: 0 auto; }
.gm-team:not(:empty) { margin-top: 22px; }
/* 4ALL GMWEB2: in the GM tables a column breaks between words only (the account tables break anywhere, which on a phone
   squeezed the columns of the events to one letter); the details of the log still break anywhere */
.gm-card table.data.acc-table th, .gm-card table.data.acc-table td { overflow-wrap: normal; }
.gm-card table.data.acc-table td.gm-detail { overflow-wrap: anywhere; }
/* 4ALL GMDB1: a character on the panel (account, in game or not, money), its money and an item by post side by side */
.gm-chars .gm-two { gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); align-items: start; }
.gm-char { display: grid; gap: 4px; margin: 12px 0; }
.gm-char p { margin: 0; }
.gm-state.ok { color: var(--ok); }
.gm-state.warn { color: var(--warn); font-weight: 600; }
.gm-money { font-variant-numeric: tabular-nums; }
.gm-find { display: flex; gap: 8px; align-items: flex-end; }
.gm-find .field { flex: 1; min-width: 0; }
.gm-find .btn { margin-bottom: 2px; }
/* 4ALL GMPLAT1 (docs\GMPLAT1.md): CPU / RAM / network of each machine on the status card */
.gm-machines { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.gm-machines h3, .gm-machines .hint { grid-column: 1 / -1; }
.gm-mach { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--gold-line); border-radius: var(--radius); background: rgba(0, 0, 0, .25); min-width: 0; }
.gm-mach-name { overflow-wrap: anywhere; }
.gm-mach-name span { color: var(--text-2); }
.gm-meter { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 3.2rem; align-items: center; gap: 10px; font-size: .92rem; }
.gm-meter-label { color: var(--text-2); }
.gm-meter-value { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.gm-bar { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.gm-bar-fill { display: block; height: 100%; border-radius: 4px; background: var(--muted); }
.gm-bar-fill.ok { background: var(--ok); }
.gm-bar-fill.warn { background: var(--warn); }
.gm-bar-fill.bad { background: var(--bad); }
/* 4ALL GMAPP1 (docs\GMAPP1.md): the panel as an app on the phone */
.gm-alert { margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--bad); border-left-width: 4px; border-radius: var(--radius); color: var(--bad); font-weight: 600; overflow-wrap: anywhere; }
.gm-card .hint.gm-updated { margin: 0 0 6px; }
.gm-head .hint.gm-ios { flex-basis: 100%; margin: 0; color: var(--muted); font-size: .88rem; }
/* installed (standalone): no footer of the site, and room for the notch / the home bar of the phone */
@media (display-mode: standalone) {
  .site-footer, .topbar-slogan { display: none; }
  body { padding-bottom: env(safe-area-inset-bottom); }
}
/* 4ALL GMAPP2 (docs\GMAPP2.md): live, this device (alerts, passkeys) */
.gm-card .hint.gm-updated.gm-live::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--ok); vertical-align: middle; }
.gm-device { display: grid; gap: 16px; }
.gm-dev-part { display: grid; gap: 8px; min-width: 0; }
.gm-dev-part h3 { margin: 0; }
.gm-dev-part .hint { margin: 0; overflow-wrap: anywhere; }
.gm-push-state { margin: 0; }
.gm-push-on strong { color: var(--ok); }
.gm-keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gm-keys li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--gold-line); border-radius: var(--radius); min-width: 0; }
.gm-keys li > span { min-width: 0; overflow-wrap: anywhere; }
.gm-keys .hint { color: var(--text-2); font-size: .88rem; }
/* 4ALL GMAPP3 (docs\GMAPP3.md): the tickets card */
.gm-ticket-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.gm-ticket-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 8px 10px; border: 1px solid var(--gold-line); border-radius: var(--radius); min-width: 0; }
.gm-ticket-list li > a { min-width: 0; overflow-wrap: anywhere; }
.gm-ticket-new { margin-left: auto; padding: 1px 8px; border: 1px solid var(--warn); border-radius: 999px; color: var(--warn); font-size: .82rem; font-weight: 600; }
/* 4ALL GMBAN1: the running bans of an account */
.gm-ban-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.gm-ban-list li { padding: 8px 10px; border: 1px solid var(--gold-line); border-radius: var(--radius); min-width: 0; overflow-wrap: anywhere; }
.gm-ban-reason { display: block; margin-top: 2px; color: var(--muted); }
/* 4ALL GMIOS1 (docs\GMIOS1.md): the pairing code of the iPhone app */
.gm-app-code { margin: 0; overflow-wrap: anywhere; }
.gm-app-code strong { font-size: 1.5rem; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
/* 4ALL GMLOG1 (docs\GMLOG1.md): the servers' log lines (wrapped: no sideways scroll on a phone) */
.gm-slog-check { display: flex; align-items: center; gap: 8px; }
.gm-slog-check input { width: auto; margin: 0; }
.gm-slog-lines { max-height: 28rem; overflow-y: auto; margin: 0 0 10px; padding: 8px 10px; border: 1px solid var(--gold-line); border-radius: var(--radius); background: rgba(0, 0, 0, .25); font: .8rem/1.45 Consolas, "Cascadia Mono", Menlo, monospace; min-width: 0; }
.gm-slog-line { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.gm-slog-line.bad { color: var(--bad); }
/* 4ALL GMIOS28 (761): a role as a badge, in the colour of the role (set by the script; the owner changes it in the app) */
.gm-role { display: inline-block; margin-left: .35em; padding: .05em .55em; border: 1px solid currentColor; border-radius: 999px; font-size: .78em; font-weight: 700; letter-spacing: .02em; line-height: 1.5; white-space: nowrap; background: rgba(255, 255, 255, .04); }
