:root {
  --bg: #0b0f14;
  --surface: #121821;
  --surface-2: #18202b;
  --surface-3: #202a36;
  --line: rgba(232, 238, 247, 0.1);
  --text: #eef4fb;
  --muted: #91a0b2;
  --soft: #c6d1df;
  --cyan: #38d4c5;
  --amber: #f3b24e;
  --rose: #e9687a;
  --danger: #ff7b8a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --sidebar-width: 268px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  background:
    linear-gradient(135deg, rgba(56, 212, 197, 0.08), transparent 34%),
    linear-gradient(225deg, rgba(243, 178, 78, 0.06), transparent 34%),
    var(--bg);
  color: var(--text);
}

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

#app {
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 420px);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  padding: clamp(1.5rem, 5vw, 5rem);
  animation: pageIn 0.5s ease both;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-mark {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(56, 212, 197, 0.45);
  background: linear-gradient(145deg, rgba(56, 212, 197, 0.18), rgba(243, 178, 78, 0.12));
  border-radius: var(--radius);
  color: #f7fffd;
  font-size: 1.55rem;
  font-weight: 800;
  box-shadow: 0 18px 50px rgba(56, 212, 197, 0.12);
}

.brand-mark.small {
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1rem;
}

.login-brand h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.login-brand p,
.login-card-head p,
.dash-main-meta,
.hint,
.msg {
  color: var(--muted);
}

.login-brand p {
  margin: 0.65rem 0 0;
  font-size: 1rem;
}

.login-card {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 24, 33, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  animation: cardLift 0.55s 0.08s ease both;
}

.login-card-head {
  margin-bottom: 1.4rem;
}

.eyebrow,
.section-kicker,
.metric-label {
  display: inline-flex;
  align-items: center;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-card h2,
.section-head h2 {
  margin: 0.25rem 0 0;
}

.login-card h2 {
  font-size: 1.55rem;
}

.login-card-head p {
  margin: 0.5rem 0 0;
  line-height: 1.65;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.field span {
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 700;
}

input[type="password"] {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 13, 18, 0.62);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input[type="text"],
input[type="search"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 13, 18, 0.62);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

textarea {
  resize: vertical;
  min-height: 6.5rem;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%), linear-gradient(135deg, var(--soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

input[type="password"]:focus,
input[type="text"]:focus,
input[type="search"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(56, 212, 197, 0.7);
  box-shadow: 0 0 0 4px rgba(56, 212, 197, 0.12);
  transform: translateY(-1px);
}

.btn {
  min-height: 2.7rem;
  padding: 0 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  opacity: 0.92;
  transform: translateY(2px) scale(0.99);
  transform-origin: 50% 100%;
}

.btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

.btn.primary {
  width: 100%;
  background: linear-gradient(135deg, #2fd8c4, #5f8df7);
  color: #071014;
  box-shadow: 0 18px 42px rgba(56, 212, 197, 0.18);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--soft);
}

.btn.ghost:hover {
  border-color: rgba(56, 212, 197, 0.42);
  color: var(--text);
}

.btn.danger {
  width: auto;
  background: rgba(255, 123, 138, 0.1);
  border: 1px solid rgba(255, 123, 138, 0.45);
  color: var(--danger);
  box-shadow: none;
}

.btn.danger:hover {
  border-color: rgba(255, 123, 138, 0.65);
  color: #ffc2ca;
}

.msg {
  min-height: 1.3rem;
  margin: 0.75rem 0 0;
  color: var(--danger);
  font-size: 0.9rem;
}

.hint {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  line-height: 1.65;
}

.hint code {
  padding: 0.12rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(4, 8, 13, 0.72);
  backdrop-filter: blur(10px);
  animation: modalBackdropIn 0.18s ease both;
}

.modal-card {
  width: min(480px, 100%);
  padding: 1.25rem;
  border: 1px solid rgba(56, 212, 197, 0.28);
  border-radius: var(--radius);
  background: rgba(18, 24, 33, 0.96);
  box-shadow: var(--shadow);
  animation: modalCardIn 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.modal-backdrop.is-closing {
  animation: modalBackdropOut 0.14s ease both;
}

.modal-backdrop.is-closing .modal-card {
  animation: modalCardOut 0.14s ease both;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-head h2 {
  margin: 0.25rem 0 0;
  font-size: 1.2rem;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.dash-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  animation: pageIn 0.35s ease both;
}

.dash-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.25rem;
  border-right: 1px solid var(--line);
  background: rgba(14, 19, 26, 0.92);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  backdrop-filter: blur(18px);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.sidebar-brand-title,
.sidebar-brand-sub {
  display: block;
}

.sidebar-brand-title {
  font-weight: 900;
}

.sidebar-brand-sub {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.dash-nav {
  display: grid;
  gap: 0.45rem;
}

.nav-group {
  position: relative;
  padding: 0.3rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

/* 侧栏功能组：与「GM功能」等块保持同一底，不用外框/左侧条强调当前组 */
.nav-group.is-open {
  border-color: transparent;
}

.nav-group.is-active {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.nav-group.is-active::before {
  content: none;
}

.dash-nav-btn {
  position: relative;
  width: 100%;
  min-height: 2.72rem;
  padding: 0 0.75rem;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 800;
  overflow: hidden;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dash-nav-btn::before {
  content: none;
}

.dash-nav-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.dash-nav-btn.is-active {
  color: var(--text);
}

.nav-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--cyan);
  text-align: center;
  flex: 0 0 auto;
}

.channel-glyph {
  display: grid;
  place-items: center;
}

.channel-glyph svg {
  width: 1.28rem;
  height: 1.28rem;
  display: block;
  overflow: visible;
}

.channel-glyph path,
.channel-glyph circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gm-glyph {
  display: grid;
  place-items: center;
  border: 1px solid rgba(56, 212, 197, 0.35);
  border-radius: 6px;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.nav-chevron {
  width: 0.55rem;
  height: 0.55rem;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.dash-nav-btn.is-expanded .nav-chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.submenu {
  position: relative;
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0 0 0.22rem;
  overflow: hidden;
  transition: max-height 0.24s ease, opacity 0.18s ease;
}

.submenu.is-open {
  /* 须容纳多条子菜单；勿用过小的固定值（如 4rem）以免新增项被裁切 */
  max-height: min(70vh, 22rem);
  opacity: 1;
}

.submenu::before {
  content: none;
}

.submenu-btn {
  position: relative;
  width: 100%;
  min-height: 2.32rem;
  margin: 0;
  padding: 0 0.75rem;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  overflow: hidden;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.submenu-btn::before {
  content: none;
}

.submenu-btn:hover,
.submenu-btn.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.06);
}

.submenu-btn > span:last-child {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.submenu-dot {
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 1.25rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--cyan) 0 0.21rem, transparent 0.22rem);
  box-shadow: none;
}

.dash-sidebar-spacer {
  flex: 1;
}

.dash-main {
  min-width: 0;
  padding: clamp(1.25rem, 3.2vw, 2.5rem);
}

.dash-main-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.dash-main-heading {
  margin: 0.2rem 0 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1;
  letter-spacing: 0;
}

.dash-main-meta {
  margin: 0.55rem 0 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.3rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

.dash-msg {
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

.dash-toast {
  position: fixed;
  left: 50%;
  top: 22vh;
  z-index: 10000;
  pointer-events: none;
  max-width: min(92vw, 32rem);
  padding: 0.75rem 1.25rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.45;
  color: var(--text);
  border-radius: 12px;
  border: 1px solid rgba(56, 212, 197, 0.45);
  background: rgba(18, 24, 33, 0.94);
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-12px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
}

.dash-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .dash-toast {
    transition-duration: 0.05s;
  }

  .info-panel.is-panel-leaving {
    transition-duration: 0.05s;
  }

  .info-panel.is-panel-entering,
  .player-query-result.is-panel-entering,
  .dash-view.is-active {
    animation-duration: 0.01ms !important;
  }
}

.dash-view {
  display: none;
}

.dash-view.is-active {
  display: block;
  animation: viewIn 0.32s ease both;
}

.info-panel.is-panel-leaving {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.info-panel.is-panel-entering,
.player-query-result.is-panel-entering {
  animation: panelEditorIn 0.26s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

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

.dash-view.is-leaving {
  display: block;
  animation: viewOut 0.18s ease both;
}

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

.channel-summary {
  margin-bottom: 1rem;
}

.metric-card,
.info-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
}

.metric-card {
  position: relative;
  min-height: 166px;
  padding: 1.15rem;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.metric-card::after {
  content: "";
  position: absolute;
  left: 1.15rem;
  right: 1.15rem;
  bottom: 0;
  height: 3px;
  background: var(--cyan);
  opacity: 0.78;
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
}

.metric-card strong {
  display: block;
  margin-top: 0.75rem;
  color: var(--text);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.12;
}

.metric-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.accent-amber .metric-label,
.accent-amber .nav-icon {
  color: var(--amber);
}

.accent-amber::after {
  background: var(--amber);
}

.accent-rose .metric-label {
  color: var(--rose);
}

.accent-rose::after {
  background: var(--rose);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1rem;
}

.channel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.info-panel {
  padding: 1.25rem;
}

.wide-panel {
  max-width: 860px;
}

.section-head {
  margin-bottom: 1rem;
}

.toolbar-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.chat-blocked-words-root {
  position: relative;
}

.chat-blocked-words-screen.is-entering {
  animation: chatBlockedWordsScreenIn 0.22s ease forwards;
}

@keyframes chatBlockedWordsScreenIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-blocked-words-head-actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.chat-blocked-words-replace-row input {
  margin-top: 0.18rem;
  flex-shrink: 0;
}

.chat-blocked-words-list-subhint {
  margin: 0.35rem 0 0;
}

.chat-blocked-words-list-count-pill {
  align-self: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 212, 197, 0.35);
  background: rgba(56, 212, 197, 0.1);
}

.chat-blocked-words-list-toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.chat-blocked-words-clear-all-btn {
  border-color: rgba(248, 113, 113, 0.45);
  color: var(--rose, #f87171);
}

.chat-blocked-words-clear-all-btn:hover {
  border-color: rgba(248, 113, 113, 0.7);
  background: rgba(248, 113, 113, 0.12);
}

.chat-blocked-words-count {
  font-size: 0.78rem;
  color: var(--soft);
  white-space: nowrap;
}

.chat-blocked-words-full-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-height: min(52vh, 28rem);
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0;
  align-content: flex-start;
}

.chat-blocked-words-full-list li {
  margin: 0;
  padding: 0;
  max-width: 100%;
}

.chat-blocked-word-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  max-width: 100%;
  padding: 0.12rem 0.28rem 0.12rem 0.45rem;
  font-size: 0.72rem;
  line-height: 1.35;
  border-radius: 4px;
  border: 1px solid rgba(56, 212, 197, 0.45);
  background: rgba(56, 212, 197, 0.12);
  color: var(--text);
  word-break: break-word;
}

.chat-blocked-word-chip-text {
  min-width: 0;
  word-break: break-word;
}

.chat-blocked-word-chip-remove {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 0.18rem;
  min-width: 1.35rem;
  height: 1.35rem;
  border: none;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--soft);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.chat-blocked-word-chip-remove:hover {
  background: rgba(248, 113, 113, 0.25);
  color: var(--rose, #f87171);
}

.chat-blocked-words-list-empty-msg {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
}

.toolbar {
  display: grid;
  grid-template-columns: auto minmax(190px, 240px) minmax(130px, 150px);
  gap: 0.7rem;
}

.toolbar.toolbar--item-list {
  grid-template-columns: minmax(190px, 280px) auto;
}

.section-head h2 {
  font-size: 1.1rem;
}

.inline-title-filter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.compact-select {
  width: auto;
  min-width: 180px;
  min-height: 2.1rem;
  padding: 0.45rem 2rem 0.45rem 0.7rem;
  font-size: 0.82rem;
}

/* 自定义下拉（区服列表渠道筛选等）：替代原生 select 面板，与深色面板风格一致 */
.ops-custom-select {
  position: relative;
  display: inline-block;
  min-width: 180px;
  vertical-align: middle;
}

.ops-custom-select.compact {
  min-width: 200px;
  max-width: min(100%, 280px);
}

.ops-custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  min-height: 2.1rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 13, 18, 0.72);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.ops-custom-select-trigger:hover {
  border-color: rgba(56, 212, 197, 0.35);
  background: rgba(12, 18, 26, 0.9);
}

.ops-custom-select-trigger:active {
  transform: translateY(1px) scale(0.995);
}

.ops-custom-select.is-open .ops-custom-select-trigger {
  border-color: rgba(56, 212, 197, 0.65);
  box-shadow: 0 0 0 3px rgba(56, 212, 197, 0.12);
}

.ops-custom-select-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.ops-custom-select-chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--soft);
  border-bottom: 2px solid var(--soft);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease;
  flex-shrink: 0;
}

.ops-custom-select.is-open .ops-custom-select-chevron {
  transform: rotate(-135deg) translateY(1px);
  border-color: var(--cyan);
}

.ops-custom-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 48;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border: 1px solid rgba(56, 212, 197, 0.22);
  border-radius: calc(var(--radius) + 2px);
  background: rgba(18, 24, 33, 0.97);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(56, 212, 197, 0.06);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top center;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: min(50vh, 16rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ops-custom-select-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ops-custom-select-menu.is-closing {
  opacity: 0;
  transform: translateY(-4px) scale(0.985);
  pointer-events: none;
}

.ops-custom-select-option {
  padding: 0.58rem 0.68rem;
  border-radius: calc(var(--radius) - 2px);
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.ops-custom-select-option:hover,
.ops-custom-select-option:focus-visible {
  background: rgba(56, 212, 197, 0.12);
  color: var(--text);
  outline: none;
}

.ops-custom-select-option.is-selected {
  background: rgba(56, 212, 197, 0.16);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(56, 212, 197, 0.28);
}

.ops-custom-select-option:active {
  transform: scale(0.985);
}

.large-text {
  margin: 0;
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.75;
}

.status-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.status-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.status-list div:last-child {
  border-bottom: 0;
}

.status-list dt {
  color: var(--muted);
}

.status-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  text-align: right;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.channel-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.channel-table th,
.channel-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.channel-table th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.channel-table tr {
  transition: background 0.18s ease;
}

.channel-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.channel-table tbody tr:last-child td {
  border-bottom: 0;
}

.channel-table td strong,
.channel-table td span {
  display: block;
}

.channel-table td strong {
  color: var(--text);
  margin-bottom: 0.25rem;
}

.channel-table td span {
  color: var(--muted);
  font-size: 0.84rem;
}

.state-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 4.25rem;
  min-height: 1.75rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(145, 160, 178, 0.22);
  color: var(--soft) !important;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 900;
}

.state-badge.active {
  border-color: rgba(56, 212, 197, 0.34);
  background: rgba(56, 212, 197, 0.1);
  color: var(--cyan) !important;
}

.state-badge.paused {
  border-color: rgba(243, 178, 78, 0.34);
  background: rgba(243, 178, 78, 0.1);
  color: var(--amber) !important;
}

.state-badge.pending {
  border-color: rgba(147, 197, 255, 0.38);
  background: rgba(100, 160, 255, 0.12);
  color: #a8d4ff !important;
}

.mail-editor-hint {
  margin: 0.15rem 0 0;
  grid-column: 1 / -1;
}

.row-actions {
  display: flex;
  gap: 0.45rem;
}

.mini-btn {
  min-height: 2rem;
  padding: 0 0.65rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.mini-btn:hover {
  border-color: rgba(56, 212, 197, 0.42);
  color: var(--text);
  transform: translateY(-1px);
}

.mini-btn:active {
  opacity: 0.92;
  transform: translateY(2px) scale(0.99);
  transform-origin: 50% 100%;
}

.mini-btn:disabled,
.mini-btn:disabled:hover,
.mini-btn:disabled:active {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  border-color: var(--line);
  color: var(--soft);
}

.batch-bar-check:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
}

.mini-btn.chat-blocked-words-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.45rem;
  min-height: 2rem;
  padding: 0.38rem 0.75rem;
  line-height: 1;
  box-sizing: border-box;
}

.add-channel-btn {
  min-width: 6rem;
  border-color: rgba(56, 212, 197, 0.32);
  color: var(--cyan);
  background: rgba(56, 212, 197, 0.08);
}

.mini-btn.danger {
  border-color: rgba(233, 104, 122, 0.28);
  color: rgba(233, 104, 122, 0.92);
  background: rgba(233, 104, 122, 0.08);
}

.mini-btn.danger:hover {
  border-color: rgba(233, 104, 122, 0.45);
  color: var(--danger);
}

.empty-state {
  margin: 1rem 0 0;
  color: var(--muted);
}

.channel-form {
  display: grid;
  gap: 0.85rem;
}

.channel-form .field {
  margin-bottom: 0;
}

.server-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  width: 100%;
}

.server-list-layout {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

.server-panel {
  width: 100%;
  min-width: 0;
}

.announcement-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  width: 100%;
}

.announcement-list-layout {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

.announcement-panel {
  width: 100%;
  min-width: 0;
}

.server-channel-meta {
  margin: 0.9rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.server-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  align-items: stretch;
  margin-bottom: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.server-form .field,
.server-form .btn {
  margin-bottom: 0;
}

.server-list {
  display: grid;
  gap: 0.75rem;
}

.server-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(220px, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.server-row:hover {
  border-color: rgba(56, 212, 197, 0.22);
  transform: translateY(-1px);
}

.server-row-content strong,
.server-row-content p,
.server-row-meta strong,
.server-row-meta span {
  display: block;
}

.server-row-content strong {
  color: var(--text);
}

.server-row-content p {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.server-row-meta {
  min-width: 0;
}

.server-row-meta strong {
  color: var(--soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.server-row-meta span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.server-row-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.announcement-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  align-items: stretch;
  margin-bottom: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.announcement-form .field {
  margin-bottom: 0;
}

.announcement-form textarea {
  min-height: 8.4rem;
}

.time-range-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.form-hint {
  margin: -0.25rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.form-hint code {
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(56, 212, 197, 0.08);
  color: var(--soft);
}

.announcement-form-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: start;
}

.announcement-form-actions .field,
.announcement-form-actions .btn {
  margin-bottom: 0;
}

.announcement-form-actions .btn {
  width: min(180px, 100%);
}

.check-field {
  min-height: 2.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 13, 18, 0.62);
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.check-field input {
  accent-color: var(--cyan);
}

.announcement-list {
  display: grid;
  gap: 0.75rem;
}

.announcement-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(180px, 0.8fr) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.announcement-row:hover {
  border-color: rgba(56, 212, 197, 0.22);
  transform: translateY(-1px);
}

.announcement-row-content {
  min-width: 0;
  position: relative;
  padding-left: 1.5rem;
}

.mail-row-check {
  position: absolute;
  top: 0.15rem;
  left: 0;
  line-height: 1;
}

.mail-row-check input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.announcement-row-content strong {
  display: block;
  color: var(--text);
}

.announcement-row-content p {
  margin: 0.35rem 0 0;
  color: var(--soft);
  line-height: 1.65;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.announcement-row-meta {
  min-width: 0;
}

.announcement-row-meta strong,
.announcement-row-meta span {
  display: block;
}

.announcement-row-meta strong {
  color: var(--soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.announcement-row-meta span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.meta-label {
  margin-bottom: 0.2rem;
  color: var(--cyan) !important;
  font-size: 0.72rem !important;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.announcement-row-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* 个人邮件：标题栏批量操作 */
.personal-mail-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-shrink: 0;
}

.personal-mail-batch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(56, 212, 197, 0.15);
  border-radius: var(--radius);
  background: rgba(18, 24, 33, 0.6);
}

.personal-mail-batch .batch-bar-check {
  padding-right: 0.45rem;
  margin-right: 0.05rem;
  border-right: 1px solid rgba(56, 212, 197, 0.18);
}

.batch-bar-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  color: var(--soft);
  font-size: 0.85rem;
  user-select: none;
}

.batch-bar-check input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
  cursor: pointer;
}

@keyframes pageIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

@keyframes modalBackdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalBackdropOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

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

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

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

@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .detail-grid,
  .channel-layout,
  .server-layout,
  .announcement-layout {
    grid-template-columns: 1fr;
  }

  .time-range-grid,
  .announcement-form-actions,
  .server-row,
  .announcement-row {
    grid-template-columns: 1fr;
  }

  .toolbar-head {
    flex-direction: column;
  }

  .toolbar {
    width: 100%;
    grid-template-columns: auto 1fr 150px;
  }
}

@media (max-width: 760px) {
  .dash-shell {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    position: static;
    height: auto;
  }

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

  .dash-main-head {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .login-shell {
    padding: 1rem;
  }

  .login-brand {
    align-items: flex-start;
  }

  .login-card,
  .dash-main,
  .dash-sidebar {
    padding: 1rem;
  }

  .dash-nav {
    grid-template-columns: 1fr;
  }

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

  .server-form,
  .time-range-grid,
  .announcement-form-actions,
  .server-row,
  .announcement-row {
    grid-template-columns: 1fr;
  }

  .row-actions,
  .server-row-actions,
  .announcement-row-actions {
    flex-direction: column;
  }
}

/* —— 玩家查询（GM）：全新卡片式设计 —— */
.player-query-panel {
  padding-bottom: 1.25rem;
}

.player-query-hint {
  margin-top: 0;
  margin-bottom: 1rem;
}

.player-query-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}

.player-query-field {
  flex: 1 1 200px;
  margin-bottom: 0;
}

.player-query-toolbar .btn.primary {
  width: auto;
  flex: 0 0 auto;
  padding: 0.78rem 1.35rem;
  margin-bottom: 0.15rem;
}

/* 与「说明」同宽全行展示，避免沿用 .dash-msg 负边距贴在输入框左下 */
.player-query-msg {
  box-sizing: border-box;
  width: 100%;
  margin: 0.55rem 0 0;
  min-height: 0;
  padding: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--danger);
}

.player-query-msg:empty {
  display: none;
  margin: 0;
}

.player-query-msg:not(:empty) {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 123, 138, 0.32);
  background: rgba(255, 123, 138, 0.07);
}

/* ===== 结果卡片 ===== */
.player-query-result {
  margin-top: 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(56, 212, 197, 0.18);
  background: linear-gradient(180deg, rgba(18, 24, 33, 0.95), rgba(11, 15, 20, 0.98));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
}

/* 顶部玩家信息栏 */
.player-query-result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(56, 212, 197, 0.06), rgba(243, 178, 78, 0.03));
  border-bottom: 1px solid rgba(56, 212, 197, 0.12);
}

.player-query-player-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.player-query-avatar {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 212, 197, 0.25), rgba(95, 141, 247, 0.2));
  border: 1px solid rgba(56, 212, 197, 0.35);
  color: var(--cyan);
  box-shadow: 0 4px 16px rgba(56, 212, 197, 0.15);
}

.player-query-avatar svg {
  width: 1.4rem;
  height: 1.4rem;
}

.player-query-player-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.player-query-name-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.player-query-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.player-query-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  border: 1px solid transparent;
}

.player-query-status-badge:empty {
  display: none;
}

.player-query-status-badge.is-online {
  background: rgba(56, 212, 197, 0.12);
  border-color: rgba(56, 212, 197, 0.35);
  color: var(--cyan);
}

.player-query-status-badge.is-online::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.player-query-status-badge.is-offline {
  background: rgba(145, 160, 178, 0.1);
  border-color: rgba(145, 160, 178, 0.3);
  color: var(--muted);
}

.player-query-status-badge.is-offline::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--muted);
}

.player-query-status-badge.is-banned {
  background: rgba(255, 123, 138, 0.12);
  border-color: rgba(255, 123, 138, 0.35);
  color: var(--danger);
}

.player-query-status-badge.is-banned::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

.player-query-id-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
}

.player-query-id-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(56, 212, 197, 0.12);
  color: var(--cyan);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.player-query-id-value {
  color: var(--soft);
  font-weight: 650;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

.player-query-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.player-query-result-actions .player-query-act {
  width: auto;
  flex: 0 0 auto;
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0;
  border-radius: 8px;
}

/* Tab 导航 */
.player-query-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
}

.player-query-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  position: relative;
  transition: color 180ms ease;
}

.player-query-tab::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2.5px;
  border-radius: 2px 2px 0 0;
  background: var(--cyan);
  transform: translateX(-50%);
  transition: width 180ms ease;
}

.player-query-tab:hover {
  color: var(--soft);
}

.player-query-tab.is-active {
  color: var(--cyan);
}

.player-query-tab.is-active::after {
  width: 60%;
}

/* 内容面板 */
.player-query-tab-panels {
  padding: 1.25rem 1.5rem 1.5rem;
}

.player-query-tab-panel {
  display: none;
}

.player-query-tab-panel.is-active {
  display: block;
}

/* 卡片网格 */
.player-query-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  min-width: 0;
}

.player-query-card {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.player-query-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.player-query-card--wide {
  grid-column: 1 / -1;
}

.player-query-card--plain {
  grid-column: 1 / -1;
}

.player-query-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.player-query-card-accent.accent-cyan {
  background: linear-gradient(90deg, var(--cyan), rgba(56, 212, 197, 0.4));
}

.player-query-card-accent.accent-amber {
  background: linear-gradient(90deg, var(--amber), rgba(243, 178, 78, 0.4));
}

.player-query-card-accent.accent-violet {
  background: linear-gradient(90deg, #a78bfa, rgba(167, 139, 250, 0.4));
}

.player-query-card-inner {
  padding: 1rem 1.15rem;
}

.player-query-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.player-query-card-icon {
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(56, 212, 197, 0.1);
  color: var(--cyan);
}

.player-query-card-icon svg {
  width: 0.9rem;
  height: 0.9rem;
}

.player-query-card-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--soft);
  text-transform: uppercase;
}

/* 统计行 */
.player-query-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.player-query-stat-row:last-child {
  border-bottom: none;
}

.player-query-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.player-query-stat-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
  text-align: right;
}

/* 资产网格 */
.player-query-assets-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.player-query-asset-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.65rem 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.player-query-asset-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.player-query-asset-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

/* 活动记录网格 */
.player-query-activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.25rem;
}

/* 背包 / 列表 */
.player-query-backpack-pane {
  margin-top: 0.25rem;
}

.player-query-backpack-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.45rem;
}

.player-query-backpack-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
  transition: background 0.15s ease;
}

.player-query-backpack-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.player-query-backpack-name {
  color: var(--text);
  font-weight: 650;
  word-break: break-word;
}

.player-query-backpack-count {
  color: var(--cyan);
  font-weight: 700;
  flex-shrink: 0;
}

.player-query-hero-meta-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.player-query-hero-meta {
  color: var(--cyan);
  font-weight: 700;
}

.player-query-hero-quality {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.player-query-hero-quality-xuan {
  color: #7ec0ff;
  border-color: rgba(126, 192, 255, 0.38);
  background: rgba(126, 192, 255, 0.12);
}

.player-query-hero-quality-tian {
  color: #c9a0ff;
  border-color: rgba(201, 160, 255, 0.38);
  background: rgba(201, 160, 255, 0.12);
}

.player-query-hero-quality-shen {
  color: #f0c85a;
  border-color: rgba(240, 200, 90, 0.42);
  background: rgba(240, 200, 90, 0.14);
}

.player-query-hero-quality-unknown {
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.player-query-empty {
  margin: 0;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.player-query-rename-btn {
  flex-shrink: 0;
}

.player-rename-hint {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

/* 响应式 */
@media (max-width: 720px) {
  .player-query-cards {
    grid-template-columns: 1fr;
  }
  .player-query-assets-grid {
    grid-template-columns: 1fr;
  }
  .player-query-activity-grid {
    grid-template-columns: 1fr;
  }
  .player-query-result-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .player-query-tab-panels {
    padding: 1rem;
  }
  .player-query-result-head {
    padding: 1rem;
  }
  .player-query-tabs {
    padding: 0 1rem;
  }
}

/* 邮件附件 */
.field--mail-attachments {
  gap: 0.55rem;
}

.mail-attachment-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.mail-attachment-head span {
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.mail-attachments {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mail-attachment-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mail-attachment-row select {
  flex: 1;
  min-width: 0;
}
.mail-attachment-row input[type="number"] {
  width: 5rem;
  flex-shrink: 0;
}
.mail-attachment-row .mini-btn.danger {
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}
