:root {
  --bg: #101418;
  --panel: #161c22;
  --panel-2: #1d252d;
  --text: #e7edf3;
  --muted: #94a3b8;
  --line: #2b3440;
  --accent: #6ee7b7;
  --warn: #fbbf24;
  --bad: #fb7185;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  max-width: 100vw;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Segoe UI, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
}
header {
  border-bottom: 1px solid var(--line);
  background: #0c1116;
  position: sticky;
  top: 0;
  z-index: 2;
}
.bar {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand {
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}
nav {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-short {
  display: none;
}
.autorefresh-short {
  display: none;
}
nav a, .link-button {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  padding: 5px 7px;
  font: inherit;
  cursor: pointer;
}
nav a.active, nav a:hover, .link-button:hover {
  color: var(--text);
  border-color: var(--line);
  background: var(--panel);
}
main {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0 auto;
  padding: 10px 14px;
}
h1 {
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 8px;
}
h2 {
  font-size: 15px;
  margin: 14px 0 8px;
}
.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}
.overview-summary-section {
  min-width: 0;
  margin-bottom: 7px;
}
.overview-summary-title {
  margin: 0 0 4px 1px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.overview-summary {
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  margin-bottom: 0;
}
.overview-summary .metric {
  min-width: 0;
  min-height: 54px;
  padding: 5px 7px;
}
.overview-summary .metric .value {
  overflow: hidden;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  text-overflow: ellipsis;
}
.alert-summary {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}
.metric {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 6px;
  padding: 6px 8px;
}
.metric[data-dblclick-url] {
  cursor: pointer;
}
.metric[data-dblclick-url]:hover {
  border-color: #2dd4bf;
  background: #12312f;
}
.metric .label {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 2px;
}
.metric .value {
  font-size: 16px;
  font-weight: 700;
}
.overview-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 6px;
  padding: 7px;
  margin: 8px 0;
}
.overview-panel h2 {
  margin: 0 0 2px;
}
.overview-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.overview-panel table {
  margin: 0;
  min-width: 0;
}
.overview-panel th,
.overview-panel td {
  padding-top: 4px;
  padding-bottom: 4px;
}
.backup-manager-panel td:first-child {
  white-space: normal;
  overflow-wrap: anywhere;
  overflow: visible;
  text-overflow: clip;
}
.disk-breakdown-panel table {
  width: min(100%, 720px);
}
.disk-breakdown-panel td:first-child {
  font-weight: 700;
  cursor: help;
}
.backup-manager-panel .notice {
  margin: 4px 0 6px;
  padding: 4px 6px;
  border-radius: 5px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 12px;
  font-weight: 700;
}
.backup-manager-panel .notice.success {
  color: #86efac;
  background: rgba(22, 101, 52, 0.16);
  border-color: rgba(34, 197, 94, 0.28);
}
.backup-manager-panel .notice.error {
  color: #fecdd3;
  background: rgba(127, 29, 29, 0.22);
  border-color: rgba(244, 63, 94, 0.32);
}
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
  background: var(--panel);
  padding-bottom: 8px;
  scrollbar-width: auto;
  scrollbar-color: #64748b rgba(15, 23, 42, 0.75);
}
.table-wrap::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}
.table-wrap::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.75);
  border-radius: 8px;
}
.table-wrap::-webkit-scrollbar-thumb {
  background: #64748b;
  border: 3px solid rgba(15, 23, 42, 0.75);
  border-radius: 8px;
}
.table-wrap::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
.data-table-shell > .table-wrap {
  max-height: calc(100vh - 170px);
}
.table-scrollbar {
  position: sticky;
  bottom: 0;
  z-index: 4;
  height: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: rgba(15, 23, 42, 0.96);
  scrollbar-width: auto;
  scrollbar-color: #94a3b8 rgba(15, 23, 42, 0.96);
}
.table-scrollbar[hidden] {
  display: none;
}
.table-scrollbar::-webkit-scrollbar {
  height: 14px;
}
.table-scrollbar::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.96);
}
.table-scrollbar::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border: 3px solid rgba(15, 23, 42, 0.96);
  border-radius: 8px;
}
.table-scrollbar-spacer {
  height: 1px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 940px;
}
#reloggers-table,
#deleted-relogger-machines-table {
  width: max-content;
  min-width: 0;
}
th, td {
  text-align: left;
  padding: 5px 7px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
tbody tr[data-row="main"] td {
  transition: background-color 120ms ease, opacity 120ms ease, box-shadow 120ms ease;
}
tbody tr[data-row="main"]:hover td {
  background-color: rgba(30, 41, 59, 0.28);
}
tbody tr[data-row="detail"] td {
  background: rgba(12, 17, 22, 0.82);
}
th[data-col="level"], td[data-col="level"],
th[data-col="gph"], td[data-col="gph"],
th[data-col="xpPerHour"], td[data-col="xpPerHour"],
th[data-col="killsPerHour"], td[data-col="killsPerHour"],
th[data-col="deaths"], td[data-col="deaths"],
th[data-col="deathsPerHour"], td[data-col="deathsPerHour"],
th[data-col="stucks"], td[data-col="stucks"],
th[data-col="stucks10m"], td[data-col="stucks10m"],
th[data-col="stationaryMinutes"], td[data-col="stationaryMinutes"],
th[data-col="deadMinutes"], td[data-col="deadMinutes"],
th[data-col="farms"], td[data-col="farms"],
th[data-col="farmsPerHour"], td[data-col="farmsPerHour"] {
  width: 1%;
  min-width: 44px;
  max-width: 82px;
}
th[data-col="status"], td[data-col="status"] { min-width: 94px; max-width: 132px; }
th[data-col="reloggerStatus"], td[data-col="reloggerStatus"] { min-width: 118px; max-width: 175px; }
th[data-col="reloggerCommand"], td[data-col="reloggerCommand"] { min-width: 72px; max-width: 115px; }
th[data-col="syncAlert"], td[data-col="syncAlert"] { min-width: 64px; max-width: 96px; }
th[data-col="gold"], td[data-col="gold"] { min-width: 64px; }
th[data-col="paymentDate"], td[data-col="paymentDate"] { min-width: 82px; max-width: 110px; }
th[data-col="paymentPeriod"], td[data-col="paymentPeriod"] { min-width: 76px; max-width: 98px; }
th[data-col="paidUntil"], td[data-col="paidUntil"] { min-width: 104px; max-width: 136px; }
th[data-col="paymentAccount"], td[data-col="paymentAccount"] { min-width: 72px; max-width: 105px; }
th[data-col="daysLeft"], td[data-col="daysLeft"] { min-width: 70px; max-width: 105px; }
th[data-col="payStatus"], td[data-col="payStatus"] { min-width: 82px; max-width: 110px; }
th[data-col="paymentNote"], td[data-col="paymentNote"] { min-width: 130px; max-width: 240px; }
th[data-col^="paymentHistory"], td[data-col^="paymentHistory"] { min-width: 80px; max-width: 220px; }
th[data-col="zone"], td[data-col="zone"] { min-width: 130px; }
th[data-col="profileName"], td[data-col="profileName"] { min-width: 120px; max-width: 190px; }
.status-uptime-cell,
.relogger-combined-cell {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-uptime-cell {
  padding: 1px 3px 1px 0;
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(2, 6, 23, 0.7), 0 0 7px currentColor;
}
.status-dot.status-online {
  background: var(--accent);
  color: rgba(110, 231, 183, 0.75);
}
.status-dot.status-stale,
.status-dot.status-relogger-off {
  background: #fbbf24;
  color: rgba(251, 191, 36, 0.72);
}
.status-dot.status-offline,
.status-dot.status-critical {
  background: #fb7185;
  color: rgba(251, 113, 133, 0.8);
}
.numeric-cell {
  font-variant-numeric: tabular-nums;
}
.numeric-zero {
  color: var(--muted);
}
.numeric-warn {
  color: #fbbf24;
  font-weight: 700;
}
.numeric-bad {
  color: #fb7185;
  font-weight: 800;
}
.nickname-summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  font-weight: 700;
  text-decoration: underline dotted rgba(148, 163, 184, 0.45);
  text-underline-offset: 3px;
  cursor: help;
}
.nickname-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.latency-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.latency-badge::after {
  content: "ms";
  margin-left: 1px;
  font-size: 8px;
  font-weight: 700;
  opacity: 0.78;
}
.latency-good { color: #34d399; }
.latency-warn { color: #fbbf24; }
.latency-high { color: #fb923c; }
.latency-bad { color: #fb7185; }
.latency-offline { color: var(--muted); opacity: 0.82; }
.metric-minutes-cell input {
  width: 70px;
}
th[data-col="botState"], td[data-col="botState"] { min-width: 105px; max-width: 160px; }
th[data-col="comment"], td[data-col="comment"] { min-width: 160px; max-width: 260px; }
th[data-col="machine"], td[data-col="machine"] { min-width: 150px; max-width: 230px; }
th[data-col="manualIp"], td[data-col="manualIp"] { min-width: 120px; max-width: 220px; }
.cell-subline {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  margin-top: 2px;
}
.cell-subline.inline {
  display: inline;
  margin-top: 0;
}
th[data-col="lastLog"], td[data-col="lastLog"] {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}
#payments-table {
  width: max-content;
  min-width: max-content;
}
th.sticky-column,
td.sticky-column {
  position: sticky;
  left: var(--sticky-left, 0px);
  z-index: 3;
  background: var(--panel);
  box-shadow: 1px 0 0 var(--line);
}
th.sticky-column {
  z-index: 8;
  background: var(--panel-2);
}
th {
  color: var(--muted);
  background: var(--panel-2);
  font-weight: 600;
  position: sticky;
  top: 0;
}
th[data-col] {
  cursor: grab;
  user-select: none;
  position: sticky;
}
th.drag-over {
  outline: 1px solid var(--accent);
  outline-offset: -3px;
}
.column-resizer {
  position: absolute;
  top: 0;
  right: 0;
  width: 7px;
  height: 100%;
  cursor: col-resize;
  user-select: none;
  touch-action: none;
}
.column-resizer:hover,
th.resizing .column-resizer {
  background: rgba(110, 231, 183, 0.26);
}
.column-label-editor {
  width: min(150px, 100%);
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 12px;
}
body.is-resizing-column {
  cursor: col-resize;
  user-select: none;
}
.sort-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
}
.sort-button::after {
  content: "";
  display: inline-block;
  width: 0.9em;
  color: var(--accent);
}
th[data-sort-dir="asc"] .sort-button::after { content: "^"; }
th[data-sort-dir="desc"] .sort-button::after { content: "v"; }
tr:last-child td { border-bottom: 0; }
tr[hidden] { display: none; }
tr[data-row="main"] { --row-accent: transparent; }
tr.stats-online-row { --row-accent: rgba(110, 231, 183, 0.7); }
tr.stats-stale-row { --row-accent: rgba(251, 191, 36, 0.78); }
tr.stats-offline-row { --row-accent: rgba(251, 113, 133, 0.82); }
tr.stats-offline-row:not(.critical-row):not(.warning-row):not(.risk-row) td {
  background: rgba(76, 29, 39, 0.12);
}
tr.stats-offline-row.expected-offline-row { --row-accent: transparent; }
tr.stats-offline-row.expected-offline-row:not(.critical-row):not(.warning-row):not(.risk-row) td {
  background: transparent;
}
#reloggers-table tr.relogger-offline-row {
  --row-accent: rgba(251, 113, 133, 0.72);
}
#reloggers-table tr.relogger-offline-row td {
  background: rgba(76, 29, 39, 0.13);
}
#reloggers-table tr.relogger-offline-row td.sticky-column {
  background: #1a1218;
}
#reloggers-table tr.relogger-offline-row .status-chip.status-offline,
#reloggers-table tr.relogger-offline-row .profile-state-chip.status-offline {
  background: transparent;
}
tr[data-row="main"] td:first-child {
  box-shadow: inset 4px 0 0 var(--row-accent);
}
.risk-row td {
  background: rgba(127, 29, 29, 0.24);
}
.warning-row td {
  background: rgba(113, 63, 18, 0.18);
}
.critical-row td {
  background: rgba(127, 29, 29, 0.32);
}
.risk-row { --row-accent: rgba(251, 113, 133, 0.95); }
.warning-row { --row-accent: rgba(251, 191, 36, 0.95); }
.critical-row { --row-accent: rgba(255, 45, 85, 1); }
.risk-row td.sticky-column {
  background: #26161a;
}
.warning-row td.sticky-column {
  background: #241b10;
}
.critical-row td.sticky-column {
  background: #2a1218;
}
.stats-offline-row:not(.critical-row):not(.warning-row):not(.risk-row) td.sticky-column {
  background: #1a1218;
}
.stats-offline-row.expected-offline-row:not(.critical-row):not(.warning-row):not(.risk-row) td.sticky-column {
  background: var(--panel);
}
.excluded-row td {
  opacity: 0.62;
}
.problem-mode tr[data-row="main"]:not(.problem-row) td {
  opacity: 0.36;
}
.problem-mode tr[data-row="main"]:not(.problem-row):hover td {
  opacity: 0.78;
}
.group-row td {
  background: #0c1116;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0;
  padding: 3px 7px;
}
.group-row-label {
  color: var(--text);
}
.danger-cell {
  background: rgba(127, 29, 29, 0.42) !important;
  color: #fecdd3;
  font-weight: 700;
}
.warning-cell {
  background: rgba(113, 63, 18, 0.32) !important;
  color: #fde68a;
  font-weight: 700;
}
.danger-card-value {
  color: #fecdd3;
  background: rgba(127, 29, 29, 0.24);
}
.warning-card-value {
  color: #fde68a;
  background: rgba(113, 63, 18, 0.2);
  font-weight: 700;
}
.muted { color: var(--muted); }
.status-online { color: var(--accent); font-weight: 600; }
.status-stale { color: var(--warn); font-weight: 600; }
.status-offline { color: var(--bad); font-weight: 600; }
.status-critical { color: #ff2d55; font-weight: 800; }
.status-relogger-off { color: #fbbf24; font-weight: 800; }
.status-chip {
  display: inline-block;
  max-width: 100%;
  padding: 0 4px;
  border-radius: 4px;
  line-height: 1.22;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: baseline;
  background: rgba(148, 163, 184, 0.1);
}
.status-chip.status-online {
  background: rgba(16, 185, 129, 0.13);
}
.status-chip.status-stale,
.status-chip.status-relogger-off {
  background: rgba(251, 191, 36, 0.13);
}
.status-chip.status-offline,
.status-chip.status-critical {
  background: rgba(244, 63, 94, 0.16);
}
td.status-chip {
  display: table-cell;
  padding: 5px 7px;
  border-radius: 0;
  line-height: inherit;
  font-size: inherit;
  background: inherit;
  vertical-align: top;
}
.inline-chip-list {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}
.inline-chip-list .status-chip {
  max-width: 72px;
}
.wow-class,
.wow-faction,
.gold-value,
.path-compact {
  font-weight: 650;
}
.wow-class {
  color: var(--wow-class-color);
  text-shadow: 0 0 9px rgba(0, 0, 0, 0.45);
}
.wow-faction.horde { color: #f87171; }
.wow-faction.alliance { color: #60a5fa; }
.wow-faction.neutral { color: var(--muted); }
.gold-value { color: #facc15; }
.payment-date-cell .inline-edit-display,
.paid-until-cell .inline-edit-display,
.pay-status-cell {
  font-variant-numeric: tabular-nums;
}
.payment-date-cell.payment-missing .inline-edit-display {
  color: #fecdd3;
  background: rgba(244, 63, 94, 0.14);
}
.payment-date-cell.payment-present .inline-edit-display {
  color: #d9f99d;
  background: rgba(132, 204, 22, 0.1);
}
.payment-date-cell.payment-old .inline-edit-display {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.1);
}
td > .gold-value,
td > .path-compact,
td > .machine-cell,
td > .manual-list-chip-wrap,
td > .comment-cell,
td > .inline-small-cell {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.path-compact {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: bottom;
}
.empty-state {
  padding: 18px;
  border: 1px dashed rgba(100, 116, 139, 0.45);
  border-radius: 8px;
  background: rgba(12, 17, 22, 0.58);
  color: var(--muted);
  text-align: center;
}
.empty-state strong {
  color: var(--text);
}
.manual-list-chip-wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}
.manual-list-chip {
  display: inline-block;
  max-width: 90px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}
.manual-list-quick-add select {
  width: 86px;
  min-width: 70px;
  padding: 3px 5px;
}
.login {
  max-width: 360px;
  margin: 80px auto;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 18px;
}
label {
  display: block;
  color: var(--muted);
  margin: 12px 0 6px;
}
input, select {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #0c1116;
  color: var(--text);
  font: inherit;
}
button.primary, .button {
  margin-top: 16px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #2dd4bf;
  background: #0f766e;
  color: white;
  font: inherit;
  cursor: pointer;
}
button.primary.full { width: 100%; }
button.secondary, .button.secondary {
  border-color: var(--line);
  background: var(--panel-2);
  color: var(--text);
}
button.danger, .button.danger {
  border-color: #be123c;
  background: #881337;
  color: white;
}
.autorefresh-form {
  margin: 0;
  display: inline-flex;
}
.logout-form {
  margin: 0;
}
.autorefresh-toggle {
  margin-top: 0;
  padding: 4px 7px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.autorefresh-toggle.enabled {
  border-color: #10b981;
  background: rgba(5, 150, 105, 0.24);
  color: #86efac;
}
.autorefresh-toggle.disabled {
  border-color: #be123c;
  background: rgba(136, 19, 55, 0.28);
  color: #fecdd3;
}
.live-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 58px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.52);
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.1;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 1px rgba(2, 6, 23, 0.75), 0 0 6px currentColor;
  flex: 0 0 auto;
}
.live-status.live-state-live {
  color: #86efac;
  border-color: rgba(16, 185, 129, 0.32);
}
.live-status.live-state-patching,
.live-status.live-state-connecting {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.34);
}
.live-status.live-state-recovering,
.live-status.live-state-disconnected {
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.36);
}
.live-status.live-state-off,
.live-status.live-state-unsupported {
  color: #94a3b8;
}
.live-debug-badge {
  display: inline-flex;
  align-items: center;
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 3px 6px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.44);
  white-space: nowrap;
  font-size: 10px;
  line-height: 1.1;
}
.live-debug-badge.live-debug-partial {
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.34);
}
.live-debug-badge.live-debug-full {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.34);
}
.live-debug-badge.live-debug-error {
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.36);
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.toolbar h1 { margin: 0; }
.filter-panel {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}
.server-filter-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 6px;
  padding: 7px;
}
.server-filter-grid {
  align-items: end;
}
.server-filter-grid label {
  margin: 0;
  display: grid;
  gap: 3px;
}
.character-compact-panel {
  gap: 4px;
  position: sticky;
  top: 36px;
  z-index: 30;
}
.compact-filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.compact-filter-title {
  font-size: 16px;
  font-weight: 700;
  margin-right: 6px;
  white-space: nowrap;
}
.mobile-title {
  display: none;
}
.compact-filter-row input,
.compact-filter-row select {
  width: auto;
  min-width: 86px;
  max-width: 220px;
}
.compact-filter-row input[name="q"] {
  min-width: 170px;
}
.compact-filter-row .data-table-search {
  min-width: 150px;
}
.relogger-filter-panel {
  padding: 4px 6px;
  margin-bottom: 5px;
  gap: 4px;
}
.relogger-filter-panel .compact-filter-row {
  gap: 3px;
}
.relogger-filter-panel .compact-filter-title {
  font-size: 14px;
  margin-right: 2px;
}
.relogger-filter-panel .button,
.relogger-filter-panel .filter-button,
.relogger-filter-panel .table-tool-button,
.relogger-filter-panel .compact-button {
  padding: 2px 5px;
  min-height: 22px;
  font-size: 11px;
}
.relogger-filter-panel input,
.relogger-filter-panel select {
  padding: 3px 5px;
  min-height: 22px;
  font-size: 11px;
}
.relogger-filter-panel input[name="q"] {
  min-width: 120px;
  max-width: 160px;
}
.relogger-filter-panel .data-table-search {
  min-width: 115px;
  max-width: 150px;
}
.relogger-filter-panel .archive-stat {
  padding: 2px 5px;
  min-height: 22px;
  font-size: 11px;
}
.inline-date-filter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  white-space: nowrap;
}
.inline-date-filter input[type="date"] {
  min-width: 118px;
  max-width: 124px;
}
.inline-date-filter input[type="datetime-local"] {
  min-width: 158px;
  max-width: 168px;
}
.inline-date-filter select {
  min-width: 96px;
  max-width: 118px;
}
.date-filter-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.date-filter-display {
  width: 108px !important;
  min-width: 108px !important;
  max-width: 108px !important;
  padding-right: 6px;
  cursor: text;
}
.date-time-filter-display {
  width: 148px !important;
  min-width: 148px !important;
  max-width: 148px !important;
}
.date-picker-button {
  margin-top: 0;
  padding: 5px 6px;
  min-width: 0;
  line-height: 1.1;
  border-radius: 5px;
  font-size: 12px;
}
.date-picker-native {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1px !important;
  min-width: 1px !important;
  max-width: 1px !important;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.deleted-filter-panel input[type="date"] {
  min-width: 118px;
  max-width: 124px;
}
.deleted-filter-panel input[type="datetime-local"] {
  min-width: 158px;
  max-width: 168px;
}
.quick-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15em;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}
.active-filter-row {
  gap: 4px;
  padding-top: 2px;
}
.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 260px;
  border: 1px solid rgba(45, 212, 191, 0.34);
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.11);
  color: var(--text);
  padding: 2px 6px;
  font-size: 12px;
  line-height: 1.15;
  white-space: nowrap;
  text-decoration: none;
}
.active-filter-chip:hover {
  border-color: #2dd4bf;
  background: rgba(20, 184, 166, 0.2);
  text-decoration: none;
}
.active-filter-chip b {
  color: #99f6e4;
  font-weight: 700;
}
.active-filter-value {
  overflow: hidden;
  text-overflow: ellipsis;
}
.active-filter-clear {
  color: var(--muted);
  font-weight: 800;
}
.active-filter-clear-all {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.62);
}
.bulk-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bulk-muted-button {
  border-color: #5b2437 !important;
  background: rgba(136, 19, 55, 0.34) !important;
  color: #fecdd3 !important;
}
.bulk-muted-button:hover {
  border-color: #be123c !important;
  background: rgba(136, 19, 55, 0.52) !important;
}
.bulk-result {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  padding: 2px 4px 0;
}
.archive-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 6px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.52);
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
}
.archive-stat b {
  color: var(--text);
}
.archive-stat-danger b {
  color: #fb7185;
}
.deleted-bulk-panel {
  margin-top: -4px;
  margin-bottom: 8px;
}
.deleted-bulk-panel .compact-filter-row {
  gap: 5px;
}
.deleted-bulk-panel .inline-form {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
}
.bulk-selected-count {
  display: inline-flex;
  align-items: center;
  min-width: 72px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 6px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.52);
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
}
.bulk-selected-count.active {
  color: #5eead4;
  border-color: rgba(20, 184, 166, 0.48);
  background: rgba(20, 184, 166, 0.14);
}
.bulk-result {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.ajax-bulk-result {
  display: inline-flex;
  align-items: center;
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #5eead4;
  font-size: 11px;
}
.ajax-bulk-result.error {
  color: #fb7185;
}
.micro-button {
  padding: 0 4px !important;
  min-width: 16px;
  height: 16px;
  line-height: 14px;
  font-size: 10px;
  border-radius: 4px;
}
.relogger-profile-lines {
  display: grid;
  gap: 0;
  min-width: 0;
}
.relogger-profile-line {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  line-height: 1.2;
  padding: 1px 0;
}
.relogger-profile-line:last-child {
  border-bottom: 0;
}
.profile-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 16px;
  height: 15px;
  padding: 0 3px;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.56);
}
.profile-pill-checked {
  color: #5eead4;
  border-color: rgba(20, 184, 166, 0.55);
  background: rgba(20, 184, 166, 0.16);
}
.profile-pill-index {
  min-width: 28px;
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.38);
  background: rgba(37, 99, 235, 0.14);
}
.profile-pill-muted {
  color: #94a3b8;
}
.profile-main-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.relogger-profile-name.checked {
  color: #5eead4;
  font-weight: 700;
}
.relogger-character-line {
  color: var(--text);
}
.profile-character-wrap.duplicate-identity {
  opacity: 0.56;
}
.profile-character-wrap.duplicate-identity-compact {
  opacity: 0.72;
  max-width: 70px;
}
.profile-character-wrap.duplicate-identity .profile-token {
  color: #64748b;
  border-color: rgba(100, 116, 139, 0.18);
  background: rgba(15, 23, 42, 0.22);
}
.profile-character-wrap.duplicate-identity .profile-token-email,
.profile-character-wrap.duplicate-identity .relogger-character-line {
  color: #94a3b8;
  font-weight: 500;
}
.profile-character-wrap,
.profile-task-wrap,
.profile-task-parts {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.profile-task-timeline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.timeline-step {
  display: inline-flex;
  align-items: center;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 2px 5px;
  line-height: 1.1;
  font-weight: 800;
}
.timeline-step.active.state-run {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(22, 101, 52, 0.22);
}
.timeline-step.active.state-wait {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(146, 64, 14, 0.22);
}
.timeline-step.active.state-schedule {
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.42);
  background: rgba(30, 64, 175, 0.2);
}
.timeline-step.active.state-stopped,
.timeline-step.active.state-other {
  color: #cbd5e1;
  background: rgba(71, 85, 105, 0.22);
}
.profile-token,
.profile-task-part {
  display: inline-flex;
  align-items: center;
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 4px;
  padding: 1px 4px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.42);
  line-height: 1.1;
}
.profile-token-email {
  max-width: 130px;
  color: #93c5fd;
}
.profile-state-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 2px 5px;
  line-height: 1.1;
  font-weight: 700;
}
.profile-state-chip.state-run {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(22, 101, 52, 0.22);
}
.profile-state-chip.state-wait {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(146, 64, 14, 0.22);
}
.profile-state-chip.state-schedule {
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.42);
  background: rgba(30, 64, 175, 0.2);
}
.profile-state-chip.state-stopped {
  color: #cbd5e1;
  background: rgba(71, 85, 105, 0.22);
}
.profile-state-chip.state-other {
  color: #d8b4fe;
  border-color: rgba(168, 85, 247, 0.36);
  background: rgba(88, 28, 135, 0.18);
}
.profile-schedule-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 2px 5px;
  line-height: 1.1;
  font-weight: 700;
}
.profile-schedule-chip.schedule-in {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.36);
  background: rgba(22, 101, 52, 0.16);
}
.profile-schedule-chip.schedule-out {
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.42);
  background: rgba(30, 64, 175, 0.2);
}
.profile-schedule-chip.schedule-none {
  color: #94a3b8;
  background: rgba(71, 85, 105, 0.18);
}
.profile-task-part.task-left {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.36);
}
.profile-task-part.task-profile {
  max-width: 180px;
  color: #5eead4;
  border-color: rgba(20, 184, 166, 0.28);
}
.maintenance-flow-chip {
  display: inline-flex;
  align-items: center;
  max-width: 170px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 1px 5px;
  line-height: 1.15;
  font-size: 11px;
  font-weight: 800;
}
.maintenance-flow-chip.flow-done {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.32);
  background: rgba(6, 95, 70, 0.14);
}
.maintenance-flow-chip.flow-pending {
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.36);
  background: rgba(30, 64, 175, 0.16);
}
.maintenance-flow-chip.flow-wait {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(146, 64, 14, 0.18);
}
.maintenance-flow-chip.flow-failed {
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(127, 29, 29, 0.22);
}
.relogger-scheduled-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}
.relogger-scheduled-inline .inline-form {
  margin: 0;
}
.weekday-picker {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}
.weekday-check {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 0 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}
.weekday-check input {
  width: 11px;
  height: 11px;
  margin: 0;
}
.relogger-scheduled-panel {
  padding: 4px 6px;
}
.relogger-scheduled-panel .compact-filter-row {
  gap: 5px;
}
.scheduled-panel-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 360px;
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 5px;
  padding: 2px 4px;
  background: rgba(15, 23, 42, 0.34);
}
.scheduled-panel-item .profile-token {
  max-width: 90px;
}
.pc-warning {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  border-radius: 999px;
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(146, 64, 14, 0.22);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}
.bulk-undo-form {
  display: inline-flex;
  margin: 0;
}
.selected-bulk-panel[hidden] {
  display: none;
}
.bulk-collapse {
  display: inline-block;
  min-width: 0;
}
.bulk-collapse > summary {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 5px;
  padding: 2px 5px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.52);
  font-size: 11px;
  line-height: 1.15;
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.bulk-collapse > summary::-webkit-details-marker {
  display: none;
}
.bulk-collapse > summary::before {
  content: "+";
  color: #93c5fd;
  font-weight: 900;
}
.bulk-collapse[open] > summary::before {
  content: "-";
}
.bulk-collapse-body {
  margin-top: 4px;
}
.mobile-selected-bar {
  display: none;
}
.bulk-danger-separator {
  width: 1px;
  height: 20px;
  background: var(--line);
  margin: 0 2px;
}
.deleted-bulk-panel input[name="banReason"] {
  min-width: 210px;
}
.character-bulk-panel input[name="manualIp"] {
  min-width: 120px;
  max-width: 160px;
}
.character-bulk-panel input[name="comment"] {
  min-width: 190px;
  max-width: 280px;
}
tr.missing-ban-row > td {
  background: rgba(127, 29, 29, 0.36);
}
tr.missing-ban-row:hover > td {
  background: rgba(153, 27, 27, 0.5);
}
input[data-row-select] {
  width: 14px;
  height: 14px;
  margin: 0;
}
.filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.action-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.action-row .inline-form {
  margin: 0;
}
.action-row button {
  margin-top: 0;
  padding: 2px 4px;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.15;
}
.compact-action-link {
  padding: 2px 4px;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.15;
}
button.command-start,
.button.command-start {
  border-color: rgba(20, 184, 166, 0.5);
  background: rgba(20, 184, 166, 0.16);
  color: #99f6e4;
}
button.command-stop,
.button.command-stop {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(113, 63, 18, 0.34);
  color: #fde68a;
}
button.command-close,
.button.command-close {
  border-color: rgba(251, 113, 133, 0.62);
  background: rgba(136, 19, 55, 0.44);
  color: #fecdd3;
}
button.command-delete,
.button.command-delete {
  border-color: #be123c;
  background: #881337;
  color: white;
}
.compact-button,
button.compact-button,
.button.compact-button {
  margin-top: 0;
  padding: 5px 7px;
  min-width: 0;
  line-height: 1.1;
}
.filter-actions .button,
.filter-actions button {
  margin-top: 0;
  white-space: nowrap;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-group-label {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  margin-right: 2px;
}
.filter-button,
.table-tool-button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  border-radius: 6px;
  padding: 5px 7px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  align-items: center;
  display: inline-flex;
  gap: 4px;
  line-height: 1.1;
  white-space: nowrap;
}
.filter-button.active,
.table-tool-button.active,
.filter-button:hover,
.table-tool-button:hover {
  color: var(--text);
  border-color: #2dd4bf;
  background: #12312f;
}
.filter-button .version-counts {
  display: inline-flex;
  gap: 2px;
  margin-left: 1px;
}
.version-filter-button {
  max-width: 180px;
}
.manual-list-admin-details {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}
.manual-list-admin-details summary {
  list-style: none;
  cursor: pointer;
}
.manual-list-admin-details summary::-webkit-details-marker {
  display: none;
}
.manual-list-admin-details[open] {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.manual-list-admin-details[open] summary {
  margin-right: 2px;
}
.manual-list-details-panel {
  border: 1px solid var(--line);
  background: rgba(22, 28, 34, 0.88);
  border-radius: 6px;
  margin: 0 0 6px;
  padding: 4px 6px;
}
.manual-list-details-panel summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  cursor: pointer;
  font-size: 12px;
}
.manual-list-details-body {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 5px;
}
.manual-list-roster-chip {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 5px;
  background: rgba(15, 23, 42, 0.45);
  font-size: 11px;
}
.duplicates-dashboard {
  display: grid;
  gap: 8px;
}
.duplicates-overview {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) repeat(4, minmax(92px, 0.45fr));
  gap: 6px;
  align-items: stretch;
}
.duplicates-lead,
.duplicate-stat-card,
.duplicate-help-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.35);
  padding: 7px 8px;
}
.duplicates-lead h1 {
  margin: 0 0 4px;
  font-size: 18px;
}
.duplicate-stat-card {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 52px;
}
.duplicate-stat-card .label,
.duplicate-help-card .label {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.1;
}
.duplicate-stat-card .value {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.05;
}
.duplicates-help-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 6px;
}
.duplicate-help-card {
  min-height: 42px;
}
.duplicate-help-card strong {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
}
.duplicate-key-cell,
.duplicate-reason-cell,
.duplicate-merge-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.duplicate-key-main {
  display: grid;
  gap: 1px;
  min-width: 120px;
}
.duplicate-key-main strong {
  font-size: 12px;
}
.duplicate-chip,
.duplicate-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  background: rgba(15, 23, 42, 0.45);
  font-size: 10px;
  line-height: 1.25;
  white-space: nowrap;
}
.duplicate-badge.master {
  border-color: rgba(45, 212, 191, 0.55);
  color: var(--accent);
}
.duplicate-badge.warning {
  border-color: rgba(251, 191, 36, 0.55);
  color: var(--warn);
}
.duplicate-badge.danger {
  border-color: rgba(251, 113, 133, 0.55);
  color: var(--bad);
}
.duplicate-badge.deleted {
  color: var(--muted);
}
.duplicate-candidate-list {
  display: grid;
  gap: 4px;
  min-width: 360px;
}
.duplicate-candidate-card {
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(180px, 1fr);
  gap: 3px 7px;
  align-items: center;
  border: 1px solid rgba(50, 65, 82, 0.82);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.32);
  padding: 4px 6px;
}
.duplicate-candidate-card.suggested {
  border-color: rgba(45, 212, 191, 0.55);
  background: rgba(20, 184, 166, 0.08);
}
.duplicate-candidate-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}
.duplicate-candidate-title strong {
  font-size: 11px;
}
.duplicate-candidate-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  color: var(--muted);
  font-size: 10px;
  min-width: 0;
}
.duplicate-merge-form {
  max-width: 560px;
}
.duplicate-merge-form select {
  max-width: 180px;
  padding: 4px 6px;
  font-size: 11px;
}
.duplicate-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.duplicate-checks .inline-checkbox {
  padding: 2px 4px;
  font-size: 10px;
}
.data-table-shell {
  display: grid;
  gap: 6px;
}
.data-table-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.data-table-search {
  width: min(360px, 100%);
  padding: 6px 8px;
}
.data-table-count {
  color: var(--muted);
  margin-left: auto;
}
.desktop-table-view {
  display: block;
}
.mobile-card-view {
  display: none;
}
.mobile-group-row {
  display: none;
}
.mobile-card {
  --mobile-accent: rgba(148, 163, 184, 0.55);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 8px;
  min-width: 0;
  overflow: hidden;
  box-shadow: inset 3px 0 0 var(--mobile-accent);
}
.mobile-card-critical {
  --mobile-accent: rgba(255, 45, 85, 0.98);
  border-color: rgba(244, 63, 94, 0.68);
  background: rgba(127, 29, 29, 0.3);
}
.mobile-card-warning {
  --mobile-accent: rgba(251, 191, 36, 0.95);
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(113, 63, 18, 0.18);
}
.mobile-card-risk {
  --mobile-accent: rgba(251, 113, 133, 0.9);
}
.mobile-card-stats-online {
  --mobile-accent: rgba(110, 231, 183, 0.72);
}
.mobile-card-stats-stale {
  --mobile-accent: rgba(251, 191, 36, 0.78);
}
.mobile-card-stats-offline {
  --mobile-accent: rgba(251, 113, 133, 0.82);
}
.mobile-card-expected-offline:not(.mobile-card-critical):not(.mobile-card-warning):not(.mobile-card-risk) {
  --mobile-accent: rgba(148, 163, 184, 0.55);
  border-color: var(--line);
  background: var(--panel);
}
.mobile-card-excluded {
  opacity: 0.62;
}
.mobile-card-view.problem-mode .mobile-character-card:not(.mobile-card-problem) {
  display: none;
}
.mobile-card-view.problem-mode .mobile-group-row {
  display: none;
}
.problem-mode:not(.mobile-card-view) .mobile-character-card:not(.mobile-card-problem) {
  opacity: 0.36;
}
.problem-mode:not(.mobile-card-view) .mobile-character-card:not(.mobile-card-problem):active {
  opacity: 0.72;
}
.mobile-card-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 7px;
  margin-bottom: 7px;
}
.mobile-card-check {
  margin: 1px 0 0;
  display: inline-flex;
  align-items: center;
}
.mobile-card-heading {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.mobile-card-title {
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-card-subtitle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-card-pill {
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.2;
  padding-top: 1px;
}
.mobile-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}
.mobile-card-field {
  min-width: 0;
  border: 1px solid rgba(50, 65, 82, 0.7);
  background: rgba(12, 17, 22, 0.62);
  border-radius: 6px;
  padding: 5px 6px;
}
.mobile-card-label {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
  margin-bottom: 2px;
}
.mobile-card-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.25;
}
.mobile-card-value .action-row {
  flex-wrap: wrap;
  white-space: normal;
}
.mobile-card-value .comment-cell,
.mobile-card-value .machine-cell {
  min-width: 0;
  max-width: 100%;
}
.mobile-wide-field {
  grid-column: 1 / -1;
}
.mobile-wide-field .mobile-card-value {
  white-space: normal;
}
.mobile-no-clip .mobile-card-value {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.mobile-no-clip .machine-display,
.mobile-no-clip .inline-edit-display {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.mobile-card-details {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-top: 7px;
  overflow: hidden;
  background: rgba(12, 17, 22, 0.54);
}
.mobile-card-details summary {
  cursor: pointer;
  user-select: none;
  padding: 5px 7px;
  color: var(--text);
  background: var(--panel-2);
  font-size: 12px;
}
.mobile-card-details > .mobile-card-grid,
.mobile-card-actions {
  padding: 7px;
}
.mobile-card-actions .action-row,
.mobile-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}
.scroll-top-button {
  display: none;
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 90;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(94, 234, 212, 0.55);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #5eead4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  font-weight: 800;
  line-height: 1;
}
.mobile-mini-list {
  display: grid;
  gap: 3px;
}
.mobile-mini-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.mobile-mini-row > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.danger-card-value {
  border-color: rgba(244, 63, 94, 0.7);
  background: rgba(127, 29, 29, 0.42);
  color: #fecdd3;
  font-weight: 700;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.pagination .button {
  margin-top: 0;
  min-width: 64px;
  text-align: center;
}
.button.disabled {
  opacity: 0.45;
  pointer-events: none;
}
.columns-menu {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 260px));
  gap: 4px 8px;
}
.columns-menu[hidden] { display: none; }
.character-compact-panel .columns-menu:not([hidden]) {
  position: absolute;
  top: 34px;
  right: 7px;
  z-index: 80;
  width: min(980px, calc(100vw - 24px));
  max-height: min(72vh, 720px);
  overflow: auto;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.42);
}
.column-menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 2px 4px;
  border-radius: 5px;
  background: rgba(12, 17, 22, 0.32);
}
.column-menu-item.is-pinned {
  outline: 1px solid rgba(94, 234, 212, 0.35);
  background: rgba(20, 83, 45, 0.18);
}
.columns-menu label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 4px;
  margin: 0;
  color: var(--text);
  min-width: 0;
  white-space: nowrap;
}
.columns-menu input[type="checkbox"] {
  width: 13px;
  min-width: 13px;
  height: 13px;
  padding: 0;
  margin: 0;
}
.column-menu-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.column-pin-label {
  color: var(--muted);
  font-size: 11px;
  justify-self: end;
}
.column-pin-label input {
  accent-color: #2dd4bf;
}
.details-cell {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), #0c1116);
  white-space: normal;
  border-top: 1px solid rgba(110, 231, 183, 0.12);
  box-shadow: inset 4px 0 0 rgba(110, 231, 183, 0.2);
}
.details-stack {
  display: grid;
  gap: 7px;
}
.details-cell details {
  transition: background-color 120ms ease, border-color 120ms ease;
}
.details-cell details[open] {
  background: rgba(15, 23, 42, 0.32);
}
.details-section {
  display: grid;
  gap: 5px;
}
.details-section-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, max-content));
  gap: 4px 8px;
  max-width: 1400px;
}
.details-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(130px, max-content));
  max-width: 760px;
}
.activity-details {
  display: grid;
  gap: 4px;
}
.activity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: start;
}
.activity-row .detail-item {
  width: fit-content;
  max-width: min(100%, 320px);
  gap: 4px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.activity-row .detail-item .muted {
  font-size: 11px;
}
.activity-row .detail-item > div:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.activity-row.identity {
  max-width: 900px;
}
.activity-row.stats {
  max-width: 620px;
}
.activity-comment-row {
  width: fit-content;
  max-width: min(100%, 980px);
}
.activity-comment-row .detail-item {
  align-items: flex-start;
  width: fit-content;
  max-width: min(100%, 980px);
  white-space: normal;
}
.activity-comment-row .detail-item > div:last-child {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.details-collapsible-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: start;
}
.details-collapsible-row .lazy-details {
  flex: 0 1 auto;
  min-width: 142px;
  max-width: 100%;
}
.detail-item {
  min-width: 0;
  overflow-wrap: anywhere;
  display: flex;
  gap: 6px;
  align-items: baseline;
}
.detail-item .muted {
  flex: 0 0 auto;
}
.lazy-details {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  overflow: hidden;
}
.lazy-details summary {
  cursor: pointer;
  user-select: none;
  padding: 4px 7px;
  font-size: 12px;
  color: var(--text);
  background: var(--panel-2);
}
.lazy-content {
  padding: 5px;
}
.lazy-content .table-wrap {
  border-radius: 6px;
  margin: 0;
}
.lazy-content table {
  min-width: 480px;
}
.form-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  align-items: end;
}
.settings-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 5px;
}
.settings-grid label {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 10px;
  align-content: start;
  margin: 0;
}
.settings-grid input {
  width: 100%;
  padding: 3px 5px;
  min-height: 24px;
  font-size: 11px;
}
.setting-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.05;
}
.setting-hint {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.12;
}
.settings-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 5px;
  margin-bottom: 6px;
}
.settings-card {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.28);
  padding: 5px 6px;
}
.settings-card-title {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 2px;
}
.settings-card-value {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.05;
}
.settings-card-note {
  color: var(--muted);
  font-size: 9px;
  margin-top: 2px;
  line-height: 1.12;
}
.settings-section-description {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.15;
  margin: 0 0 5px;
}
.settings-section {
  border: 1px solid var(--line);
  border-radius: 5px;
  margin-bottom: 6px;
  overflow: hidden;
}
.settings-section-title {
  padding: 4px 6px;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.05;
}
.settings-section-body {
  padding: 5px 6px 6px;
}
.settings-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
}
.settings-actions .primary {
  margin-top: 0;
  padding: 5px 8px;
  font-size: 12px;
}
.form-panel:has(.settings-overview) {
  padding: 6px;
  margin-bottom: 8px;
}
.setting-check {
  align-items: center;
  grid-template-columns: auto 1fr;
}
.setting-check input {
  width: auto;
}
.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.stack-form {
  display: grid;
  gap: 6px;
  min-width: 220px;
}
.stack-form .inline-form {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
}
.machine-cell {
  display: grid;
  gap: 4px;
  min-width: 150px;
  max-width: 230px;
}
.machine-display {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  padding: 0;
  text-align: left;
  cursor: text;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.machine-form[hidden] { display: none; }
.machine-form input {
  width: 100%;
  min-width: 0;
  padding: 5px 6px;
}
.machine-meta {
  overflow: hidden;
  text-overflow: ellipsis;
}
.comment-cell {
  display: grid;
  gap: 4px;
  min-width: 150px;
  max-width: 250px;
}
.inline-small-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}
.inline-edit-display {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  padding: 0;
  text-align: left;
  cursor: text;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comment-display {
  max-width: 100%;
}
.payment-date-cell .inline-edit-display,
.paid-until-cell .inline-edit-display,
.payment-note-cell .inline-edit-display,
.manual-ip-cell .inline-edit-display,
.ban-date-cell .inline-edit-display,
.ban-type-cell .inline-edit-display {
  max-width: 100%;
}
.manual-ip-cell .inline-edit-display {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.payment-period-buttons {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.payment-add-days-form {
  display: inline-flex;
  margin: 0;
}
.payment-add-days-form .payment-add-days-button {
  margin-top: 0;
  min-width: 26px;
  padding: 2px 4px;
  line-height: 1;
  font-size: 10px;
  border-radius: 4px;
}
.payment-bulk-add-button {
  margin-top: 0;
  min-width: 32px;
  padding: 4px 5px;
  line-height: 1;
  font-size: 11px;
  border-radius: 5px;
}
.payment-action-button {
  padding: 2px 5px !important;
  min-height: 20px;
  line-height: 1;
  font-size: 10px !important;
  border-radius: 4px;
}
.payment-add-days-form .payment-add-days-button.active {
  border-color: rgba(45, 212, 191, 0.9);
  color: #a7f3d0;
  background: rgba(20, 184, 166, 0.16);
}
.payment-machines-cell {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.payment-machine-entry {
  min-width: 0;
}
.mobile-only {
  display: none !important;
}
.mobile-sort-panel {
  display: none;
}
.payment-machine-entry .machine-display {
  max-width: 100%;
}
.inline-edit-display.is-empty {
  color: var(--muted);
}
.inline-edit-form[hidden] { display: none; }
.inline-edit-form input,
.inline-edit-form select,
.inline-edit-form textarea {
  width: 100%;
  min-width: 0;
  padding: 5px 6px;
}
.inline-edit-form textarea {
  min-height: 72px;
  resize: vertical;
  line-height: 1.35;
  font: inherit;
}
.inline-form select,
.inline-form input {
  width: auto;
  min-width: 92px;
  padding: 6px 8px;
}
.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  color: var(--muted);
}
.inline-check input {
  width: auto;
  min-width: 0;
}
.inline-form button {
  margin-top: 0;
  padding: 6px 8px;
  white-space: nowrap;
}
.action-row .inline-form button,
.action-row > button {
  padding: 2px 4px;
  font-size: 11px;
  line-height: 1.15;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }
.message {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0c1116;
  padding: 7px 8px;
  margin-bottom: 14px;
}
.error {
  color: var(--bad);
  margin-top: 10px;
}

/* Selection stays visually obvious without changing row dimensions. */
tr.is-selected > td {
  background: rgba(13, 148, 136, 0.17) !important;
  box-shadow: inset 0 1px 0 rgba(94, 234, 212, 0.22), inset 0 -1px 0 rgba(94, 234, 212, 0.16);
}
tr.is-selected > td:first-child {
  box-shadow: inset 3px 0 0 #2dd4bf, inset 0 1px 0 rgba(94, 234, 212, 0.22), inset 0 -1px 0 rgba(94, 234, 212, 0.16);
}
.mobile-card.is-selected {
  border-color: rgba(45, 212, 191, 0.88);
  background: rgba(13, 148, 136, 0.16);
  box-shadow: inset 3px 0 0 #2dd4bf, 0 0 0 1px rgba(45, 212, 191, 0.18);
}

.payments-bulk-panel.has-selection {
  position: sticky;
  top: 43px;
  z-index: 12;
  margin: 4px 0;
  padding: 5px 7px;
  border-color: rgba(45, 212, 191, 0.5);
  background: rgba(15, 23, 42, 0.97);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.date-picker-button.secondary {
  margin: 0;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(30, 41, 59, 0.88);
  color: var(--text);
}
.date-picker-button.secondary:hover {
  border-color: rgba(94, 234, 212, 0.52);
  background: rgba(30, 64, 76, 0.78);
}
.deleted-filter-panel .deleted-date-filter-row {
  padding: 5px 6px;
  border: 1px solid rgba(148, 163, 184, 0.17);
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.34);
}
.deleted-filter-panel .deleted-version-filter-row,
.deleted-filter-panel .deleted-view-filter-row,
.deleted-filter-panel .deleted-summary-row {
  padding-top: 3px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
.deleted-filter-panel .deleted-summary-row {
  color: var(--muted);
}

/* Relogger rows keep strong state markers while secondary metadata stays quiet. */
.relogger-profile-lines .profile-token,
.relogger-profile-lines .profile-task-part {
  padding-left: 2px;
  padding-right: 2px;
  border-color: transparent;
  background: transparent;
}
.relogger-profile-lines .profile-task-part.task-left,
.relogger-profile-lines .profile-task-part.task-profile {
  border-color: transparent;
}
.relogger-profile-lines .timeline-token::before {
  content: "·";
  margin-right: 3px;
  color: #64748b;
}

.settings-section {
  border-left: 3px solid rgba(94, 234, 212, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.015);
}
.settings-section + .settings-section {
  margin-top: 8px;
}
.settings-section-title {
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}

.logs-delete-form {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: -4px 0 7px;
  width: fit-content;
  max-width: 100%;
  padding: 4px 6px;
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-radius: 5px;
  background: rgba(76, 5, 25, 0.12);
  font-size: 10px;
}
.logs-delete-form input[type="hidden"] {
  display: none;
}
.logs-delete-form .danger {
  margin: 0;
}
.compact-notice {
  margin-bottom: 6px;
  padding: 5px 7px;
  font-size: 11px;
}
.logs-table table {
  table-layout: fixed;
  min-width: 920px;
}
.logs-table th:nth-child(1), .logs-table td:nth-child(1) { width: 120px; }
.logs-table th:nth-child(2), .logs-table td:nth-child(2) { width: 84px; }
.logs-table th:nth-child(3), .logs-table td:nth-child(3) { width: 190px; }
.logs-table th:nth-child(4), .logs-table td:nth-child(4) { width: 110px; }
.logs-table th:nth-child(5), .logs-table td:nth-child(5) { width: 110px; }
.logs-table th:nth-child(7), .logs-table td:nth-child(7) { width: 54px; text-align: right; }
.log-row > td:first-child {
  box-shadow: inset 2px 0 0 rgba(148, 163, 184, 0.16);
}
.log-row-warning > td:first-child { box-shadow: inset 2px 0 0 #fbbf24; }
.log-row-error > td:first-child,
.log-row-critical > td:first-child { box-shadow: inset 2px 0 0 #fb7185; }
.log-severity {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
}
.log-severity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748b;
}
.log-severity-info { color: #94a3b8; }
.log-severity-warning { color: #fbbf24; }
.log-severity-error,
.log-severity-critical { color: #fb7185; }
.log-severity-warning .log-severity-dot { background: #fbbf24; }
.log-severity-error .log-severity-dot,
.log-severity-critical .log-severity-dot { background: #fb7185; }
.log-event-type {
  color: #93c5fd;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 10px;
}
.log-message {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 760px) {
  body {
    font-size: 13px;
    min-width: 0;
  }
  header {
    position: static;
  }
  .bar {
    padding: 2px 4px;
    gap: 2px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
  }
  .brand {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    font-size: 11px;
    line-height: 1.1;
  }
  nav {
    grid-row: 2;
    grid-column: 1 / -1;
    overflow: visible;
    white-space: nowrap;
    padding-bottom: 1px;
    gap: 0;
    justify-content: space-between;
  }
  nav a {
    padding: 1px 2px;
    font-size: 8px;
    line-height: 1.1;
  }
  .link-button {
    padding: 1px 3px;
    font-size: 8px;
    line-height: 1.1;
  }
  nav a {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    text-align: center;
  }
  .nav-full {
    display: inline;
  }
  .nav-short,
  .autorefresh-full {
    display: none;
  }
  .autorefresh-short {
    display: inline;
  }
  .autorefresh-form {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
  .logout-form {
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
  }
  .autorefresh-toggle {
    padding: 1px 3px;
    font-size: 8px;
    line-height: 1.1;
  }
  main {
    padding: 6px;
  }
  h1 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  h2 {
    margin-top: 16px;
  }
  .summary,
  .alert-summary {
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 8px;
  }
  .metric {
    padding: 9px;
  }
  .metric .value {
    font-size: 18px;
  }
  .toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
  .filter-panel {
    margin-bottom: 4px;
  }
  .filter-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .filter-button,
  .table-tool-button {
    white-space: nowrap;
    padding: 7px 8px;
  }
  .data-table-toolbar {
    align-items: stretch;
  }
  .data-table-search {
    width: 100%;
  }
  .data-table-count {
    margin-left: 0;
  }
  .desktop-table-view {
    display: none;
  }
  .mobile-card-view {
    display: grid;
    gap: 4px;
  }
  .mobile-sort-panel {
    display: flex !important;
    align-items: center;
    gap: 4px;
    margin: 2px 0 4px;
    padding: 2px 0;
    font-size: 9px;
    color: var(--muted);
  }
  .mobile-sort-panel select {
    min-width: 0;
    width: 128px;
    padding: 2px 4px;
    font-size: 9px;
    line-height: 1.1;
  }
  .mobile-sort-panel button {
    padding: 2px 5px;
    font-size: 10px;
    line-height: 1.1;
  }
  .mobile-sort-label {
    font-weight: 750;
  }
  .mobile-group-row {
    display: block;
    padding: 2px 5px 1px;
    border-top: 1px solid rgba(50, 65, 82, 0.65);
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
    line-height: 1.1;
  }
  .mobile-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mobile-character-card {
    padding: 3px 4px;
    border-radius: 5px;
    border-bottom-color: rgba(100, 116, 139, 0.72);
  }
  .mobile-character-card:nth-of-type(even):not(.mobile-card-critical):not(.mobile-card-warning) {
    background: #141a20;
  }
  .mobile-character-card .mobile-card-check {
    width: 8px;
    min-width: 8px;
    margin: 0;
    line-height: 1;
  }
  .mobile-character-card .mobile-card-check input {
    width: 8px;
    height: 8px;
    margin: 0;
  }
  .mobile-character-card .mobile-card-header {
    grid-template-columns: 8px minmax(0, 1fr);
    gap: 3px;
    margin-bottom: 2px;
  }
  .mobile-character-heading {
    gap: 0;
  }
  .mobile-character-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 1px 4px;
    min-width: 0;
    font-size: 10px;
    line-height: 1.08;
  }
  .mobile-character-line .latency-badge {
    color: var(--muted) !important;
    opacity: 0.82;
  }
  .mobile-character-name {
    color: var(--text);
    font-size: 11px;
  }
  .mobile-character-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1px 2px;
  }
  .mobile-character-card .mobile-card-field {
    display: flex;
    align-items: baseline;
    gap: 2px;
    padding: 1px 2px;
    border-radius: 4px;
  }
  .mobile-character-card .mobile-key-field {
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 0 1px 0 3px;
    box-shadow: inset 1px 0 0 rgba(50, 65, 82, 0.75);
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
  }
  .mobile-character-card .mobile-key-field:first-child {
    box-shadow: none;
    padding-left: 0;
  }
  .mobile-character-card .mobile-key-machine {
    flex: 0 1 auto;
    border: 1px solid rgba(59, 130, 246, 0.34);
    border-radius: 4px;
    background: rgba(37, 99, 235, 0.14);
    box-shadow: none;
    padding: 1px 3px;
  }
  .mobile-character-card .mobile-key-machine .mobile-card-label {
    color: #93c5fd;
    font-weight: 800;
  }
  .mobile-character-card .mobile-key-machine .mobile-card-value,
  .mobile-character-card .mobile-key-machine .machine-display {
    color: #dbeafe;
    font-weight: 800;
  }
  .mobile-character-card .mobile-key-alert {
    flex: 0 1 auto;
  }
  .mobile-character-card .mobile-key-alert .mobile-card-label {
    margin-right: 0;
  }
  .mobile-character-card .mobile-key-alert .mobile-card-value {
    flex: 0 1 auto;
  }
  .mobile-character-card .mobile-key-alert .status-chip {
    padding: 0;
    border-radius: 0;
    background: transparent;
    line-height: 1;
    font-size: 8px;
    vertical-align: baseline;
  }
  .mobile-character-card .mobile-key-status {
    flex: 0 1 auto;
  }
  .mobile-character-card .mobile-key-relogger {
    flex: 0 1 auto;
  }
  .mobile-character-card .mobile-key-gold {
    flex: 0 1 auto;
  }
  .mobile-character-card .mobile-card-label {
    flex: 0 0 auto;
    font-size: 8px;
    line-height: 1.1;
    margin-bottom: 0;
  }
  .mobile-character-card .mobile-card-label::after {
    content: ":";
  }
  .mobile-character-card .mobile-card-value {
    flex: 1 1 auto;
    font-size: 9px;
    line-height: 1.1;
  }
  .mobile-character-card .mobile-key-field.mobile-no-clip .mobile-card-value,
  .mobile-character-card .mobile-key-field.mobile-no-clip .machine-display,
  .mobile-character-card .mobile-key-field.mobile-no-clip .inline-edit-display {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-character-card .status-chip {
    padding: 0 2px;
    border-radius: 3px;
    font-size: 8px;
    line-height: 1.1;
  }
  .mobile-character-card .status-dot {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 0 1px rgba(2, 6, 23, 0.65), 0 0 4px currentColor;
  }
  .mobile-character-card .mobile-wide-field {
    grid-column: 1 / -1;
  }
  .mobile-character-grid .mobile-wide-field {
    grid-column: auto;
  }
  .mobile-character-card .action-row button {
    padding: 2px 4px;
    font-size: 10px;
  }
  .mobile-character-card .mobile-card-details {
    margin-top: 3px;
  }
  .mobile-character-card .mobile-card-details:not([open]) {
    display: none;
  }
  .mobile-character-card .mobile-card-details summary {
    padding: 3px 4px;
    font-size: 10px;
  }
  .mobile-character-card .mobile-card-details > .mobile-card-grid,
  .mobile-character-card .mobile-card-actions {
    padding: 3px;
  }
  .mobile-card-title,
  .mobile-card-subtitle {
    white-space: normal;
  }
  .scroll-top-button.visible {
    display: inline-flex;
  }
  .mobile-card-value .payment-period-buttons {
    flex-wrap: wrap;
    white-space: normal;
  }
  .mobile-card-value .inline-edit-display {
    white-space: nowrap;
    max-width: 100%;
  }
  .mobile-hide,
  .character-bulk-panel {
    display: none !important;
  }
  .mobile-only {
    display: inline-flex !important;
  }
  .mobile-selected-bar.has-selection {
    position: fixed;
    left: 6px;
    right: 6px;
    bottom: 6px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(12, 17, 22, 0.96);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  }
  .mobile-selected-bar .inline-form {
    flex-wrap: nowrap;
  }
  .mobile-selected-bar select {
    max-width: 78px;
    padding: 4px;
    font-size: 10px;
  }
  .mobile-selected-bar .bulk-selected-count,
  .mobile-selected-bar .table-tool-button,
  .mobile-selected-bar .compact-button {
    padding: 2px 4px;
    font-size: 9px;
  }
  .duplicates-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }
  .duplicates-lead {
    grid-column: 1 / -1;
  }
  .duplicates-lead h1 {
    font-size: 16px;
  }
  .duplicate-stat-card,
  .duplicate-help-card {
    padding: 5px;
  }
  .duplicates-help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }
  .duplicate-chip,
  .duplicate-badge {
    padding: 1px 3px;
    font-size: 9px;
  }
  .duplicate-candidate-list {
    min-width: 0;
  }
  .duplicate-candidate-card {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 3px 4px;
  }
  .duplicate-merge-form {
    max-width: none;
    gap: 3px;
  }
  .duplicate-merge-form select {
    max-width: 100%;
    min-width: 120px;
    font-size: 10px;
  }
  .duplicate-checks .inline-checkbox {
    font-size: 9px;
    padding: 1px 3px;
  }
  .character-compact-panel {
    top: 0;
    gap: 2px;
    padding: 3px;
  }
  .relogger-filter-panel {
    padding: 2px 3px;
    margin-bottom: 3px;
    gap: 2px;
  }
  .relogger-filter-panel .compact-filter-row {
    gap: 2px;
  }
  .relogger-filter-panel .compact-filter-title {
    font-size: 10px;
    margin-right: 0;
  }
  .relogger-filter-panel .button,
  .relogger-filter-panel .filter-button,
  .relogger-filter-panel .table-tool-button,
  .relogger-filter-panel .compact-button,
  .relogger-filter-panel .archive-stat {
    padding: 1px 2px;
    min-height: 16px;
    border-radius: 3px;
    font-size: 8px;
    line-height: 1.05;
    gap: 1px;
  }
  .relogger-filter-panel input,
  .relogger-filter-panel select {
    padding: 1px 2px;
    min-height: 16px;
    font-size: 8px;
  }
  .relogger-filter-panel input[name="q"],
  .relogger-filter-panel .data-table-search {
    min-width: 0;
    flex: 1 1 72px;
    max-width: 116px;
  }
  .relogger-filter-panel select[name="pageSize"] {
    min-width: 46px;
    max-width: 52px;
  }
  .relogger-filter-panel .quick-filter-count,
  .relogger-filter-panel .version-counts {
    font-size: 7px;
  }
  .relogger-bulk-panel {
    padding: 2px 3px;
    margin-top: -2px;
    margin-bottom: 4px;
  }
  .relogger-bulk-panel .compact-filter-row {
    gap: 2px;
  }
  .relogger-bulk-panel .compact-filter-title,
  .relogger-bulk-panel .filter-group-label {
    font-size: 9px;
    margin-right: 0;
  }
  .relogger-bulk-panel .bulk-scope-note {
    display: none;
  }
  .relogger-bulk-panel .bulk-selected-count,
  .relogger-bulk-panel .table-tool-button,
  .relogger-bulk-panel .compact-button,
  .relogger-bulk-panel button,
  .relogger-bulk-panel .bulk-collapse > summary {
    padding: 1px 3px;
    min-height: 16px;
    border-radius: 3px;
    font-size: 8px;
    line-height: 1.05;
  }
  .relogger-bulk-panel .bulk-selected-count {
    min-width: 0;
  }
  .relogger-bulk-panel .inline-form {
    gap: 2px;
  }
  .relogger-bulk-panel .bulk-collapse[open] {
    flex: 1 0 100%;
  }
  .relogger-bulk-panel .bulk-collapse-body {
    margin-top: 2px;
  }
  .relogger-bulk-panel input,
  .relogger-bulk-panel select {
    padding: 1px 2px;
    min-height: 16px;
    font-size: 8px;
  }
  .relogger-bulk-panel .date-filter-display {
    width: 70px !important;
    min-width: 70px !important;
  }
  .relogger-bulk-panel input[type="datetime-local"] {
    min-width: 112px;
    max-width: 120px;
  }
  .relogger-bulk-panel input[type="time"] {
    min-width: 52px;
    max-width: 58px;
  }
  .relogger-bulk-panel .weekday-picker {
    gap: 0;
  }
  .relogger-bulk-panel .weekday-check {
    padding: 0 1px;
    font-size: 8px;
  }
  .relogger-bulk-panel .weekday-check input {
    width: 9px;
    height: 9px;
  }
  .compact-filter-row {
    gap: 2px;
  }
  .character-compact-panel .compact-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: center;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .character-compact-panel .compact-filter-row::-webkit-scrollbar {
    display: none;
  }
  .character-compact-panel .compact-filter-row > * {
    flex: 0 0 auto;
  }
  .character-compact-panel .filter-button {
    flex: 0 0 auto;
    padding: 1px 2px;
    border-radius: 3px;
    font-size: 8px;
    line-height: 1.1;
    gap: 1px;
  }
  .character-compact-panel .version-filter-button,
  .character-compact-panel .manual-list-button {
    padding: 0 2px;
    max-width: 82px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 7px;
    line-height: 1.05;
  }
  .character-compact-panel .quick-filter-count {
    margin-left: 1px;
    font-size: 8px;
  }
  .character-compact-panel .manual-list-button .quick-filter-count {
    margin-left: 0;
    font-size: 7px;
  }
  .character-compact-panel .version-counts {
    font-size: 7px;
  }
  .character-compact-panel .excluded-filter-button {
    display: none;
  }
  .compact-filter-row input[name="q"],
  .compact-filter-row .data-table-search {
    min-width: 0;
    flex: 1 1 130px;
  }
  .compact-filter-title {
    width: auto;
    margin-right: 0;
    font-size: 11px;
    flex: 0 0 auto;
  }
  .desktop-title {
    display: none;
  }
  .mobile-title {
    display: inline;
  }
  .columns-menu {
    max-height: 42vh;
    overflow: auto;
  }
  .table-wrap {
    margin-left: -6px;
    margin-right: -6px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
  th,
  td {
    padding: 7px 8px;
  }
  .details-grid,
  .form-grid,
  .settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .inline-form {
    flex-wrap: wrap;
  }
  .login {
    margin: 40px 10px;
  }
}
