/* LibertyBans × Apex. Keep the theme's editable colors and typography. */
.lb-page {
    --lb-text: var(--color2, #f8eff3);
    --lb-surface: var(--color3, #191317);
    --lb-deep: var(--color4, #0a080a);
    --lb-accent: var(--color5, #ff70bb);
    --lb-muted: var(--text-muted, #b8a8b1);
    --lb-line: rgba(251, 229, 240, .115);
    --lb-line-strong: rgba(251, 229, 240, .23);
    --lb-heading: var(--font-heading, 'Oswald', sans-serif);
    --lb-body: var(--font-body, 'Manrope', sans-serif);
    min-width: 0;
    margin-bottom: 1rem;
    color: var(--lb-text);
    font-family: var(--lb-body);
    font-size: .875rem;
    line-height: 1.6;
    color-scheme: dark;
}
.lb-page *, .lb-page *::before, .lb-page *::after { box-sizing: border-box; }
.lb-page [hidden] { display: none !important; }
.lb-page ::selection { color: #210915; background: var(--lb-accent); }
.lb-page :is(a, button, input):focus-visible { outline: 2px solid var(--lb-accent) !important; outline-offset: 4px; }
.lb-page button, .lb-page input { font: inherit; }
.lb-page button { cursor: pointer; }
.lb-page a { text-decoration: none; text-underline-offset: .25em; }
.lb-page .lb-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.lb-page .lb-board { overflow: hidden; border: 1px solid var(--lb-line); border-radius: 16px; background: var(--lb-surface); }
.lb-page .lb-board-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 30px 24px; }
.lb-page .lb-heading { min-width: 0; }
.lb-page .lb-board-title { margin: 0 0 10px; color: var(--lb-text); font-family: var(--lb-heading); font-size: 2rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; text-transform: uppercase; }
.lb-page .lb-subtitle { max-width: 65ch; margin: 0; color: var(--lb-muted); line-height: 1.75; }
.lb-page .lb-record-count { display: flex; flex-shrink: 0; align-items: center; gap: 10px; color: var(--lb-muted); white-space: nowrap; }
.lb-page .lb-record-count > i { color: var(--lb-accent); font-size: 1.25rem; }
.lb-page .lb-record-count strong { margin-left: 5px; color: var(--lb-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-page .lb-search-area { padding: 0 30px 28px; }
.lb-page .lb-search { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 6px 6px 6px 18px; border: 1px solid var(--lb-line-strong); border-radius: 12px; background: var(--lb-deep); transition: border-color .18s ease; }
.lb-page .lb-search:focus-within { border-color: var(--lb-accent); }
.lb-page .lb-search-icon { flex-shrink: 0; color: var(--lb-muted); font-size: 1.1rem; }
.lb-page .lb-search input { flex: 1; min-width: 0; width: 100%; min-height: 44px; padding: 7px 0; border: 0; border-radius: 0; outline: 0; color: var(--lb-text); background: transparent; caret-color: var(--lb-accent); font-family: var(--lb-body); font-size: .875rem; box-shadow: none; }
.lb-page .lb-search input::placeholder { color: var(--lb-muted); opacity: 1; }
.lb-page .lb-search-submit { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 22px; min-height: 44px; padding: 10px 21px; border: 1px solid transparent; border-radius: 8px; color: #210915; background: var(--lb-accent); font-family: var(--lb-body); font-weight: 800; line-height: 1.4; transition: background-color .18s ease; }
.lb-page .lb-search-submit:hover { background: color-mix(in srgb, var(--lb-accent), white 20%); }
.lb-page .lb-search-submit:active { background: color-mix(in srgb, var(--lb-accent), black 12%); }
.lb-page .lb-search-submit:disabled { cursor: default; opacity: .5; }
.lb-page .lb-search-error { margin: 12px 0 0; color: #ffadb8; }
.lb-page .lb-search-result { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 14px; color: var(--lb-muted); overflow-wrap: anywhere; }
.lb-page .lb-search-result strong { color: var(--lb-text); font-weight: 600; }
.lb-page .lb-reset { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: var(--lb-accent); font-weight: 600; }
.lb-page .lb-reset:hover { color: var(--lb-text); }
.lb-page .lb-table-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 26px; border-top: 1px solid var(--lb-line); }
.lb-page .lb-table-heading h3 { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--lb-text); font: 700 .8125rem/1.5 var(--lb-body); letter-spacing: 0; }
.lb-page .lb-table-heading h3 i { color: var(--lb-muted); font-size: 1rem; }
.lb-page .lb-timezone { color: var(--lb-muted); font-size: .75rem; text-align: right; }
.lb-page .lb-table-wrap { width: 100%; }
.lb-page .lb-table { width: 100%; margin: 0; border-collapse: collapse; table-layout: fixed; color: var(--lb-text); font-size: .8125rem; }
.lb-page .lb-table th, .lb-page .lb-table td { padding: 19px 12px; border: 0; border-bottom: 1px solid var(--lb-line); vertical-align: middle; text-align: left; overflow-wrap: anywhere; }
.lb-page .lb-table th { padding-block: 12px; color: var(--lb-muted); background: rgba(0, 0, 0, .17); font-size: .6875rem; font-weight: 600; letter-spacing: .025em; text-transform: uppercase; }
.lb-page .lb-table th:first-child, .lb-page .lb-table td:first-child { padding-left: 26px; }
.lb-page .lb-table th:last-child, .lb-page .lb-table td:last-child { padding-right: 26px; text-align: right; }
.lb-page .lb-table tbody tr { background: transparent; transition: background-color .18s ease; }
.lb-page .lb-table tbody tr:hover { background: rgba(255, 229, 241, .025); }
.lb-page .lb-table tbody tr:last-child td { border-bottom: 0; }
.lb-page .lb-col-player { width: 18%; }
.lb-page .lb-col-type { width: 11%; }
.lb-page .lb-col-reason { width: 25%; }
.lb-page .lb-col-operator { width: 14%; }
.lb-page .lb-col-date, .lb-page .lb-col-expires { width: 11%; }
.lb-page .lb-col-status { width: 10%; }
.lb-page .lb-user { display: flex; align-items: center; gap: 11px; min-width: 0; }
.lb-page .lb-avatar { position: relative; display: inline-grid; flex: 0 0 40px; width: 40px; height: 40px; overflow: hidden; place-items: center; border-radius: 8px; color: var(--lb-muted); background: rgba(255, 229, 241, .065); }
.lb-page .lb-avatar img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.lb-page .lb-avatar-fallback { font-size: 1rem; font-weight: 700; text-transform: uppercase; }
.lb-page .lb-avatar-console { color: var(--lb-muted); font-size: 1.15rem; }
.lb-page .lb-user-info { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.lb-page .lb-name { min-width: 0; color: var(--lb-text); font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.lb-page .lb-id { color: var(--lb-muted); font-size: .6875rem; font-variant-numeric: tabular-nums; }
.lb-page .lb-operator { gap: 8px; }
.lb-page .lb-operator .lb-avatar { flex-basis: 26px; width: 26px; height: 26px; border-radius: 6px; font-size: .875rem; }
.lb-page .lb-operator .lb-avatar-fallback { font-size: .6875rem; }
.lb-page .lb-operator .lb-name { font-weight: 500; }
.lb-page .lb-type { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 9px; border-radius: 6px; color: var(--lb-muted); background: rgba(255, 255, 255, .045); font-size: .6875rem; font-weight: 700; line-height: 1.5; }
.lb-page .lb-type i { flex-shrink: 0; font-size: .8125rem; }
.lb-page .lb-type-ban { color: #ffb3cf; background: rgba(255, 112, 187, .1); }
.lb-page .lb-type-mute { color: #d1b8fa; background: rgba(185, 140, 255, .1); }
.lb-page .lb-type-warn { color: #edce91; background: rgba(240, 184, 78, .1); }
.lb-page .lb-type-kick { color: #a9cee9; background: rgba(90, 158, 214, .1); }
.lb-page .lb-reason-content { display: block; min-width: 0; }
.lb-page .lb-reason-text { display: block; color: var(--lb-muted); line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; }
.lb-page.is-ready .lb-reason-can-expand:not(.is-expanded) .lb-reason-text { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.lb-page .lb-reason-toggle { display: block; min-height: 32px; margin: 3px 0 -5px; padding: 4px 0; border: 0; color: var(--lb-accent); background: transparent; font-size: .6875rem; font-weight: 600; text-align: left; }
.lb-page .lb-reason-toggle:hover { color: var(--lb-text); }
.lb-page .lb-date { display: inline-flex; flex-direction: column; gap: 3px; font-size: .75rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-page .lb-time { color: var(--lb-muted); font-size: .6875rem; }
.lb-page .lb-permanent { display: inline-flex; align-items: center; gap: 6px; color: var(--lb-muted); font-size: .75rem; }
.lb-page .lb-permanent i { font-size: 1rem; }
.lb-page .lb-state { display: inline-flex; align-items: center; gap: 7px; color: var(--lb-muted); font-size: .6875rem; font-weight: 600; white-space: nowrap; }
.lb-page .lb-state-dot { flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lb-page .lb-state.is-active { color: #9ddcb2; }
.lb-page .lb-state.is-finished .lb-state-dot { background: transparent; border: 1px solid currentColor; }
.lb-page .lb-empty { display: flex; min-height: 250px; align-items: center; justify-content: center; flex-direction: column; gap: 12px; padding: 32px 12px; text-align: center; }
.lb-page .lb-empty > i { margin-bottom: 4px; color: var(--lb-accent); font-size: 2rem; }
.lb-page .lb-empty strong { color: var(--lb-text); font-size: 1rem; font-weight: 600; }
.lb-page .lb-empty p { max-width: 45ch; margin: 0; color: var(--lb-muted); }
.lb-page .lb-empty-reset { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 4px; padding: 8px 16px; border: 1px solid var(--lb-line-strong); border-radius: 8px; color: var(--lb-text); }
.lb-page .lb-empty-reset:hover { border-color: var(--lb-accent); color: var(--lb-accent); }
.lb-page .lb-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 26px; border-top: 1px solid var(--lb-line); }
.lb-page .lb-range { margin: 0; color: var(--lb-muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.lb-page .lb-range strong { color: var(--lb-text); font-weight: 500; }
.lb-page .lb-pagination { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.lb-page .lb-page-link { display: inline-flex; min-width: 38px; min-height: 38px; align-items: center; justify-content: center; padding: 6px 10px; border: 1px solid transparent; border-radius: 8px; color: var(--lb-muted); background: transparent; font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; transition: color .18s ease, background-color .18s ease; }
.lb-page a.lb-page-link:hover { color: var(--lb-text); background: rgba(255, 229, 241, .065); }
.lb-page .lb-page-item.is-current .lb-page-link { color: #210915; background: var(--lb-accent); }
.lb-page .lb-page-item.is-disabled .lb-page-link { opacity: .4; }
.lb-page .lb-page-item.is-gap .lb-page-link { min-width: 25px; padding-inline: 3px; }
.lb-page .lb-page-note { display: flex; align-items: baseline; gap: 9px; margin: 16px 4px 0; color: var(--lb-muted); font-size: .75rem; line-height: 1.75; }
.lb-page .lb-page-note i { flex-shrink: 0; }

/* Compact records on narrow screens retain every field and its table role. */
@media (max-width: 1100px) {
    .lb-page .lb-board-header { padding: 24px; }
    .lb-page .lb-search-area { padding: 0 24px 24px; }
    .lb-page .lb-table-heading { padding-inline: 24px; }
    .lb-page .lb-table, .lb-page .lb-table tbody { display: block; }
    .lb-page .lb-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .lb-page .lb-table tbody tr:not(.lb-empty-row) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 24px; padding: 24px; border-top: 1px solid var(--lb-line); }
    .lb-page .lb-table td { display: flex; min-width: 0; width: auto; flex-direction: column; align-items: flex-start; gap: 6px; padding: 0; border: 0; }
    .lb-page .lb-table td:first-child, .lb-page .lb-table td:last-child { padding: 0; text-align: left; }
    .lb-page .lb-table td::before { content: attr(data-label); color: var(--lb-muted); font-size: .6875rem; font-weight: 500; }
    .lb-page .lb-table .lb-col-player { grid-column: 1; grid-row: 1; }
    .lb-page .lb-table .lb-col-player::before, .lb-page .lb-table .lb-col-status::before { content: none; }
    .lb-page .lb-table .lb-col-status { grid-column: 2; grid-row: 1; align-items: flex-end; justify-content: center; }
    .lb-page .lb-table .lb-col-type { grid-column: 1; grid-row: 2; }
    .lb-page .lb-table .lb-col-operator { grid-column: 2; grid-row: 2; }
    .lb-page .lb-table .lb-col-reason { grid-column: 1 / -1; grid-row: 3; }
    .lb-page .lb-table .lb-col-date { grid-column: 1; grid-row: 4; }
    .lb-page .lb-table .lb-col-expires { grid-column: 2; grid-row: 4; }
    .lb-page .lb-date { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 8px; }
    .lb-page .lb-empty-row, .lb-page .lb-empty-row td { display: block; width: 100%; }
    .lb-page .lb-empty-row td::before { content: none; }
    .lb-page .lb-footer { padding-inline: 24px; }
}
@media (max-width: 600px) {
    .lb-page .lb-board { border-radius: 12px; }
    .lb-page .lb-board-header { align-items: flex-start; flex-direction: column; gap: 16px; padding: 22px 18px 20px; }
    .lb-page .lb-board-title { font-size: 1.75rem; }
    .lb-page .lb-subtitle { font-size: .8125rem; }
    .lb-page .lb-record-count { font-size: .75rem; }
    .lb-page .lb-record-count > i { font-size: 1rem; }
    .lb-page .lb-search-area { padding: 0 18px 22px; }
    .lb-page .lb-search { gap: 8px; padding-left: 12px; }
    .lb-page .lb-search input { font-size: 1rem; }
    .lb-page .lb-search input::placeholder { font-size: .75rem; }
    .lb-page .lb-search-submit { gap: 0; min-width: 44px; padding-inline: 10px; }
    .lb-page .lb-search-submit > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .lb-page .lb-table-heading { align-items: flex-start; flex-direction: column; gap: 5px; padding: 16px 18px; }
    .lb-page .lb-timezone { font-size: .6875rem; text-align: left; }
    .lb-page .lb-table tbody tr:not(.lb-empty-row) { gap: 16px 18px; padding: 20px 18px; }
    .lb-page .lb-footer { justify-content: center; gap: 14px; padding: 18px 12px; }
    .lb-page .lb-range { width: 100%; text-align: center; }
    .lb-page .lb-page-link { min-width: 36px; min-height: 44px; padding-inline: 9px; }
    .lb-page .lb-pagination { gap: 3px; }
    .lb-page .lb-page-note { margin-inline: 0; font-size: .6875rem; }
}
@media (prefers-reduced-motion: reduce) {
    .lb-page *, .lb-page *::before, .lb-page *::after { transition: none !important; }
}
