.mod-page { display: grid; gap: 20px; min-width: 0; }
.mod-page * { box-sizing: border-box; }
.mod-heading h1 { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.4; }
.mod-description { margin: 7px 0 0; color: var(--muted-foreground); font-size: 13px; line-height: 1.7; }
.mod-tabs { display: flex; gap: 4px; width: fit-content; max-width: 100%; border-radius: 9px; padding: 4px; background: var(--muted); }
.mod-tabs .mod-button { border: 0; background: transparent; color: var(--muted-foreground); }
.mod-tabs .mod-button[aria-selected="true"] { background: var(--background); color: var(--foreground); }
.mod-button { display: inline-flex; justify-content: center; align-items: center; min-height: 35px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 7px; background: var(--foreground); color: var(--background); font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.mod-button:disabled { cursor: default; opacity: .5; }
.mod-button:focus-visible, .mod-input:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.mod-button-secondary { background: var(--background); color: var(--foreground); }
.mod-button-secondary:not(:disabled):hover { background: var(--muted); }
.mod-button-danger { background: transparent; border-color: color-mix(in srgb, var(--destructive) 35%, var(--border)); color: var(--destructive); }
.mod-button-danger:not(:disabled):hover { background: color-mix(in srgb, var(--destructive) 7%, transparent); }
.mod-panel { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--card, var(--background)); }
.mod-toolbar { display: flex; align-items: center; gap: 8px; padding: 16px; border-bottom: 1px solid var(--border); }
.mod-input { display: block; width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 7px; background: transparent; color: var(--foreground); font: inherit; font-size: 13px; min-height: 36px; padding: 8px 10px; }
.mod-input::placeholder { color: var(--muted-foreground); }
.mod-toolbar .mod-input { max-width: 300px; }
.mod-total { margin-left: auto; color: var(--muted-foreground); font-size: 12px; white-space: nowrap; }
.mod-table-wrap { width: 100%; min-width: 0; overflow-x: auto; }
.mod-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.mod-table th { font-size: 12px; color: var(--muted-foreground); font-weight: 500; padding: 12px 16px; background: var(--muted); }
.mod-table td { border-top: 1px solid var(--border); padding: 15px 16px; vertical-align: middle; overflow-wrap: anywhere; }
.mod-table th:last-child, .mod-table td:last-child { text-align: right; }
.mod-table strong { font-weight: 500; }
.mod-identity { min-width: 145px; }
.mod-secondary-text { display: block; margin-top: 4px; color: var(--muted-foreground); font-size: 12px; }
.mod-reason { max-width: 260px; }
.mod-time { color: var(--muted-foreground); font-size: 12px; }
.mod-status { display: inline-flex; padding: 3px 7px; border-radius: 5px; background: var(--muted); color: var(--muted-foreground); font-size: 12px; white-space: nowrap; }
.mod-status-banned { color: var(--destructive); background: color-mix(in srgb, var(--destructive) 6%, transparent); }
.mod-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--border); }
.mod-pagination > span { margin-right: auto; color: var(--muted-foreground); font-size: 12px; }
.mod-empty { padding: 35px 16px; margin: 0; text-align: center; color: var(--muted-foreground); font-size: 13px; }
.mod-message { margin: 0; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.mod-panel > .mod-message { margin: 12px 16px; }
.mod-message-error { color: var(--destructive); }
.mod-message-warning { color: #9a6700; background: #fff9e8; border-color: #eadfbe; }
.mod-message-success { color: var(--foreground); background: var(--muted); }
.dark .mod-message-warning { color: #e7c76d; background: #352c15; border-color: #5f4e24; }
.mod-add-panel { padding: 16px; }
.mod-panel-heading h2 { margin: 0; font-size: 15px; font-weight: 600; }
.mod-add-form { display: flex; align-items: flex-end; gap: 12px; margin-top: 16px; }
.mod-field { display: grid; gap: 7px; min-width: 0; color: var(--foreground); font-size: 13px; }
.mod-add-form .mod-field { width: 210px; }
.mod-add-form .mod-reason-field { flex: 1; }
.mod-overlay { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: #0006; }
.mod-dialog { width: 100%; max-width: 460px; max-height: calc(100dvh - 40px); overflow: auto; border: 1px solid var(--border); border-radius: 12px; padding: 22px; background: var(--background); box-shadow: 0 16px 50px #0002; }
.mod-dialog h2 { margin: 0; overflow-wrap: anywhere; font-size: 17px; font-weight: 600; }
.mod-dialog .mod-field { margin-top: 18px; }
.mod-textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.mod-dialog .mod-message { margin-top: 14px; }
.mod-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
@media (max-width: 640px) {
  .mod-page { gap: 16px; }
  .mod-heading h1 { font-size: 19px; }
  .mod-toolbar { flex-wrap: wrap; padding: 12px; }
  .mod-toolbar .mod-input { flex: 1 1 100%; max-width: none; }
  .mod-total { font-size: 11px; }
  .mod-table, .mod-table tbody { display: block; }
  .mod-table thead { display: none; }
  .mod-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px 12px; padding: 16px 12px; border-top: 1px solid var(--border); }
  .mod-table tr:first-child { border-top: 0; }
  .mod-table td { padding: 0; border: 0; min-width: 0; }
  .mod-table .mod-identity { grid-column: 1; min-width: 0; }
  .mod-table td[data-label="状态"] { text-align: right; }
  .mod-table .mod-reason, .mod-table .mod-time { grid-column: 1 / -1; max-width: none; display: flex; gap: 8px; font-size: 12px; }
  .mod-table .mod-reason::before, .mod-table .mod-time::before { content: attr(data-label); color: var(--muted-foreground); flex-shrink: 0; }
  .mod-table td:last-child { grid-column: 1 / -1; margin-top: 3px; }
  .mod-add-form { flex-wrap: wrap; gap: 12px; }
  .mod-add-form .mod-field { width: 100%; flex: 1 1 100%; }
  .mod-add-form > .mod-button { width: 100%; }
  .mod-dialog { padding: 18px; }
}
