body:has(.punishment-page) .main-inner { width: 100%; max-width: none; margin-inline: 0; }
.public-legacy.punishment-page {
  --punishment-active: #c2b4fa;
  --punishment-permanent: #ecadbb;
  --punishment-resolved: #91cdb7;
  --punishment-edge: color-mix(in srgb, var(--accent) 28%, var(--line));
  max-width: 1510px;
  padding-bottom: 24px;
  color: var(--text);
}

.punishment-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 250px;
  margin-bottom: 20px;
  padding: 24px clamp(22px, 4vw, 56px);
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #a48bdf44;
  border-radius: 18px;
  background:
    repeating-linear-gradient(120deg, transparent 0 47px, #c0a0ef0e 48px 49px, transparent 50px 65px),
    radial-gradient(ellipse at 80% 40%, #9275d45c, transparent 55%),
    linear-gradient(108deg, #14121c 0%, #1d182a 58%, #322448 100%);
}
.punishment-hero-copy { position: relative; z-index: 1; max-width: 61%; }
.punishment-hero-label { display: inline-flex; align-items: center; gap: 7px; color: #cbb7ee; font-size: 11px; letter-spacing: .055em; }
.punishment-hero-label svg { width: 16px; height: 16px; }
.punishment-hero h1 {
  margin: 6px 0 8px;
  color: #f4efff;
  font-size: clamp(40px, 5vw, 65px);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 780;
  text-transform: uppercase;
}
.punishment-hero p { margin: 0 0 15px; color: #c9bedb; font-size: 13px; }
.punishment-hero-art {
  position: absolute;
  right: clamp(30px, 7vw, 118px);
  bottom: 0;
  width: min(47%, 535px);
  height: calc(100% - 6px);
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}
.punishment-appeal, .punishment-find {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid #ffffff20;
  border-radius: 9px;
  background: var(--violet);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  transition: background .18s, box-shadow .18s;
}
.punishment-appeal { box-shadow: 0 4px 20px #8b72d735; }
.punishment-appeal svg { width: 15px; height: 15px; flex: none; }
.punishment-appeal:hover, .punishment-find:hover { color: #fff; background: #5d4fb6; }

.punishment-board { display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: 18px; align-items: start; }
.punishment-sidebar { position: sticky; top: calc(var(--top) + 18px); min-width: 0; }
.legacy-punishment-tabs, .punishment-links {
  display: grid;
  gap: 5px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.legacy-punishment-tabs a, .punishment-links a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 600;
}
.legacy-punishment-tabs a > span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-hi);
  color: var(--accent);
}
.legacy-punishment-tabs a svg, .punishment-links a svg { width: 15px; height: 15px; flex: none; }
.legacy-punishment-tabs a[aria-current=page] {
  border-color: var(--punishment-edge);
  background: var(--accent-wash);
  color: var(--accent);
}
.legacy-punishment-tabs a[aria-current=page] > span { border-color: var(--punishment-edge); }
.legacy-punishment-tabs a > svg { margin-left: auto; width: 10px; color: var(--muted); }
.legacy-punishment-tabs a[aria-current=page] > svg { color: var(--accent); }
.legacy-punishment-tabs a:hover, .punishment-links a:hover { color: var(--text); border-color: var(--line); background: var(--surface-hi); }
.punishment-links { margin-top: 10px; }
.punishment-links a { min-height: 36px; }
.punishment-links a svg:last-child { width: 13px; margin-left: auto; color: var(--muted); }

.punishment-section-title { margin: 0 0 10px; color: var(--text); font-size: 19px; font-weight: 700; }
.punishment-results-heading { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 9px; margin-bottom: 9px; }
.punishment-results-heading .punishment-section-title { margin: 0; }
.punishment-results-heading .punishment-admin { display: contents; }
.punishment-results-heading .punishment-admin__panel { grid-column: 1 / -1; }
.punishment-filter {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.punishment-filter label { display: grid; gap: 5px; min-width: 0; margin: 0; }
.punishment-filter label > span:first-child { color: var(--secondary); font-size: 11px; }
.punishment-server { flex: 0 1 270px; }
.punishment-search { flex: 1 1 175px; }
.punishment-search-field { position: relative; }
.punishment-search-field > svg { position: absolute; top: 13px; left: 11px; width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
.punishment-filter :is(select, input[type=search]) {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface-hi);
  font-size: 12px;
}
.punishment-filter input[type=search] { padding-left: 34px; }
.punishment-filter select { text-overflow: ellipsis; }
.punishment-filter select option { color: var(--text); background: var(--surface-hi); }
.punishment-reset {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 600;
}
.punishment-reset:hover { color: var(--accent); }
.punishment-page :is(a, button, input, select):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.punishment-ledger, .restriction-list { min-width: 0; }
.punishment-ledger { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.punishment-ledger-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
  background: linear-gradient(100deg, var(--accent-wash), transparent 80%);
  color: var(--text);
}
.punishment-ledger-heading > span { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; }
.punishment-ledger-heading svg { width: 15px; height: 15px; color: var(--accent); }
.punishment-ledger-heading small { color: var(--secondary); font-size: 11px; white-space: nowrap; }
.punishment-table, .restriction-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--text);
  font-size: 13px;
}
.punishment-board :is(.punishment-table, .restriction-table) thead tr { background: transparent; }
.punishment-table th, .restriction-table th {
  padding: 9px 12px;
  background: color-mix(in srgb, var(--surface-hi) 58%, var(--surface));
  color: var(--secondary);
  text-align: left;
  font-size: 11px;
  font-weight: 650;
}
.punishment-table th:first-child, .restriction-table th:first-child { width: 29%; }
.punishment-table th:nth-child(3) { width: 27%; }
.punishment-table th:last-child { width: 118px; }
.restriction-table th:last-child { width: 29%; }
.punishment-table tbody > tr:not(.hidden-tr) > td, .restriction-table td {
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
  overflow-wrap: anywhere;
  transition: background .18s, border-color .18s;
}
.punishment-table tbody > tr:not(.hidden-tr) > td:only-child { padding: 18px 13px; border: 0; color: var(--secondary); }
.punishment-table tr[data-punishment-row] { cursor: pointer; }
.punishment-board :is(#banlist, #muts) tr:hover { background: transparent; }
.punishment-board :is(#banlist, #muts) > tr[data-punishment-row] > td { border-radius: 0; }
.punishment-table tbody > tr[data-punishment-row]:is(:hover,:focus-within) > td,
.restriction-table tbody > tr:is(:hover,:focus-within) > td {
  border-color: var(--punishment-edge);
  background: color-mix(in srgb, var(--accent-wash) 50%, var(--surface));
}
.punishment-table .hidden-tr { position: absolute; height: 0; }
.punishment-table .hidden-tr > td { padding: 0; border: 0; }
.punishment-table .hidden-tr:not(:has(.modal.show, .modal.in)) { display: none; }
.punishment-board .player-account { min-width: 0; max-width: 100%; }
.punishment-board .player-account__info { min-width: 0; }
.punishment-board .player-account__info :is(strong, small) { white-space: normal; overflow-wrap: anywhere; }
.punishment-entry-ref { display: block; margin: 3px 0 0; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.punishment-status {
  --status-tone: var(--punishment-active);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 4px 6px;
  border: 1px solid color-mix(in srgb, var(--status-tone) 24%, var(--line));
  border-radius: 7px;
  background: color-mix(in srgb, var(--status-tone) 8%, var(--surface));
  color: var(--status-tone);
  font-size: 11px;
  font-weight: 650;
}
.punishment-status svg { flex: none; width: 13px; height: 13px; stroke-width: 2; }
.punishment-status.is-success:not(.is-session) { --status-tone: var(--punishment-resolved); }
.punishment-status.is-danger { --status-tone: var(--punishment-permanent); }
.punishment-status.is- > span::before { content: "До "; }
.punishment-duration { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.punishment-status.is-danger + .punishment-duration { display: none; }
.punishment-detail-cell { text-align: right; }
.punishment-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--accent);
  font-size: 11px;
  white-space: nowrap;
}
.punishment-details:hover { border-color: var(--punishment-edge); background: var(--accent-wash); }
.punishment-details svg { width: 13px; height: 13px; }
.punishment-history #pagination2 { padding: 7px 0; }
.punishment-history #pagination2 .pagination { justify-content: center; flex-wrap: wrap; gap: 4px; margin: 5px 0; }
.punishment-page .punishment-admin__toolbar { margin: 0; }
.punishment-page .punishment-admin .punishment-admin__toggle {
  width: auto;
  min-height: 37px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-hi);
  color: var(--text);
  font-size: 12px;
}
.punishment-page .punishment-admin__toggle i { display: none; }
.punishment-page .punishment-admin__toggle::after { content: attr(title); }
.punishment-page .punishment-admin .punishment-admin__toggle[aria-expanded=true] {
  border-color: var(--accent-edge);
  background: var(--accent-wash);
  color: var(--accent);
}
.punishment-table .modal .modal-dialog.modal-lg { width: calc(100% - 24px); max-width: 630px; }
.punishment-table .modal .modal-content { border: 1px solid var(--line); border-radius: 13px; }
.punishment-table .modal .modal-content .modal-header {
  justify-content: flex-start;
  align-items: center;
  min-height: 62px;
  padding: 14px 58px 14px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(105deg, var(--accent-wash), transparent 82%);
  border-radius: 14px 14px 0 0;
}
.punishment-table .modal .modal-content .modal-header .modal-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  text-align: left;
  text-transform: none;
}
.punishment-modal-icon { display: grid; place-items: center; width: 29px; height: 29px; flex: none; border: 1px solid var(--punishment-edge); border-radius: 8px; background: var(--accent-wash); color: var(--accent); }
.punishment-modal-icon svg { width: 16px; height: 16px; }
.punishment-table .modal .modal-content .modal-header .close {
  display: grid;
  place-items: center;
  top: 13px;
  right: 13px;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  opacity: 1;
  text-shadow: none;
}
.punishment-table .modal .modal-content .modal-body { padding: 14px 18px 16px; }
.punishment-table .modal-body > .row { margin-inline: -5px; }
.punishment-table .modal-body > .row > div { padding-inline: 5px; }
.punishment-table .modal-body .punishment-case-overview {
  display: grid;
  gap: 8px;
  margin-bottom: 7px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-hi);
  color: var(--text);
}
.punishment-case-overview p { margin: 0; overflow-wrap: anywhere; }
.punishment-case-overview p > span { display: block; color: var(--muted); font-size: 11px; }
.punishment-table .modal :is(.banmutlist_btn_unban, .banmutlist_btn_unmute) { display: flex; flex-wrap: wrap; gap: 6px; }
.punishment-table .modal .banmutlist_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  min-height: 35px;
  margin: 0 0 6px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-hi);
  color: var(--text);
  font-size: 12px;
}
.punishment-table .modal .banmutlist_button:hover { border-color: var(--punishment-edge); background: var(--accent-wash); }
.punishment-table .modal .banmutlist_button .price_btn {
  display: inline-flex;
  align-items: center;
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--accent-wash);
  color: var(--accent);
  white-space: nowrap;
}
.punishment-page .modal .banmutlist_info_names {
  margin: 0;
  padding: 8px 3px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
}
.punishment-page .modal .banmutlist_info_names > i { display: none; }
.punishment-page .modal .name_info_block { color: var(--text); overflow-wrap: anywhere; }
.punishment-page .modal .text_desp_info { color: var(--muted); }
.punishment-page .modal .name_info_block input { color: var(--text) !important; }

@media (min-width: 560px) {
  .punishment-table .modal-body > .row > .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
}

.restriction-empty {
  margin: 0;
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--secondary);
}
.restriction-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 9px 0;
  color: var(--muted);
  font-size: 12px;
}
.restriction-pager a {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
}
.restriction-pager a:hover { background: var(--accent-wash); }

[data-theme=light] .punishment-page { --punishment-active: #594699; --punishment-permanent: #a0465b; --punishment-resolved: #306b56; }
[data-theme=light] .punishment-hero {
  border-color: var(--punishment-edge);
  background:
    repeating-linear-gradient(120deg, transparent 0 47px, #7655b114 48px 49px, transparent 50px 65px),
    radial-gradient(ellipse at 80% 40%, #ad94dd95, transparent 59%),
    linear-gradient(108deg, #f8f4fd, #eae1f6);
}
[data-theme=light] .punishment-hero h1 { color: #302448; }
[data-theme=light] .punishment-hero-label { color: #634a94; }
[data-theme=light] .punishment-hero p { color: #615570; }

@media (max-width: 1050px) {
  .punishment-board { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .punishment-sidebar { position: static; }
  .legacy-punishment-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .punishment-links { display: flex; gap: 8px; margin: 5px 0 0; padding: 0; border: 0; background: transparent; }
  .punishment-links a { gap: 7px; }
}
@media (max-width: 650px) {
  .punishment-hero { min-height: 190px; padding: 16px 13px; margin-bottom: 12px; }
  .punishment-hero-copy { max-width: 63%; }
  .punishment-hero h1 { font-size: clamp(29px, 8vw, 43px); }
  .punishment-hero p { max-width: 167px; margin-bottom: 12px; font-size: 11px; }
  .punishment-hero-art { right: -9px; width: 55%; height: calc(100% - 16px); }
  .punishment-hero-label { font-size: 10px; letter-spacing: 0; }
  .punishment-appeal { min-height: 36px; font-size: 11px; gap: 5px; padding: 0 8px; }
  .punishment-appeal svg:last-child, .legacy-punishment-tabs a > svg { display: none; }
  .legacy-punishment-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 5px; }
  .legacy-punishment-tabs a { gap: 7px; min-height: 36px; padding: 3px 6px; }
  .legacy-punishment-tabs a > span { width: 27px; height: 27px; }
  .punishment-links { margin-top: 3px; }
  .punishment-links a { min-height: 32px; }
  .punishment-filter { padding: 9px; }
  .punishment-server { flex-basis: 100%; }
  .punishment-search { flex-basis: 92px; }
  .punishment-reset, .punishment-find { padding-inline: 8px; font-size: 11px; }
  .punishment-board :is(.punishment-table, .restriction-table) thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .punishment-board :is(.punishment-table, .restriction-table, tbody) { display: block; }
  .punishment-table tbody > tr:not(.hidden-tr), .restriction-table tbody > tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    align-items: center;
    gap: 3px 8px;
    padding: 9px;
    border-top: 1px solid var(--line);
  }
  .punishment-board :is(.punishment-table, .restriction-table) tbody > tr:first-child { border-top: 0; }
  .punishment-page .punishment-board :is(.punishment-table, .restriction-table) tbody > tr:not(.hidden-tr) > td {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .punishment-board td.punishment-player { grid-column: 1; grid-row: 1; }
  .punishment-board td.punishment-timing { grid-column: 2; grid-row: 1; text-align: right; }
  .punishment-table td.punishment-reason { grid-column: 1; grid-row: 2; font-size: 12px; }
  .restriction-table td.punishment-reason { grid-column: 1 / -1; grid-row: 2; font-size: 12px; }
  .punishment-board td.punishment-detail-cell { grid-column: 2; grid-row: 2; }
  .punishment-board td.punishment-detail-cell .punishment-details { min-height: 32px; }
  .punishment-table tbody > tr:not(.hidden-tr) > td:only-child { grid-column: 1 / -1; }
  .punishment-board .player-account__avatar { width: 28px; height: 28px; flex: 0 0 28px; }
  .punishment-status { padding-inline: 5px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .punishment-page *, .punishment-page *::before, .punishment-page *::after { transition: none; }
}


/* Case cards follow the reading order used in complaints. */
.punishment-case-list { border: 0; border-radius: 0; background: transparent; }
.punishment-case-list .punishment-ledger-heading { padding: 0 1px 10px; border: 0; background: transparent; }
.punishment-case-list :is(.punishment-table, .restriction-table),
.punishment-case-list :is(.punishment-table, .restriction-table) > tbody { display: block; width: 100%; }
.punishment-case-list :is(.punishment-table, .restriction-table) thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.punishment-case-list :is(#banlist, #muts) > tr[data-punishment-row],
.punishment-case-list .restriction-table > tbody > tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0 15px;
  margin: 0 0 10px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  transition: border-color .18s, box-shadow .18s;
}
.punishment-case-list :is(#banlist, #muts) > tr[data-punishment-row]:is(:hover, :focus-within),
.punishment-case-list .restriction-table > tbody > tr:is(:hover, :focus-within) {
  border-color: var(--punishment-edge);
  background: var(--surface);
  box-shadow: 0 3px 16px #00000014;
}
.punishment-case-list :is(#banlist, #muts) > tr[data-punishment-row] > td,
.punishment-case-list .restriction-table > tbody > tr > td {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.punishment-case-list :is(#banlist, #muts) > tr > td.punishment-player { display: contents; }
.punishment-case-number { grid-column: 1; grid-row: 1; align-self: start; color: var(--secondary); font-size: 11px; line-height: 25px; }
.punishment-case-list td.punishment-timing { grid-column: 2; grid-row: 1; text-align: right; }
.punishment-case-list .punishment-status { padding: 4px 7px; font-size: 10px; background: transparent; }
.punishment-case-list .punishment-duration { display: inline; font-size: 10px; margin: 0 0 0 7px; white-space: nowrap; }
.punishment-case-list .punishment-status.is-danger + .punishment-duration { display: none; }
.punishment-case-identity {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 15px;
  margin: 8px 0 0;
}
.punishment-case-identity .player-account__avatar { width: 30px; height: 30px; flex-basis: 30px; border-radius: 8px; }
.punishment-case-server { display: inline-flex; align-items: center; gap: 7px; color: var(--secondary); font-size: 11px; overflow-wrap: anywhere; }
.punishment-case-server svg { width: 15px; height: 15px; flex: none; color: var(--muted); }
.punishment-case-list td.punishment-reason { grid-column: 1 / -1; grid-row: 3; margin-top: 7px !important; color: var(--text); font-size: 13px; line-height: 1.5; }
.punishment-case-list td.punishment-detail-cell { grid-column: 1 / -1; grid-row: 4; margin-top: 8px !important; text-align: left; }
.punishment-case-footer { display: flex; align-items: center; gap: 13px; padding-top: 7px; border-top: 1px solid var(--line); }
.punishment-entry-date { color: var(--muted); font-size: 11px; }
.punishment-case-admin { display: inline-flex; align-items: center; gap: 7px; color: var(--secondary); min-width: 0; font-size: 11px; }
.punishment-case-admin > span:first-child { color: var(--muted); font-size: 10px; }
.punishment-case-admin .player-account__avatar,
.punishment-case-admin img { width: 21px; height: 21px; flex-basis: 21px; border-radius: 6px; object-fit: cover; }
.punishment-case-admin .player-account__info strong { font-size: 11px; }
.punishment-case-list .punishment-details { margin-left: auto; gap: 7px; min-height: 32px; padding: 5px 10px; border-color: var(--punishment-edge); background: var(--accent-wash); color: var(--accent); font-size: 11px; font-weight: 600; }
.punishment-case-list .punishment-details:hover { background: color-mix(in srgb, var(--violet) 20%, var(--surface)); }
.punishment-case-list .restriction-table > tbody > tr > td.punishment-player { grid-column: 1; grid-row: 1; }
.punishment-case-list .restriction-table > tbody > tr > td.punishment-reason { margin-top: 12px; }
@media (max-width: 650px) {
  .punishment-case-list :is(#banlist, #muts) > tr[data-punishment-row],
  .punishment-case-list .restriction-table > tbody > tr { padding: 13px; gap: 0 8px; }
  .punishment-case-list .punishment-status { font-size: 9px; }
  .punishment-case-number { font-size: 11px; }
  .punishment-case-identity { gap: 7px; }
  .punishment-case-server { width: 100%; }
  .punishment-case-server { font-size: 10px; }
  .punishment-case-footer { flex-wrap: wrap; gap: 7px 10px; }
  .punishment-case-admin { order: -1; width: 100%; }
  .punishment-case-list .punishment-duration { display: block; margin: 3px 0 0; }
  .punishment-case-list .punishment-details { font-size: 10px; }
}

.punishment-table .modal .modal-dialog.modal-lg { max-width: 640px; }
.punishment-table .modal .modal-content .modal-body { padding: 15px; }
.punishment-table .modal-body > .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.punishment-table .modal-body > .row > .col-lg-6 { display: contents; }
.punishment-table .modal-body > .row > .punishment-case-overview {
  grid-column: 1 / -1;
  gap: 7px;
  width: auto;
  margin: 0;
  padding: 12px;
  border-left: 3px solid var(--accent);
  background: linear-gradient(115deg, var(--accent-wash), var(--surface-hi));
}
.punishment-case-overview p { color: var(--text); font-size: 14px; line-height: 1.5; }
.punishment-table .modal-body > .row > .punishment-case-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  width: auto;
  padding: 4px 0;
}
.punishment-table .modal .punishment-case-actions .banmutlist_btn_unban { display: contents; }
.punishment-table .modal .punishment-case-actions .banmutlist_button {
  margin: 0;
  min-height: 36px;
  font-size: 11px;
  background: var(--surface-hi) !important;
  color: var(--text) !important;
}
.punishment-table .modal .punishment-case-actions .price_btn { background: var(--accent-wash) !important; color: var(--accent) !important; }
.punishment-case-actions svg { width: 14px; height: 14px; flex: none; }
.punishment-table .modal .punishment-case-actions .punishment-revoke {
  border-color: var(--punishment-edge);
  background: var(--accent-wash) !important;
  color: var(--accent) !important;
}
.punishment-table .modal .banmutlist_info_names {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 59px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-hi);
}
.punishment-table .modal .banmutlist_flex_info_names { display: grid; gap: 4px; min-width: 0; }
.punishment-table .modal .text_desp_info { font-size: 10px; line-height: 1.3; color: var(--muted) !important; }
.punishment-table .modal .name_info_block { min-width: 0; font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--text) !important; }
.punishment-table .modal .name_info_block p { margin: 0; }
.punishment-table .modal .name_info_block input { width: 100%; max-width: 100%; font: inherit !important; height: auto !important; left: auto !important; }
@media (max-width: 400px) {
  .punishment-table .modal-body > .row { grid-template-columns: minmax(0, 1fr); }
}

/* Native GameCMS marks these declarations important inside its cascade layer. */
@layer native {
  .punishment-page .modal .name_info_block { color: var(--text) !important; }
  .punishment-page .modal .text_desp_info { color: var(--muted) !important; }
  .punishment-page .modal .punishment-case-actions .banmutlist_button { color: var(--text) !important; background: var(--surface-hi) !important; }
  .punishment-page .modal .punishment-case-actions .punishment-revoke,
  .punishment-page .modal .punishment-case-actions .price_btn { color: var(--accent) !important; background: var(--accent-wash) !important; }
}

