:root {
  --bg: #07090d;
  --panel: #101722;
  --panel-2: #172230;
  --text: #f7f8fb;
  --muted: #b9c1ce;
  --line: rgba(255, 255, 255, .14);
  --red: #c8482c;
  --blue: #3477aa;
  --green: #27863c;
  --gold: #f2c84b;
  --cyan: #27d7ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

section[id],
header[id] {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: Poppins, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 78px;
  background:
    radial-gradient(circle at 76% 36%, rgba(52, 119, 170, .24), transparent 32%),
    linear-gradient(90deg, rgba(5, 7, 11, .97) 0%, rgba(5, 7, 11, .79) 45%, rgba(5, 7, 11, .44) 100%),
    url("https://pandahut.net/wp-content/uploads/2017/04/pandahut-youtube-channel-illustration-2560x1440-low1.jpg") center / cover;
  position: relative;
  overflow: hidden;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 10;
  min-height: 78px;
  padding: 12px clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 10, 14, .76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.9vw, 24px);
  max-width: calc(100vw - 160px);
  overflow-x: auto;
  scrollbar-width: thin;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 6px;
  padding: 6px 8px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 14px;
  overflow: hidden;
  transition: color .18s ease, transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease, background .22s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold);
  background: rgba(242, 200, 75, .08);
  box-shadow: inset 0 0 0 1px rgba(242, 200, 75, .08);
  transform: translateY(-1px);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a:active::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav-links a:active {
  transform: translateY(0) scale(.985);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, .07);
  color: var(--text);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  width: 100%;
  max-width: 100%;
  min-height: calc(100vh - 78px);
  min-height: calc(100svh - 78px);
  padding: clamp(42px, 7vw, 94px) clamp(24px, 5vw, 70px);
  display: grid;
  grid-template-columns: minmax(280px, 660px) 1fr;
  align-items: center;
  gap: 28px;
}

.hero h1 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: .98;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  color: var(--text);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
}

.hero-copy a:not(.button) {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0;
  font-size: 13px;
}

.hero-actions,
.status-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease, filter .2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .26), 0 0 0 1px rgba(255, 255, 255, .08);
}

.button:active {
  transform: translateY(0) scale(.985);
}

.danger {
  background: #b8322a;
}

.small-button {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 13px;
}

.primary {
  background: var(--red);
}

.secondary {
  background: var(--blue);
}

.ghost {
  background: var(--green);
}

.server-art {
  justify-self: end;
  align-self: end;
  width: min(36vw, 390px);
  min-width: 230px;
  filter: drop-shadow(0 24px 25px rgba(0, 0, 0, .48));
}

.section {
  width: 100%;
  max-width: 100%;
  padding: clamp(62px, 8vw, 108px) clamp(20px, 4vw, 52px);
}

.about {
  color: #151923;
  background: #f7f8fb;
}

.section-heading {
  max-width: 840px;
  margin: 0 auto 38px;
  text-align: center;
}

.left-heading {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.community-band h2,
.store-hero h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p:last-child,
.community-band p,
.store-hero p,
.kit-showcase p {
  color: #657184;
  line-height: 1.7;
}

.feature-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 310px;
  padding: 26px;
  border: 1px solid #dce1e8;
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 18px 45px rgba(12, 20, 30, .07);
}

.feature-card img,
.stat-ring {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.feature-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}

.feature-card p {
  color: #323a46;
  line-height: 1.6;
}

.feature-card a {
  margin-top: auto;
  color: #315fa6;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-ring {
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  background: conic-gradient(#375abb 0 99%, #e5e8ee 99% 100%);
}

.status-section {
  background:
    linear-gradient(180deg, rgba(7, 9, 13, .96), rgba(12, 18, 26, .98)),
    url("https://pandahut.net/wp-content/uploads/2017/04/pandahut-youtube-channel-illustration-2560x1440-low1.jpg") center / cover fixed;
}

.status-section .section-heading,
.status-shell {
  max-width: 1480px;
  margin: 0 auto;
}

.kit-showcase {
  max-width: 1240px;
  margin: 0 auto;
}

.status-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.status-summary article,
.server-card,
.rank-card,
.staff-profile,
.rank-group,
.kit-showcase {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .065);
  box-shadow: var(--shadow);
}

.status-summary article {
  min-height: 104px;
  padding: 20px;
  display: grid;
  align-content: center;
}

.status-summary span {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1;
}

.status-summary small {
  margin-top: 8px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 800;
}

.status-toolbar {
  justify-content: space-between;
  align-items: center;
  margin: 24px 0;
}

.server-filters,
.store-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-chip,
.store-tab {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.active,
.store-tab.active {
  border-color: rgba(242, 200, 75, .8);
  color: #10131a;
  background: var(--gold);
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 16px;
}

.server-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.server-card {
  overflow: hidden;
  background: rgba(13, 19, 28, .94);
}

.server-grid.compact .server-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  min-height: 116px;
}

.server-card img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  background: #151b24;
}

.server-grid.compact .server-card img {
  height: 100%;
  aspect-ratio: auto;
}

.server-card-body {
  padding: 18px;
}

.server-grid.compact .server-card-body {
  padding: 12px;
}

.server-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.25;
}

.server-grid.compact .server-card h3 {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.25;
}

.server-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.server-grid.compact .server-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.server-meta span {
  padding: 9px;
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, .06);
  font-size: 13px;
}

.server-grid.compact .server-meta span {
  padding: 0;
  background: transparent;
  font-size: 12px;
}

.server-meta strong {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.server-grid.compact .server-meta strong {
  display: inline;
  margin-right: 4px;
  font-size: 12px;
}

.server-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  align-items: center;
}

.server-grid.compact .server-topline {
  margin-bottom: 7px;
  font-size: 13px;
}

.server-pill {
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.server-grid.compact .server-pill {
  padding: 4px 7px;
  font-size: 11px;
}

.server-pill.online {
  color: #132016;
  background: #6ee58a;
}

.server-pill.offline {
  color: #fff;
  background: var(--red);
}

.skeleton {
  min-height: 245px;
  padding: 18px;
}

.skeleton span {
  display: block;
  height: 18px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
}

.community-band {
  padding: clamp(52px, 7vw, 92px) clamp(22px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(260px, 560px) minmax(230px, 420px) auto;
  gap: 34px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, .94), rgba(13, 25, 35, .82)),
    url("https://pandahut.net/wp-content/uploads/2017/04/pandahut-youtube-channel-illustration-2560x1440-low1.jpg") center / cover;
}

.community-band img {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
}

.staff-section {
  background:
    radial-gradient(circle at 18% 12%, rgba(52, 119, 170, .2), transparent 28%),
    linear-gradient(180deg, #0d1118, #090c12 72%);
}

.staff-section .section-heading p:last-child {
  color: var(--muted);
}

.staff-layout {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 640px) 1fr;
  gap: 22px;
  align-items: start;
}

.staff-layout > *,
.staff-profile,
.profile-top > div,
.profile-facts,
.profile-facts div,
.profile-facts dd,
.staff-card > span:last-child {
  min-width: 0;
}

.staff-overview {
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.staff-overview span {
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  align-content: center;
  color: var(--muted);
  background: rgba(255, 255, 255, .055);
}

.staff-overview strong {
  display: block;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.staff-ranks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.rank-group {
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .082), rgba(255, 255, 255, .045));
  box-shadow: 0 18px 45px rgba(0, 0, 0, .2);
}

.rank-group h3 {
  margin: 0;
  padding: 14px 14px 10px 18px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
}

.rank-group::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--rank-color, var(--gold));
}

.rank-group.server-admin h3 {
  background: transparent;
}

.rank-group.community-admins h3 {
  background: transparent;
  color: var(--text);
}

.rank-group.admins h3 {
  background: transparent;
  color: var(--text);
}

.rank-group.developer h3 {
  background: transparent;
  color: var(--text);
}

.rank-group.supermods h3 {
  background: transparent;
  color: var(--text);
}

.rank-group.moderators h3 {
  background: transparent;
}

.rank-group.trials h3 {
  background: transparent;
}

.rank-group.server-admin {
  --rank-color: #27d7ff;
}

.rank-group.community-admins {
  --rank-color: #ba61ff;
}

.rank-group.admins {
  --rank-color: #5d8dff;
}

.rank-group.developer {
  --rank-color: #8b3dff;
}

.rank-group.supermods {
  --rank-color: #f04c42;
}

.rank-group.moderators {
  --rank-color: #f2c84b;
}

.rank-group.trials {
  --rank-color: #55d46b;
}

.staff-list {
  display: grid;
  gap: 7px;
  padding: 0 10px 10px 14px;
}

.staff-card {
  min-height: 44px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  background: rgba(10, 16, 24, .68);
  text-align: left;
  cursor: pointer;
}

.staff-card.active,
.staff-card:hover {
  border-color: color-mix(in srgb, var(--rank-color, var(--gold)) 70%, white 10%);
  background: rgba(255, 255, 255, .1);
  transform: translateY(-1px);
}

.avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #10131a;
  background: var(--rank-color, var(--gold));
  font-weight: 800;
  overflow: hidden;
}

.avatar img,
.profile-avatar img,
.panel-user-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.staff-card strong,
.staff-card small {
  display: block;
}

.staff-card small {
  color: var(--muted);
  margin-top: 2px;
  font-size: 11px;
}

.staff-profile {
  min-height: 405px;
  position: sticky;
  top: 98px;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(22, 32, 45, .97), rgba(10, 15, 23, .97)),
    url("https://pandahut.net/wp-content/uploads/2021/06/logo-2.png") calc(100% - 34px) calc(100% - 28px) / 118px no-repeat;
}

.staff-profile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border-top: 4px solid var(--active-rank-color, var(--gold));
}

.profile-top {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.profile-avatar {
  width: 86px;
  height: 86px;
  font-size: 34px;
}

.staff-profile h3 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.staff-profile p {
  color: var(--muted);
  line-height: 1.7;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}

.profile-facts div:last-child {
  grid-column: 1 / -1;
}

.profile-facts div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
}

.profile-facts div:first-child {
  border-color: color-mix(in srgb, var(--active-rank-color, var(--gold)) 62%, transparent);
}

.profile-facts dt {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-facts dd {
  margin: 7px 0 0;
  color: var(--text);
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-facts a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-note {
  margin: 0;
  border-left: 4px solid var(--green);
  padding-left: 15px;
}

.store-section {
  padding: clamp(62px, 8vw, 108px) clamp(20px, 4vw, 52px);
  background:
    linear-gradient(180deg, rgba(8, 11, 16, .96), rgba(6, 8, 12, .98)),
    url("https://pandahut.net/wp-content/uploads/2017/04/pandahut-youtube-channel-illustration-2560x1440-low1.jpg") center / cover;
}

.store-hero {
  max-width: 1240px;
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: minmax(280px, 660px) 1fr;
  gap: 24px;
  align-items: end;
}

.store-tabs {
  justify-content: flex-end;
}

.perk-panel {
  max-width: 1240px;
  margin: 0 auto 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(240px, 430px) 1fr;
  gap: 22px;
  align-items: start;
  background: rgba(255, 255, 255, .065);
  box-shadow: var(--shadow);
}

.perk-panel h3 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.perk-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.perk-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.perk-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 10, 15, .5);
}

.perk-item strong {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 13px;
  text-transform: uppercase;
}

.perk-item span {
  color: var(--text);
  line-height: 1.45;
}

.perk-info {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(242, 200, 75, .52);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  color: #10131a !important;
  background: var(--gold);
  text-transform: none;
  cursor: help;
  flex: 0 0 18px;
  transform: translateY(-1px);
}

.perk-info::before,
.perk-info::after {
  content: "";
  position: absolute;
  left: 50%;
  background: #10131a;
  transform: translateX(-50%);
}

.perk-info::before {
  top: 4px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
}

.perk-info::after {
  top: 8px;
  width: 3px;
  height: 6px;
  border-radius: 999px;
}

.perk-tooltip {
  width: min(280px, calc(100vw - 48px));
  padding: 10px 11px;
  border: 1px solid rgba(242, 200, 75, .46);
  border-radius: 8px;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 10;
  color: var(--text) !important;
  background: rgba(8, 10, 14, .96);
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-transform: none;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}

.perk-info:hover .perk-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.rank-cards {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.rank-card {
  min-height: 392px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, .95);
  color: #151923;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .26);
}

.rank-card img {
  width: 145px;
  height: 120px;
  object-fit: contain;
}

.rank-card h3 {
  margin: 10px 0 6px;
  font-size: 27px;
}

.rank-card strong {
  color: #10131a;
}

.rank-card p {
  color: #445064;
  line-height: 1.55;
  font-size: 14px;
}

.rank-card .button {
  margin-top: auto;
  width: 100%;
  background: #10131a;
}

.vip {
  border-top: 5px solid #73cf3b;
}

.vip-plus {
  border-top: 5px solid #eadf76;
}

.mvp {
  border-top: 5px solid #5da2ff;
}

.mvp-plus {
  border-top: 5px solid #e33b36;
}

.mvp-plus-plus {
  border-top: 5px solid var(--gold);
}

.kit-showcase {
  margin-top: 20px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 22px;
}

.kit-showcase h3 {
  margin: 0 0 10px;
  font-size: 28px;
}

.kit-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.kit-strip figure {
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: #151923;
  text-align: center;
}

.kit-strip img {
  width: 100%;
  height: 110px;
  object-fit: contain;
}

.kit-strip figcaption {
  margin-top: 8px;
  font-weight: 800;
  font-size: 13px;
}

.footer {
  padding: 16px clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  background: #07090d;
  border-top: 1px solid var(--line);
}

.footer img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.staff-panel-section {
  padding: clamp(62px, 8vw, 108px) clamp(20px, 4vw, 52px);
  background:
    linear-gradient(180deg, rgba(8, 11, 16, .98), rgba(12, 18, 26, .96)),
    url("https://pandahut.net/wp-content/uploads/2017/04/pandahut-youtube-channel-illustration-2560x1440-low1.jpg") center / cover;
}

.panel-body {
  min-height: 100vh;
  background: #07090d;
}

.standalone-panel {
  min-height: 100vh;
  padding: 0 10px 32px 0;
}

.toast-region {
  position: fixed;
  z-index: 100;
  top: 18px;
  right: 18px;
  width: min(390px, calc(100vw - 36px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  --toast-accent: var(--gold);
  --toast-glow: rgba(242, 200, 75, .15);
  position: relative;
  min-height: 72px;
  padding: 14px 12px 16px 15px;
  border: 1px solid color-mix(in srgb, var(--toast-accent) 38%, rgba(255, 255, 255, .14));
  border-radius: 8px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  gap: 12px;
  align-items: start;
  color: var(--text);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--toast-accent) 12%, transparent), transparent 52%),
    rgba(10, 15, 23, .94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .34), 0 0 0 1px rgba(255, 255, 255, .035);
  overflow: hidden;
  opacity: 0;
  transform: translateX(calc(100% + 32px)) translateY(-2px);
  transition: opacity .28s ease, transform .42s cubic-bezier(.16, 1, .3, 1), filter .16s ease, background .16s ease;
  backdrop-filter: blur(14px);
  pointer-events: auto;
  touch-action: pan-y;
  user-select: none;
}

.toast.visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.toast.pressed {
  filter: brightness(.76) saturate(.9);
}

.toast.dragging {
  cursor: grabbing;
  opacity: var(--toast-drag-opacity, 1);
  transform: translateX(var(--toast-drag-x, 0));
  transition: none;
}

.toast.returning {
  opacity: var(--toast-drag-opacity, 1);
  transform: translateX(var(--toast-drag-x, 0));
  transition: opacity .2s ease, transform .22s cubic-bezier(.2, .8, .2, 1), filter .16s ease;
}

.toast.success {
  --toast-accent: #2dd46c;
  --toast-glow: rgba(45, 212, 108, .16);
}

.toast.error {
  --toast-accent: #ef4444;
  --toast-glow: rgba(239, 68, 68, .18);
}

.toast.leaving {
  opacity: 0;
  transform: translateX(calc(100% + 46px)) translateY(0);
  transition: opacity .28s ease, transform .34s cubic-bezier(.7, 0, .2, 1);
  pointer-events: none;
}

.toast.swiped-away {
  opacity: 0;
  transform: translateX(calc(100% + 46px)) translateY(0);
  transition: opacity .18s ease, transform .24s cubic-bezier(.7, 0, .2, 1);
  pointer-events: none;
}

.toast-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  position: relative;
  display: grid;
  place-items: center;
  background: var(--toast-accent);
  box-shadow: 0 0 0 5px var(--toast-glow);
}

.toast-icon::before {
  content: "i";
  color: #071018;
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
}

.toast.success .toast-icon::before {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 3px solid #071018;
  border-bottom: 3px solid #071018;
  transform: translateY(-1px) rotate(-45deg);
}

.toast.error .toast-icon::before {
  content: "!";
}

.toast-content {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.toast-content strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.15;
}

.toast-content span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.toast-close {
  position: relative;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #f7f8fb;
  background: rgba(255, 255, 255, .105);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}

.toast-close span {
  color: transparent;
  font-size: 0;
}

.toast-close::before,
.toast-close::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.toast-close::before {
  transform: rotate(45deg);
}

.toast-close::after {
  transform: rotate(-45deg);
}

.toast-close:hover,
.toast-close:focus-visible {
  color: #071018;
  border-color: color-mix(in srgb, var(--toast-accent) 52%, rgba(255, 255, 255, .16));
  background: var(--toast-accent);
  transform: translateY(-1px);
}

.toast-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--toast-accent);
  transform-origin: left center;
  animation: toast-progress 3.6s linear forwards;
}

@keyframes toast-progress {
  to {
    transform: scaleX(0);
  }
}

.panel-shell {
  max-width: none;
  margin: 0;
}

.panel-login {
  min-height: calc(100vh - 110px);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 440px);
  gap: 24px;
  align-items: center;
  justify-content: center;
  max-width: 980px;
  margin: 0 auto;
}

.panel-login-copy h2,
.panel-login-copy h1,
.panel-page-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
}

.panel-login-copy p:last-child,
.panel-page-heading {
  color: var(--muted);
}

.login-card,
.editor-form,
.account-form,
.account-table,
.panel-sidebar,
.panel-content {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .065);
  box-shadow: var(--shadow);
}

.login-card,
.editor-form,
.account-form {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.login-card {
  justify-items: stretch;
}

.login-card label,
.editor-form label,
.account-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}

.field-hint,
.panel-muted-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-transform: none;
}

.panel-muted-note {
  max-width: 760px;
  margin: 8px 0 0;
}

.login-hint {
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.login-card > .login-hint {
  width: min(100%, 340px);
  justify-self: center;
  margin-top: 8px;
}

.login-card input,
.editor-form input,
.editor-form textarea,
.account-form input,
.account-form select,
.account-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  color: var(--text);
  background: rgba(5, 8, 13, .72);
  font: inherit;
}

.login-card option,
.editor-form option,
.account-form option,
.rich-editor-toolbar option {
  color: #10131a;
  background: #fff;
}

.rank-select,
.assignee-select,
.account-form select.rank-select,
.account-edit-form select.rank-select,
.bug-detail-edit-form select.assignee-select {
  min-height: 48px;
  border-color: rgba(255, 209, 63, .28);
  padding-right: 44px;
  appearance: none;
  color: #f7f8fb;
  background:
    linear-gradient(45deg, transparent 50%, #f2c84b 50%) calc(100% - 24px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, rgba(255, 209, 63, .13), rgba(5, 8, 13, .76) 46%, rgba(9, 16, 25, .82)),
    rgba(5, 8, 13, .82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035), 0 8px 18px rgba(0, 0, 0, .16);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

.rank-select:hover,
.assignee-select:hover,
.rank-select:focus,
.assignee-select:focus {
  border-color: rgba(255, 209, 63, .55);
  box-shadow: inset 0 0 0 1px rgba(255, 209, 63, .08), 0 10px 22px rgba(0, 0, 0, .22);
}

.rank-select:focus-visible,
.assignee-select:focus-visible {
  outline: 2px solid rgba(242, 200, 75, .72);
  outline-offset: 3px;
}

.assignee-select,
.bug-detail-edit-form select.assignee-select {
  border-color: rgba(93, 141, 255, .36);
  background:
    linear-gradient(45deg, transparent 50%, #8fb2ff 50%) calc(100% - 24px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, rgba(93, 141, 255, .14), rgba(5, 8, 13, .76) 48%, rgba(9, 16, 25, .82)),
    rgba(5, 8, 13, .82);
}

.assignee-select:hover,
.assignee-select:focus {
  border-color: rgba(93, 141, 255, .62);
}

.rank-select option,
.assignee-select option,
.rank-select optgroup,
.assignee-select optgroup {
  color: #10151e;
  background: #f7f8fb;
  font-weight: 800;
}

.rank-select optgroup,
.assignee-select optgroup {
  color: #6b5210;
}

.login-card input::placeholder,
.editor-form input::placeholder,
.editor-form textarea::placeholder,
.account-form input::placeholder,
.account-form textarea::placeholder,
.steam-form input::placeholder,
.vacation-form textarea::placeholder {
  color: rgba(247, 248, 251, .56);
}

.editor-form textarea,
.account-form textarea {
  resize: vertical;
}

.rich-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(5, 8, 13, .72);
}

.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .08);
}

.rich-editor-toolbar button,
.rich-editor-toolbar select,
.rich-editor-toolbar .editor-size-field,
.rich-editor-toolbar .editor-color {
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--text);
  background: rgba(6, 10, 15, .72);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
}

.rich-editor-toolbar button {
  display: inline-flex;
  min-width: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.rich-editor-toolbar button:hover,
.rich-editor-toolbar select:hover,
.editor-size-field:hover,
.editor-color:hover {
  border-color: rgba(242, 200, 75, .72);
  background: rgba(242, 200, 75, .13);
}

.rich-editor-toolbar select {
  height: 40px;
  max-width: 150px;
  color: var(--text);
}

.rich-editor-toolbar .editor-size-field {
  display: inline-flex !important;
  width: 86px;
  grid-template-columns: none;
  align-items: center;
  gap: 6px;
}

.rich-editor-toolbar .editor-size-field input {
  width: 42px;
  height: 24px;
  border: 0;
  padding: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  outline: none;
}

.rich-editor-toolbar .editor-size-field input::-webkit-outer-spin-button,
.rich-editor-toolbar .editor-size-field input::-webkit-inner-spin-button {
  margin: 0;
}

.rich-editor-toolbar .editor-size-field input::placeholder {
  color: rgba(247, 248, 251, .54);
}

.rich-editor-toolbar .editor-color {
  display: inline-flex !important;
  width: 46px;
  grid-template-columns: none;
  gap: 6px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.rich-editor-toolbar .editor-color span {
  line-height: 1;
}

.rich-editor-toolbar .editor-color input {
  width: 18px;
  height: 18px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.toolbar-separator {
  width: 1px;
  height: 32px;
  margin: 0 4px;
  background: var(--line);
}

.rich-editor-surface {
  min-height: 320px;
  padding: 18px;
  color: var(--text);
  line-height: 1.7;
  outline: none;
  overflow: auto;
}

.rich-editor-surface:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

.rich-editor-surface h3,
.guideline-body h3 {
  margin: 18px 0 8px;
  color: var(--text);
  font-size: 24px;
}

.rich-editor-surface blockquote,
.guideline-body blockquote {
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, .06);
}

.rich-editor-surface pre,
.guideline-body pre,
.rich-editor-surface code,
.guideline-body code {
  border-radius: 6px;
  padding: 3px 6px;
  color: #f7f8fb;
  background: rgba(0, 0, 0, .32);
  font-family: Consolas, "Courier New", monospace;
}

.rich-editor-surface img,
.guideline-body img {
  display: block;
  max-width: min(100%, 920px);
  max-height: 620px;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
}

.login-hint,
.form-message {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.setup-banner {
  padding: 13px;
  border: 1px solid rgba(242, 200, 75, .55);
  border-radius: 8px;
  background: rgba(242, 200, 75, .12);
}

.setup-banner strong,
.setup-banner span {
  display: block;
}

.setup-banner span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
}

.panel-app {
  --sidebar-motion: .28s cubic-bezier(.55, 0, .18, 1);
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 14px;
  transition: grid-template-columns var(--sidebar-motion), gap var(--sidebar-motion);
}

.panel-app.sidebar-collapsed {
  grid-template-columns: 70px minmax(0, 1fr);
}

.hidden {
  display: none !important;
}

.panel-sidebar {
  padding: 16px;
  align-self: start;
  position: sticky;
  top: 12px;
  min-height: 0;
  height: calc(100vh - 24px);
  height: calc(100dvh - 24px);
  max-height: calc(100dvh - 24px);
  border-radius: 0 8px 8px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 200, 75, .4) rgba(255, 255, 255, .045);
  transition: padding var(--sidebar-motion), gap var(--sidebar-motion), border-color .2s ease, background .2s ease;
}

.panel-sidebar::-webkit-scrollbar {
  width: 8px;
}

.panel-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .045);
  border-radius: 999px;
}

.panel-sidebar::-webkit-scrollbar-thumb {
  border: 2px solid rgba(6, 10, 15, .72);
  border-radius: 999px;
  background: rgba(242, 200, 75, .44);
}

.panel-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(242, 200, 75, .64);
}

.panel-mobile-header {
  display: none;
}

.panel-mobile-menu {
  display: contents;
}

.panel-sidebar-top {
  position: absolute;
  top: 26px;
  right: 26px;
  z-index: 3;
  display: grid;
  place-items: center;
  transition: top var(--sidebar-motion), right var(--sidebar-motion), width var(--sidebar-motion), transform var(--sidebar-motion);
}

.panel-collapse-button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 209, 63, .22);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff4c2;
  background:
    linear-gradient(180deg, rgba(255, 209, 63, .12), rgba(255, 209, 63, .035)),
    rgba(6, 10, 15, .92);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(255, 255, 255, .035);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.panel-collapse-button:hover,
.panel-collapse-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 209, 63, .46);
  background:
    linear-gradient(180deg, rgba(255, 209, 63, .18), rgba(255, 209, 63, .055)),
    rgba(8, 12, 18, .96);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .055);
}

.panel-collapse-button span {
  width: 9px;
  height: 9px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: translateX(2px) rotate(45deg);
  font-size: 0;
  line-height: 0;
  transition: transform .28s cubic-bezier(.2, .78, .22, 1), border-color .18s ease;
}

.panel-app.sidebar-collapsed .panel-collapse-button span {
  transform: translateX(-2px) rotate(225deg);
}

.panel-user-card {
  position: relative;
  margin-top: 0;
  max-height: 240px;
  padding: 12px;
  padding-right: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 10, 15, .42);
  transform-origin: top center;
  overflow: hidden;
  transition: max-height var(--sidebar-motion), opacity .18s ease, transform var(--sidebar-motion), padding var(--sidebar-motion), margin var(--sidebar-motion), border-color .2s ease;
}

.panel-user-card .eyebrow {
  margin-bottom: 8px;
  font-size: 10px;
}

.panel-user-identity {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
  margin-bottom: 10px;
}

.panel-user-avatar {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(242, 200, 75, .42);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #10131a;
  background: var(--gold);
  font-weight: 900;
  overflow: hidden;
}

.panel-sidebar h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.15;
}

.panel-user-identity h3 {
  margin: 0;
  min-width: 0;
  font-size: 18px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.panel-user-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#panel-user-rank {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  color: #10131a;
  background: var(--panel-rank-color, var(--gold));
  border: 1px solid color-mix(in srgb, var(--panel-rank-color, var(--gold)) 70%, white 14%);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--panel-rank-color, var(--gold)) 24%, transparent);
  font-weight: 800;
  font-size: 11px;
  line-height: 1.2;
}

.permission-pill {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
  font-size: 11px;
  line-height: 1.2;
}

.permission-override-pill {
  color: #fff5f3;
  background: linear-gradient(135deg, #c8482c, #7e1f18);
  border: 1px solid rgba(255, 126, 105, .54);
  box-shadow: 0 8px 18px rgba(200, 72, 44, .24);
}

.panel-tabs {
  margin: 0;
  display: grid;
  gap: 14px;
  transition: gap var(--sidebar-motion), transform var(--sidebar-motion);
}

.panel-nav-section {
  display: grid;
  gap: 7px;
  transition: gap var(--sidebar-motion);
}

.panel-section-title {
  max-height: 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  overflow: hidden;
  transition: max-height var(--sidebar-motion), opacity .16s ease, transform var(--sidebar-motion), margin var(--sidebar-motion);
}

.panel-tab {
  position: relative;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  background: rgba(6, 10, 15, .68);
  text-align: left;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.22;
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
  transition: width var(--sidebar-motion), height var(--sidebar-motion), min-height var(--sidebar-motion), transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease, padding var(--sidebar-motion), gap var(--sidebar-motion);
}

.panel-tab-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #10131a;
  background: var(--gold);
  font-size: 11px;
  font-weight: 900;
  transition: width var(--sidebar-motion), height var(--sidebar-motion), transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.panel-tab-text {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: anywhere;
  opacity: 1;
  transform: translateX(0);
  transition: max-width var(--sidebar-motion), opacity .16s ease, transform var(--sidebar-motion);
}

.panel-back-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--gold);
}

.panel-tab.active,
.panel-tab:hover {
  border-color: rgba(242, 200, 75, .72);
  background: rgba(242, 200, 75, .13);
}

.panel-tab:hover,
.panel-tab:focus-visible {
  transform: translateX(2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

.panel-tab:hover .panel-tab-icon,
.panel-tab:focus-visible .panel-tab-icon,
.panel-tab.active .panel-tab-icon {
  transform: scale(1.04);
  box-shadow: 0 8px 18px rgba(242, 200, 75, .18);
}

.panel-tab:active {
  transform: translateX(1px) scale(.99);
}

.panel-content {
  min-height: calc(100vh - 72px);
  overflow: visible;
}

.panel-sidebar-footer {
  margin-top: auto;
}

.panel-sidebar-footer .button {
  width: 100%;
}

#logout-button {
  border-color: rgba(239, 68, 68, .58);
  color: #fff;
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  box-shadow: 0 12px 24px rgba(185, 28, 28, .22);
}

#logout-button:hover,
#logout-button:focus-visible {
  border-color: rgba(255, 255, 255, .22);
  background: linear-gradient(135deg, #991b1b, #dc2626);
  box-shadow: 0 16px 30px rgba(185, 28, 28, .32);
}

.panel-app.sidebar-collapsed .panel-sidebar {
  padding: 12px 10px;
  align-items: center;
  gap: 11px;
}

.panel-app.sidebar-collapsed .panel-sidebar-top {
  position: static;
  width: 100%;
  display: grid;
  place-items: center;
}

.panel-app.sidebar-collapsed .panel-user-card {
  max-height: 0;
  margin: 0;
  padding: 0;
  border-color: transparent;
  opacity: 0;
  transform: translateY(-8px) scale(.96);
  pointer-events: none;
}

.panel-app.sidebar-collapsed #website-management-pill,
.panel-app.sidebar-collapsed #permission-override-pill {
  display: none !important;
}

.panel-app.sidebar-collapsed .panel-section-title {
  max-height: 0;
  margin: 0;
  opacity: 0;
  transform: translateX(-6px);
}

.panel-app.sidebar-collapsed .panel-tab-text {
  position: absolute;
  width: 1px;
  max-width: 1px;
  height: 1px;
  margin: -1px;
  opacity: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-8px);
}

.panel-app.sidebar-collapsed .panel-tab-text,
.panel-app.sidebar-collapsed .panel-back-link span:not(.panel-tab-icon) {
  opacity: 0;
}

.panel-app.sidebar-collapsed .panel-sidebar-footer {
  display: block;
  width: 100%;
  margin-top: auto;
}

.panel-app.sidebar-collapsed #logout-button {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0;
}

.panel-app.sidebar-collapsed #logout-button::before {
  content: "OUT";
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
}

.panel-app.sidebar-collapsed .panel-tabs,
.panel-app.sidebar-collapsed .panel-nav-section {
  width: 44px;
  justify-items: center;
}

.panel-app.sidebar-collapsed .panel-tabs {
  gap: 11px;
}

.panel-app.sidebar-collapsed .panel-nav-section {
  gap: 9px;
}

.panel-app.sidebar-collapsed .panel-tab {
  width: 44px;
  height: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  padding: 6px;
  gap: 0;
}

.panel-app.sidebar-collapsed .panel-tab-icon {
  width: 30px;
  height: 30px;
}

.panel-app.sidebar-collapsed .panel-tab:hover,
.panel-app.sidebar-collapsed .panel-tab:focus-visible {
  transform: translateY(-1px);
}

@media (max-width: 1200px) {
  .staff-panel-section {
    padding: 10px;
  }

  .standalone-panel {
    padding: 10px;
  }

  .panel-app,
  .panel-app.sidebar-collapsed {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .panel-sidebar,
  .panel-app.sidebar-collapsed .panel-sidebar {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    min-height: 0;
    padding: 12px;
    align-items: stretch;
    gap: 12px;
    position: static;
    overflow: visible;
    border-radius: 8px;
  }

  .panel-sidebar-top {
    display: none;
  }

  .panel-app.sidebar-collapsed .panel-user-card {
    max-height: 240px;
    margin: 0;
    padding: 12px;
    padding-right: 12px;
    border-color: var(--line);
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .panel-app.sidebar-collapsed #website-management-pill:not(.hidden),
  .panel-app.sidebar-collapsed #permission-override-pill:not(.hidden) {
    display: inline-flex !important;
  }

  .panel-tabs,
  .panel-nav-section,
  .panel-app.sidebar-collapsed .panel-tabs,
  .panel-app.sidebar-collapsed .panel-nav-section {
    width: 100%;
    justify-items: stretch;
  }

  .panel-nav-section {
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    align-items: stretch;
  }

  .panel-section-title,
  .panel-app.sidebar-collapsed .panel-section-title {
    grid-column: 1 / -1;
    max-height: 18px;
    margin: 0;
    opacity: 1;
    transform: none;
  }

  .panel-tab,
  .panel-app.sidebar-collapsed .panel-tab {
    width: 100%;
    height: auto;
    min-height: 44px;
    justify-content: flex-start;
    padding: 9px 10px;
    gap: 8px;
  }

  .panel-tab-icon,
  .panel-app.sidebar-collapsed .panel-tab-icon {
    width: 24px;
    height: 24px;
  }

  .panel-tab-text,
  .panel-app.sidebar-collapsed .panel-tab-text,
  .panel-app.sidebar-collapsed .panel-back-link span:not(.panel-tab-icon) {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    margin: 0;
    opacity: 1;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    pointer-events: auto;
    transform: none;
  }

  .panel-sidebar-footer,
  .panel-app.sidebar-collapsed .panel-sidebar-footer {
    width: 100%;
    margin-top: 0;
  }

  #logout-button,
  .panel-app.sidebar-collapsed #logout-button {
    width: 100%;
    height: auto;
    min-height: 42px;
    padding: 10px 16px;
    font-size: 13px;
  }

  .panel-app.sidebar-collapsed #logout-button::before {
    content: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel-app,
  .panel-sidebar,
  .panel-sidebar-top,
  .panel-user-card,
  .panel-tabs,
  .panel-nav-section,
  .panel-section-title,
  .panel-tab,
  .panel-tab-icon,
  .panel-tab-text,
  .panel-collapse-button,
  .panel-collapse-button span {
    transition: none;
  }
}

.panel-page {
  display: none;
  min-height: calc(100vh - 72px);
  padding: 22px;
}

#panel-page-schedule {
  padding: 14px;
}

.panel-page.active {
  display: block;
}

.panel-page-heading {
  margin-bottom: 18px;
}

.sheet-frame-wrap {
  height: max(1280px, calc(100vh - 74px));
  min-height: 1280px;
  width: 100%;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
  background: #fff;
}

.sheet-frame-wrap iframe {
  width: max(100%, 1680px);
  height: 100%;
  border: 0;
}

.guideline-reader,
.guideline-list button,
.account-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 10, 15, .55);
}

.guideline-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 16px;
}

.guideline-list {
  display: grid;
  gap: 10px;
}

.guideline-list.page-list {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.guideline-toolbar {
  margin: -4px 0 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.guideline-list button {
  min-height: 132px;
  padding: 16px;
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.guideline-list button.active,
.guideline-list button:hover {
  border-color: rgba(242, 200, 75, .72);
}

.guideline-list strong,
.account-row strong {
  display: block;
}

.guideline-list small,
.account-row span {
  color: var(--muted);
}

.guideline-list span {
  display: block;
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.5;
}

.guideline-reader {
  min-height: 520px;
  padding: 24px;
}

.guideline-reader-header {
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.guideline-reader h3 {
  margin: 0 0 8px;
  font-size: 34px;
}

.guideline-reader .guideline-body {
  color: var(--muted);
  line-height: 1.75;
}

.guideline-description {
  color: var(--muted);
  line-height: 1.65;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-table {
  padding: 14px;
  display: grid;
  gap: 14px;
}

.accounts-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.account-create-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .035)),
    rgba(6, 10, 15, .42);
  overflow: hidden;
}

.account-create-panel summary {
  min-height: 72px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: background .18s ease, border-color .18s ease;
}

.account-create-panel summary::-webkit-details-marker {
  display: none;
}

.account-create-panel summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  transform: rotate(45deg);
  transition: transform .22s ease;
}

.account-create-panel[open] summary::after {
  transform: translateY(3px) rotate(225deg);
}

.account-create-panel summary:hover,
.account-create-panel summary:focus-visible {
  background: rgba(242, 200, 75, .08);
  outline: none;
}

.account-create-panel summary span {
  color: var(--gold);
  font-weight: 950;
  text-transform: uppercase;
}

.account-create-panel summary small {
  grid-column: 1 / 2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.accounts-layout .account-form {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-radius: 0;
  grid-template-columns: minmax(240px, .95fr) minmax(240px, .95fr) minmax(260px, 1.1fr);
  grid-template-areas:
    "email name rank"
    "avatar focus stats"
    "summary summary note"
    "management override visible"
    "actions actions actions"
    "message message message";
  align-items: start;
}

.accounts-layout .account-form .editor-actions {
  grid-area: actions;
  align-self: end;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-field-email { grid-area: email; }
.account-field-name { grid-area: name; }
.account-field-rank { grid-area: rank; }
.account-field-avatar { grid-area: avatar; }
.account-field-focus { grid-area: focus; }
.account-field-stats { grid-area: stats; }
.account-field-summary { grid-area: summary; }
.account-field-note { grid-area: note; }
.account-field-management { grid-area: management; }
.account-field-override { grid-area: override; }
.account-field-visible { grid-area: visible; }

.account-field-summary textarea,
.account-field-note textarea {
  min-height: 124px;
}

.accounts-layout .account-form .form-message {
  grid-area: message;
}

.account-row {
  padding: 13px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.account-rank-group {
  display: grid;
  gap: 8px;
}

.account-rank-heading {
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--account-rank-color, var(--gold)) 26%, rgba(255, 255, 255, .08));
  border-left: 4px solid var(--account-rank-color, var(--gold));
  border-radius: 7px;
  padding: 7px 10px 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--account-rank-color, var(--gold)) 13%, transparent), transparent 52%),
    rgba(6, 10, 15, .42);
}

.account-rank-heading span {
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.account-rank-heading small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.account-rank-list {
  display: grid;
  gap: 8px;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.account-badges {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.account-badge {
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 7px;
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  color: var(--text);
  background: rgba(255, 255, 255, .065);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.account-badge.rank-badge {
  border-color: rgba(242, 200, 75, .34);
  color: var(--gold);
  background: rgba(242, 200, 75, .09);
}

.account-badge.website-badge {
  border-color: rgba(79, 140, 208, .45);
  color: #cfe4ff;
  background: rgba(79, 140, 208, .14);
}

.account-badge.override-badge {
  border-color: rgba(255, 126, 105, .5);
  color: #fff5f3;
  background: linear-gradient(135deg, rgba(200, 72, 44, .72), rgba(126, 31, 24, .72));
}

.account-badge.hidden-badge {
  border-color: rgba(180, 190, 205, .36);
  color: #d7dee9;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035)),
    rgba(7, 11, 17, .74);
}

.account-edit-overlay {
  position: fixed;
  inset: 0;
  z-index: 160;
  padding: clamp(16px, 2vw, 34px);
  display: grid;
  place-items: center;
  overflow: auto;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 209, 63, .13), transparent 34%),
    rgba(2, 5, 8, .78);
  backdrop-filter: blur(10px);
  animation: live-modal-backdrop-in .28s ease forwards;
}

.account-edit-overlay.closing {
  animation: live-modal-backdrop-out .18s ease forwards;
}

.account-edit-modal {
  width: min(760px, calc(100vw - 24px));
  border: 1px solid rgba(255, 209, 63, .26);
  border-left: 5px solid rgba(255, 209, 63, .78);
  border-radius: 8px;
  padding: clamp(20px, 2.2vw, 30px);
  position: relative;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 209, 63, .14), transparent 30%),
    linear-gradient(135deg, rgba(21, 18, 8, .96), rgba(5, 8, 13, .97) 58%, rgba(16, 24, 36, .93));
  box-shadow: 0 22px 60px rgba(0, 0, 0, .42), inset 0 0 0 1px rgba(255, 209, 63, .045);
  animation: live-modal-in .28s cubic-bezier(.16, 1, .3, 1) forwards;
}

.account-edit-header {
  margin: 0 54px 18px 0;
}

.account-edit-header h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.account-edit-header span {
  color: var(--gold);
  font-weight: 850;
}

.account-edit-form {
  display: grid;
  gap: 13px;
}

.account-edit-form label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-edit-form input,
.account-edit-form select,
.account-edit-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 7px;
  padding: 11px 12px;
  color: var(--text);
  background: rgba(5, 8, 13, .76);
  font: inherit;
}

.account-edit-form textarea {
  min-height: 132px;
  resize: vertical;
}

.account-edit-wide-field {
  grid-column: 1 / -1;
}

.account-edit-form option {
  color: #10151e;
  background: #f7f8fb;
}

.account-edit-actions {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.steam-tool {
  display: grid;
  gap: 16px;
}

.steam-form,
.steam-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, .065);
}

.steam-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
}

.steam-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.steam-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  color: var(--text);
  background: rgba(5, 8, 13, .72);
  font: inherit;
}

.steam-result-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.steam-result-top h3,
.steam-result-top p {
  margin-top: 0;
}

.steam-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.steam-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.steam-result-grid-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steam-result-card {
  min-height: 86px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  align-content: center;
  gap: 6px;
  background: rgba(6, 10, 15, .55);
}

.steam-result-card span {
  display: block;
  color: var(--text);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.steam-result-card-full {
  margin-top: 12px;
}

.steam-result-card strong {
  display: block;
  margin-bottom: 0;
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
}

.copy-row {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.copy-row code {
  flex: 1;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.id64-value {
  min-height: 38px;
  border: 1px solid rgba(242, 200, 75, .2);
  border-radius: 7px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  color: var(--text);
  background: rgba(242, 200, 75, .055);
  font-family: inherit;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.copy-chip {
  position: relative;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.copy-chip:hover {
  border-color: rgba(242, 200, 75, .6);
  background: rgba(242, 200, 75, .1);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

.copy-chip.copied-chip {
  border-color: rgba(45, 212, 108, .88) !important;
  color: #052512 !important;
  background: #2dd46c !important;
  box-shadow: 0 0 0 3px rgba(45, 212, 108, .15);
}

.copy-row .copied,
.copy-row .copied:disabled {
  border-color: rgba(45, 212, 108, .85);
  color: #052512;
  background: #2dd46c;
  opacity: 1;
}

.live-dashboard-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.live-dashboard-status {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--muted);
  background: rgba(6, 10, 15, .5);
  font-weight: 750;
}

.live-dashboard-status.good {
  border-color: rgba(45, 212, 108, .26);
  color: #b7f8cb;
  background: rgba(45, 212, 108, .08);
}

.live-dashboard-status.loading {
  border-color: rgba(242, 200, 75, .3);
  color: #ffe188;
  background: rgba(242, 200, 75, .08);
}

.live-dashboard-status.error {
  border-color: rgba(239, 68, 68, .36);
  color: #ffc4c4;
  background: rgba(239, 68, 68, .1);
}

.live-dashboard-summary {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.live-dashboard-summary article,
.live-dashboard-alerts,
.live-dashboard-table,
.live-dashboard-uses article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 10, 15, .52);
  box-shadow: var(--shadow);
}

.live-dashboard-summary article {
  min-height: 118px;
  padding: 15px;
  display: grid;
  align-content: center;
  gap: 7px;
}

.live-dashboard-summary span,
.live-section-header span,
.live-dashboard-summary small,
.live-dashboard-uses span,
.live-server-row small {
  color: var(--muted);
}

.live-dashboard-summary span,
.live-section-header .eyebrow {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.live-dashboard-summary strong {
  color: var(--text);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}

.live-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(0, 1.4fr);
  gap: 16px;
  align-items: start;
}

.live-dashboard-alerts,
.live-dashboard-table {
  padding: 14px;
}

.live-section-header {
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.live-refresh-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.live-refresh-button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(45, 212, 108, .3);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #9cf3bb;
  background: rgba(6, 10, 15, .72);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.live-refresh-button:hover,
.live-refresh-button:focus-visible {
  transform: rotate(28deg) scale(1.05);
  border-color: rgba(45, 212, 108, .62);
  background: rgba(45, 212, 108, .12);
  box-shadow: 0 0 0 4px rgba(45, 212, 108, .08), 0 12px 24px rgba(0, 0, 0, .22);
}

.live-section-header .eyebrow {
  margin: 0;
}

#live-dashboard-alerts,
#live-dashboard-servers {
  display: grid;
  gap: 10px;
}

.live-filter-toggle {
  margin: -2px 0 12px;
  border: 1px solid rgba(200, 72, 44, .44);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #f0b8ad;
  background: linear-gradient(135deg, rgba(200, 72, 44, .16), rgba(6, 10, 15, .78));
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.live-filter-toggle:has(input:checked) {
  border-color: rgba(45, 212, 108, .48);
  color: #b8f7cd;
  background: linear-gradient(135deg, rgba(45, 212, 108, .16), rgba(6, 10, 15, .78));
  box-shadow: inset 0 0 0 1px rgba(45, 212, 108, .08);
}

.live-filter-toggle input,
.checkbox-label input {
  position: relative;
  width: 42px;
  min-width: 42px;
  height: 24px;
  margin: 0;
  border: 1px solid rgba(200, 72, 44, .62);
  border-radius: 999px;
  appearance: none;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(200, 72, 44, .36), rgba(93, 30, 24, .72));
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, .34), 0 0 0 2px rgba(200, 72, 44, .08);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.live-filter-toggle input::after,
.checkbox-label input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff2ee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .38);
  transition: transform .18s ease, background .18s ease;
}

.live-filter-toggle input:checked,
.checkbox-label input:checked {
  border-color: rgba(45, 212, 108, .72);
  background: linear-gradient(180deg, rgba(45, 212, 108, .62), rgba(25, 107, 55, .82));
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, .24), 0 0 0 2px rgba(45, 212, 108, .12);
}

.live-filter-toggle input:checked::after,
.checkbox-label input:checked::after {
  transform: translateX(18px);
  background: #f4fff8;
}

.live-filter-toggle input:focus-visible,
.checkbox-label input:focus-visible {
  outline: 2px solid rgba(242, 200, 75, .78);
  outline-offset: 3px;
}

.live-filter-toggle input:disabled,
.checkbox-label input:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.live-alert {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: start;
  background: rgba(255, 255, 255, .045);
}

.live-alert > span {
  border-radius: 999px;
  padding: 5px 8px;
  color: #071018;
  background: var(--gold);
  text-align: center;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.live-alert strong,
.live-dashboard-uses strong {
  display: block;
  color: var(--text);
}

.live-alert p,
.live-dashboard-uses span {
  margin: 4px 0 0;
  line-height: 1.5;
}

.live-alert small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.live-alert.good {
  border-color: rgba(45, 212, 108, .26);
  background: rgba(45, 212, 108, .07);
}

.live-alert.good > span {
  background: #2dd46c;
}

.live-alert.info {
  border-color: rgba(92, 214, 255, .24);
  background: rgba(92, 214, 255, .07);
}

.live-alert.info > span {
  background: #5cd6ff;
}

.live-alert.warning {
  border-color: rgba(242, 200, 75, .34);
  background: rgba(242, 200, 75, .08);
}

.live-alert.critical {
  border-color: rgba(239, 68, 68, .42);
  background: rgba(239, 68, 68, .1);
}

.live-alert.critical > span {
  color: #fff;
  background: #ef4444;
}

.live-server-row {
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) minmax(90px, auto) minmax(86px, auto);
  gap: 12px;
  align-items: center;
  color: inherit;
  background: rgba(255, 255, 255, .045);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.live-server-row:hover,
.live-server-row:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(45, 212, 108, .42);
  background:
    linear-gradient(90deg, rgba(45, 212, 108, .1), transparent 48%),
    rgba(255, 255, 255, .055);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24), 0 0 0 1px rgba(45, 212, 108, .08);
}

.live-server-row.online {
  border-color: rgba(45, 212, 108, .18);
}

.live-server-row.offline {
  border-color: rgba(239, 68, 68, .26);
  background:
    linear-gradient(90deg, rgba(239, 68, 68, .09), transparent 42%),
    rgba(255, 255, 255, .035);
}

.live-server-row strong {
  display: block;
  color: var(--text);
  overflow-wrap: anywhere;
}

.live-server-row > span:not(.live-server-status) {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.live-server-status {
  border-radius: 999px;
  padding: 6px 8px;
  color: #071018;
  background: #2dd46c;
  text-align: center;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.live-server-row.offline .live-server-status {
  color: #fff;
  background: #ef4444;
}

.live-dashboard-uses {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.live-dashboard-uses article {
  padding: 15px;
}

.live-server-detail {
  position: fixed;
  inset: 0;
  z-index: 150;
  padding: clamp(10px, 1.6vw, 24px);
  display: grid;
  place-items: center;
  overflow: auto;
  background:
    radial-gradient(circle at 50% 18%, rgba(45, 212, 108, .16), transparent 34%),
    rgba(2, 5, 8, .78);
  backdrop-filter: blur(10px);
  opacity: 0;
  animation: live-modal-backdrop-in .34s ease forwards;
}

.live-server-detail.closing {
  animation: live-modal-backdrop-out .22s ease forwards;
}

.live-detail-modal {
  width: min(1760px, calc(100vw - 18px));
  max-height: min(1040px, calc(100vh - 18px));
  border: 1px solid rgba(45, 212, 108, .32);
  border-radius: 8px;
  padding: clamp(22px, 2.2vw, 34px);
  position: relative;
  overflow: auto;
  background:
    radial-gradient(circle at 16% 0%, rgba(45, 212, 108, .18), transparent 30%),
    linear-gradient(135deg, rgba(4, 18, 12, .94), rgba(5, 8, 13, .96) 58%, rgba(13, 22, 34, .92));
  box-shadow: 0 20px 55px rgba(0, 0, 0, .36), inset 0 0 0 1px rgba(45, 212, 108, .06);
  transform: translateY(18px) scale(.975);
  opacity: 0;
  animation: live-modal-in .42s cubic-bezier(.16, 1, .3, 1) .08s forwards;
}

.live-server-detail.closing .live-detail-modal {
  animation: live-modal-out .2s ease forwards;
}

body.live-modal-open {
  overflow: hidden;
}

.live-detail-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(45, 212, 108, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 108, .035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.8), rgba(0,0,0,.14));
}

.live-detail-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(45, 212, 108, .3);
  border-radius: 50%;
  position: sticky;
  top: 2px;
  float: right;
  z-index: 5;
  display: grid;
  place-items: center;
  color: #dfffea;
  background: rgba(2, 8, 6, .88);
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.live-detail-close:hover,
.live-detail-close:focus-visible {
  transform: scale(1.07);
  border-color: rgba(239, 68, 68, .5);
  background: rgba(239, 68, 68, .18);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, .08);
}

.live-detail-scanline {
  position: absolute;
  inset: -40% 0 auto;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(45, 212, 108, .08), transparent);
  animation: live-scanline 4.8s linear infinite;
}

@keyframes live-scanline {
  to {
    transform: translateY(330%);
  }
}

@keyframes live-modal-backdrop-in {
  to {
    opacity: 1;
  }
}

@keyframes live-modal-backdrop-out {
  to {
    opacity: 0;
  }
}

@keyframes live-modal-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes live-modal-out {
  to {
    opacity: 0;
    transform: translateY(10px) scale(.985);
  }
}

.live-detail-header,
.live-detail-grid,
.live-detail-body,
.live-detail-charts {
  position: relative;
  z-index: 1;
}

.live-detail-header {
  margin: 0 54px 20px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.live-detail-header h3 {
  margin: 0 0 6px;
  color: #dbffe8;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.08;
  text-shadow: 0 0 16px rgba(45, 212, 108, .18);
}

.live-detail-header span {
  color: #8ee9ad;
  font-weight: 750;
}

.live-detail-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 4px;
}

.live-console-button {
  min-height: 44px;
  border: 1px solid rgba(45, 212, 108, .44);
  border-radius: 8px;
  padding: 0 16px;
  color: #bafbd0;
  background:
    linear-gradient(135deg, rgba(45, 212, 108, .18), rgba(92, 214, 255, .08)),
    rgba(4, 18, 12, .82);
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(45, 212, 108, .08), 0 12px 28px rgba(0, 0, 0, .22);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.live-console-button:hover,
.live-console-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(92, 214, 255, .64);
  background:
    linear-gradient(135deg, rgba(45, 212, 108, .24), rgba(92, 214, 255, .14)),
    rgba(4, 18, 12, .9);
  box-shadow: inset 0 0 0 1px rgba(92, 214, 255, .12), 0 16px 34px rgba(0, 0, 0, .3);
}

.live-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.live-detail-grid article {
  min-height: 98px;
  border: 1px solid rgba(45, 212, 108, .18);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  align-content: center;
  gap: 6px;
  background: rgba(0, 0, 0, .2);
}

.live-detail-grid span {
  color: #79d99a;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.live-detail-grid strong {
  color: #f7fff9;
  overflow-wrap: anywhere;
}

.live-detail-charts {
  margin-top: 16px;
  border: 1px solid rgba(45, 212, 108, .18);
  border-radius: 8px;
  padding: 16px;
  background: rgba(0, 0, 0, .2);
}

.live-performance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  gap: 14px;
}

.live-performance-grid > section,
.live-technical-panel {
  border: 1px solid rgba(45, 212, 108, .14);
  border-radius: 8px;
  padding: 13px;
  background: rgba(0, 0, 0, .2);
}

.live-performance-grid .eyebrow,
.live-technical-panel .eyebrow {
  margin: 0 0 10px;
}

.live-chart-row,
.live-chart-empty {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 7px;
  padding: 11px;
  display: grid;
  grid-template-columns: minmax(160px, .42fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, .035);
}

.live-chart-row + .live-chart-row,
.live-chart-empty + .live-chart-row {
  margin-top: 8px;
}

.live-chart-row strong,
.live-chart-empty strong {
  display: block;
  color: #dbffe8;
}

.live-chart-row span,
.live-chart-empty span {
  color: var(--muted);
  font-size: 12px;
}

.live-chart-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  cursor: help;
}

.live-chart-track span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #2dd46c, #5cd6ff);
  box-shadow: 0 0 16px rgba(45, 212, 108, .2);
}

.live-chart-row.warm .live-chart-track span {
  background: linear-gradient(90deg, #ffd13f, #5cd6ff);
}

.live-chart-row.hot .live-chart-track span {
  background: linear-gradient(90deg, #ff7a45, #ff4d6d);
}

.live-chart-track::after,
.live-timeline-bars span::after,
.live-event-strip span::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 12;
  width: max-content;
  max-width: 230px;
  border: 1px solid rgba(242, 200, 75, .32);
  border-radius: 7px;
  padding: 8px 10px;
  color: var(--text);
  background: rgba(7, 10, 14, .96);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .36);
  content: attr(data-tooltip);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  text-transform: none;
  transform: translate(-50%, 4px);
  transition: opacity .16s ease, transform .16s ease;
  white-space: pre-line;
}

.live-chart-track:hover::after,
.live-chart-track:focus-visible::after,
.live-timeline-bars span:hover::after,
.live-timeline-bars span:focus-visible::after,
.live-event-strip span:hover::after,
.live-event-strip span:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.live-chart-track:hover,
.live-chart-track:focus-visible,
.live-timeline-bars span:hover,
.live-timeline-bars span:focus-visible,
.live-event-strip span:hover,
.live-event-strip span:focus-visible {
  outline: 1px solid rgba(242, 200, 75, .5);
  outline-offset: 3px;
}

.live-chart-empty {
  grid-template-columns: 1fr;
}

.live-performance-table {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  overflow: hidden;
}

.live-performance-row {
  min-height: 44px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 1fr .78fr .75fr 1.15fr;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, .035);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.live-performance-row:last-child {
  border-bottom: 0;
}

.live-performance-row.heading {
  color: #8ee9ad;
  background: rgba(45, 212, 108, .08);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.live-performance-row span,
.live-performance-row small {
  color: var(--muted);
}

.live-performance-row strong {
  color: var(--text);
}

.live-performance-row em {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  color: #071018;
  background: #2dd46c;
  font-style: normal;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.live-performance-row.warning em {
  background: var(--gold);
}

.live-performance-row.critical em {
  color: #fff;
  background: #ef4444;
}

.live-performance-row.muted em {
  color: var(--muted);
  background: rgba(255, 255, 255, .08);
}

.live-technical-panel {
  margin-top: 14px;
}

.live-timeseries-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.live-timeline-card {
  min-height: 154px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 7px;
  padding: 12px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  background:
    linear-gradient(135deg, rgba(45, 212, 108, .06), transparent 62%),
    rgba(255, 255, 255, .035);
}

.live-timeline-card.empty {
  align-content: center;
  grid-template-rows: auto;
}

.live-timeline-card strong {
  display: block;
  color: #dbffe8;
}

.live-timeline-card span,
.live-history-note {
  color: var(--muted);
  font-size: 12px;
}

.live-timeline-bars {
  min-height: 86px;
  display: flex;
  align-items: end;
  gap: 4px;
}

.live-timeline-bars span {
  position: relative;
  min-width: 5px;
  flex: 1 1 5px;
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, #5cd6ff, #2dd46c);
  box-shadow: 0 0 12px rgba(45, 212, 108, .16);
  cursor: help;
}

.live-event-strip {
  min-height: 86px;
  display: grid;
  grid-template-columns: repeat(36, minmax(4px, 1fr));
  gap: 4px;
  align-items: stretch;
}

.live-event-strip span {
  position: relative;
  border-radius: 999px;
  background: rgba(45, 212, 108, .38);
  cursor: help;
}

.live-event-strip span.warning {
  background: rgba(242, 200, 75, .85);
  box-shadow: 0 0 12px rgba(242, 200, 75, .16);
}

.live-event-strip span.critical {
  background: rgba(239, 68, 68, .9);
  box-shadow: 0 0 12px rgba(239, 68, 68, .18);
}

.live-history-note {
  margin: 10px 0 0;
  line-height: 1.45;
}

.live-detail-body {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(340px, .72fr) minmax(0, 1.28fr);
  gap: 14px;
}

.live-detail-health,
.live-detail-players {
  border: 1px solid rgba(45, 212, 108, .18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(0, 0, 0, .22);
}

.live-detail-health.good {
  border-color: rgba(45, 212, 108, .32);
}

.live-detail-health.info,
.live-detail-health.warning {
  border-color: rgba(242, 200, 75, .34);
}

.live-detail-health.critical {
  border-color: rgba(239, 68, 68, .44);
}

.live-detail-health strong {
  color: #dbffe8;
  font-size: 22px;
}

.live-detail-health p,
.live-detail-health small {
  color: var(--muted);
  line-height: 1.55;
}

.live-detail-players ul {
  max-height: 290px;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  overflow: auto;
  list-style: none;
}

.live-detail-players li {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 7px;
  padding: 9px 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, .04);
}

.live-detail-players li span {
  color: var(--text);
  font-weight: 850;
}

.live-detail-players li small {
  color: var(--muted);
  overflow-wrap: anywhere;
  text-align: right;
}

.steam-profile-summary,
.pandahut-stats-summary {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 14px;
  align-items: center;
  background: rgba(6, 10, 15, .55);
}

.pandahut-stats-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  justify-content: space-between;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(33, 43, 57, .78), rgba(6, 10, 15, .68)),
    rgba(6, 10, 15, .55);
}

.pandahut-stats-summary.server-online {
  border-color: rgba(45, 212, 108, .42);
  background:
    linear-gradient(135deg, rgba(25, 92, 52, .55), rgba(6, 10, 15, .72)),
    rgba(6, 10, 15, .55);
}

.pandahut-stats-summary.server-offline {
  border-color: rgba(242, 200, 75, .35);
  background:
    linear-gradient(135deg, rgba(116, 91, 35, .34), rgba(6, 10, 15, .74)),
    rgba(6, 10, 15, .55);
}

.pandahut-stats-summary.server-none {
  border-color: rgba(255, 255, 255, .12);
  background:
    linear-gradient(135deg, rgba(80, 89, 104, .24), rgba(6, 10, 15, .74)),
    rgba(6, 10, 15, .55);
}

.pandahut-stats-title {
  min-width: 0;
}

.pandahut-server-line {
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.pandahut-server-line h4 {
  min-width: 0;
  margin: 0;
}

.pandahut-status-pill {
  display: inline-flex;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 4px 9px;
  flex: 0 0 auto;
  color: var(--muted);
  background: rgba(255, 255, 255, .06);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pandahut-status-pill.server-online {
  border-color: rgba(45, 212, 108, .55);
  color: #9cf3bb;
  background: rgba(45, 212, 108, .14);
}

.pandahut-status-pill.server-offline {
  border-color: rgba(242, 200, 75, .42);
  color: #f2d57d;
  background: rgba(242, 200, 75, .1);
}

.pandahut-stats-action {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pandahut-stats-action .button {
  min-width: 176px;
  justify-content: center;
}

.pandahut-hours-card {
  margin-top: 12px;
  border: 1px solid rgba(45, 212, 108, .2);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .65fr);
  gap: 16px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(45, 212, 108, .12), rgba(39, 215, 255, .07)),
    rgba(6, 10, 15, .56);
}

.pandahut-hours-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pandahut-hours-card span {
  display: block;
  color: var(--text);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  font-weight: 950;
}

.pandahut-hours-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.steam-profile-summary img {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  object-fit: cover;
}

.steam-profile-summary h4,
.pandahut-stats-summary h4 {
  margin: 0;
  font-size: 22px;
}

.steam-profile-summary p,
.pandahut-stats-summary p {
  margin: 0;
  color: var(--muted);
}

.profile-status-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

.profile-status-tile {
  min-width: 154px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .06);
  text-align: center;
}

.profile-status-tile strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.15;
  text-transform: uppercase;
}

.profile-status-tile.steam-online,
.profile-status-tile.server-online {
  border-color: rgba(45, 212, 108, .42);
  background: rgba(45, 212, 108, .13);
}

.profile-status-tile.steam-online strong,
.profile-status-tile.server-online strong {
  color: #9cf3bb;
}

.profile-status-tile.steam-offline,
.profile-status-tile.server-offline {
  border-color: rgba(242, 200, 75, .35);
  background: rgba(242, 200, 75, .1);
}

.profile-status-tile.steam-offline strong,
.profile-status-tile.server-offline strong {
  color: #f2d57d;
}

.profile-status-tile.steam-unknown,
.profile-status-tile.server-none {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .055);
}

.punishment-details {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(6, 10, 15, .48);
}

.punishment-details-heading {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.punishment-details-heading p,
.punishment-details-heading span {
  margin: 0;
}

.punishment-detail-group {
  border-bottom: 1px solid var(--line);
}

.punishment-detail-group:last-child {
  border-bottom: 0;
}

.punishment-detail-group summary {
  padding: 13px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.punishment-detail-group summary::-webkit-details-marker {
  display: none;
}

.punishment-title {
  min-width: 0;
}

.punishment-counts {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.punishment-count {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #071018;
  text-align: center;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.punishment-count.active-count {
  background: #2dd46c;
  box-shadow: 0 0 0 3px rgba(45, 212, 108, .12);
}

.punishment-count.inactive-count {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 200, 75, .12);
}

.punishment-detail-list {
  padding: 0 14px 14px;
  display: grid;
  gap: 10px;
}

.punishment-detail-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
}

.punishment-detail-row.active-punishment {
  border-color: rgba(45, 212, 108, .32);
  background:
    linear-gradient(90deg, rgba(45, 212, 108, .13), rgba(45, 212, 108, .035) 42%, rgba(255, 255, 255, .045)),
    rgba(6, 10, 15, .56);
  box-shadow: inset 3px 0 0 rgba(45, 212, 108, .72);
}

.punishment-detail-row.old-punishment {
  border-color: rgba(255, 255, 255, .08);
  opacity: .58;
  background:
    linear-gradient(90deg, rgba(242, 200, 75, .08), transparent 42%),
    rgba(255, 255, 255, .032);
}

.punishment-detail-row.old-punishment:hover {
  opacity: .82;
}

.punishment-detail-row.active-punishment.old-punishment {
  border-color: rgba(45, 212, 108, .34);
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(45, 212, 108, .14), rgba(45, 212, 108, .04) 42%, rgba(255, 255, 255, .045)),
    rgba(6, 10, 15, .56);
  box-shadow: inset 3px 0 0 rgba(45, 212, 108, .72);
}

.punishment-detail-row.active-punishment.old-punishment:hover {
  opacity: 1;
}

.punishment-detail-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.punishment-detail-row small,
.punishment-detail-empty {
  color: var(--muted);
}

.punishment-detail-row p {
  margin: 9px 0;
  color: var(--text);
  line-height: 1.5;
}

.punishment-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.punishment-detail-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  font-size: 12px;
}

.punishment-detail-meta .punishment-status-pill {
  border-radius: 999px;
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.punishment-status-pill em,
.punishment-status-pill small {
  font-style: normal;
}

.punishment-status-pill em {
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
  text-transform: none;
}

.punishment-status-pill small {
  display: none;
}

.punishment-status-pill.active {
  border-color: rgba(45, 212, 108, .48);
  background: rgba(45, 212, 108, .08);
  box-shadow: none;
}

.punishment-status-pill.active em,
.punishment-status-pill.active strong {
  color: #9cf3bb;
}

.punishment-status-pill.inactive {
  border-color: rgba(180, 190, 205, .28);
  background: rgba(180, 190, 205, .06);
  box-shadow: none;
}

.punishment-status-pill.inactive em {
  color: #d7dee9;
}

.punishment-status-pill.warning {
  border-color: rgba(180, 190, 205, .28);
  background: rgba(180, 190, 205, .06);
  box-shadow: none;
}

.punishment-status-pill.warning em,
.punishment-status-pill.warning strong {
  color: #d7dee9;
}

.punishment-status-pill.lifted {
  border-color: rgba(92, 214, 255, .38);
  background: rgba(92, 214, 255, .08);
  box-shadow: none;
}

.punishment-status-pill.lifted em,
.punishment-status-pill.lifted strong {
  color: #9ee8ff;
}

.punishment-status-pill.unknown {
  border-color: rgba(242, 200, 75, .32);
  background: rgba(242, 200, 75, .08);
  box-shadow: none;
}

.punishment-status-pill.unknown em,
.punishment-status-pill.unknown strong {
  color: #f2d57d;
}

.punishment-detail-meta span.copy-chip {
  user-select: none;
}

.punishment-detail-meta strong {
  margin-right: 4px;
  color: var(--gold);
}

.punishment-detail-empty {
  margin: 0;
  padding: 12px;
}

.vacation-layout,
.bug-report-layout {
  display: grid;
  grid-template-columns: minmax(280px, 390px) 1fr;
  gap: 16px;
  align-items: start;
}

.bug-report-layout {
  grid-template-columns: 1fr;
}

.vacation-form,
.vacation-list,
.bug-report-form,
.bug-report-list,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .065);
  box-shadow: var(--shadow);
}

.vacation-form,
.bug-report-form {
  padding: 20px;
  display: grid;
  gap: 14px;
}

.bug-report-form {
  grid-template-columns: minmax(260px, .9fr) minmax(360px, 1.2fr) minmax(240px, .75fr);
  grid-template-areas:
    "title details upload"
    "fields details submit"
    "preview preview preview"
    "hint hint hint";
  align-items: stretch;
  padding: clamp(18px, 2vw, 26px);
  gap: 16px 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .035)),
    rgba(6, 10, 15, .52);
}

.bug-report-form > label,
.bug-report-form .bug-report-fields,
.bug-report-form .bug-upload-field {
  min-width: 0;
}

.bug-title-field {
  grid-area: title;
}

.bug-report-fields {
  grid-area: fields;
}

.bug-details-field {
  grid-area: details;
}

.bug-upload-field {
  grid-area: upload;
}

.bug-report-form .bug-upload-preview,
.bug-report-form .login-hint {
  grid-column: 1 / -1;
}

.bug-report-form .bug-upload-preview {
  grid-area: preview;
}

.bug-report-form .login-hint {
  grid-area: hint;
  align-self: center;
  text-align: center;
}

.bug-report-form > .button {
  grid-area: submit;
  min-height: 46px;
  align-self: end;
}

.vacation-form label,
.bug-report-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.vacation-form input,
.vacation-form textarea,
.bug-report-form input,
.bug-report-form select,
.bug-report-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  color: var(--text);
  background: rgba(5, 8, 13, .72);
  font: inherit;
}

.bug-report-form textarea {
  min-height: 168px;
  height: 100%;
  resize: vertical;
}

.bug-report-form select {
  color: var(--text);
}

.bug-report-form select option {
  color: #10151e;
  background: #f7f8fb;
}

.vacation-form input[type="date"] {
  position: relative;
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
  padding-right: 44px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffd13f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M8 14h.01'/%3E%3Cpath d='M12 14h.01'/%3E%3Cpath d='M16 14h.01'/%3E%3C/svg%3E") right 13px center / 18px 18px no-repeat,
    rgba(5, 8, 13, .72) !important;
}

.vacation-form input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  cursor: pointer;
  color: transparent;
  background: transparent;
  opacity: 0;
}

.vacation-form input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 0;
}

.vacation-reason-field {
  min-height: 150px;
}

.vacation-list,
.bug-report-list {
  max-height: calc(100vh - 168px);
  overflow: auto;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.bug-report-list {
  max-height: none;
  overflow: visible;
  align-content: start;
}

.bug-my-assignments {
  margin-bottom: 12px;
  border: 1px solid rgba(45, 212, 108, .22);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(45, 212, 108, .1), rgba(92, 214, 255, .045)),
    rgba(6, 10, 15, .52);
  box-shadow: var(--shadow);
}

.bug-my-header {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.bug-my-header h3 {
  margin: 0;
}

.bug-my-header .eyebrow {
  margin: 0 0 5px;
}

.bug-my-header > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.bug-my-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.bug-my-card,
.bug-my-empty {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 8px;
  background: rgba(0, 0, 0, .2);
}

.bug-my-card {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.bug-my-card:hover,
.bug-my-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(45, 212, 108, .48);
  background:
    linear-gradient(135deg, rgba(45, 212, 108, .1), rgba(255, 255, 255, .035)),
    rgba(0, 0, 0, .22);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .22), 0 0 0 1px rgba(45, 212, 108, .08);
}

.bug-my-card > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bug-my-card strong,
.bug-my-empty strong {
  color: var(--text);
}

.bug-my-card small,
.bug-my-empty span {
  color: var(--muted);
  line-height: 1.45;
}

.bug-my-jump {
  width: fit-content;
  border: 1px solid rgba(45, 212, 108, .28);
  border-radius: 999px;
  padding: 5px 9px;
  color: #9cf3bb;
  background: rgba(45, 212, 108, .08);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.bug-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.bug-board-empty {
  margin-bottom: 12px;
}

.bug-board-column {
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025)),
    rgba(6, 10, 15, .42);
}

.bug-column-header {
  min-height: 0;
  border: 1px solid rgba(255, 209, 63, .14);
  border-radius: 8px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  background: rgba(0, 0, 0, .18);
}

.bug-column-header > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.bug-column-header .eyebrow {
  margin: 0;
}

.bug-column-header span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.28;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bug-column-header strong {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #071018;
  background: var(--gold);
  font-size: 13px;
  font-weight: 950;
}

.bug-column-dropzone {
  min-height: 0;
  border: 1px dashed rgba(255, 255, 255, .12);
  border-radius: 8px;
  padding: 8px;
  display: grid;
  align-content: start;
  gap: 9px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.bug-column-dropzone.drag-over {
  border-color: rgba(45, 212, 108, .65);
  background: rgba(45, 212, 108, .075);
  box-shadow: inset 0 0 0 1px rgba(45, 212, 108, .12);
}

.bug-column-empty {
  min-height: 120px;
  border: 1px dashed rgba(255, 255, 255, .12);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.bug-report-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bug-upload-field input {
  padding: 10px;
}

.bug-upload-field {
  align-self: end;
}

.bug-upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bug-upload-preview span {
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(255, 209, 63, .24);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 209, 63, .08);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.bug-upload-preview small {
  color: var(--muted);
  font-weight: 700;
}

.vacation-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(220px, 1.4fr) auto;
  gap: 14px;
  align-items: center;
  background: rgba(6, 10, 15, .55);
}

.vacation-card h3 {
  margin: 0 0 5px;
}

.vacation-card span,
.vacation-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.bug-report-card {
  min-height: 184px;
  padding: 13px;
  border: 1px solid var(--line);
  border-left: 4px solid rgba(255, 209, 63, .5);
  border-radius: 8px;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  background: rgba(6, 10, 15, .55);
  cursor: grab;
  gap: 10px;
  transition: transform .18s ease, opacity .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.bug-card-topline,
.bug-card-footer,
.bug-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.bug-card-topline {
  min-width: 0;
  flex-wrap: nowrap;
  overflow: hidden;
}

.bug-card-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.bug-card-footer {
  margin-top: auto;
  align-self: end;
  justify-content: space-between;
  align-items: end;
}

.bug-assigned-chip {
  max-width: calc(100% - 104px);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  padding: 7px 9px;
  display: grid;
  gap: 2px;
  background: rgba(0, 0, 0, .18);
  line-height: 1.2;
}

.bug-report-card .bug-assigned-chip span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.bug-report-card .bug-assigned-chip strong {
  color: var(--text);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bug-assigned-chip.is-assigned {
  border-color: rgba(45, 212, 108, .26);
  background: rgba(45, 212, 108, .08);
}

.bug-report-card .bug-assigned-chip.is-assigned strong {
  color: #bdf7cf;
}

.bug-assigned-chip.is-unassigned {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .045);
}

.bug-report-card > h3 {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bug-report-card.dragging {
  opacity: .55;
  transform: rotate(.5deg) scale(.985);
  cursor: grabbing;
}

.bug-report-card:hover {
  border-color: rgba(255, 209, 63, .34);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .2);
}

.bug-report-card.assigned-to-me {
  border-color: rgba(45, 212, 108, .34);
  box-shadow: 0 0 0 1px rgba(45, 212, 108, .08), 0 12px 28px rgba(0, 0, 0, .22);
}

.bug-details-button {
  min-width: 124px;
  min-height: 52px;
  border: 1px solid rgba(255, 209, 63, .28);
  border-radius: 7px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff3bd;
  background:
    linear-gradient(180deg, rgba(255, 209, 63, .14), rgba(255, 209, 63, .06)),
    rgba(6, 10, 15, .75);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035), 0 8px 18px rgba(0, 0, 0, .2);
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.bug-details-button:hover,
.bug-details-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 209, 63, .52);
  background:
    linear-gradient(180deg, rgba(255, 209, 63, .22), rgba(255, 209, 63, .08)),
    rgba(8, 12, 18, .86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .055), 0 12px 24px rgba(0, 0, 0, .28);
}

.bug-report-card.bug-focus-pulse {
  animation: bug-focus-pulse 1.6s ease;
}

@keyframes bug-focus-pulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 0 0 1px rgba(45, 212, 108, .1), 0 12px 28px rgba(0, 0, 0, .24);
  }
  18%, 54% {
    transform: translateY(-2px);
    border-color: rgba(255, 209, 63, .78);
    box-shadow: 0 0 0 5px rgba(255, 209, 63, .22), 0 18px 36px rgba(0, 0, 0, .34);
  }
  36%, 72% {
    transform: translateY(0);
    border-color: rgba(45, 212, 108, .7);
    box-shadow: 0 0 0 5px rgba(45, 212, 108, .2), 0 18px 36px rgba(0, 0, 0, .32);
  }
}

.bug-report-card[open] {
  gap: 12px;
}

.bug-report-card[open] {
  gap: 12px;
}

.bug-report-card summary {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.bug-report-card summary::-webkit-details-marker {
  display: none;
}

.bug-report-card summary h3 {
  margin: 0;
}

.bug-summary-title {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.bug-summary-badges {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bug-summary-title h3 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.bug-summary-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bug-report-card summary .bug-toggle-pill,
.bug-importance-pill,
.bug-status-pill,
.bug-category-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 209, 63, .24);
  border-radius: 999px;
  max-width: 100%;
  padding: 4px 8px;
  color: var(--gold);
  background: rgba(255, 209, 63, .08);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.bug-card-topline .bug-importance-pill,
.bug-card-topline .bug-status-pill {
  max-width: 76px;
}

.bug-card-topline .bug-category-pill {
  min-width: 0;
  width: auto;
  flex: 0 1 auto;
  max-width: calc(100% - 166px);
}

.bug-report-card[open] summary .bug-toggle-pill {
  border-color: rgba(255, 209, 63, .42);
  color: #111827;
  background: var(--gold);
}

.bug-report-card summary:hover .bug-toggle-pill,
.bug-report-card summary:hover .bug-importance-pill {
  transform: translateY(-1px);
}

.bug-category-pill {
  width: fit-content;
  margin: 0;
  border-color: rgba(255, 255, 255, .18);
  color: var(--text);
  background: rgba(255, 255, 255, .08);
  letter-spacing: .03em;
}

.bug-report-card-body {
  display: grid;
  gap: 12px;
}

.bug-report-card.severity-low {
  border-left-color: rgba(92, 214, 255, .65);
  background:
    linear-gradient(135deg, rgba(92, 214, 255, .1), rgba(6, 10, 15, .58)),
    rgba(6, 10, 15, .55);
}

.bug-report-card.severity-medium {
  border-left-color: rgba(255, 209, 63, .75);
  background:
    linear-gradient(135deg, rgba(255, 209, 63, .12), rgba(6, 10, 15, .58)),
    rgba(6, 10, 15, .55);
}

.bug-report-card.severity-high {
  border-left-color: rgba(255, 146, 74, .8);
  background:
    linear-gradient(135deg, rgba(255, 146, 74, .14), rgba(6, 10, 15, .58)),
    rgba(6, 10, 15, .55);
}

.bug-report-card.severity-critical {
  border-left-color: rgba(255, 77, 109, .9);
  background:
    linear-gradient(135deg, rgba(255, 77, 109, .18), rgba(6, 10, 15, .58)),
    rgba(6, 10, 15, .55);
}

.bug-report-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.bug-report-card-header > div {
  display: grid;
  gap: 12px;
}

.bug-report-card h3 {
  margin: 0 0 5px;
}

.bug-report-card span,
.bug-report-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.bug-report-card .bug-importance-pill,
.bug-report-card .bug-category-pill,
.bug-report-card .bug-status-pill {
  color: var(--gold);
}

.bug-report-card-header small {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.bug-assignee-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.bug-assignee-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  color: var(--text);
  background: rgba(5, 8, 13, .72);
  font: inherit;
}

.bug-assignee-field option {
  color: #10151e;
  background: #f7f8fb;
}

.bug-report-card.severity-low .bug-importance-pill {
  border-color: rgba(92, 214, 255, .42);
  color: #9fe9ff;
  background: rgba(92, 214, 255, .12);
}

.bug-report-card.severity-medium .bug-importance-pill {
  border-color: rgba(255, 209, 63, .42);
  color: #ffe188;
  background: rgba(255, 209, 63, .13);
}

.bug-report-card.severity-high .bug-importance-pill {
  border-color: rgba(255, 146, 74, .48);
  color: #ffbd86;
  background: rgba(255, 146, 74, .14);
}

.bug-report-card.severity-critical .bug-importance-pill {
  border-color: rgba(255, 77, 109, .55);
  color: #ff9bad;
  background: rgba(255, 77, 109, .16);
}

.bug-attachments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 160px));
  gap: 10px;
}

.bug-attachments a {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, .05);
  aspect-ratio: 16 / 10;
}

.bug-attachments img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .2s ease, filter .2s ease;
}

.bug-attachments a:hover img {
  transform: scale(1.035);
  filter: brightness(1.08);
}

.bug-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 155;
  padding: clamp(14px, 2vw, 34px);
  display: grid;
  place-items: center;
  overflow: auto;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 209, 63, .14), transparent 34%),
    rgba(2, 5, 8, .78);
  backdrop-filter: blur(10px);
  animation: live-modal-backdrop-in .28s ease forwards;
}

.bug-detail-overlay.closing {
  animation: live-modal-backdrop-out .2s ease forwards;
}

.bug-detail-modal {
  width: min(1480px, calc(100vw - 24px));
  max-height: min(920px, calc(100vh - 24px));
  border: 1px solid rgba(255, 209, 63, .26);
  border-left: 5px solid rgba(255, 209, 63, .78);
  border-radius: 8px;
  padding: clamp(20px, 2.2vw, 34px);
  position: relative;
  overflow: auto;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 209, 63, .14), transparent 30%),
    linear-gradient(135deg, rgba(21, 18, 8, .96), rgba(5, 8, 13, .97) 58%, rgba(16, 24, 36, .93));
  box-shadow: 0 22px 60px rgba(0, 0, 0, .42), inset 0 0 0 1px rgba(255, 209, 63, .045);
  animation: live-modal-in .34s cubic-bezier(.16, 1, .3, 1) forwards;
}

.bug-detail-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 209, 63, .32);
  border-radius: 50%;
  position: sticky;
  top: 2px;
  float: right;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #fff7d4;
  background: rgba(15, 12, 5, .88);
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
}

.bug-detail-close:hover,
.bug-detail-close:focus-visible {
  border-color: rgba(239, 68, 68, .52);
  background: rgba(239, 68, 68, .18);
}

.bug-detail-header {
  margin: 0 54px 18px 0;
}

.bug-detail-header h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.08;
}

.bug-detail-header span {
  color: var(--gold);
  font-weight: 850;
}

.bug-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.bug-detail-grid article,
.bug-detail-body,
.bug-detail-owner,
.bug-detail-edit-form,
.bug-detail-attachments,
.bug-detail-actions {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(0, 0, 0, .22);
}

.bug-detail-grid article {
  min-height: 86px;
  padding: 12px;
  display: grid;
  align-content: center;
  gap: 6px;
}

.bug-detail-grid span,
.bug-detail-owner {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.bug-detail-grid strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

.bug-detail-owner {
  margin-top: 12px;
  padding: 13px;
}

.bug-detail-edit-form {
  margin-top: 12px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.bug-detail-edit-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) repeat(4, minmax(140px, .75fr));
  gap: 10px;
}

.bug-detail-edit-form label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.bug-detail-edit-form input,
.bug-detail-edit-form select,
.bug-detail-edit-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 7px;
  padding: 11px 12px;
  color: var(--text);
  background: rgba(5, 8, 13, .76);
  font: inherit;
  text-transform: none;
}

.bug-detail-edit-form textarea {
  min-height: 136px;
  resize: vertical;
  line-height: 1.55;
}

.bug-detail-read-form textarea {
  min-height: 188px;
  resize: vertical;
}

.bug-detail-edit-form option {
  color: #10151e;
  background: #f7f8fb;
}

.bug-detail-body {
  margin-top: 12px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.bug-detail-attachments {
  margin-top: 12px;
  padding: 12px;
}

.bug-detail-actions {
  margin-top: 12px;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.bug-detail-actions .button,
.bug-detail-actions .bug-details-button {
  width: 124px;
  min-width: 124px;
  min-height: 52px;
  padding: 12px 18px;
}

.bug-detail-actions .danger {
  margin-left: auto;
}

.bug-detail-actions .bug-details-button + .danger,
.bug-detail-actions .bug-details-button.muted + .danger {
  margin-left: 0;
}

.bug-details-button.muted {
  border-color: rgba(255, 255, 255, .16);
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035)),
    rgba(6, 10, 15, .7);
}

.empty-state {
  padding: 24px;
}

.empty-state h3 {
  margin: 0 0 8px;
}

.checkbox-label {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px !important;
  min-height: 54px;
  border: 1px solid rgba(200, 72, 44, .38);
  border-radius: 8px;
  padding: 11px 12px;
  color: #f0b8ad !important;
  background: linear-gradient(135deg, rgba(200, 72, 44, .13), rgba(6, 10, 15, .66));
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.checkbox-label:has(input:checked) {
  border-color: rgba(45, 212, 108, .44);
  color: #b8f7cd !important;
  background: linear-gradient(135deg, rgba(45, 212, 108, .14), rgba(6, 10, 15, .66));
  box-shadow: inset 0 0 0 1px rgba(45, 212, 108, .07);
}

.checkbox-label:has(input:disabled) {
  opacity: .7;
}

.footer p {
  margin: 0;
  max-width: 880px;
  line-height: 1.45;
  font-size: 13px;
  text-align: left;
}

.footer a {
  color: var(--text);
  justify-self: end;
  font-weight: 700;
  white-space: nowrap;
}

@media (min-width: 1500px) {
  .status-section .section-heading,
  .status-shell {
    max-width: min(1880px, calc(100vw - 96px));
  }

  .server-grid {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 18px;
  }

  .server-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
  }

  .server-grid.compact .server-card {
    grid-template-columns: 96px 1fr;
  }
}

@media (max-width: 1120px) {
  .feature-grid,
  .rank-cards,
  .bug-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .server-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bug-report-form,
  .bug-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accounts-layout .account-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "email name"
      "rank management"
      "override visible"
      "avatar focus"
      "stats stats"
      "summary summary"
      "note note"
      "actions actions"
      "message message";
  }

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

  .bug-report-form {
    grid-template-areas:
      "title details"
      "fields details"
      "upload submit"
      "preview preview"
      "hint hint";
  }
}

@media (max-width: 960px) {
  body {
    position: relative;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    top: 78px;
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: calc(100vh - 96px);
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 10, 14, .96);
    flex-direction: column;
    align-items: stretch;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0 22px 46px rgba(0, 0, 0, .32);
  }

  .nav-links a {
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .nav-links.open {
    display: flex;
  }

  .hero,
  .community-band,
  .staff-layout,
  .store-hero,
  .kit-showcase,
  .perk-panel,
  .panel-login,
  .panel-app,
  .guideline-layout,
  .vacation-layout,
  .bug-report-layout {
    grid-template-columns: 1fr;
  }

  .bug-report-form,
  .bug-board,
  .bug-detail-grid,
  .bug-detail-edit-grid,
  .accounts-layout .account-form {
    grid-template-columns: 1fr;
  }

  .accounts-layout .account-form {
    grid-template-areas:
      "email"
      "name"
      "rank"
      "management"
      "override"
      "avatar"
      "focus"
      "summary"
      "note"
      "stats"
      "visible"
      "actions"
      "message";
  }

  .accounts-layout .account-form .editor-actions {
    justify-self: stretch;
  }

  .accounts-layout .account-form .editor-actions .button {
    flex: 1 1 160px;
  }

  .bug-report-form {
    grid-template-areas:
      "title"
      "fields"
      "details"
      "upload"
      "submit"
      "preview"
      "hint";
  }

  .bug-board {
    min-width: 0;
  }

  .bug-my-assignments {
    min-width: 0;
  }

  .bug-board-column {
    min-height: 0;
  }

  .bug-column-dropzone {
    min-height: 160px;
  }

  .panel-app.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .panel-app.sidebar-collapsed .panel-sidebar {
    align-items: stretch;
  }

  .panel-sidebar {
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .panel-sidebar-top {
    display: none;
  }

  .panel-tabs,
  .panel-nav-section,
  .panel-app.sidebar-collapsed .panel-tabs,
  .panel-app.sidebar-collapsed .panel-nav-section {
    width: 100%;
    justify-items: stretch;
  }

  .panel-nav-section {
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    align-items: stretch;
  }

  .panel-section-title {
    grid-column: 1 / -1;
  }

  .panel-app.sidebar-collapsed .panel-user-card {
    max-height: 240px;
    margin: 0;
    padding: 12px;
    padding-right: 12px;
    border-color: var(--line);
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .panel-app.sidebar-collapsed #website-management-pill:not(.hidden),
  .panel-app.sidebar-collapsed #permission-override-pill:not(.hidden) {
    display: inline-flex !important;
  }

  .panel-app.sidebar-collapsed .panel-section-title {
    max-height: 18px;
    opacity: 1;
    transform: none;
  }

  .panel-app.sidebar-collapsed .panel-tab,
  .panel-tab {
    width: 100%;
    height: auto;
    min-height: 44px;
    justify-content: flex-start;
    padding: 9px 10px;
    gap: 8px;
  }

  .panel-app.sidebar-collapsed .panel-tab-icon,
  .panel-tab-icon {
    width: 24px;
    height: 24px;
  }

  .panel-app.sidebar-collapsed .panel-tab-text,
  .panel-app.sidebar-collapsed .panel-back-link span:not(.panel-tab-icon),
  .panel-tab-text {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    margin: 0;
    opacity: 1;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    pointer-events: auto;
    transform: none;
  }

  .panel-app.sidebar-collapsed .panel-sidebar-footer {
    width: 100%;
    margin-top: 0;
  }

  .panel-app.sidebar-collapsed #logout-button {
    width: 100%;
    height: auto;
    min-height: 42px;
    padding: 10px 16px;
    font-size: 13px;
  }

  .panel-app.sidebar-collapsed #logout-button::before {
    content: none;
  }

  .hero {
    align-items: end;
    min-width: 0;
  }

  .server-art {
    justify-self: start;
    width: min(68vw, 300px);
    min-width: 0;
  }

  .community-band,
  .store-hero {
    text-align: left;
  }

  .store-tabs {
    justify-content: flex-start;
  }

  .staff-profile,
  .panel-sidebar {
    position: static;
    min-height: 0;
    border-radius: 8px;
  }

  .profile-facts,
  .status-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .section {
    padding-left: clamp(14px, 4vw, 20px);
    padding-right: clamp(14px, 4vw, 20px);
  }

  .site-header {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-actions,
  .button,
  .small-button {
    width: 100%;
  }

  .feature-grid,
  .rank-cards,
  .server-grid,
  .server-grid.compact,
  .staff-ranks,
  .kit-strip,
  .profile-facts,
  .status-summary,
  .staff-overview,
  .perk-list,
  .accounts-layout {
    grid-template-columns: 1fr;
  }

  .staff-layout,
  .staff-overview,
  .staff-ranks,
  .rank-group,
  .staff-card,
  .staff-profile,
  .profile-facts,
  .profile-facts div,
  .profile-note {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .staff-ranks {
    gap: 12px;
  }

  .rank-group {
    border-radius: 8px;
  }

  .staff-list {
    padding-right: 10px;
  }

  .staff-card {
    padding: 9px 10px;
  }

  .staff-card strong,
  .staff-card small,
  .staff-profile p,
  .profile-note {
    overflow-wrap: anywhere;
  }

  .staff-profile {
    padding: 22px 16px;
    overflow: hidden;
    background-position: calc(100% - 18px) calc(100% - 18px);
    background-size: 88px;
  }

  .staff-profile h3 {
    font-size: clamp(34px, 12vw, 46px);
  }

  .profile-facts div {
    padding: 14px;
  }

  .profile-note {
    padding-right: 2px;
  }

  .panel-page,
  .panel-content,
  .panel-app {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    min-width: 0;
  }

  .panel-page {
    padding: 16px 12px;
    overflow: hidden;
  }

  .panel-sidebar,
  .panel-content,
  .panel-page,
  .account-table,
  .account-row,
  .account-row > div,
  .account-rank-group,
  .account-rank-list,
  .account-rank-heading,
  .accounts-layout,
  .accounts-layout .account-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .panel-sidebar {
    padding: 12px 10px;
  }

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

  .panel-tab {
    min-width: 0;
  }

  .panel-tab-text {
    overflow-wrap: anywhere;
  }

  .account-table {
    padding: 10px;
  }

  .account-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    overflow: hidden;
  }

  .account-row span,
  .account-row strong,
  .account-badge,
  .account-rank-heading span {
    overflow-wrap: anywhere;
  }

  .account-actions {
    max-width: 116px;
  }

  .account-actions .button {
    width: 100%;
    min-width: 0;
    padding-left: 12px;
    padding-right: 12px;
  }

  .steam-form,
  .steam-result-grid,
  .steam-result-grid-wide,
  .steam-result-top,
  .live-dashboard-summary,
  .live-dashboard-layout,
  .live-dashboard-uses,
  .live-detail-body,
  .live-chart-row,
  .live-performance-grid,
  .live-performance-row,
  .live-timeseries-grid,
  .vacation-card,
  .bug-report-fields {
    grid-template-columns: 1fr;
  }

  .live-dashboard-heading,
  .live-section-header,
  .live-detail-header {
    display: grid;
  }

  .live-detail-header {
    margin-right: 48px;
  }

  .live-dashboard-heading .button {
    width: fit-content;
  }

  .live-server-row {
    grid-template-columns: 1fr;
  }

  .live-server-row > span:not(.live-server-status) {
    text-align: left;
  }

  .bug-report-card-header {
    display: grid;
  }

  .steam-actions {
    justify-content: stretch;
  }

  .steam-actions .button {
    flex: 1 1 150px;
    justify-content: center;
  }

  .copy-row {
    align-items: stretch;
  }

  .pandahut-stats-summary {
    grid-template-columns: 1fr;
  }

  .pandahut-server-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .pandahut-hours-card {
    grid-template-columns: 1fr;
  }

  .pandahut-stats-action {
    justify-content: stretch;
  }

  .pandahut-stats-action .button {
    width: 100%;
  }

  .feature-card,
  .rank-card {
    min-height: 0;
  }

  .profile-top {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .steam-form,
  .steam-result {
    padding: 14px;
  }

  .steam-result-card {
    min-height: 0;
    padding: 12px;
  }

  .steam-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .steam-actions .button {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.25;
  }

  .copy-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .id64-value {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    font-size: clamp(13px, 3.6vw, 15px);
  }

  .copy-row .button {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 13px;
  }
}

@media (max-width: 1200px) {
  .panel-sidebar,
  .panel-app.sidebar-collapsed .panel-sidebar {
    height: auto;
    max-height: none;
    padding: 0;
    gap: 0;
    overflow: hidden;
  }

  .panel-mobile-header {
    min-height: 76px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .035)),
      rgba(6, 10, 15, .68);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
  }

  .panel-mobile-header .eyebrow {
    margin: 0 0 4px;
    font-size: 10px;
  }

  .panel-mobile-header strong {
    display: block;
    color: var(--text);
    font-size: clamp(18px, 5vw, 24px);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .panel-mobile-menu-toggle {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    padding: 0;
    display: grid;
    place-content: center;
    gap: 6px;
    flex: 0 0 auto;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035)),
      rgba(6, 10, 15, .78);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035), 0 10px 22px rgba(0, 0, 0, .2);
    cursor: pointer;
  }

  .panel-mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    border-radius: 999px;
    display: block;
    background: var(--text);
    transition: transform .24s ease, opacity .18s ease, background .18s ease;
  }

  .panel-app.mobile-nav-open .panel-mobile-menu-toggle {
    border-color: rgba(242, 200, 75, .45);
    background:
      linear-gradient(180deg, rgba(242, 200, 75, .16), rgba(242, 200, 75, .055)),
      rgba(6, 10, 15, .82);
  }

  .panel-app.mobile-nav-open .panel-mobile-menu-toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: var(--gold);
  }

  .panel-app.mobile-nav-open .panel-mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .panel-app.mobile-nav-open .panel-mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: var(--gold);
  }

  .panel-mobile-menu,
  .panel-app.sidebar-collapsed .panel-mobile-menu {
    width: 100%;
    max-height: 0;
    margin-top: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 12px;
    display: grid;
    gap: 12px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    background: rgba(6, 10, 15, .42);
    transition:
      max-height .34s cubic-bezier(.2, .82, .2, 1),
      padding .24s ease,
      margin .24s ease,
      opacity .2s ease,
      transform .24s ease,
      border-color .2s ease;
  }

  .panel-app.mobile-nav-open .panel-mobile-menu,
  .panel-app.mobile-nav-open.sidebar-collapsed .panel-mobile-menu {
    max-height: 1100px;
    margin-top: 10px;
    border-color: var(--line);
    padding: 12px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .panel-sidebar-top,
  .panel-app.sidebar-collapsed .panel-sidebar-top {
    display: none;
  }

  .panel-user-card,
  .panel-app.sidebar-collapsed .panel-user-card {
    max-height: none;
    padding: 12px;
    padding-right: 12px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .panel-tabs,
  .panel-nav-section,
  .panel-app.sidebar-collapsed .panel-tabs,
  .panel-app.sidebar-collapsed .panel-nav-section {
    width: 100%;
    display: grid;
    justify-items: stretch;
  }

  .panel-nav-section,
  .panel-app.sidebar-collapsed .panel-nav-section {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .panel-tab,
  .panel-app.sidebar-collapsed .panel-tab {
    width: 100%;
    height: auto;
    min-height: 46px;
    justify-content: flex-start;
    padding: 10px 11px;
    gap: 9px;
  }

  .panel-tab-text,
  .panel-app.sidebar-collapsed .panel-tab-text,
  .panel-app.sidebar-collapsed .panel-back-link span:not(.panel-tab-icon) {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    margin: 0;
    opacity: 1;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    pointer-events: auto;
    transform: none;
  }

  .panel-sidebar-footer,
  .panel-app.sidebar-collapsed .panel-sidebar-footer {
    width: 100%;
    margin-top: 0;
  }

  #logout-button,
  .panel-app.sidebar-collapsed #logout-button {
    width: 100%;
    height: auto;
    min-height: 44px;
    padding: 10px 16px;
    font-size: 13px;
  }

  .panel-app.sidebar-collapsed #logout-button::before {
    content: none;
  }
}

/* Refined public staff profile card */
.staff-profile {
  --profile-accent: var(--active-rank-color, var(--gold));
  position: sticky;
  top: 110px;
  min-height: auto;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid color-mix(in srgb, var(--profile-accent) 44%, var(--line));
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 14%, color-mix(in srgb, var(--profile-accent) 18%, transparent), transparent 34%),
    linear-gradient(150deg, rgba(16, 24, 36, .96), rgba(10, 14, 22, .98) 56%, rgba(14, 19, 30, .96));
  box-shadow: 0 22px 56px rgba(0, 0, 0, .36);
}

.staff-profile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--profile-accent), color-mix(in srgb, var(--profile-accent) 40%, #ffffff));
  opacity: .95;
}

.staff-profile::after {
  content: "";
  position: absolute;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  width: 128px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: url("assets/logo.png") center / contain no-repeat;
  opacity: .045;
  pointer-events: none;
}

.profile-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 26px);
  align-items: center;
  margin-bottom: clamp(22px, 3vw, 32px);
}

.profile-avatar {
  width: clamp(76px, 8vw, 98px);
  height: clamp(76px, 8vw, 98px);
  border: 2px solid color-mix(in srgb, var(--profile-accent) 68%, transparent);
  box-shadow:
    0 0 0 8px color-mix(in srgb, var(--profile-accent) 12%, transparent),
    0 16px 36px rgba(0, 0, 0, .32);
  font-size: clamp(28px, 3vw, 38px);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  text-indent: 120%;
  white-space: nowrap;
  overflow: hidden;
}

.profile-role-badge {
  width: fit-content;
  margin: 0 0 8px;
  padding: 8px 14px;
  border: 1px solid color-mix(in srgb, var(--profile-accent) 72%, transparent);
  border-radius: 999px;
  color: color-mix(in srgb, var(--profile-accent) 42%, #ffffff);
  background: color-mix(in srgb, var(--profile-accent) 18%, transparent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.staff-profile h3 {
  margin: 0;
  max-width: 100%;
  color: #fff;
  font-size: clamp(38px, 4.2vw, 62px);
  line-height: .96;
  overflow-wrap: anywhere;
}

.profile-identity p:not(.profile-role-badge) {
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.5;
}

.profile-facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 14px;
}

.profile-facts > * {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(8, 12, 18, .58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.profile-rank-card {
  min-height: 136px;
  padding: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "mark label"
    "mark title"
    "mark summary";
  column-gap: 16px;
  align-items: center;
  border-color: color-mix(in srgb, var(--profile-accent) 62%, rgba(255, 255, 255, .14));
  background:
    radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--profile-accent) 20%, transparent), transparent 44%),
    linear-gradient(135deg, color-mix(in srgb, var(--profile-accent) 18%, rgba(10, 12, 22, .74)), rgba(9, 12, 18, .72));
}

.profile-rank-mark {
  grid-area: mark;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #081018;
  background: linear-gradient(135deg, var(--profile-accent), color-mix(in srgb, var(--profile-accent) 70%, #ffffff));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--profile-accent) 28%, transparent);
  font-size: 19px;
  font-weight: 1000;
  line-height: 1;
}

.profile-rank-card .profile-fact-label {
  grid-area: label;
  margin-bottom: 4px;
  color: color-mix(in srgb, var(--profile-accent) 50%, #ffffff);
}

.profile-rank-card strong {
  grid-area: title;
  color: #fff;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.profile-rank-card small {
  grid-area: summary;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.profile-focus-card {
  min-height: 136px;
  padding: 22px 24px;
}

.profile-focus-card p {
  margin: 10px 0 0;
  color: #fff;
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.36;
  overflow-wrap: anywhere;
}

.profile-stats-card {
  grid-column: 1 / -1;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.profile-stats-button {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--profile-accent) 70%, transparent);
  border-radius: 8px;
  color: #fff;
  background: color-mix(in srgb, var(--profile-accent) 16%, rgba(8, 12, 18, .78));
  font-size: 14px;
  font-weight: 1000;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.profile-stats-button:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--profile-accent) 26%, rgba(8, 12, 18, .78));
  border-color: color-mix(in srgb, var(--profile-accent) 88%, #ffffff);
}

.profile-stats-empty {
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
}

.profile-note {
  position: relative;
  z-index: 1;
  margin: 22px 0 0;
  padding: 3px 0 3px 18px;
  border-left: 5px solid var(--green);
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
}

@media (max-width: 980px) {
  .staff-profile {
    position: relative;
    top: auto;
  }
}

@media (max-width: 680px) {
  .profile-top,
  .profile-facts,
  .profile-stats-card {
    grid-template-columns: 1fr;
  }

  .profile-top {
    align-items: start;
  }

  .staff-profile h3 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .profile-rank-card {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: auto;
  }

  .profile-stats-button {
    width: 100%;
    white-space: normal;
  }
}

/* Final public staff profile and staff gateway polish */
.staff-profile {
  --profile-accent: var(--active-rank-color, var(--gold));
  position: sticky;
  top: 104px;
  min-height: 0;
  padding: clamp(22px, 2.8vw, 34px);
  border: 1px solid color-mix(in srgb, var(--profile-accent) 42%, rgba(255, 255, 255, .14));
  border-top: 4px solid var(--profile-accent);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 10%, color-mix(in srgb, var(--profile-accent) 15%, transparent), transparent 34%),
    linear-gradient(150deg, rgba(15, 23, 34, .97), rgba(8, 12, 18, .98) 58%, rgba(15, 20, 31, .96));
  box-shadow: 0 24px 54px rgba(0, 0, 0, .34);
}

.staff-profile::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--profile-accent) 9%, transparent), transparent 42%),
    radial-gradient(circle at 84% 88%, rgba(255, 255, 255, .055), transparent 18%);
  opacity: .9;
}

.staff-profile > * {
  position: relative;
  z-index: 1;
}

.staff-profile .profile-top {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin: 0 0 24px;
}

.staff-profile .profile-avatar {
  width: 92px;
  height: 92px;
  min-width: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #071017;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .3), transparent 30%),
    color-mix(in srgb, var(--profile-accent) 82%, var(--gold));
  border: 3px solid var(--profile-accent);
  box-shadow:
    0 0 0 10px color-mix(in srgb, var(--profile-accent) 14%, transparent),
    0 18px 38px rgba(0, 0, 0, .28);
  font-size: 32px;
  font-weight: 1000;
  line-height: 1;
}

.staff-profile .profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.staff-profile .profile-role-badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px;
  padding: 0 15px;
  border: 1px solid color-mix(in srgb, var(--profile-accent) 58%, rgba(255, 255, 255, .18));
  border-radius: 999px;
  background: color-mix(in srgb, var(--profile-accent) 18%, rgba(255, 255, 255, .05));
  color: var(--text);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.staff-profile h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(42px, 4.2vw, 66px);
  line-height: .94;
  overflow-wrap: anywhere;
}

.staff-profile .profile-identity p:not(.profile-role-badge) {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.35vw, 23px);
  line-height: 1.48;
}

.staff-profile .profile-facts {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: 14px;
  align-items: stretch;
}

.staff-profile .profile-facts > * {
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  background: rgba(7, 11, 18, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.staff-profile .profile-fact-label {
  display: block;
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.staff-profile .profile-rank-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 14px;
  row-gap: 4px;
  align-items: center;
  min-height: 0;
  padding: 18px;
  border-color: color-mix(in srgb, var(--profile-accent) 50%, rgba(255, 255, 255, .12));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--profile-accent) 22%, transparent), rgba(7, 11, 18, .78) 68%),
    rgba(7, 11, 18, .74);
}

.staff-profile .profile-rank-mark {
  grid-row: 1 / 4;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #071017;
  background: linear-gradient(135deg, var(--profile-accent), color-mix(in srgb, var(--profile-accent) 76%, #ffffff));
  box-shadow: 0 12px 24px color-mix(in srgb, var(--profile-accent) 24%, transparent);
  font-size: 18px;
  font-weight: 1000;
  line-height: 1;
}

.staff-profile .profile-rank-card .profile-fact-label,
.staff-profile .profile-rank-card strong,
.staff-profile .profile-rank-card small {
  grid-column: 2;
}

.staff-profile .profile-rank-card strong {
  display: block;
  max-width: 100%;
  color: var(--text);
  font-size: clamp(23px, 1.75vw, 31px);
  line-height: 1.05;
  overflow-wrap: normal;
  word-break: normal;
}

.staff-profile .profile-rank-card small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
}

.staff-profile .profile-focus-card {
  padding: 18px 20px;
}

.staff-profile .profile-focus-card p {
  margin: 0;
  color: var(--text);
  font-size: clamp(18px, 1.3vw, 23px);
  line-height: 1.42;
  overflow-wrap: break-word;
}

.staff-profile .profile-stats-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
}

.staff-profile .profile-stats-card .profile-fact-label {
  margin: 0;
}

.staff-profile #profile-stats {
  display: flex;
  justify-content: flex-end;
  width: auto;
  min-width: 240px;
}

.staff-profile .profile-stats-button {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--profile-accent) 56%, rgba(255, 255, 255, .14));
  border-radius: 8px;
  background: color-mix(in srgb, var(--profile-accent) 16%, rgba(7, 11, 18, .82));
  color: var(--text);
  font-size: 13px;
  font-weight: 1000;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.staff-profile .profile-stats-button:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--profile-accent) 24%, rgba(7, 11, 18, .84));
}

.staff-profile .profile-stats-empty {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.staff-profile .profile-note {
  margin: 16px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: rgba(7, 11, 18, .55);
  color: var(--muted);
  font-size: clamp(16px, 1.12vw, 20px);
  line-height: 1.55;
}

.panel-login {
  position: relative;
  width: min(1180px, calc(100vw - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(78px, 10vh, 118px) 0;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(340px, 460px);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
}

.staff-login-return {
  position: absolute;
  top: clamp(24px, 4vh, 42px);
  left: 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--text);
  font-weight: 1000;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.staff-login-return::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s ease;
}

.staff-login-return:hover {
  color: var(--gold);
}

.staff-login-return:hover::after {
  transform: scaleX(1);
}

.panel-login-copy {
  max-width: 650px;
}

.panel-login-copy h1,
.panel-login-copy h2 {
  margin: 0 0 22px;
  font-size: clamp(54px, 6vw, 88px);
  line-height: .94;
}

.panel-login-copy > p:last-child {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(19px, 1.6vw, 26px);
  line-height: 1.35;
}

.login-card {
  width: 100%;
  min-height: 0;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(21, 27, 38, .78);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}

.login-card .button.primary {
  width: 100%;
  min-height: 64px;
}

.login-card .login-hint {
  max-width: 360px;
  margin: 18px auto 0;
  text-align: center;
}

.login-status {
  margin-top: 20px;
}

@media (max-width: 980px) {
  .staff-profile {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  .staff-profile {
    padding: 20px;
  }

  .staff-profile .profile-top {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 16px;
  }

  .staff-profile .profile-avatar {
    width: 74px;
    height: 74px;
    min-width: 74px;
    font-size: 26px;
  }

  .staff-profile h3 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .staff-profile .profile-facts {
    grid-template-columns: 1fr;
  }

  .staff-profile .profile-stats-card {
    display: block;
  }

  .staff-profile #profile-stats {
    width: 100%;
    min-width: 0;
    justify-content: stretch;
    margin-top: 12px;
  }

  .staff-profile .profile-stats-button {
    width: 100%;
    white-space: normal;
  }

  .panel-login {
    width: min(720px, calc(100vw - 30px));
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
    padding-top: 98px;
  }

  .panel-login-copy h1,
  .panel-login-copy h2 {
    font-size: clamp(44px, 13vw, 66px);
  }
}
