:root {
  --complaint-accent: #72d5ff;
  --complaint-accent-strong: #5aa7ff;
  --complaint-accent-violet: #7c8cff;
  --complaint-surface: #0b1722;
  --complaint-surface-2: #101f2d;
  --complaint-border: rgba(143, 208, 255, 0.14);
  --complaint-text: #f4f9fd;
  --complaint-muted: #92a7b8;
  --complaint-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.complaints-page {
  --yellow: var(--complaint-accent);
  --orange: var(--complaint-accent-strong);
  --orange-deep: #417fd6;
  --ink: #06111a;
  --panel: var(--complaint-surface);
  --panel-soft: var(--complaint-surface-2);
  --text: var(--complaint-text);
  --muted: var(--complaint-muted);
  min-height: 100vh;
  background: #061019;
  color: var(--complaint-text);
  font-weight: 600;
}

body.complaints-page::before {
  background:
    radial-gradient(circle at 12% 8%, rgba(68, 166, 255, 0.13), transparent 32%),
    radial-gradient(circle at 88% 22%, rgba(99, 111, 255, 0.11), transparent 34%),
    linear-gradient(180deg, #07131d 0%, #07111a 48%, #050c12 100%);
  animation: none;
}

body.complaints-page::after {
  opacity: 0.025;
}

.complaints-ambient {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.complaints-ambient span {
  position: absolute;
  display: block;
  border-radius: 999px;
  opacity: 0.4;
  filter: blur(1px);
}

.complaints-ambient span:nth-child(1) {
  top: 118px;
  left: -160px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(96, 196, 255, 0.12);
  box-shadow: inset 0 0 80px rgba(61, 147, 255, 0.04);
}

.complaints-ambient span:nth-child(2) {
  top: 38%;
  right: -230px;
  width: 530px;
  height: 530px;
  border: 1px solid rgba(125, 141, 255, 0.1);
}

.complaints-ambient span:nth-child(3) {
  left: 38%;
  bottom: -330px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(50, 142, 224, 0.07), transparent 66%);
}

.complaints-page .site-header {
  min-height: 80px;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(6, 15, 23, 0.92), rgba(6, 15, 23, 0.68));
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.complaints-page .site-header.is-scrolled {
  border-bottom-color: rgba(125, 203, 255, 0.11);
  background: rgba(6, 15, 23, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

/* Minimal complaints pass. */
.complaints-ambient { opacity: 0.45; }
.complaints-hero { padding-bottom: 28px; }
.complaints-summary { gap: 1px; border: 1px solid rgba(137, 202, 244, 0.09); border-radius: 14px; overflow: hidden; }
.complaints-summary article { border: 0; border-radius: 0; background: rgba(10, 23, 33, 0.48); }
.complaints-workspace { min-height: 620px; border-radius: 16px; box-shadow: none; background: rgba(7, 17, 25, 0.7); }
.complaints-list { gap: 0; padding: 6px; }
.complaint-card { gap: 10px; padding: 15px 14px; border: 0; border-bottom: 1px solid rgba(138, 204, 246, 0.08); border-radius: 10px; background: transparent; box-shadow: none; }
.complaint-card::before { display: none; }
.complaint-card:hover { transform: none; background: rgba(55, 129, 174, 0.07); box-shadow: none; }
.complaint-card.is-active { background: rgba(55, 151, 211, 0.1); box-shadow: none; }
.complaint-detail-top { padding: 19px 21px 16px; background: rgba(10, 22, 31, 0.58); }
.complaint-conversation { padding: 20px; scroll-behavior: auto; }
.complaint-description-card { padding: 15px; border-color: rgba(137, 203, 244, 0.08); background: rgba(14, 30, 42, 0.38); }
.complaint-dialog:not(.complaint-target-dialog) { height: min(820px, calc(100dvh - 30px)); }
.complaint-dialog:not(.complaint-target-dialog) .complaint-form { height: 100%; }
.complaint-dialog-header { padding: 21px 24px 18px; background: #0b1b27; }
.complaint-form-scroll { gap: 20px; padding: 22px 24px 25px; }
.complaint-category-grid label { min-height: 92px; background: rgba(14, 30, 42, 0.48); }
.complaint-form-footer { padding: 14px 24px; }

.complaint-target-manager { align-items: flex-start; flex-direction: column; margin-top: 13px; padding-top: 13px; border-top: 1px solid rgba(137, 203, 244, 0.08); }
.complaint-target-manager-label { color: #6f8798; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.complaint-player-chip { min-height: 38px; border-color: rgba(125, 203, 255, 0.1); background: rgba(42, 126, 181, 0.07); }
.complaint-player-chip img { width: 30px; height: 30px; }
.complaint-add-target { min-height: 35px; background: transparent; }

.complaint-status-menu { position: relative; }
.complaint-status-menu summary,
.complaint-withdraw-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(115, 207, 255, 0.16);
  border-radius: 10px;
  color: #cfefff;
  background: rgba(84, 177, 233, 0.06);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.complaint-status-menu summary::-webkit-details-marker { display: none; }
.complaint-status-menu[open] summary { border-color: rgba(115, 207, 255, 0.36); }
.complaint-status-menu > div { position: absolute; z-index: 25; top: calc(100% + 6px); right: 0; display: grid; width: 190px; padding: 5px; border: 1px solid rgba(125, 203, 255, 0.14); border-radius: 11px; background: #0c1e2b; box-shadow: 0 16px 38px rgba(0, 0, 0, 0.38); }
.complaint-status-menu button { padding: 9px 10px; border: 0; border-radius: 7px; color: #9db6c6; background: transparent; font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.complaint-status-menu button:hover,
.complaint-status-menu button.is-active { color: #e9f8ff; background: rgba(83, 176, 234, 0.11); }
.complaint-withdraw-button { border-color: rgba(255, 130, 140, 0.16); color: #ffb8be; background: rgba(255, 90, 105, 0.05); }
.complaint-withdraw-button:hover { border-color: rgba(255, 130, 140, 0.34); background: rgba(255, 90, 105, 0.1); }

.complaint-file-preview { grid-template-columns: repeat(auto-fill, minmax(105px, 125px)); }
.complaint-file-preview figure { min-height: 105px; }
.complaint-file-preview img { height: 82px; aspect-ratio: auto; background: rgba(255,255,255,0.025); }

@media (max-width: 720px) {
  .complaint-dialog:not(.complaint-target-dialog) { height: 100dvh; }
  .complaint-detail-actions { grid-template-columns: 1fr !important; }
  .complaint-status-menu summary, .complaint-withdraw-button { width: 100%; }
  .complaint-status-menu > div { right: auto; left: 0; width: min(240px, calc(100vw - 32px)); }
}

.complaints-topic-filter select,
.complaint-select-wrap select {
  min-height: 42px;
  border: 1px solid rgba(125, 203, 255, 0.13);
  border-radius: 10px;
  outline: 0;
  color: #d9effb;
  background: #0d202d;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color-scheme: dark;
}
.complaints-topic-filter select { padding: 0 34px 0 12px; }
.complaint-select-wrap { display: block; }
.complaint-select-wrap select { width: 100%; padding: 0 12px; }
.complaints-topic-filter select:focus,
.complaint-select-wrap select:focus { border-color: rgba(104, 202, 255, 0.4); }
.complaint-topic-badge {
  margin-right: auto;
  padding: 4px 7px;
  border-radius: 7px;
  color: #8fcce9;
  background: rgba(74, 161, 211, 0.08);
  font-size: 9px;
  font-weight: 800;
}
@media (max-width: 720px) {
  .complaints-topic-filter, .complaints-topic-filter select { width: 100%; }
}

.complaints-page .site-header {
  background: transparent !important;
  background-color: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.complaints-page .site-header.is-scrolled {
  background: rgba(6, 15, 23, 0.55) !important;
  background-color: rgba(6, 15, 23, 0.55) !important;
  border-bottom-color: rgba(125, 203, 255, 0.11) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16) !important;
  backdrop-filter: blur(18px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
}

/* Final complaints UI overrides. */
.complaints-workspace { min-height: 620px; border-radius: 16px; box-shadow: none; }
.complaints-list { gap: 0; padding: 6px; }
.complaint-card { gap: 10px; padding: 15px 14px; border: 0; border-bottom: 1px solid rgba(138, 204, 246, 0.08); border-radius: 10px; background: transparent; box-shadow: none; }
.complaint-card::before { display: none; }
.complaint-card:hover { transform: none; background: rgba(55, 129, 174, 0.07); box-shadow: none; }
.complaint-card.is-active { background: rgba(55, 151, 211, 0.1); box-shadow: none; }
.complaint-conversation { scroll-behavior: auto; }
.complaints-topic-filter select,
.complaint-select-wrap select { min-height: 42px; border: 1px solid rgba(125, 203, 255, 0.13); border-radius: 10px; outline: 0; color: #d9effb; background: #0d202d; font: inherit; font-size: 12px; font-weight: 700; color-scheme: dark; }
.complaints-topic-filter select { padding: 0 34px 0 12px; }
.complaint-select-wrap { display: block; }
.complaint-select-wrap select { width: 100%; padding: 0 12px; }
.complaint-topic-badge { margin-right: auto; padding: 4px 7px; border-radius: 7px; color: #8fcce9; background: rgba(74, 161, 211, 0.08); font-size: 9px; font-weight: 800; }
.complaint-status-menu { position: relative; }
.complaint-status-menu summary,
.complaint-withdraw-button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 0 13px; border: 1px solid rgba(115, 207, 255, 0.16); border-radius: 10px; color: #cfefff; background: rgba(84, 177, 233, 0.06); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; list-style: none; }
.complaint-status-menu > div { position: absolute; z-index: 25; top: calc(100% + 6px); right: 0; display: grid; width: 190px; padding: 5px; border: 1px solid rgba(125, 203, 255, 0.14); border-radius: 11px; background: #0c1e2b; box-shadow: 0 16px 38px rgba(0,0,0,.38); }
.complaint-status-menu button { padding: 9px 10px; border: 0; border-radius: 7px; color: #9db6c6; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.complaint-status-menu button:hover, .complaint-status-menu button.is-active { color: #e9f8ff; background: rgba(83,176,234,.11); }
.complaint-target-manager { align-items: flex-start; flex-direction: column; padding-top: 13px; border-top: 1px solid rgba(137,203,244,.08); }
.complaint-target-manager-label { color: #6f8798; font-size: 10px; font-weight: 800; text-transform: uppercase; }
@media (max-width: 720px) {
  .complaints-topic-filter, .complaints-topic-filter select { width: 100%; }
  .complaint-detail-actions { grid-template-columns: 1fr !important; }
}

/* Final stable layout overrides. */
.complaints-section.container { width: min(1520px, calc(100% - 32px)); max-width: none; }
.complaints-workspace { min-height: 720px; grid-template-columns: minmax(280px,330px) minmax(0,1fr); }
.complaints-list { max-height: 720px; }
.complaints-detail, .complaints-detail-placeholder, .complaints-detail-loading { height: 720px; }
.complaint-description-card p { font-size: 14px; line-height: 1.72; }
.complaint-message-bubble { padding: 13px 15px; font-size: 14px; line-height: 1.62; }
.complaint-message-head { font-size: 12px; }
.complaint-reply-form textarea { font-size: 14px; }
.complaint-dialog:not(.complaint-target-dialog) { width: min(1040px, calc(100vw - 32px)); height: auto !important; max-height: min(860px, var(--complaint-dialog-height, calc(100dvh - 32px))) !important; overflow: hidden !important; }
.complaint-dialog:not(.complaint-target-dialog) .complaint-form { display: flex !important; height: auto !important; min-height: 0 !important; max-height: min(860px, var(--complaint-dialog-height, calc(100dvh - 32px))) !important; flex-direction: column; }
.complaint-dialog:not(.complaint-target-dialog) .complaint-form-scroll { min-height: 0; max-height: calc(var(--complaint-dialog-height, 860px) - 176px); flex: 1 1 auto; overflow-y: auto; }
.complaint-category-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.complaint-category-grid label { min-height: 82px; grid-template-columns: 34px minmax(0,1fr) 14px; padding: 12px; gap: 9px; }
.complaint-category-icon { width: 34px; height: 34px; }
.complaint-dropzone { min-height: 92px; padding: 18px; }
.complaint-file-preview { grid-template-columns: repeat(auto-fill,minmax(110px,132px)); }
.complaint-file-preview figure { min-height: 104px; }
.complaint-file-preview img { height: 78px; aspect-ratio: auto; }
.complaint-file-remove { position: absolute; top: 6px; right: 6px; display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; color: #fff; background: rgba(4,12,18,.78); cursor: pointer; }
.complaint-file-remove:hover { background: rgba(210,62,78,.9); }
.complaint-file-preview figure.is-invalid img { opacity: .35; }
.complaint-form.has-error .complaint-form-footer { border-top-color: rgba(255,120,132,.22); }
@media (max-width: 1100px) { .complaint-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 980px) { .complaints-workspace { min-height: 620px; grid-template-columns: 1fr; } .complaints-list { max-height: none; } }
@media (max-width: 720px) {
  .complaints-section.container { width: 100%; }
  .complaint-dialog:not(.complaint-target-dialog) { width: 100vw; height: 100dvh !important; max-height: 100dvh !important; }
  .complaint-dialog:not(.complaint-target-dialog) .complaint-form { height: 100dvh !important; max-height: 100dvh !important; }
  .complaint-dialog:not(.complaint-target-dialog) .complaint-form-scroll { max-height: none; flex: 1 1 auto; }
  .complaint-category-grid { grid-template-columns: 1fr 1fr; }
  .complaint-category-grid label { min-height: 74px; }
}
@media (max-width: 440px) { .complaint-category-grid { grid-template-columns: 1fr; } }

/* Stable spacious layout. */
.complaints-section.container {
  width: min(1520px, calc(100% - 32px));
  max-width: none;
}
.complaints-workspace {
  min-height: 720px;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
}
.complaints-list { max-height: 720px; }
.complaints-detail,
.complaints-detail-placeholder,
.complaints-detail-loading { height: 720px; }
.complaint-description-card p { font-size: 14px; line-height: 1.72; }
.complaint-message-bubble { padding: 13px 15px; font-size: 14px; line-height: 1.62; }
.complaint-message-head { font-size: 12px; }
.complaint-reply-form textarea { font-size: 14px; }

.complaint-dialog:not(.complaint-target-dialog) {
  width: min(1040px, calc(100vw - 32px));
  height: auto !important;
  max-height: min(860px, var(--complaint-dialog-height, calc(100dvh - 32px))) !important;
  overflow: hidden !important;
}
.complaint-dialog:not(.complaint-target-dialog) .complaint-form {
  display: flex !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(860px, var(--complaint-dialog-height, calc(100dvh - 32px))) !important;
  flex-direction: column;
}
.complaint-dialog:not(.complaint-target-dialog) .complaint-form-scroll {
  min-height: 0;
  max-height: calc(var(--complaint-dialog-height, 860px) - 176px);
  flex: 1 1 auto;
  overflow-y: auto;
}
.complaint-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.complaint-category-grid label { min-height: 82px; grid-template-columns: 34px minmax(0,1fr) 14px; padding: 12px; gap: 9px; }
.complaint-category-icon { width: 34px; height: 34px; }
.complaint-dropzone { min-height: 92px; padding: 18px; }
.complaint-file-preview { grid-template-columns: repeat(auto-fill, minmax(110px, 132px)); }
.complaint-file-preview figure { min-height: 104px; }
.complaint-file-preview img { height: 78px; aspect-ratio: auto; }
.complaint-file-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  color: #fff;
  background: rgba(4,12,18,.78);
  cursor: pointer;
}
.complaint-file-remove:hover { background: rgba(210,62,78,.9); }
.complaint-file-preview figure.is-invalid img { opacity: .35; }
.complaint-form.has-error .complaint-form-footer { border-top-color: rgba(255,120,132,.22); }
.complaint-form.is-submitting .complaint-submit { pointer-events: none; }

@media (max-width: 1100px) {
  .complaint-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .complaints-workspace { min-height: 620px; grid-template-columns: 1fr; }
  .complaints-list { max-height: none; }
}
@media (max-width: 720px) {
  .complaints-section.container { width: 100%; }
  .complaint-dialog:not(.complaint-target-dialog) {
    width: 100vw;
    height: 100dvh !important;
    max-height: 100dvh !important;
  }
  .complaint-dialog:not(.complaint-target-dialog) .complaint-form {
    height: 100dvh !important;
    max-height: 100dvh !important;
  }
  .complaint-dialog:not(.complaint-target-dialog) .complaint-form-scroll {
    max-height: none;
    flex: 1 1 auto;
  }
  .complaint-category-grid { grid-template-columns: 1fr 1fr; }
  .complaint-category-grid label { min-height: 74px; }
}
@media (max-width: 440px) {
  .complaint-category-grid { grid-template-columns: 1fr; }
}

.complaints-topic-filter input {
  width: 190px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(125,203,255,.13);
  border-radius: 10px;
  outline: 0;
  color: #d9effb;
  background: #0d202d;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}
.complaints-topic-filter input::placeholder { color: #607889; }
.complaints-topic-filter input:focus { border-color: rgba(104,202,255,.4); }
.complaint-topic-input { padding-left: 14px !important; }
@media (max-width: 720px) {
  .complaints-topic-filter input { width: 100%; }
}

.complaints-page .site-nav {
  gap: clamp(18px, 2.8vw, 42px);
}

.complaints-page .site-nav a {
  color: #cbd8e2;
}

.complaints-page .site-nav a:hover,
.complaints-page .site-nav a.is-active {
  color: #eaf8ff;
}

.complaints-page .site-nav a::after {
  background: linear-gradient(90deg, var(--complaint-accent), var(--complaint-accent-violet));
  box-shadow: 0 0 15px rgba(95, 189, 255, 0.42);
}

.complaints-page .login-button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(120, 205, 255, 0.16);
  background: rgba(15, 31, 44, 0.86);
  color: #e9f7ff;
  box-shadow: none;
}

.complaints-page .login-button:hover {
  border-color: rgba(114, 213, 255, 0.4);
  background: #132c3f;
}

.complaints-page .account-trigger {
  border-color: rgba(120, 205, 255, 0.15);
  background: rgba(10, 23, 34, 0.94);
}

.complaints-page .account-trigger:hover {
  border-color: rgba(114, 213, 255, 0.4);
  background: #10283a;
}

.complaints-page .account-dropdown,
.complaints-page .account-notifications-panel {
  border-color: rgba(114, 213, 255, 0.16);
  background: #0b1823;
}

.complaints-main {
  position: relative;
  min-height: calc(100vh - 150px);
  padding-top: 80px;
}

.complaints-hero {
  position: relative;
  padding: clamp(72px, 9vw, 116px) 0 40px;
}

.complaints-hero::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: 12px;
  left: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122, 206, 255, 0.13), transparent);
}

.complaints-hero-grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
}

.complaints-hero-copy {
  max-width: 720px;
}

.complaints-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: #8edaff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.complaints-kicker span {
  width: 24px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.complaints-hero h1 {
  margin: 0;
  color: #f7fbff;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.complaints-lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: #9db0bf;
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 600;
  line-height: 1.75;
}

.complaints-new-button,
.complaints-primary-link,
.complaint-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid rgba(174, 226, 255, 0.2);
  border-radius: 14px;
  background: linear-gradient(135deg, #66c9f8, #6285ff 78%);
  color: #03111b;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(54, 132, 224, 0.2), inset 0 1px rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.complaints-new-button:hover,
.complaints-primary-link:hover,
.complaint-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 18px 38px rgba(54, 132, 224, 0.3), inset 0 1px rgba(255, 255, 255, 0.45);
}

.complaints-new-button:active,
.complaints-primary-link:active,
.complaint-submit:active {
  transform: translateY(0) scale(0.985);
}

.complaints-new-button:disabled,
.complaint-submit:disabled {
  cursor: wait;
  filter: saturate(0.5);
  opacity: 0.55;
  transform: none;
}

.complaints-section {
  padding: 12px 0 96px;
}

.complaints-loading,
.complaints-auth-state,
.complaints-error-state {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  border: 1px dashed rgba(133, 201, 245, 0.16);
  border-radius: 24px;
  background: rgba(9, 20, 29, 0.6);
  text-align: center;
}

.complaints-loading strong {
  margin-top: 18px;
  color: #eff9ff;
  font-size: 18px;
}

.complaints-loading small,
.complaints-auth-state p,
.complaints-error-state p {
  margin: 8px 0 0;
  color: var(--complaint-muted);
  font-size: 14px;
}

.complaints-loader {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(111, 205, 255, 0.13);
  border-top-color: #75d8ff;
  border-radius: 50%;
  animation: complaints-spin 0.8s linear infinite;
}

@keyframes complaints-spin {
  to { transform: rotate(360deg); }
}

.complaints-auth-state h2,
.complaints-error-state h2 {
  margin: 20px 0 0;
  color: #f3f9fd;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: clamp(20px, 3vw, 27px);
}

.complaints-auth-state .complaints-primary-link {
  margin-top: 28px;
}

.complaints-state-icon {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid rgba(110, 206, 255, 0.2);
  border-radius: 20px;
  background: rgba(89, 181, 242, 0.1);
  color: #77d6ff;
}

.complaints-state-icon.is-error {
  border-color: rgba(255, 120, 128, 0.2);
  background: rgba(255, 90, 105, 0.08);
  color: #ff858f;
}

.complaints-error-state button,
.complaints-empty button {
  min-height: 44px;
  margin-top: 22px;
  padding: 0 18px;
  border: 1px solid rgba(119, 207, 255, 0.22);
  border-radius: 12px;
  background: rgba(83, 172, 230, 0.1);
  color: #dff5ff;
  font-weight: 800;
  cursor: pointer;
}

.complaints-app {
  position: relative;
}

.complaints-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.complaints-summary article {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  padding: 15px 17px;
  border: 1px solid rgba(137, 202, 244, 0.1);
  border-radius: 16px;
  background: rgba(10, 23, 33, 0.68);
}

.complaints-summary article > span:last-child {
  display: grid;
  min-width: 0;
}

.complaints-summary strong {
  color: #f1f9ff;
  font-size: 19px;
  line-height: 1.1;
}

.complaints-summary small {
  overflow: hidden;
  margin-top: 4px;
  color: #7790a3;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.complaints-summary-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 12px;
}

.complaints-summary-icon.is-open {
  background: rgba(89, 188, 255, 0.11);
  color: #76d1ff;
}

.complaints-summary-icon.is-closed {
  background: rgba(88, 225, 168, 0.1);
  color: #73e4b7;
}

.complaints-summary-icon.is-unread {
  background: rgba(139, 133, 255, 0.1);
  color: #aaa5ff;
}

.complaints-scope {
  display: inline-flex;
  max-width: 100%;
  gap: 4px;
  margin-bottom: 15px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid rgba(136, 202, 244, 0.12);
  border-radius: 13px;
  background: rgba(8, 19, 28, 0.75);
}

.complaints-scope button,
.complaints-filters button {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #7f96a8;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.complaints-scope button:hover,
.complaints-filters button:hover {
  color: #d9effb;
}

.complaints-scope button.is-active,
.complaints-filters button.is-active {
  background: #172b3a;
  color: #edf9ff;
  box-shadow: inset 0 0 0 1px rgba(142, 213, 255, 0.12);
}

.complaints-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}

.complaints-filters {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(136, 202, 244, 0.12);
  border-radius: 13px;
  background: rgba(8, 19, 28, 0.74);
}

.complaints-search {
  display: flex;
  width: min(310px, 42vw);
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(136, 202, 244, 0.12);
  border-radius: 13px;
  background: rgba(8, 19, 28, 0.76);
  color: #71899a;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.complaints-search:focus-within {
  border-color: rgba(107, 204, 255, 0.44);
  background: #0c1d29;
}

.complaints-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #eaf7ff;
  font: inherit;
  font-size: 13px;
}

.complaints-search input::placeholder {
  color: #607889;
}

.complaints-workspace {
  display: grid;
  min-height: 670px;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.52fr);
  overflow: hidden;
  border: 1px solid var(--complaint-border);
  border-radius: 22px;
  background: rgba(7, 17, 25, 0.82);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.23);
}

.complaints-list-panel {
  min-width: 0;
  border-right: 1px solid rgba(138, 204, 246, 0.1);
  background: rgba(8, 19, 28, 0.76);
}

.complaints-list {
  display: grid;
  max-height: 670px;
  gap: 8px;
  padding: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.complaint-card {
  position: relative;
  display: grid;
  width: 100%;
  gap: 13px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid rgba(138, 204, 246, 0.1);
  border-radius: 16px;
  background: rgba(14, 29, 41, 0.72);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.22s var(--complaint-ease), border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.complaint-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--complaint-accent), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.complaint-card:hover {
  transform: translateY(-2px);
  border-color: rgba(114, 213, 255, 0.24);
  background: rgba(18, 37, 51, 0.9);
}

.complaint-card.is-active {
  border-color: rgba(114, 213, 255, 0.34);
  background: linear-gradient(135deg, rgba(24, 53, 72, 0.94), rgba(15, 31, 45, 0.94));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.17);
}

.complaint-card.is-active::before {
  opacity: 1;
}

.complaint-card-head,
.complaint-card-meta,
.complaint-card-footer,
.complaint-detail-heading,
.complaint-detail-actions,
.complaint-assignment,
.complaint-message-head {
  display: flex;
  align-items: center;
}

.complaint-card-head {
  justify-content: space-between;
  gap: 10px;
}

.complaint-card-id {
  color: #eef9ff;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.complaint-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid rgba(115, 207, 255, 0.16);
  border-radius: 999px;
  background: rgba(91, 187, 243, 0.08);
  color: #86d8ff;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.complaint-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.complaint-status[data-status="waiting_author"] {
  border-color: rgba(255, 190, 97, 0.2);
  background: rgba(255, 172, 66, 0.08);
  color: #ffc579;
}

.complaint-status[data-status="resolved"] {
  border-color: rgba(92, 226, 169, 0.2);
  background: rgba(62, 202, 142, 0.08);
  color: #76e4b9;
}

.complaint-status[data-status="rejected"],
.complaint-status[data-status="closed"] {
  border-color: rgba(149, 166, 180, 0.15);
  background: rgba(126, 145, 160, 0.07);
  color: #9aaebb;
}

.complaint-card-meta {
  min-width: 0;
  gap: 8px;
  color: #b9cad5;
  font-size: 13px;
}

.complaint-card-meta img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 6px;
  image-rendering: pixelated;
}

.complaint-card-meta strong,
.complaint-card-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.complaint-card-meta i {
  flex: 0 0 auto;
  color: #526a7b;
  font-style: normal;
}

.complaint-card-meta .complaint-target {
  color: #7fd5ff;
}

.complaint-card-excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #7f95a5;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.complaint-card-footer {
  justify-content: space-between;
  gap: 10px;
  color: #5e7687;
  font-size: 10px;
}

.complaint-card-counters {
  display: flex;
  gap: 9px;
}

.complaint-card-counters span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.complaint-unread-badge {
  display: grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6bcfff, #7d89ff);
  color: #06131d;
  font-size: 10px;
  font-weight: 900;
}

.complaints-empty {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 25px;
  text-align: center;
}

.complaints-empty > span,
.complaints-detail-placeholder > span {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(124, 203, 251, 0.13);
  border-radius: 20px;
  background: rgba(78, 164, 220, 0.07);
  color: #63879d;
}

.complaints-empty h3,
.complaints-detail-placeholder h2 {
  margin: 20px 0 0;
  color: #dfeef6;
  font-size: 18px;
}

.complaints-empty p,
.complaints-detail-placeholder p {
  max-width: 340px;
  margin: 9px 0 0;
  color: #6f8798;
  font-size: 13px;
  line-height: 1.6;
}

.complaints-detail-panel {
  position: relative;
  min-width: 0;
  background:
    linear-gradient(rgba(9, 21, 30, 0.94), rgba(9, 21, 30, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(105, 190, 255, 0.14), transparent 35%);
}

.complaints-detail-placeholder,
.complaints-detail-loading {
  display: flex;
  min-height: 670px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.complaints-detail-loading {
  gap: 14px;
  color: #8199aa;
  font-size: 13px;
}

.complaints-detail {
  display: grid;
  height: 670px;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.complaint-detail-top {
  padding: 22px 24px 19px;
  border-bottom: 1px solid rgba(137, 203, 244, 0.1);
  background: rgba(12, 26, 37, 0.72);
}

.complaint-detail-heading {
  justify-content: space-between;
  gap: 18px;
}

.complaint-detail-title {
  min-width: 0;
}

.complaint-detail-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  color: #718b9d;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.complaint-detail-eyebrow strong {
  color: #87d9ff;
}

.complaint-detail-title h2 {
  margin: 0;
  overflow: hidden;
  color: #f2f9fd;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: clamp(17px, 2vw, 23px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.complaint-detail-back {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgba(130, 203, 247, 0.14);
  border-radius: 12px;
  background: rgba(89, 171, 223, 0.06);
  color: #9acbe4;
  cursor: pointer;
}

.complaint-detail-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  margin-top: 18px;
}

.complaint-participants {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: #879dac;
  font-size: 12px;
}

.complaint-participants img,
.complaint-assignment img,
.complaint-message-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 7px;
  image-rendering: pixelated;
}

.complaint-participants b {
  overflow: hidden;
  color: #cbdce6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.complaint-participants i {
  color: #526b7c;
  font-style: normal;
}

.complaint-participants .complaint-target {
  color: #83d7ff;
}

.complaint-detail-actions {
  justify-content: flex-end;
  gap: 8px;
}

.complaint-claim-button,
.complaint-status-select,
.complaint-reply-button {
  min-height: 40px;
  border: 1px solid rgba(115, 207, 255, 0.18);
  border-radius: 11px;
  background: rgba(84, 177, 233, 0.08);
  color: #cfefff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.complaint-claim-button,
.complaint-reply-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.complaint-claim-button:hover,
.complaint-reply-button:hover {
  border-color: rgba(115, 207, 255, 0.38);
  background: rgba(84, 177, 233, 0.15);
}

.complaint-status-select {
  max-width: 175px;
  padding: 0 34px 0 12px;
  outline: 0;
  cursor: pointer;
}

.complaint-status-select:focus {
  border-color: rgba(114, 213, 255, 0.5);
}

.complaint-assignment {
  gap: 9px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid rgba(137, 203, 244, 0.08);
  color: #6f8798;
  font-size: 11px;
}

.complaint-assignment img {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}

.complaint-assignment strong {
  color: #b9d0dd;
}

.complaint-conversation {
  min-height: 0;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.complaint-description-card {
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid rgba(137, 203, 244, 0.1);
  border-radius: 15px;
  background: rgba(14, 30, 42, 0.56);
}

.complaint-description-card > span {
  display: block;
  margin-bottom: 9px;
  color: #6e8a9d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.complaint-description-card p {
  margin: 0;
  color: #c1d2dc;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.complaint-attachments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.complaint-attachment {
  position: relative;
  display: block;
  min-height: 94px;
  overflow: hidden;
  border: 1px solid rgba(142, 208, 249, 0.12);
  border-radius: 11px;
  background: #07111a;
}

.complaint-attachment img {
  width: 100%;
  height: 100%;
  min-height: 94px;
  object-fit: cover;
  transition: transform 0.25s var(--complaint-ease), opacity 0.2s ease;
}

.complaint-attachment:hover img {
  transform: scale(1.035);
}

.complaint-attachment span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  left: 7px;
  overflow: hidden;
  padding: 5px 7px;
  border-radius: 7px;
  background: rgba(3, 10, 15, 0.78);
  color: #c8dbe6;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.complaint-messages {
  display: grid;
  gap: 13px;
}

.complaint-message {
  display: grid;
  max-width: min(82%, 620px);
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
}

.complaint-message.is-mine {
  margin-left: auto;
  grid-template-columns: minmax(0, 1fr) 30px;
}

.complaint-message.is-mine .complaint-message-avatar {
  grid-column: 2;
}

.complaint-message.is-mine .complaint-message-content {
  grid-column: 1;
  grid-row: 1;
}

.complaint-message-content {
  min-width: 0;
}

.complaint-message-head {
  gap: 8px;
  margin: 0 2px 6px;
  color: #6f8798;
  font-size: 9px;
}

.complaint-message-head strong {
  color: #a9c3d2;
  font-size: 10px;
}

.complaint-message.is-mine .complaint-message-head {
  justify-content: flex-end;
}

.complaint-staff-badge {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(105, 199, 255, 0.1);
  color: #82d6ff;
  font-size: 8px;
  font-weight: 900;
}

.complaint-message-bubble {
  padding: 12px 14px;
  border: 1px solid rgba(137, 203, 244, 0.1);
  border-radius: 5px 14px 14px 14px;
  background: #102330;
  color: #c6d7e0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.complaint-message.is-mine .complaint-message-bubble {
  border-color: rgba(114, 213, 255, 0.16);
  border-radius: 14px 5px 14px 14px;
  background: linear-gradient(135deg, #15394d, #17344b);
  color: #e0f3fc;
}

.complaint-player-link {
  color: #bfe8fb;
  font-weight: 900;
  text-decoration: none;
}

.complaint-player-link:hover,
.complaint-player-link:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.complaint-description-card p {
  font-size: 16px;
  line-height: 1.75;
}

.complaint-message-bubble {
  padding: 15px 17px;
  font-size: 16px;
  line-height: 1.68;
}

.complaint-message-head,
.complaint-message-head strong,
.complaint-message-head .complaint-player-link {
  font-size: 12px;
}

.complaint-message-delivery {
  display: block;
  margin: 5px 4px 0;
  color: #718795;
  font-size: 9px;
  font-weight: 800;
  text-align: right;
}

.complaint-message-delivery.is-read {
  color: #77c8ee;
}

.complaint-system-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 2px auto;
  padding: 7px 11px;
  border: 1px solid rgba(133, 201, 244, 0.08);
  border-radius: 999px;
  background: rgba(74, 146, 191, 0.05);
  color: #6b8799;
  font-size: 9px;
  text-align: center;
}

.complaint-system-message svg {
  flex: 0 0 auto;
  color: #73bddd;
}

.complaint-reply-shell {
  padding: 15px 18px;
  border-top: 1px solid rgba(137, 203, 244, 0.1);
  background: rgba(8, 20, 29, 0.95);
}

.complaint-reply-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.complaint-reply-form textarea {
  min-height: 46px;
  max-height: 130px;
  resize: none;
  padding: 12px 14px;
  border: 1px solid rgba(138, 204, 246, 0.13);
  border-radius: 12px;
  outline: 0;
  background: #0e202d;
  color: #e6f4fb;
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.complaint-reply-form textarea:focus {
  border-color: rgba(114, 213, 255, 0.45);
  background: #112735;
}

.complaint-reply-form textarea::placeholder {
  color: #587183;
}

.complaint-reply-button {
  min-width: 48px;
  padding: 0 14px;
  background: linear-gradient(135deg, #5abce9, #637fff);
  color: #07131c;
}

.complaint-reply-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.complaint-reply-closed {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #6d8596;
  font-size: 11px;
  text-align: center;
}

.complaint-dialog {
  width: min(900px, calc(100vw - 30px));
  max-width: none;
  max-height: min(880px, calc(100dvh - 30px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(136, 211, 255, 0.2);
  border-radius: 23px;
  background: #091722;
  color: var(--complaint-text);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.62), 0 0 70px rgba(62, 145, 220, 0.08);
}

.complaint-dialog[open] {
  animation: complaint-dialog-in 0.38s var(--complaint-ease) both;
}

.complaint-dialog::backdrop {
  background: rgba(1, 7, 11, 0.78);
}

@keyframes complaint-dialog-in {
  from { opacity: 0; transform: translateY(24px) scale(0.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.complaint-form {
  display: grid;
  max-height: min(880px, calc(100dvh - 30px));
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.complaint-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 28px 21px;
  border-bottom: 1px solid rgba(138, 204, 246, 0.1);
  background: linear-gradient(135deg, rgba(22, 52, 70, 0.74), rgba(10, 24, 35, 0.9));
}

.complaint-dialog-header p {
  margin: 0 0 8px;
  color: #78cfff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.complaint-dialog-header h2 {
  margin: 0;
  color: #f1f9fd;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: clamp(22px, 3vw, 30px);
}

.complaint-dialog-header small {
  display: block;
  margin-top: 8px;
  color: #708a9c;
  font-size: 11px;
}

.complaint-dialog-header small strong {
  color: #b9d1de;
}

.complaint-dialog-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid rgba(137, 203, 244, 0.12);
  border-radius: 13px;
  background: rgba(91, 173, 224, 0.06);
  color: #84a1b3;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.complaint-dialog-close:hover {
  border-color: rgba(116, 210, 255, 0.3);
  background: rgba(91, 173, 224, 0.12);
  color: #e2f5ff;
}

.complaint-form-scroll {
  display: grid;
  gap: 24px;
  padding: 25px 28px 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.complaint-category-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.complaint-category-fieldset legend,
.complaint-field > span:first-child {
  display: block;
  margin-bottom: 10px;
  color: #c5d7e1;
  font-size: 12px;
  font-weight: 800;
}

.complaint-field > span:first-child small {
  color: #61798a;
  font-weight: 700;
}

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

.complaint-category-grid label {
  position: relative;
  display: grid;
  min-height: 104px;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(137, 203, 244, 0.12);
  border-radius: 15px;
  background: rgba(14, 30, 42, 0.68);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--complaint-ease);
}

.complaint-category-grid label:hover {
  transform: translateY(-1px);
  border-color: rgba(113, 209, 255, 0.26);
  background: rgba(18, 39, 53, 0.84);
}

.complaint-category-grid label:has(input:checked) {
  border-color: rgba(110, 207, 255, 0.52);
  background: linear-gradient(135deg, rgba(37, 83, 108, 0.48), rgba(23, 45, 67, 0.74));
  box-shadow: inset 0 0 0 1px rgba(103, 196, 255, 0.06);
}

.complaint-category-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.complaint-category-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: rgba(83, 168, 222, 0.09);
  color: #75cfff;
}

.complaint-category-grid label > span:nth-child(3) {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.complaint-category-grid strong {
  color: #e4f0f6;
  font-size: 13px;
}

.complaint-category-grid small {
  color: #708798;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
}

.complaint-category-grid i {
  position: relative;
  width: 17px;
  height: 17px;
  border: 1px solid #4b6678;
  border-radius: 50%;
}

.complaint-category-grid label:has(input:checked) i {
  border-color: #74d2ff;
  background: #74d2ff;
  box-shadow: inset 0 0 0 4px #173446;
}

.complaint-field {
  display: block;
}

.complaint-input-wrap,
.complaint-textarea-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid rgba(137, 203, 244, 0.13);
  border-radius: 13px;
  background: #0e202d;
  color: #668093;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.complaint-input-wrap:focus-within,
.complaint-textarea-wrap:focus-within {
  border-color: rgba(112, 211, 255, 0.5);
  background: #112735;
  box-shadow: 0 0 0 3px rgba(99, 193, 244, 0.07);
}

.complaint-input-wrap svg {
  margin-left: 15px;
  flex: 0 0 auto;
}

.complaint-input-wrap input {
  width: 100%;
  min-height: 49px;
  padding: 0 15px 0 11px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #edf8fd;
  font: inherit;
  font-size: 13px;
}

.complaint-textarea-wrap {
  align-items: stretch;
}

.complaint-textarea-wrap textarea {
  width: 100%;
  min-height: 148px;
  resize: vertical;
  padding: 15px 15px 32px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e5f2f8;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.65;
}

.complaint-input-wrap input::placeholder,
.complaint-textarea-wrap textarea::placeholder {
  color: #587183;
}

.complaint-textarea-wrap > small {
  position: absolute;
  right: 13px;
  bottom: 10px;
  color: #536d7e;
  font-size: 9px;
}

.complaint-dropzone {
  display: flex;
  min-height: 96px;
  align-items: center;
  gap: 15px;
  padding: 17px;
  border: 1px dashed rgba(128, 204, 249, 0.2);
  border-radius: 14px;
  background: rgba(74, 148, 195, 0.04);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.complaint-dropzone:hover,
.complaint-dropzone.is-dragging {
  border-color: rgba(113, 210, 255, 0.48);
  background: rgba(74, 148, 195, 0.09);
}

.complaint-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.complaint-dropzone-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 13px;
  background: rgba(93, 186, 242, 0.1);
  color: #78d2ff;
}

.complaint-dropzone > span:last-child {
  display: grid;
  gap: 5px;
}

.complaint-dropzone strong {
  color: #c8dce7;
  font-size: 12px;
}

.complaint-dropzone small {
  color: #657e90;
  font-size: 10px;
}

.complaint-file-preview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.complaint-file-preview figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(133, 202, 244, 0.14);
  border-radius: 10px;
  background: #07121a;
}

.complaint-file-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1.3;
  object-fit: cover;
}

.complaint-file-preview figcaption {
  overflow: hidden;
  padding: 6px;
  color: #6f8798;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.complaint-form-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -2px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(125, 199, 244, 0.08);
  border-radius: 12px;
  background: rgba(62, 130, 174, 0.04);
  color: #617b8d;
  font-size: 10px;
  line-height: 1.55;
}

.complaint-form-note svg {
  margin-top: 1px;
  flex: 0 0 auto;
  color: #6bbde3;
}

.complaint-form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 17px 28px;
  border-top: 1px solid rgba(138, 204, 246, 0.1);
  background: #08151f;
}

.complaint-form-footer > p {
  margin: 0 auto 0 0;
  color: #ff8e96;
  font-size: 11px;
}

.complaint-submit {
  min-width: 190px;
}

.complaints-toast {
  position: fixed;
  z-index: 250;
  right: 22px;
  bottom: 22px;
  max-width: min(390px, calc(100vw - 30px));
  padding: 13px 16px;
  border: 1px solid rgba(119, 211, 255, 0.22);
  border-radius: 13px;
  background: #112938;
  color: #dff5ff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
  font-size: 12px;
  font-weight: 700;
  animation: complaint-toast-in 0.3s var(--complaint-ease) both;
}

.complaints-toast.is-error {
  border-color: rgba(255, 125, 134, 0.24);
  background: #311b25;
  color: #ffdce0;
}

@keyframes complaint-toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.complaints-footer {
  position: relative;
  padding: 30px 0;
  border-top: 1px solid rgba(132, 201, 244, 0.08);
  background: #050c12;
}

.complaints-footer .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 25px;
}

.complaints-footer-brand {
  gap: 10px;
}

.complaints-footer-brand .brand-mark {
  width: 34px;
  height: 26px;
}

.complaints-footer-brand strong {
  font-size: 16px;
}

.complaints-footer-brand small {
  color: #536d7e;
  font-size: 9px;
}

.complaints-footer nav {
  display: flex;
  gap: 22px;
}

.complaints-footer nav a,
.complaints-footer p {
  margin: 0;
  color: #587183;
  font-size: 10px;
  transition: color 0.2s ease;
}

.complaints-footer nav a:hover {
  color: #9edfff;
}

.complaints-footer p {
  justify-self: end;
}

@media (max-width: 1100px) {
  .complaints-workspace {
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.25fr);
  }

  .complaint-detail-summary {
    grid-template-columns: 1fr;
  }

  .complaint-detail-actions {
    justify-content: flex-start;
  }

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

@media (max-width: 980px) {
  .complaints-page .site-header {
    min-height: 72px;
    background: rgba(6, 15, 23, 0.96) !important;
  }

  .complaints-page .site-header .site-nav {
    border-color: rgba(113, 204, 255, 0.14) !important;
    background: #091722 !important;
  }

  .complaints-main {
    padding-top: 72px;
  }

  .complaints-hero {
    padding-top: 62px;
  }

  .complaints-hero-grid {
    align-items: flex-start;
  }

  .complaints-workspace {
    min-height: 620px;
    grid-template-columns: 1fr;
  }

  .complaints-list-panel {
    border-right: 0;
  }

  .complaints-list {
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .complaints-detail-panel {
    position: fixed;
    z-index: 80;
    inset: 72px 0 0;
    display: none;
    background: #08141e;
  }

  .complaints-app.has-open-detail .complaints-detail-panel {
    display: block;
  }

  .complaints-detail,
  .complaints-detail-placeholder,
  .complaints-detail-loading {
    height: calc(100dvh - 72px);
    min-height: 0;
  }

  .complaint-detail-back {
    display: grid;
  }

  .complaints-footer .container {
    grid-template-columns: 1fr auto;
  }

  .complaints-footer nav {
    display: none;
  }
}

@media (max-width: 720px) {
  .complaints-hero {
    padding: 48px 0 28px;
  }

  .complaints-hero-grid {
    flex-direction: column;
    gap: 26px;
  }

  .complaints-hero h1 {
    font-size: clamp(35px, 11vw, 52px);
  }

  .complaints-lead {
    margin-top: 16px;
    line-height: 1.65;
  }

  .complaints-new-button {
    width: 100%;
  }

  .complaints-section {
    padding-bottom: 64px;
  }

  .complaints-summary {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .complaints-summary article {
    padding: 12px 14px;
  }

  .complaints-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .complaints-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .complaints-search {
    width: 100%;
  }

  .complaints-workspace {
    border-radius: 18px;
  }

  .complaints-list {
    grid-template-columns: 1fr;
    padding: 9px;
  }

  .complaint-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .complaint-form {
    height: 100dvh;
    max-height: none;
  }

  .complaint-dialog-header {
    padding: 20px 18px 17px;
  }

  .complaint-form-scroll {
    gap: 21px;
    padding: 21px 16px 25px;
  }

  .complaint-category-grid {
    grid-template-columns: 1fr;
  }

  .complaint-category-grid label {
    min-height: 88px;
  }

  .complaint-file-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .complaint-form-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 13px 16px calc(13px + env(safe-area-inset-bottom));
  }

  .complaint-form-footer > p {
    margin: 0;
  }

  .complaint-submit {
    width: 100%;
  }

  .complaint-detail-top,
  .complaint-conversation {
    padding-right: 16px;
    padding-left: 16px;
  }

  .complaint-detail-heading {
    align-items: flex-start;
  }

  .complaint-detail-heading > .complaint-status {
    display: none;
  }

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

  .complaint-status-select,
  .complaint-claim-button {
    width: 100%;
    max-width: none;
  }

  .complaint-message {
    max-width: 94%;
  }

  .complaint-reply-shell {
    padding: 11px 12px calc(11px + env(safe-area-inset-bottom));
  }

  .complaint-reply-button {
    min-width: 46px;
    padding: 0 12px;
  }

  .complaints-footer .container {
    grid-template-columns: 1fr;
  }

  .complaints-footer p {
    justify-self: start;
  }
}

@media (max-width: 420px) {
  .complaints-main {
    padding-top: 60px;
  }

  .complaints-hero {
    padding-top: 42px;
  }

  .complaints-kicker {
    font-size: 10px;
  }

  .complaints-detail-panel {
    top: 60px;
  }

  .complaints-detail,
  .complaints-detail-placeholder,
  .complaints-detail-loading {
    height: calc(100dvh - 60px);
  }

  .complaint-participants {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .complaint-detail-actions {
    grid-template-columns: 1fr;
  }

  .complaint-attachments {
    grid-template-columns: 1fr;
  }

  .complaint-dropzone {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (prefers-reduced-motion: reduce) {
  .complaint-dialog[open],
  .complaints-toast,
  .complaints-loader {
    animation: none !important;
  }

  .complaint-card,
  .complaints-new-button,
  .complaint-submit,
  .complaint-category-grid label,
  .complaint-attachment img {
    transition-duration: 0.01ms !important;
  }
}

/* Keep complaints navbar consistent with its blue palette. */
.complaints-page .site-header {
  background: transparent !important;
  background-color: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.complaint-player-combobox {
  position: relative;
}

.complaint-player-suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  max-height: 280px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid rgba(125, 203, 255, 0.18);
  border-radius: 14px;
  background: rgba(7, 18, 27, 0.98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.complaint-player-suggestions button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  color: #eaf7ff;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.complaint-player-suggestions button:hover,
.complaint-player-suggestions button:focus-visible {
  background: rgba(80, 175, 239, 0.12);
}

.complaint-player-suggestions img,
.complaint-player-chip img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  image-rendering: pixelated;
}

.complaint-player-suggestions span { display: grid; gap: 2px; }
.complaint-player-suggestions small { color: #839aa9; }

.complaint-selected-players,
.complaint-target-chips,
.complaint-target-manager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.complaint-player-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 4px 7px 4px 4px;
  border: 1px solid rgba(125, 203, 255, 0.16);
  border-radius: 11px;
  color: #eaf7ff;
  background: rgba(42, 126, 181, 0.1);
}

.complaint-player-chip button {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  margin-left: 2px;
  border: 0;
  border-radius: 50%;
  color: #a9c1d1;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.complaint-player-chip button:hover { color: #fff; background: rgba(255, 102, 112, 0.22); }

.complaint-target-manager { margin-top: 12px; }
.complaint-add-target {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(125, 203, 255, 0.2);
  border-radius: 10px;
  color: #bfe7ff;
  background: rgba(61, 157, 221, 0.1);
  cursor: pointer;
}
.complaint-add-target:hover { background: rgba(61, 157, 221, 0.18); }

.complaint-target-dialog { width: min(520px, calc(100vw - 28px)); }
.complaint-target-form { overflow: visible; }
.complaint-target-dialog-body { min-height: 210px; padding: 22px; }

.complaints-page .site-header.is-scrolled {
  background: rgba(6, 15, 23, 0.55) !important;
  background-color: rgba(6, 15, 23, 0.55) !important;
  border-bottom-color: rgba(125, 203, 255, 0.11) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16) !important;
  backdrop-filter: blur(18px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
}

/* Authoritative final UI layer. */
.complaint-reply-form { grid-template-columns: auto minmax(0,1fr) auto; align-items: end; }
.complaint-reply-tools { position: relative; }
.complaint-reply-media {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(125,203,255,.16);
  border-radius: 12px;
  color: #9edfff;
  background: rgba(84,177,233,.06);
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}
.complaint-reply-media:hover { border-color: rgba(125,203,255,.38); background: rgba(84,177,233,.13); }
.complaint-reply-tools-menu {
  position: absolute;
  z-index: 40;
  bottom: calc(100% + 9px);
  left: 0;
  display: grid;
  width: min(280px, calc(100vw - 40px));
  max-height: min(390px, 60vh);
  gap: 3px;
  padding: 7px;
  overflow-y: auto;
  border: 1px solid rgba(125,203,255,.15);
  border-radius: 13px;
  background: rgba(9,25,36,.98);
  box-shadow: 0 18px 46px rgba(0,0,0,.42);
  backdrop-filter: blur(18px);
}
.complaint-reply-tools-menu[hidden] { display: none; }
.complaint-reply-tools-menu button,
.complaint-reply-tool-action {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: #cceafa;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.complaint-reply-tools-menu button:hover,
.complaint-reply-tool-action:hover { color: #fff; background: rgba(84,177,233,.12); }
.complaint-reply-tool-action input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.complaint-reply-template-title { margin: 5px 4px 2px; padding-top: 8px; border-top: 1px solid rgba(125,203,255,.1); color: #6f91a5; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.complaint-reply-preview { display: flex; grid-column: 1 / -1; gap: 7px; overflow-x: auto; padding: 2px 0; }
.complaint-reply-preview span { position: relative; display: block; width: 76px; height: 58px; flex: 0 0 76px; overflow: hidden; border: 1px solid rgba(125,203,255,.13); border-radius: 9px; background: #091722; }
.complaint-reply-preview img { width: 100%; height: 100%; object-fit: cover; }
.complaint-reply-preview button { position: absolute; top: 4px; right: 4px; display: grid; width: 21px; height: 21px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgba(3,10,15,.78); cursor: pointer; }
.complaint-message-media { display: grid; max-width: 460px; grid-template-columns: repeat(auto-fit,minmax(110px,1fr)); gap: 6px; margin-top: 7px; }
.complaint-message-media a { display: block; overflow: hidden; border: 1px solid rgba(125,203,255,.12); border-radius: 10px; background: #08141e; }
.complaint-message-media img { display: block; width: 100%; height: 128px; object-fit: cover; transition: transform .2s ease; }
.complaint-message-media a:hover img { transform: scale(1.025); }
.complaints-section.container { width: min(1520px, calc(100% - 32px)); max-width: none; }
.complaints-workspace { min-height: 720px; grid-template-columns: minmax(280px,330px) minmax(0,1fr); border-radius: 16px; box-shadow: none; }
.complaints-list { max-height: 720px; gap: 0; padding: 6px; }
.complaints-detail, .complaints-detail-placeholder, .complaints-detail-loading { height: 720px; }
.complaint-description-card p { font-size: 14px; line-height: 1.72; }
.complaint-message-bubble { padding: 13px 15px; font-size: 14px; line-height: 1.62; }
.complaint-message-head { font-size: 12px; }
.complaint-reply-form textarea { font-size: 14px; }
.complaint-dialog:not(.complaint-target-dialog) { width: min(1040px, calc(100vw - 32px)); height: auto !important; max-height: min(860px, var(--complaint-dialog-height, calc(100dvh - 32px))) !important; overflow: hidden !important; }
.complaint-dialog:not(.complaint-target-dialog) .complaint-form { display: flex !important; height: auto !important; min-height: 0 !important; max-height: min(860px, var(--complaint-dialog-height, calc(100dvh - 32px))) !important; flex-direction: column; }
.complaint-dialog:not(.complaint-target-dialog) .complaint-form-scroll { min-height: 0; max-height: calc(var(--complaint-dialog-height, 860px) - 176px); flex: 1 1 auto; overflow-y: auto; }
.complaint-category-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.complaint-category-grid label { min-height: 82px; grid-template-columns: 34px minmax(0,1fr) 14px; padding: 12px; gap: 9px; }
.complaint-category-icon { width: 34px; height: 34px; }
.complaint-dropzone { min-height: 92px; padding: 18px; }
.complaint-file-preview { grid-template-columns: repeat(auto-fill,minmax(110px,132px)); }
.complaint-file-preview figure { min-height: 104px; }
.complaint-file-preview img { height: 78px; aspect-ratio: auto; }
.complaint-file-remove { position: absolute; top: 6px; right: 6px; display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; color: #fff; background: rgba(4,12,18,.78); cursor: pointer; }
.complaint-file-remove:hover { background: rgba(210,62,78,.9); }
.complaint-file-preview figure.is-invalid img { opacity: .35; }
.complaint-form.has-error .complaint-form-footer { border-top-color: rgba(255,120,132,.22); }
.complaint-card { gap: 10px; padding: 15px 14px; border: 0; border-bottom: 1px solid rgba(138,204,246,.08); border-radius: 10px; background: transparent; box-shadow: none; }
.complaint-card::before { display: none; }
.complaint-card:hover { transform: none; background: rgba(55,129,174,.07); box-shadow: none; }
.complaint-card.is-active { background: rgba(55,151,211,.1); box-shadow: none; }
.complaint-conversation { scroll-behavior: auto; }
.complaints-topic-filter select,
.complaint-select-wrap select { min-height: 42px; border: 1px solid rgba(125,203,255,.13); border-radius: 10px; outline: 0; color: #d9effb; background: #0d202d; font: inherit; font-size: 12px; font-weight: 700; color-scheme: dark; }
.complaints-topic-filter select { padding: 0 34px 0 12px; }
.complaint-select-wrap { display: block; }
.complaint-select-wrap select { width: 100%; padding: 0 12px; }
.complaint-topic-badge { margin-right: auto; padding: 4px 7px; border-radius: 7px; color: #8fcce9; background: rgba(74,161,211,.08); font-size: 9px; font-weight: 800; }
.complaint-status-menu { position: relative; }
.complaint-status-menu summary,
.complaint-withdraw-button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 0 13px; border: 1px solid rgba(115,207,255,.16); border-radius: 10px; color: #cfefff; background: rgba(84,177,233,.06); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; list-style: none; }
.complaint-status-menu > div { position: absolute; z-index: 25; top: calc(100% + 6px); right: 0; display: grid; width: 190px; padding: 5px; border: 1px solid rgba(125,203,255,.14); border-radius: 11px; background: #0c1e2b; box-shadow: 0 16px 38px rgba(0,0,0,.38); }
.complaint-status-menu button { padding: 9px 10px; border: 0; border-radius: 7px; color: #9db6c6; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.complaint-status-menu button:hover, .complaint-status-menu button.is-active { color: #e9f8ff; background: rgba(83,176,234,.11); }
.complaint-target-manager { align-items: flex-start; flex-direction: column; padding-top: 13px; border-top: 1px solid rgba(137,203,244,.08); }
.complaint-target-manager-label { color: #6f8798; font-size: 10px; font-weight: 800; text-transform: uppercase; }
@media (max-width: 720px) {
  .complaints-topic-filter, .complaints-topic-filter select { width: 100%; }
  .complaint-detail-actions { grid-template-columns: 1fr !important; }
  .complaints-section.container { width: 100%; }
  .complaint-dialog:not(.complaint-target-dialog) { width: 100vw; height: 100dvh !important; max-height: 100dvh !important; }
  .complaint-dialog:not(.complaint-target-dialog) .complaint-form { height: 100dvh !important; max-height: 100dvh !important; }
  .complaint-dialog:not(.complaint-target-dialog) .complaint-form-scroll { max-height: none; flex: 1 1 auto; }
  .complaint-category-grid { grid-template-columns: 1fr 1fr; }
  .complaint-reply-form { grid-template-columns: auto minmax(0,1fr) auto; }
  .complaint-message-media { max-width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .complaint-message-media img { height: 110px; }
}

/* Complaint detail refinements. */
.complaints-section.container {
  width: min(1440px, calc(100% - 64px));
  max-width: none;
}

.complaint-targets-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(115,207,255,.16);
  border-radius: 10px;
  color: #cfefff;
  background: rgba(84,177,233,.06);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.complaint-targets-button:hover { border-color: rgba(125,203,255,.34); background: rgba(84,177,233,.12); }
.complaint-targets-button b { display: grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; border-radius: 7px; color: #aee4ff; background: rgba(99,190,244,.13); font-size: 10px; }

.complaint-description-topic { margin-bottom: 18px; padding-bottom: 17px; border-bottom: 1px solid rgba(137,203,244,.1); }
.complaint-description-topic span { display: block; margin-bottom: 6px; color: #7193a7; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.complaint-description-topic h3 { margin: 0; color: #f1f9fd; font-size: clamp(20px,2vw,27px); font-weight: 850; line-height: 1.25; overflow-wrap: anywhere; }

.complaint-target-dialog-body { display: grid; min-height: 0; gap: 20px; }
.complaint-target-dialog-list { display: grid; gap: 7px; }
.complaint-target-dialog-player { display: grid; min-height: 52px; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 7px 9px; border: 1px solid rgba(125,203,255,.1); border-radius: 11px; background: rgba(61,148,203,.055); }
.complaint-target-dialog-player img { width: 38px; height: 38px; border-radius: 9px; image-rendering: pixelated; object-fit: cover; }
.complaint-target-dialog-player strong { color: #e4f5fd; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.complaint-target-dialog-player button { display: grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 0; border-radius: 8px; color: #8faaba; background: transparent; font-size: 19px; cursor: pointer; }
.complaint-target-dialog-player button:hover { color: #fff; background: rgba(255,102,112,.18); }
.complaint-target-dialog-empty { margin: 0; padding: 22px; border: 1px dashed rgba(125,203,255,.12); border-radius: 11px; color: #7892a3; font-size: 12px; text-align: center; }

@media (max-width: 720px) {
  .complaints-section.container { width: calc(100% - 24px); }
  .complaint-targets-button { width: 100%; }
}

/* Keep complaint footer attached to modal bottom while attachments change content height. */
.complaint-dialog:not(.complaint-target-dialog) {
  height: min(860px, var(--complaint-dialog-height, calc(100dvh - 32px))) !important;
}
.complaint-dialog:not(.complaint-target-dialog) .complaint-form {
  height: 100% !important;
  max-height: none !important;
}
.complaint-dialog:not(.complaint-target-dialog) .complaint-form-scroll {
  min-height: 0;
  max-height: none;
  flex: 1 1 0;
}
.complaint-dialog:not(.complaint-target-dialog) .complaint-form-footer { flex: 0 0 auto; }

/* Admin list filters. */
.complaints-scope { overflow: visible; }
.complaints-scope-item { position: relative; display: inline-flex; align-items: stretch; }
.complaints-scope-item > [data-scope] { padding-right: 9px; border-radius: 8px 0 0 8px; }
.complaints-scope .complaints-scope-more {
  width: 32px;
  min-height: 38px;
  padding: 0;
  border-radius: 0 8px 8px 0;
  color: #7894a7;
  font-size: 18px;
  letter-spacing: 1px;
}
.complaints-scope .complaints-scope-more:hover,
.complaints-scope .complaints-scope-more[aria-expanded="true"] { color: #dff4ff; background: rgba(91,173,224,.11); }
.complaints-admin-filter-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 270px;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(125,203,255,.15);
  border-radius: 13px;
  background: rgba(8,23,33,.98);
  box-shadow: 0 20px 50px rgba(0,0,0,.46);
  backdrop-filter: blur(18px);
}
.complaints-admin-filter-menu[hidden] { display: none; }
.complaints-admin-filter-menu > strong { color: #e7f7ff; font-size: 12px; }
.complaints-admin-filter-menu > label { display: grid; gap: 6px; }
.complaints-admin-filter-menu > label > span { color: #7893a5; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.complaints-admin-filter-menu select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(125,203,255,.13);
  border-radius: 9px;
  outline: 0;
  color: #dceff8;
  background: #0d202d;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  color-scheme: dark;
}
.complaints-admin-filter-menu select:focus { border-color: rgba(104,202,255,.42); }
.complaints-assignment-filter { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
.complaints-scope .complaints-assignment-filter button {
  min-height: 34px;
  padding: 0 5px;
  border-radius: 8px;
  color: #7892a4;
  background: rgba(68,139,181,.045);
  font-size: 9px;
}
.complaints-scope .complaints-assignment-filter button:hover { color: #d9effb; }
.complaints-scope .complaints-assignment-filter button.is-active { color: #eaf8ff; background: rgba(72,166,224,.16); box-shadow: inset 0 0 0 1px rgba(125,203,255,.14); }
.complaints-toolbar .complaints-search { margin-left: auto; }

.complaint-card.is-unclaimed { position: relative; background: rgba(210,151,53,.055); box-shadow: inset 3px 0 0 rgba(255,183,66,.72); }
.complaint-card.is-unclaimed:hover { background: rgba(210,151,53,.09); }
.complaint-card.is-unclaimed.is-active { background: rgba(210,151,53,.12); box-shadow: inset 3px 0 0 #ffc05a; }
.complaint-unclaimed-badge { flex: 0 0 auto; padding: 4px 7px; border: 1px solid rgba(255,190,78,.2); border-radius: 7px; color: #ffc76b; background: rgba(223,155,45,.1); font-size: 9px; font-weight: 900; }

@media (max-width: 720px) {
  .complaints-scope { overflow: visible; flex-wrap: wrap; }
  .complaints-admin-filter-menu { position: fixed; top: auto; right: 12px; bottom: 16px; left: 12px; width: auto; }
}

/* Shared site footer, complaints palette only. */
.complaints-page .footer-shell {
  border-color: rgba(114,213,255,.15) !important;
  background:
    radial-gradient(ellipse 70% 60% at 8% -10%, rgba(83,190,255,.16), transparent 50%),
    radial-gradient(ellipse 50% 50% at 95% 100%, rgba(99,111,255,.1), transparent 50%),
    linear-gradient(145deg, #0b2231 0%, #0d2a3b 42%, #07141e 100%) !important;
  box-shadow: 0 -1px 0 rgba(114,213,255,.07) inset, 0 32px 80px rgba(0,0,0,.35) !important;
}
.complaints-page .footer-top {
  background: rgba(114,213,255,.065) !important;
  border-bottom-color: rgba(114,213,255,.09) !important;
}
.complaints-page .footer-links,
.complaints-page .footer-bottom { border-color: rgba(114,213,255,.075) !important; }
.complaints-page .footer-bottom p { color: rgba(154,190,210,.64) !important; }
.complaints-page .footer-col h4 { color: #dff4ff; }
.complaints-page .footer-col a,
.complaints-page .footer-bottom a { color: #7898aa; }
.complaints-page .footer-col a:hover,
.complaints-page .footer-bottom a:hover { color: #8fddff; }

/* Conversation readability and delivery receipts. Keep this final so the
   compact legacy rules above cannot shrink the live chat again. */
.complaints-page .complaint-description-card p {
  font-size: 16px;
  line-height: 1.75;
}
.complaints-page .complaint-message-bubble {
  padding: 15px 17px;
  font-size: 16px;
  line-height: 1.68;
}
.complaints-page .complaint-message-head,
.complaints-page .complaint-message-head strong,
.complaints-page .complaint-message-head .complaint-player-link {
  font-size: 12px;
}
