:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-2: #0b0807;
  --panel: rgba(18, 13, 11, .93);
  --panel-strong: #18100d;
  --panel-soft: rgba(255, 255, 255, .055);
  --line: rgba(255, 205, 119, .16);
  --line-strong: rgba(255, 205, 119, .28);
  --text: #fff7ef;
  --muted: #c8b7a1;
  --muted-2: #8f806e;
  --accent: #ff8a1f;
  --accent-2: #c95a08;
  --accent-rgb: 255, 138, 31;
  --success: #58d36b;
  --success-rgb: 88, 211, 107;
  --gold: #ffc94a;
  --orange: #ff8a1f;
  --red: #ff3a24;
  --blue: #52a7ff;
  --purple: #d8a45b;
  --shadow: rgba(0, 0, 0, .46);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), .1), transparent 34%),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    repeating-linear-gradient(45deg, #050505 0 12px, #100b09 12px 24px);
  background-size: auto, 32px 32px, 32px 32px, auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.auth-page {
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-shell {
  width: min(100%, 520px);
}

.auth-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), .14), transparent 44%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 10px, transparent 10px 20px),
    rgba(12, 16, 14, .88);
  box-shadow: 0 24px 70px var(--shadow), inset 0 -5px 0 rgba(0,0,0,.34);
  text-align: center;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 6px;
}

.auth-card h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: 0;
}

.auth-logo {
  width: 170px;
  height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.56));
}

.auth-copy {
  max-width: 410px;
  margin: 16px auto 24px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-alert {
  margin: 0 auto 18px;
  padding: 12px;
  border: 1px solid rgba(255, 79, 86, .32);
  border-radius: 6px;
  color: #ffd3d5;
  background: rgba(255, 79, 86, .12);
  text-align: left;
}

.auth-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn,
.icon-btn {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  color: var(--text);
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.35);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, filter .18s ease;
}

.btn:hover,
.icon-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 211, 79, .58);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 14px;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.btn--wide {
  width: 100%;
}

.btn--primary {
  border-color: rgba(255, 211, 79, .66);
  color: #fff7ef;
  background: linear-gradient(180deg, #ffb23a, #f07814);
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
}

.btn--discord {
  border-color: rgba(255, 211, 79, .54);
  background: linear-gradient(180deg, #ffb23a, #f07814);
  box-shadow: 0 12px 26px rgba(var(--accent-rgb), .24), inset 0 -3px 0 rgba(0,0,0,.35);
}

.btn--ghost {
  color: var(--text);
  background: rgba(255,255,255,.055);
}

.btn--danger {
  border-color: rgba(255,79,86,.45);
  color: #ffd4d7;
  background: rgba(255,79,86,.12);
}

.btn-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), .1), transparent 42%),
    repeating-linear-gradient(45deg, #070908 0 12px, #0b0f0c 12px 24px);
}

.loading-screen img {
  width: 132px;
  height: 132px;
  object-fit: contain;
  animation: floatIn .9s ease both;
}

.loading-screen span {
  color: var(--muted);
  font-weight: 900;
  animation: pulseText 1.2s ease infinite;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), .11), transparent 35%),
    repeating-linear-gradient(135deg, #080606 0 14px, #130b08 14px 28px);
  border-right: 1px solid var(--line);
  box-shadow: 16px 0 40px rgba(0,0,0,.35);
}

.brand {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.3);
  text-decoration: none;
}

.brand img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.55));
}

.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.side-nav {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.side-link {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  color: var(--text);
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.35);
  font-weight: 850;
  text-align: left;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.side-link:hover,
.side-link.is-active {
  transform: translateY(-1px);
  border-color: rgba(255, 211, 79, .56);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .24), rgba(255, 211, 79, .08));
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--gold);
  font-weight: 950;
}

.side-link strong {
  color: var(--gold);
}

.server-card {
  margin-top: 22px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,210,74,.14), rgba(255,255,255,.045));
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.35);
}

.server-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.server-row + .server-row {
  margin-top: 12px;
}

.online-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold);
}

.online-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(255, 211, 79, .7);
}

.live-refresh-dot {
  min-width: 78px;
  justify-content: flex-end;
}

.live-refresh-dot.is-refreshing {
  color: var(--accent);
}

.live-refresh-dot.is-refreshing::before {
  background: var(--accent);
  animation: pulseLiveRefresh .9s ease-in-out infinite;
}

.live-refresh-dot.is-error {
  color: var(--danger);
}

.live-refresh-dot.is-error::before {
  background: var(--danger);
  box-shadow: 0 0 14px rgba(255, 79, 86, .7);
}

.main {
  min-width: 0;
  padding: 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 16, 14, .76);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px var(--shadow), inset 0 -4px 0 rgba(0,0,0,.3);
}

.topbar,
.panel {
  scroll-margin-top: 18px;
}

.is-jump-highlight {
  animation: jumpHighlight 1.15s ease both;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0;
}

.topbar-meta,
.panel-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--text);
  font-size: 21px;
  font-weight: 900;
}

.user-pill {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  max-width: 230px;
  padding: 4px 10px 4px 4px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.25);
}

.user-pill strong,
.user-pill small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-pill small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.avatar-placeholder,
.user-pill img {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff7ef, var(--accent));
  color: #1d0703;
  font-weight: 950;
}

.user-pill img {
  object-fit: cover;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(128px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.stat-card {
  position: relative;
  min-height: 108px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 8px, transparent 8px 16px);
  box-shadow: 0 14px 28px rgba(0,0,0,.26), inset 0 -4px 0 rgba(0,0,0,.32);
  animation: riseIn .32s ease both;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 12px;
  font-size: 31px;
  line-height: 1;
  color: var(--text);
}

.stat-card i {
  position: absolute;
  top: 14px;
  right: 16px;
  color: rgba(255,255,255,.55);
  font-style: normal;
  font-weight: 900;
}

.stat-card--pending strong { color: var(--gold); }
.stat-card--progress strong { color: var(--blue); }
.stat-card--fixed strong { color: var(--success); }
.stat-card--rejected strong { color: var(--red); }

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 16px;
  margin-top: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 40px var(--shadow), inset 0 -4px 0 rgba(0,0,0,.28);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .1), rgba(255, 211, 79, .035));
}

.compact-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filters {
  display: grid;
  grid-template-columns: minmax(210px, 1.4fr) repeat(4, minmax(130px, 1fr));
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.16);
}

label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  background: rgba(255,255,255,.055);
  color: var(--text);
  outline: none;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.25);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

input,
select {
  height: 42px;
  padding: 0 11px;
}

textarea {
  min-height: 132px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 211, 79, .74);
  background: rgba(var(--accent-rgb), .08);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .16), inset 0 -3px 0 rgba(0,0,0,.25);
}

select option {
  color: #101711;
}

.ticket-table {
  display: grid;
}

.table-head,
.ticket-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.55fr) 132px 126px 156px 172px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.table-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}

.ticket-row {
  min-height: 80px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .18s ease;
  animation: riseIn .28s ease both;
}

.ticket-row:hover {
  background: rgba(var(--accent-rgb), .075);
}

.ticket-title {
  margin: 0;
  color: var(--text);
  font-weight: 950;
  line-height: 1.22;
}

.ticket-description-preview {
  display: -webkit-box;
  margin: 7px 0 0;
  max-width: 640px;
  overflow: hidden;
  color: #ffe1c7;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ticket-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ticket-evidence-inline {
  margin-top: 8px;
}

.evidence-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid rgba(var(--accent-rgb), .42);
  border-radius: 6px;
  color: #fff7ef;
  background: rgba(var(--accent-rgb), .14);
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
  overflow-wrap: anywhere;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.24);
}

.evidence-link:hover {
  border-color: rgba(255,210,74,.55);
  color: #ffffff;
  background: rgba(255,210,74,.18);
}

.evidence-link--inline {
  min-height: 24px;
  padding: 0 8px;
}

.mode-tag,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.mode-tag {
  color: #ffd8ce;
  background: rgba(var(--accent-rgb), .13);
  border-color: rgba(var(--accent-rgb), .38);
}

.mode-tag--box {
  color: #ffe8a1;
  background: rgba(255,210,74,.11);
  border-color: rgba(255,210,74,.32);
}

.badge {
  position: relative;
  overflow: hidden;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: currentColor;
  animation: badgePulse 1.5s ease infinite;
}

.badge--priority-low {
  color: #fff1cf;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 211, 79, .24);
}

.badge--status-fixed {
  color: #ccffd6;
  background: rgba(var(--success-rgb), .12);
  border-color: rgba(var(--success-rgb), .32);
}

.badge--priority-medium,
.badge--status-pending {
  color: #ffe8a6;
  background: rgba(255,210,74,.13);
  border-color: rgba(255,210,74,.32);
}

.badge--priority-high {
  color: #ffdabf;
  background: rgba(255,143,54,.14);
  border-color: rgba(255,143,54,.34);
}

.badge--priority-critical,
.badge--status-rejected {
  color: #ffc9cc;
  background: rgba(255,79,86,.13);
  border-color: rgba(255,79,86,.34);
}

.badge--status-in_progress {
  color: #cfe7ff;
  background: rgba(82,167,255,.12);
  border-color: rgba(82,167,255,.32);
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.quick-status {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  background: rgba(0,0,0,.2);
}

.quick-status button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font-weight: 950;
}

.quick-status button:hover,
.quick-status button.is-active {
  color: var(--gold);
  border-color: rgba(255, 211, 79, .45);
  background: rgba(var(--accent-rgb), .12);
}

.mini-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 5px;
  color: var(--text);
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.28);
}

.mini-btn:hover {
  border-color: rgba(255, 211, 79, .52);
}

.skeleton-row {
  height: 76px;
  margin: 12px 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.1), rgba(255,255,255,.04));
  background-size: 220% 100%;
  animation: skeleton 1.2s ease infinite;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 34px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 18px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.chart-stack {
  padding: 16px;
}

.chart-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.bar-track {
  height: 16px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.04);
}

.bar-fill {
  width: var(--value, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  box-shadow: 0 0 18px rgba(var(--accent-rgb), .26);
  transition: width .25s ease;
}

.bar-fill--red {
  background: linear-gradient(90deg, var(--red), var(--orange));
}

.bar-fill--blue {
  background: linear-gradient(90deg, var(--blue), var(--purple));
}

.activity-list {
  padding: 0 16px 16px;
}

.reporter-stack {
  padding: 0 16px 16px;
}

.reporter-card {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 14px;
}

.reporter-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.reporter-card-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.reporter-card-head strong {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  border: 1px solid rgba(255,210,74,.28);
  border-radius: 6px;
  color: var(--gold);
  background: rgba(255,210,74,.08);
  font-size: 12px;
}

.reporter-list {
  display: grid;
  gap: 9px;
}

.reporter-row {
  display: grid;
  grid-template-columns: 24px 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  background: rgba(0,0,0,.18);
}

.reporter-rank {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #1d0703;
  background: linear-gradient(180deg, var(--gold), var(--accent));
  font-size: 12px;
  font-weight: 950;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.25);
}

.reporter-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), .32);
  border-radius: 6px;
  background: rgba(var(--accent-rgb), .13);
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
}

.reporter-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reporter-main {
  min-width: 0;
}

.reporter-main strong,
.reporter-main span,
.reporter-score strong,
.reporter-score span,
.reporter-mini-stats span {
  display: block;
}

.reporter-main strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
}

.reporter-main span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.reporter-score {
  text-align: right;
}

.reporter-score strong {
  color: var(--gold);
  font-size: 19px;
  line-height: 1;
  font-weight: 950;
}

.reporter-score span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.reporter-mini-stats {
  grid-column: 3 / 5;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.reporter-mini-stats span {
  padding: 4px 6px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 5px;
  color: #ffe1c7;
  background: rgba(255,255,255,.045);
  font-size: 10px;
  font-weight: 900;
}

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

.reporters-table {
  padding: 0 14px 14px;
}

.reporters-table-head,
.reporter-table-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(5, minmax(88px, .55fr));
  align-items: center;
  gap: 10px;
}

.reporters-table-head {
  min-height: 42px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.reporter-table-row {
  min-height: 70px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.22);
}

.reporter-table-row > strong,
.reporter-table-row > span {
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
}

.reporter-table-row > span {
  color: #ffe1c7;
}

.reporter-person {
  display: grid;
  grid-template-columns: 24px 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.reporter-person strong,
.reporter-person span {
  display: block;
  overflow-wrap: anywhere;
}

.reporter-person strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
}

.reporter-person span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.reporter-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.reporter-badges--compact {
  gap: 4px;
  margin-top: 6px;
}

.reporter-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 211, 79, .36);
  border-radius: 5px;
  color: #fff8eb;
  background: linear-gradient(180deg, rgba(255, 169, 39, .24), rgba(255, 92, 24, .12));
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.26);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.15;
  text-transform: uppercase;
}

.reporter-badges--compact .reporter-badge {
  min-height: 18px;
  padding: 2px 5px;
  font-size: 9px;
}

.reporter-badge--top_reporter {
  border-color: rgba(255, 232, 123, .55);
  background: linear-gradient(180deg, rgba(255, 213, 66, .35), rgba(255, 128, 24, .18));
}

.reporter-badge--critical_hunter {
  border-color: rgba(255, 116, 116, .45);
  background: linear-gradient(180deg, rgba(255, 92, 24, .28), rgba(166, 34, 26, .18));
}

.reporter-badge--effective_reporter {
  border-color: rgba(124, 255, 184, .38);
  background: linear-gradient(180deg, rgba(44, 206, 124, .22), rgba(255, 169, 39, .1));
}

.reporter-badge--active_player {
  border-color: rgba(255, 255, 255, .34);
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255, 169, 39, .1));
}

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

.fixed-list {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.fixed-ticket {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), .1), transparent 58%),
    rgba(255,255,255,.045);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.26);
}

.fixed-ticket-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.fixed-ticket-title {
  min-width: 0;
}

.fixed-ticket-title h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.fixed-ticket-title p {
  margin: 7px 0 0;
  color: #ffe1c7;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.fixed-ticket-status {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.fixed-ticket-status strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.fixed-ticket-meta,
.fixed-ticket-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.fixed-ticket-meta span,
.fixed-ticket-footer span {
  min-height: 26px;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 5px;
  color: #fff4dc;
  background: rgba(255,255,255,.045);
  font-size: 12px;
  font-weight: 850;
}

.fixed-ticket-footer {
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 10px;
}

.event {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.event-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: linear-gradient(180deg, #fff7ef, var(--accent));
  color: #1d0703;
  font-size: 15px;
  font-weight: 950;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.32);
}

.event strong,
.event span {
  display: block;
  overflow-wrap: anywhere;
}

.event span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.modal {
  width: min(680px, calc(100% - 28px));
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
}

.modal--wide {
  width: min(980px, calc(100% - 28px));
}

.modal::backdrop {
  background: rgba(0, 0, 0, .68);
  backdrop-filter: blur(7px);
}

.modal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), .11), transparent 38%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.028) 0 10px, transparent 10px 20px),
    #0e1510;
  box-shadow: 0 24px 70px rgba(0,0,0,.6), inset 0 -5px 0 rgba(0,0,0,.34);
  animation: modalIn .2s ease both;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

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

.span-2 {
  grid-column: span 2;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 14px;
  padding: 16px;
}

.details-section {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.22);
}

.details-section h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.details-description {
  margin: 0;
  color: #d8eadc;
  line-height: 1.65;
  white-space: pre-wrap;
}

.evidence-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(var(--accent-rgb), .25);
  border-radius: 6px;
  background: rgba(var(--accent-rgb), .09);
}

.evidence-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.meta-item {
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  background: rgba(0,0,0,.18);
}

.meta-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.meta-item strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.history-list,
.comment-list {
  display: grid;
  gap: 9px;
}

.history-item,
.comment-item {
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  background: rgba(0,0,0,.18);
}

.history-item strong,
.comment-item strong {
  display: block;
  font-size: 13px;
}

.history-item span,
.comment-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.comment-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.toast-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100% - 32px));
}

.toast {
  padding: 12px 14px;
  border: 1px solid rgba(255, 211, 79, .36);
  border-radius: 6px;
  background: rgba(12, 18, 14, .94);
  box-shadow: 0 14px 30px rgba(0,0,0,.38), inset 0 -3px 0 rgba(0,0,0,.25);
  color: var(--text);
  font-weight: 800;
  animation: toastIn .22s ease both;
}

.toast--error {
  border-color: rgba(255,79,86,.42);
  color: #ffd4d7;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes jumpHighlight {
  0% {
    border-color: rgba(255, 210, 74, .92);
    box-shadow: 0 0 0 0 rgba(255, 210, 74, .4), 0 18px 40px var(--shadow), inset 0 -4px 0 rgba(0,0,0,.28);
  }
  55% {
    border-color: rgba(var(--accent-rgb), .85);
    box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .12), 0 18px 40px var(--shadow), inset 0 -4px 0 rgba(0,0,0,.28);
  }
  100% {
    border-color: var(--line);
    box-shadow: 0 18px 40px var(--shadow), inset 0 -4px 0 rgba(0,0,0,.28);
  }
}

@keyframes badgePulse {
  0%, 100% {
    opacity: .55;
    transform: scale(.86);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseLiveRefresh {
  0%, 100% {
    opacity: .65;
    transform: scale(.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes skeleton {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseText {
  0%, 100% {
    opacity: .55;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 1240px) {
  .app-shell {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .brand {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .brand span,
  .side-link span:not(.nav-icon),
  .server-card {
    display: none;
  }

  .side-link {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-field {
    grid-column: span 2;
  }

  .table-head {
    display: none;
  }

  .ticket-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 8px;
  }

  .row-actions {
    justify-content: flex-start;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .reporters-table-head {
    display: none;
  }

  .reporter-table-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
  }

  .reporter-person {
    grid-column: 1 / -1;
  }

  .fixed-ticket-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .fixed-ticket-status {
    justify-items: start;
  }

  .fixed-ticket-footer {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .auth-page {
    padding: 14px;
  }

  .auth-card {
    padding: 24px;
  }

  .auth-card h1 {
    font-size: 26px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 12px;
  }

  .brand {
    grid-template-columns: 60px 1fr;
    justify-items: start;
    min-height: 82px;
  }

  .brand img {
    width: 60px;
    height: 60px;
  }

  .brand span,
  .side-link span:not(.nav-icon) {
    display: block;
  }

  .side-nav {
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 6px;
    margin-top: 12px;
  }

  .side-link {
    grid-template-columns: 1fr;
    min-height: 56px;
    padding: 6px;
    justify-items: center;
    text-align: center;
    font-size: 12px;
  }

  .side-link strong {
    display: none;
  }

  .main {
    padding: 12px;
  }

  .topbar,
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions,
  .compact-actions {
    justify-content: flex-start;
  }

  .stats-grid,
  .filters,
  .form-grid,
  .meta-grid {
    grid-template-columns: 1fr;
  }

  .search-field,
  .span-2 {
    grid-column: auto;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
