.wd-tkt-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wd-tkt-table th, .wd-tkt-table td { padding: 8px 6px; border-bottom: 1px solid #2a2a32; text-align: left; vertical-align: top; }
.wd-tkt-table th { color: #9ca3af; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.wd-tkt-status { font-weight: 600; }
.wd-tkt-status.is-open { color: #86efac; }
.wd-tkt-status.is-waiting { color: #fbbf24; }
.wd-tkt-status.is-closed { color: #9ca3af; }
.wd-tkt-thread { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; max-height: min(480px, 60vh); overflow: auto; padding-right: 4px; }
.wd-tkt-msg { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 8px; max-width: 92%; background: #1c1c22; border: 1px solid #2a2a32; }
.wd-tkt-msg.is-staff { background: rgba(232,163,60,.1); border-color: rgba(232,163,60,.28); }
.wd-tkt-msg.is-reporter { align-self: flex-end; flex-direction: row-reverse; }
.wd-tkt-msg-main { min-width: 0; flex: 1; }
.wd-tkt-msg .wd-tkt-who { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #9ca3af; margin-bottom: 4px; }
.wd-tkt-msg p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.wd-tkt-msg time { display: block; margin-top: 6px; font-size: 11px; color: #6b7280; }
.wd-tkt-avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 36px;
  background: #111116; border: 1px solid #2a2a32;
}
.wd-tkt-avatar--empty {
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #9ca3af;
}
.wd-tkt-msg.is-staff .wd-tkt-avatar { border-color: rgba(232,163,60,.4); }
.wd-tkt-shot { display: block; margin-top: 8px; max-width: min(360px, 100%); }
.wd-tkt-shot img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid #2a2a32; }
.wd-tkt-clip { display: block; margin-top: 8px; max-width: min(420px, 100%); max-height: 280px; border-radius: 6px; background: #000; }
.wd-tkt-pending { display: flex; align-items: center; gap: 10px; margin: 8px 0; padding: 8px; border: 1px dashed #3a3a44; border-radius: 8px; }
.wd-tkt-pending img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }
.wd-tkt-evidence { margin: 6px 0 0; }
.wd-tkt-compose { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.wd-tkt-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wd-tkt-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; margin-bottom: 8px; }
.wd-tkt-head h3 { margin: 0; }
.wd-tkt-ok { color: #86efac; }
.wd-tkt-link { display: inline-block; margin-top: 6px; }

.wd-tkt-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(232,163,60,.14);
  border: 1px solid rgba(232,163,60,.35);
  color: #e8a33c;
  white-space: nowrap;
}
.wd-tkt-tag.is-report {
  background: rgba(232,163,60,.14);
  border-color: rgba(232,163,60,.35);
  color: #e8a33c;
}
.wd-tkt-tag.is-support {
  background: rgba(96,165,250,.14);
  border-color: rgba(96,165,250,.4);
  color: #93c5fd;
}

.wd-sup-choose { margin: 0 0 14px; }
.wd-sup-cards {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 14px;
}
.wd-sup-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid #2a2a32;
  background: #16161c;
  color: inherit;
  cursor: pointer;
}
.wd-sup-card strong { font-size: 1.15rem; letter-spacing: .02em; }
.wd-sup-card p { margin: 0; color: #c4c4cc; }
.wd-sup-card.is-report { min-height: 132px; }
.wd-sup-card.is-support {
  min-height: 210px;
  border-color: rgba(96,165,250,.35);
  background: linear-gradient(180deg, rgba(96,165,250,.08), #16161c 55%);
}
.wd-sup-card:hover { border-color: #e8a33c; }
.wd-sup-card.is-support:hover { border-color: #93c5fd; }
.wd-sup-back { margin-bottom: 12px; }
@media (max-width: 720px) {
  .wd-sup-cards { grid-template-columns: 1fr; }
  .wd-sup-card.is-support { min-height: 168px; }
}
.wd-tkt-row { cursor: pointer; }
.wd-tkt-row:hover { background: rgba(255,255,255,.035); }
.wd-tkt-id { font-variant-numeric: tabular-nums; }

/* ticket list vs open-ticket 2-col (no persistent 3-pane) */
.page-account:has(.wd-tkt-panes) main.page-x {
  max-width: 1480px;
}
.wd-mod:has(.wd-tkt-panes) { max-width: none; }
.wd-tkt-list { width: 100%; }
.wd-tkt-panes {
  display: grid;
  gap: 16px;
  align-items: start;
}
.wd-tkt-panes.is-1 { grid-template-columns: 1fr; }
.wd-tkt-panes.is-2 {
  grid-template-columns: 1fr 1fr;
}
.wd-tkt-pane--chat { min-width: 0; }
.wd-tkt-pane--player { min-width: 0; }
.wd-tkt-head { align-items: center; }
.wd-tkt-head h2 { margin: 0; }
.wd-tkt-back {
  flex: 0 0 auto;
  white-space: nowrap;
  border-color: #e8a33c;
  color: #e8a33c;
}
.wd-tkt-dossier {
  max-height: calc(100vh - 120px);
  overflow: auto;
  overflow-x: hidden;
}
.wd-tkt-dossier .wd-mod-avatar { width: 56px; height: 56px; flex-shrink: 0; }
.wd-tkt-dossier .wd-mod-playerhead {
  flex-wrap: wrap;
  overflow: visible;
  min-width: 0;
}
.wd-tkt-dossier .wd-mod-playerhead > div { min-width: 0; flex: 1 1 240px; }
.wd-tkt-dossier .wd-mod-playerhead .mono {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.wd-tkt-dossier .wd-mod-status,
.wd-tkt-dossier #adm-tkt-profile {
  display: inline-block;
  white-space: nowrap;
}
.wd-tkt-dossier .wd-mod-assume-sum,
.wd-tkt-dossier .wd-mod-assume-hint,
.wd-tkt-dossier .wd-mod-assume-meta {
  overflow-wrap: break-word;
  word-break: normal;
  white-space: normal;
}
.wd-mod-stats-fold {
  margin: 12px 0;
  border: 1px solid #2a2a32;
  border-radius: 8px;
  background: #121218;
}
.wd-mod-stats-fold > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}
.wd-mod-stats-fold > summary::-webkit-details-marker { display: none; }
.wd-mod-stats-fold > summary::after {
  content: "+";
  color: #9ca3af;
  font-size: 16px;
  line-height: 1;
}
.wd-mod-stats-fold[open] > summary::after { content: "–"; }
.wd-mod-stats-fold-kd { color: #9ca3af; font-size: 13px; }
.wd-mod-stats-fold-kd strong { color: #e8e8ed; font-size: 15px; }
.wd-mod-stats-fold .wd-mod-stats,
.wd-mod-stats-fold .wd-tkt-stats {
  margin: 0;
  padding: 0 8px 10px;
}
.wd-tkt-dossier .wd-mod-stats,
.wd-tkt-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 12px 0;
}
.wd-tkt-dossier .wd-mod-stat,
.wd-tkt-stats .wd-mod-stat {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
}
.wd-tkt-dossier .wd-mod-stat .caps,
.wd-tkt-stats .wd-mod-stat .caps {
  order: 1;
  white-space: nowrap;
}
.wd-tkt-dossier .wd-mod-stat strong,
.wd-tkt-stats .wd-mod-stat strong {
  order: 2;
  font-size: 16px;
  white-space: nowrap;
  overflow: visible;
  word-break: keep-all;
}
.wd-tkt-rsv { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wd-tkt-row.is-on { background: rgba(232,163,60,.1); }
@media (max-width: 980px) {
  .wd-tkt-panes.is-2 { grid-template-columns: 1fr; }
  .wd-tkt-dossier { max-height: none; }
}

.wd-tkt-claimer {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(134,239,172,.12);
  border: 1px solid rgba(134,239,172,.35);
  color: #86efac;
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wd-tkt-unclaimed {
  display: inline-block;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(251,191,36,.1);
  border: 1px solid rgba(251,191,36,.32);
  color: #fbbf24;
  white-space: nowrap;
}
.wd-tkt-claimbar,
.wd-tkt-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0 4px;
}
.wd-tkt-toolbar-status,
.wd-tkt-toolbar-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.wd-tkt-toolbar .btn,
.wd-tkt-toolbar .input,
.wd-tkt-row-acts .btn,
.wd-tkt-row-acts .input,
.wd-tkt-pair .btn,
.wd-tkt-pair .input {
  height: 36px;
  min-height: 36px;
  box-sizing: border-box;
}
.wd-tkt-pair {
  display: inline-flex;
  align-items: stretch;
  min-width: 0;
}
.wd-tkt-pair .input {
  min-width: 132px;
  width: 160px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.wd-tkt-pair .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  white-space: nowrap;
}
.wd-tkt-pick { display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.wd-tkt-pick .input { min-width: 140px; }
.wd-tkt-watchers { margin: 0 0 8px; width: 100%; }
.wd-tkt-closer {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(156,163,175,.12);
  border: 1px solid rgba(156,163,175,.35);
  color: #d1d5db;
  white-space: nowrap;
}
.wd-tkt-hcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.wd-tkt-hcard {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #2a2a32;
  background: #16161c;
  min-width: 0;
}
.wd-tkt-hcard.is-unclaimed { border-color: rgba(251,191,36,.35); }
.wd-tkt-hcard-name { margin: 0 0 6px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-tkt-hcard p { margin: 0; font-size: 13px; }
.wd-tkt-hcard strong { font-size: 18px; }
.wd-tkt-row-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wd-tkt-table td { vertical-align: middle; }
.wd-tkt-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
