:root {
    color-scheme: dark;
    --bg: #0d0d10;
    --surface: #18181d;
    --surface-2: #222229;
    --surface-3: #2a2a32;
    --line: #303039;
    --text: #f8f4ed;
    --muted: #a7a3a0;
    --orange: #ff7a1a;
    --orange-2: #ffb14a;
    --red: #ef1d1d;
    --blue: #2f9cf4;
    --green: #19721b;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(255, 122, 26, .08), transparent 260px),
        radial-gradient(circle at top right, rgba(255, 122, 26, .18), transparent 32rem),
        var(--bg);
    color: var(--text);
}

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    color: #1a0d04;
    cursor: pointer;
    font-weight: 800;
    min-height: 42px;
    padding: 0 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 10px 24px rgba(255, 122, 26, .18);
    transition: transform .16s ease, filter .16s ease, background .16s ease;
}

button:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

input,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #151519;
    color: var(--text);
    min-height: 42px;
    padding: 0 12px;
    outline: none;
}

input:focus,
select:focus {
    border-color: rgba(255, 122, 26, .72);
    box-shadow: 0 0 0 3px rgba(255, 122, 26, .12);
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.login-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.login-panel {
    width: min(420px, 100%);
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(27, 27, 32, .92);
    box-shadow: 0 22px 80px rgba(0, 0, 0, .34);
}

.brand-mark,
.brand span {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand-color, var(--orange)), #e83e16);
    color: #140800;
    font-weight: 950;
    overflow: hidden;
}

.brand span img,
.brand-preview > span img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eyebrow {
    margin: 16px 0 6px;
    color: var(--orange-2);
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 24px;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: 0;
}

.login-form {
    display: grid;
    gap: 16px;
}

.remember-login {
    display: flex;
    align-items: center;
    gap: 9px;
}

.remember-login input {
    width: 18px;
    min-height: 18px;
    accent-color: var(--orange);
}

.alert {
    border: 1px solid rgba(255, 122, 26, .42);
    border-radius: 8px;
    background: rgba(255, 122, 26, .1);
    color: var(--orange-2);
    margin-bottom: 18px;
    padding: 14px;
}

.alert small {
    display: block;
    color: var(--muted);
    margin-top: 8px;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    width: 250px;
    flex-direction: column;
    gap: 26px;
    border-right: 1px solid rgba(255, 255, 255, .06);
    background: linear-gradient(180deg, #151519, #0f0f12);
    padding: 22px;
    box-shadow: 18px 0 60px rgba(0, 0, 0, .22);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
}

nav {
    display: grid;
    gap: 8px;
}

nav a,
.ghost {
    border-radius: 8px;
    color: var(--muted);
    min-height: 42px;
    padding: 11px 12px;
    text-align: left;
    text-decoration: none;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

nav a.active,
nav a:hover {
    background: linear-gradient(90deg, rgba(255, 122, 26, .22), rgba(255, 122, 26, .04));
    color: var(--text);
    transform: translateX(2px);
}

.ghost {
    width: 100%;
    background: transparent;
}

.app-shell {
    margin-left: 250px;
    padding: 28px;
}

.toast-stack {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    width: 100%;
    gap: 10px;
    margin: -8px 0 18px;
}

.toast {
    border: 1px solid rgba(255, 122, 26, .45);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 122, 26, .2), rgba(255, 122, 26, .06)),
        rgba(24, 24, 29, .96);
    color: var(--text);
    padding: 12px 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

.toast b,
.toast span {
    display: block;
}

.toast span {
    color: var(--muted);
    font-size: 13px;
    margin-top: 3px;
}

.toast.done {
    border-color: rgba(30, 180, 87, .5);
}

.toast.failed {
    border-color: rgba(239, 29, 29, .55);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.topbar h1 {
    margin-bottom: 0;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 190px;
    border: 1px solid color-mix(in srgb, var(--role-color), transparent 55%);
    border-radius: 8px;
    background: var(--surface);
    padding: 10px 12px;
}

.user-pill > span {
    color: var(--role-color);
    font-size: 24px;
}

.user-pill small,
.list-row small,
.table-row small,
.report-row small,
.switch-row small {
    display: block;
    color: var(--muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.stats-grid article,
.panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(34, 34, 41, .9), rgba(24, 24, 29, .94));
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}

.stats-grid article {
    padding: 22px;
}

.stats-grid span {
    display: block;
    color: var(--orange-2);
    font-size: 34px;
    font-weight: 950;
}

.content-grid,
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.today-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.metric-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.metric-list span {
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 8px;
    background: rgba(255, 255, 255, .025);
    color: var(--muted);
    padding: 12px;
}

.metric-list b {
    display: block;
    color: var(--orange-2);
    font-size: 26px;
    line-height: 1;
    margin-bottom: 6px;
}

.suspect-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--line);
    color: var(--text);
    padding: 12px 0;
    text-decoration: none;
}

.suspect-row img,
.player-result img,
.player-profile-card > img {
    border-radius: 6px;
    background: #101014;
    image-rendering: pixelated;
}

.suspect-row span,
.suspect-row small,
.player-result span,
.player-result small {
    display: block;
    min-width: 0;
}

.suspect-row small,
.player-result small {
    color: var(--muted);
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suspect-row strong {
    border-radius: 8px;
    background: rgba(255, 122, 26, .14);
    color: var(--orange-2);
    padding: 8px 0;
    text-align: center;
}

.split {
    grid-template-columns: 340px minmax(0, 1fr);
}

.single-panel {
    display: grid;
    gap: 16px;
}

.panel {
    padding: 20px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.panel-head h2 {
    margin: 0;
}

.panel-head a,
.panel-head span {
    color: var(--orange-2);
    text-decoration: none;
}

.list-row,
.report-row {
    display: grid;
    gap: 5px;
    border-top: 1px solid var(--line);
    padding: 14px 0;
}

.form-panel {
    align-self: start;
    display: grid;
    gap: 14px;
}

.table {
    display: grid;
    gap: 8px;
}

.table-row {
    display: grid;
    grid-template-columns: 82px 140px minmax(180px, 1fr) 110px 130px 42px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #17171b;
    padding: 10px;
}

.badge {
    border-radius: 8px;
    background: rgba(255, 122, 26, .14);
    color: var(--orange-2);
    font-size: 12px;
    font-weight: 900;
    padding: 7px 8px;
    text-align: center;
}

.icon-btn {
    width: 38px;
    min-height: 38px;
    padding: 0;
    font-size: 24px;
}

.roles-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 18px;
}

.roles-panel {
    display: grid;
    gap: 18px;
}

.roles-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(255, 122, 26, .25);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 122, 26, .18), rgba(255, 122, 26, .04)),
        linear-gradient(180deg, #202027, #17171c);
    padding: 22px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .24);
}

.roles-hero h2 {
    margin-bottom: 6px;
    font-size: 34px;
}

.roles-hero .eyebrow {
    margin-top: 0;
}

.roles-hero span {
    color: var(--muted);
}

.rank-list {
    display: grid;
    align-self: start;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #151519;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}

.rank-card {
    display: grid;
    grid-template-columns: 24px 48px 1fr;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 78px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--rank-color), transparent 84%), transparent 62%),
        #202025;
    box-shadow: none;
    color: var(--text);
    padding: 12px;
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 23px;
    text-align: left;
    transition: background .16s ease, transform .16s ease;
}

.rank-card:hover,
.rank-card.active {
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--rank-color), transparent 66%), transparent 74%),
        #26262d;
    transform: translateX(3px);
}

.rank-card.active {
    box-shadow: inset 4px 0 0 var(--rank-color);
}

.rank-card:last-child {
    border-bottom: 0;
}

.drag {
    color: #a8a8b0;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.rank-shield {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--rank-color), transparent 45%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--rank-color), transparent 85%);
    color: var(--rank-color);
    font-size: 32px;
}

.rank-card small {
    display: block;
    color: var(--muted);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 12px;
    margin-top: 5px;
}

.permission-matrix {
    display: grid;
    gap: 12px;
    align-self: start;
}

.role-permissions {
    display: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #1f1f26, #17171b);
    padding: 0 14px 8px;
    overflow: hidden;
}

.role-permissions.active {
    display: block;
}

.role-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 -14px;
    padding: 14px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .04), transparent);
    border-bottom: 1px solid var(--line);
}

.role-section-head h3 {
    color: var(--rank-color);
    margin-bottom: 3px;
}

.role-section-head span {
    color: var(--muted);
    font-size: 13px;
}

.role-section-head b {
    display: block;
    width: 52px;
    height: 8px;
    border-radius: 999px;
    background: var(--rank-color);
    box-shadow: 0 0 22px color-mix(in srgb, var(--rank-color), transparent 30%);
}

.switch-row {
    display: grid;
    grid-template-columns: 1fr 48px;
    align-items: center;
    border-top: 1px solid var(--line);
    padding: 12px 0;
    transition: background .16s ease;
}

.switch-row:first-of-type {
    border-top: 0;
}

.switch-row:hover {
    background: rgba(255, 255, 255, .025);
}

.switch-row.inherited {
    opacity: .72;
}

.switch-row.inherited b {
    color: var(--orange-2);
}

.switch-row input {
    accent-color: var(--orange);
    justify-self: end;
    min-height: 24px;
    width: 24px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.settings-grid div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.settings-grid span {
    display: block;
    color: var(--muted);
    margin-top: 6px;
}

.branding-panel {
    margin-top: 16px;
}

.branding-form {
    display: grid;
    grid-template-columns: 260px repeat(5, minmax(0, 1fr)) 180px;
    align-items: end;
    gap: 12px;
}

.brand-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid color-mix(in srgb, var(--brand-color), transparent 55%);
    border-radius: 8px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--brand-color), transparent 84%), transparent);
    padding: 12px;
}

.brand-preview > span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 8px;
    background: var(--brand-color);
    color: #140800;
    font-weight: 950;
    overflow: hidden;
}

.brand-preview b,
.brand-preview small {
    display: block;
}

.brand-preview small {
    color: var(--muted);
    margin-top: 3px;
}

.log-table {
    display: grid;
    gap: 8px;
}

.log-row {
    display: grid;
    grid-template-columns: 170px 130px 160px minmax(220px, 1fr) 130px;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #17171b;
    padding: 12px;
}

.log-row p {
    margin: 0;
    color: var(--muted);
}

.log-row small {
    color: var(--muted);
    text-align: right;
}

.log-action {
    border-radius: 8px;
    background: rgba(255, 122, 26, .14);
    color: var(--orange-2);
    font-size: 12px;
    font-weight: 900;
    padding: 7px 8px;
    text-align: center;
}

.empty-state {
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    padding: 22px;
    text-align: center;
}

.muted-copy {
    color: var(--muted);
    margin-bottom: 0;
}

.users-shell {
    display: grid;
    gap: 16px;
}

.players-shell {
    display: grid;
    gap: 16px;
}

.player-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    align-items: end;
    gap: 12px;
}

.player-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}

.player-result {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #17171b;
    color: var(--text);
    padding: 10px;
    text-decoration: none;
}

.player-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 16px;
}

.player-profile-card {
    align-self: start;
    display: grid;
    gap: 14px;
}

.player-profile-card > img {
    width: 96px;
    height: 96px;
}

.player-profile-card h2 {
    margin-bottom: 0;
}

.profile-facts,
.quick-actions,
.active-punishment-stack,
.player-history,
.compact-table {
    display: grid;
    gap: 10px;
}

.player-status-card {
    display: grid;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}

.player-status-card.blocked {
    border-color: rgba(239, 29, 29, .42);
    background: linear-gradient(135deg, rgba(239, 29, 29, .16), rgba(239, 29, 29, .04));
}

.player-status-card.clear {
    border-color: rgba(42, 190, 105, .32);
    background: rgba(42, 190, 105, .07);
}

.player-status-card strong,
.player-status-card p,
.player-status-card small {
    margin: 0;
}

.player-status-card p,
.player-status-card small {
    color: var(--muted);
}

.status-pill {
    width: fit-content;
    border-radius: 999px;
    background: rgba(255, 122, 26, .14);
    color: var(--orange-2);
    font-size: 12px;
    font-weight: 900;
    padding: 6px 9px;
}

.active-punishment-stack > div {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(239, 29, 29, .24);
    border-radius: 8px;
    background: rgba(239, 29, 29, .055);
    padding: 10px;
}

.active-punishment-stack small {
    display: block;
    color: var(--muted);
    margin-top: 3px;
}

.profile-facts span {
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 8px;
    background: rgba(255, 255, 255, .025);
    overflow-wrap: anywhere;
    padding: 10px;
}

.profile-facts b {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 4px;
}

.quick-actions {
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.compact-table > div:not(.empty-state) {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) 38px;
    gap: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #17171b;
    padding: 10px;
}

.compact-table b {
    min-width: 0;
}

.compact-table small {
    grid-column: 2;
    color: var(--muted);
}

.compact-table form {
    grid-column: 3;
    grid-row: 1 / span 2;
}

.users-hero {
    border: 1px solid rgba(255, 122, 26, .25);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 122, 26, .16), rgba(255, 122, 26, .04)),
        linear-gradient(180deg, #202027, #17171c);
    padding: 22px;
}

.users-hero h2 {
    margin-bottom: 6px;
    font-size: 34px;
}

.users-hero .eyebrow {
    margin-top: 0;
}

.users-hero span {
    color: var(--muted);
}

.users-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 16px;
}

.user-create {
    align-self: start;
    display: grid;
    gap: 13px;
}

.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 14px;
}

.user-card {
    border: 1px solid color-mix(in srgb, var(--rank-color), transparent 66%);
    border-radius: 8px;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--rank-color), transparent 88%), transparent 72%),
        linear-gradient(180deg, #202027, #17171b);
    padding: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}

.user-card-head,
.user-card-foot {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-card-head {
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

.user-card-head img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    image-rendering: pixelated;
}

.user-card-head b,
.user-card-head span {
    display: block;
}

.user-card-head span {
    color: var(--muted);
    margin-top: 3px;
}

.user-active {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: end;
}

.user-active input {
    width: 18px;
    min-height: 18px;
    accent-color: var(--orange);
}

.user-state {
    margin-left: auto;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    padding: 7px 10px;
}

.user-state.online {
    background: rgba(42, 190, 105, .14);
    color: #72ee9f;
}

.user-state.offline {
    background: rgba(239, 29, 29, .14);
    color: #ff7c7c;
}

.user-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 8px;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}

.user-summary span {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 8px;
    background: rgba(255, 255, 255, .025);
    color: var(--text);
    overflow: hidden;
    padding: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-summary b {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 3px;
}

.user-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px 0;
}

.password-reset-zone {
    display: grid;
    gap: 8px;
    border: 1px solid rgba(255, 122, 26, .22);
    border-radius: 8px;
    background: rgba(255, 122, 26, .055);
    margin-bottom: 12px;
    padding: 12px;
}

.password-reset-zone small {
    color: var(--muted);
}

.user-card-foot {
    border-top: 1px solid var(--line);
    justify-content: flex-end;
    padding-top: 12px;
}

.user-card-foot small {
    color: var(--muted);
}

.live-logout-note {
    display: block;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    margin-top: 12px;
    padding-top: 10px;
}

.locked-user-note {
    border-top: 1px solid var(--line);
    color: var(--orange-2);
    font-size: 13px;
    margin-top: 12px;
    padding-top: 12px;
}

.danger-btn {
    background: linear-gradient(135deg, #ef1d1d, #ff705c);
    color: #fff5f5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 10px 24px rgba(239, 29, 29, .18);
}

.reports-shell {
    display: grid;
    gap: 16px;
}

.reports-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(255, 122, 26, .25);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 122, 26, .16), rgba(255, 122, 26, .04)),
        linear-gradient(180deg, #202027, #17171c);
    padding: 20px;
}

.reports-head h2 {
    margin-bottom: 0;
    font-size: 32px;
}

.reports-head .eyebrow {
    margin-top: 0;
}

.reports-head > span {
    border: 1px solid rgba(255, 122, 26, .32);
    border-radius: 8px;
    color: var(--orange-2);
    font-weight: 900;
    padding: 9px 12px;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.report-card {
    display: block;
    width: 100%;
    color: var(--text);
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #202027, #17171b);
    padding: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
    cursor: pointer;
}

.report-card:hover {
    border-color: rgba(255, 122, 26, .45);
    transform: translateY(-2px);
}

.report-card-top,
.report-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-card img {
    image-rendering: pixelated;
    border-radius: 6px;
    background: #101014;
}

.report-card-top img {
    width: 48px;
    height: 48px;
}

.report-card-top b,
.report-card-top span {
    display: block;
}

.report-status {
    color: var(--orange-2);
    font-size: 12px;
    font-weight: 900;
    margin-top: 4px;
}

.report-status.open {
    color: #ffcf5a;
}

.report-status.in_progress {
    color: #66c7ff;
}

.report-card p {
    min-height: 44px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    margin: 14px 0;
    padding: 12px 0 0;
}

.report-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 12px;
    padding: 12px 0;
}

.report-details span {
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 8px;
    background: rgba(255, 255, 255, .025);
    color: var(--text);
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 12px;
    padding: 8px;
}

.report-details b {
    display: block;
    color: var(--muted);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 11px;
    margin-bottom: 3px;
}

.report-meta {
    color: var(--muted);
    font-size: 13px;
}

.report-meta img {
    width: 24px;
    height: 24px;
}

.report-meta small {
    margin-left: auto;
    color: var(--muted);
}

.report-footnote {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    margin-top: 12px;
    padding-top: 10px;
}

.report-modal {
    width: min(760px, calc(100vw - 32px));
    border: 1px solid rgba(255, 122, 26, .28);
    border-radius: 8px;
    background: linear-gradient(180deg, #202027, #151519);
    color: var(--text);
    padding: 0;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .55);
}

.report-modal::backdrop {
    background: rgba(0, 0, 0, .68);
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding: 18px;
}

.modal-head .icon-btn {
    flex: 0 0 auto;
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 18px;
}

.modal-grid div,
.modal-reason,
.event-timeline {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .025);
}

.modal-grid div {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 12px;
}

.modal-grid b,
.modal-reason h3,
.event-timeline h3 {
    color: var(--orange-2);
}

.modal-grid span {
    overflow-wrap: anywhere;
    color: var(--muted);
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 12px;
}

.modal-reason,
.event-timeline {
    margin: 0 18px 18px;
    padding: 14px;
}

.modal-reason h3,
.event-timeline h3 {
    margin-bottom: 8px;
}

.modal-reason p,
.event-timeline p {
    margin: 0;
    color: var(--muted);
}

.event-timeline {
    display: grid;
    gap: 10px;
}

.event-timeline > div {
    border-left: 3px solid var(--orange);
    padding-left: 12px;
}

.event-timeline span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin: 3px 0 6px;
}

@media (max-width: 980px) {
    .sidebar {
        position: static;
        width: auto;
    }

    .app-shell {
        margin-left: 0;
        padding: 18px;
    }

    .toast-stack {
        grid-template-columns: 1fr;
        margin-top: 0;
    }

    .stats-grid,
    .today-grid,
    .content-grid,
    .split,
    .roles-layout,
    .settings-grid,
    .users-layout,
    .player-search,
    .player-layout,
    .branding-form {
        grid-template-columns: 1fr;
    }

    .table-row,
    .log-row {
        grid-template-columns: 1fr;
    }

    .log-row small {
        text-align: left;
    }

    .user-grid,
    .user-fields,
    .user-summary,
    .metric-list {
        grid-template-columns: 1fr;
    }

    .user-card-foot {
        align-items: stretch;
        flex-direction: column;
    }
}
