/* Discord's current dark theme. The colours, sizes, corners, borders and hover states are Discord's own design tokens,
   and the fonts are Discord's gg sans and gg mono, all taken from its stylesheet (discord.com/assets) */
@font-face {
  font-family: "gg sans";
  font-weight: 400;
  src: url("/fonts/gg-sans-400.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "gg sans";
  font-weight: 500;
  src: url("/fonts/gg-sans-500.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "gg sans";
  font-weight: 600;
  src: url("/fonts/gg-sans-600.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "gg sans";
  font-weight: 700;
  src: url("/fonts/gg-sans-700.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "gg mono";
  font-weight: 400;
  src: url("/fonts/gg-mono-400.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "builder sans";
  font-weight: 700;
  src: url("https://fonts.cdnfonts.com/s/114000/BuilderSans-Bold.woff") format("woff");
  font-display: swap;
}

:root {
  --app-frame-background: #25262a;
  --app-frame-border: #97979f1f;
  --background-base-lowest: #2c2d32;
  --background-base-lower: #323339;
  --background-base-low: #36373e;
  --background-surface-high: #393a41;
  --background-surface-higher: #3c3d45;
  --background-surface-highest: #3f4048;
  --background-mod-subtle: #97979f1f;
  --background-mod-normal: #97979f29;
  --background-mod-strong: #97979f33;
  --background-code: #5865f214;
  --interactive-background-hover: #97979f1f;
  --interactive-background-active: #97979f29;
  --interactive-background-selected: #97979f33;
  --interactive-text-default: #c5c6ca;
  --interactive-text-hover: #ffffff;
  --interactive-text-active: #ffffff;
  --border-subtle: #97979f1f;
  --border-normal: #97979f33;
  --border-strong: #97979f70;
  --text-default: #f3f3f4;
  --text-subtle: #c5c6ca;
  --text-muted: #abacb2;
  --text-strong: #ffffff;
  --text-link: #76aff6;
  --text-brand: #94a8ff;
  --channels-default: #999aa1;
  --brand: #5865f2;
  --control-primary-background-default: #5865f2;
  --control-primary-background-hover: #4452bb;
  --control-primary-background-active: #3a48a3;
  --control-secondary-background-default: #97979f1f;
  --control-secondary-background-hover: #97979f29;
  --control-secondary-background-active: #97979f33;
  --control-secondary-border: #97979f0a;
  --control-critical-background-default: #d22d39;
  --control-critical-background-hover: #a9232e;
  --control-critical-background-active: #971d28;
  --control-connected-background-default: #008545;
  --control-connected-background-hover: #006c37;
  --control-connected-background-active: #005f30;
  --control-border: #ffffff14;
  --input-background-default: #00000014;
  --input-border-default: #97979f33;
  --input-border-active: #5865f2;
  --input-placeholder: #a4a5ab;
  --badge-notification-background: #d22d39;
  --status-online: #23a55a;
  --status-warning: #f0b232;
  --status-danger: #f23f43;
  --feedback-info-background: #0074e314;
  --feedback-info-border: #8bbcf8;
  --feedback-info-text: #8ebefa;
  --feedback-warning-background: #f8a30014;
  --feedback-warning-border: #fbb32f;
  --feedback-warning-text: #fcb529;
  --feedback-critical-background: #d22d3914;
  --feedback-critical-border: #ffa39c;
  --feedback-critical-text: #ffa09b;
  --feedback-positive-background: #00854514;
  --feedback-positive-border: #7ecb94;
  --feedback-positive-text: #7ecb94;
  --message-mentioned-background: #f8a30014;
  --scrollbar-thin-thumb: #767780;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-border: 0 0 0 1px var(--border-subtle);
  --shadow-high: 0 12px 32px 0 rgba(0, 0, 0, .24);
  --font-primary: "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-code: "gg mono", "Source Code Pro", Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.375;
  background: var(--app-frame-background);
  color: var(--text-default);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--text-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h2,
h3 {
  margin: 0;
  color: var(--text-strong);
}

b,
strong {
  font-weight: 600;
}

/* Discord's thin scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thin-thumb) transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thin-thumb);
  background-clip: padding-box;
  border: 2px solid transparent;
  border-radius: 4px;
  min-height: 40px;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
  background: transparent;
}

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

/* Discord's buttons (secondary unless given a colour) */
button,
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 60px;
  height: 32px;
  padding: 2px 16px;
  border: 1px solid var(--control-secondary-border);
  border-radius: var(--radius-sm);
  background: var(--control-secondary-background-default);
  color: #fff;
  font-size: 14px;
  line-height: 16px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out, opacity .15s ease-out;
}

button:hover:not(:disabled),
.button:hover {
  background: var(--control-secondary-background-hover);
  text-decoration: none;
}

button:active:not(:disabled) {
  background: var(--control-secondary-background-active);
}

button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.primary {
  background: var(--control-primary-background-default);
  border-color: var(--control-border);
}

.primary:hover:not(:disabled) {
  background: var(--control-primary-background-hover);
}

.primary:active:not(:disabled) {
  background: var(--control-primary-background-active);
}

.success {
  background: var(--control-connected-background-default);
  border-color: var(--control-border);
}

.success:hover:not(:disabled) {
  background: var(--control-connected-background-hover);
}

.success:active:not(:disabled) {
  background: var(--control-connected-background-active);
}

.danger {
  background: var(--control-critical-background-default);
  border-color: var(--control-border);
}

.danger:hover:not(:disabled) {
  background: var(--control-critical-background-hover);
}

.danger:active:not(:disabled) {
  background: var(--control-critical-background-active);
}

/* (Discord's critical secondary buttons, for things like deleting) */
.critical-secondary {
  background: var(--control-secondary-background-default);
  color: var(--feedback-critical-text);
}

.critical-secondary:hover:not(:disabled) {
  background: var(--feedback-critical-background);
  border-color: var(--feedback-critical-border);
}

.button-small {
  height: 28px;
  min-width: 0;
  padding: 2px 10px;
  font-size: 13px;
}

/* (like Discord's icon-only buttons: no background until hovered) */
.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--interactive-text-default);
}

.ghost:hover:not(:disabled) {
  background: var(--background-mod-normal);
  color: var(--interactive-text-hover);
}

.ghost:active:not(:disabled) {
  background: var(--background-mod-strong);
}

.wide {
  width: 100%;
}

/* Discord's inputs */
input,
select,
textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--input-border-default);
  border-radius: var(--radius-sm);
  background: var(--input-background-default);
  color: var(--text-default);
  font-size: 16px;
  outline: none;
  transition: border-color .2s ease-in-out, box-shadow .2s ease-in-out;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--input-border-active);
  box-shadow: 0 0 0 1px var(--input-border-active);
}

input::placeholder,
textarea::placeholder {
  color: var(--input-placeholder);
}

/* Discord's dropdown (common.js builds it): an input-like box with a chevron, and a popout list below it */
.dropdown {
  position: relative;
  min-width: 0;
}

.dropdown-button,
.dropdown-button:hover:not(:disabled),
.dropdown-button:active:not(:disabled) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--input-border-default);
  border-radius: var(--radius-sm);
  background: var(--input-background-default);
  color: var(--text-default);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
}

.dropdown.open .dropdown-button {
  border-color: var(--input-border-active);
}

.dropdown-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-value.placeholder {
  color: var(--text-subtle);
}

.dropdown-chevron {
  width: 20px;
  height: 20px;
  color: var(--interactive-text-default);
  transition: transform .2s ease;
}

.dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-popout {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--background-surface-higher);
  box-shadow: var(--shadow-high);
  animation: dropdown-in .12s ease-out;
}

.dropdown.up .dropdown-popout {
  top: auto;
  bottom: calc(100% + 8px);
}

@keyframes dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.dropdown.up .dropdown-popout {
  animation-name: dropdown-in-up;
}

@keyframes dropdown-in-up {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.dropdown-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 12px;
  font-size: 16px;
  line-height: 20px;
  color: var(--text-subtle);
  cursor: pointer;
  outline: none;
}

.dropdown-option:hover,
.dropdown-option:focus-visible {
  background: var(--interactive-background-hover);
  color: var(--interactive-text-hover);
}

.dropdown-option[aria-selected="true"] {
  background: var(--interactive-background-selected);
  color: var(--interactive-text-active);
  font-weight: 500;
}

.dropdown-check {
  width: 20px;
  height: 20px;
  color: var(--brand);
}

/* (a smaller one, for filters) */
.dropdown.compact .dropdown-button {
  height: 32px;
  padding: 4px 6px 4px 10px;
  font-size: 14px;
}

.dropdown.compact .dropdown-chevron {
  width: 18px;
  height: 18px;
}

.dropdown.compact .dropdown-option {
  padding: 8px 10px;
  font-size: 14px;
}

.dropdown.compact .dropdown-check {
  width: 18px;
  height: 18px;
}

/* icons */
.icon {
  width: 18px;
  height: 18px;
  flex: none;
}

h3 .icon {
  width: 20px;
  height: 20px;
  color: var(--interactive-text-default);
}

.badge .icon {
  width: 13px;
  height: 13px;
}

.banner .icon {
  width: 20px;
  height: 20px;
}

.banner.warn .icon {
  color: var(--feedback-warning-text);
}

.brand-mark .icon {
  width: 18px;
  height: 18px;
}

.event-icon .icon {
  width: 16px;
  height: 16px;
  color: var(--interactive-text-default);
}

.row-icon {
  color: var(--text-muted);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.icon-link .icon {
  width: 14px;
  height: 14px;
}

/* (the swatch in "Recent chat ▌ marks the reported player": a reported player's line in miniature) */
.chat-legend {
  display: inline-block;
  width: 16px;
  height: 12px;
  margin: 0 3px;
  vertical-align: -1px;
  border-left: 2px solid var(--status-warning);
  border-radius: 2px;
  background: #f8a30033;
}

textarea {
  height: auto;
  min-height: 80px;
  padding: 10px 12px;
  resize: vertical;
}

label {
  display: block;
  margin: 16px 0 8px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: var(--text-strong);
}

.muted {
  color: var(--text-muted);
}

.mono {
  font-family: var(--font-code);
  font-size: 13px;
}

/* Robux amounts, with Roblox's Robux icon */
.robux {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.robux-icon {
  width: 1em;
  height: 1em;
  flex: none;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--background-mod-strong);
  border-top-color: var(--text-default);
  animation: spin .8s linear infinite;
  flex: none;
}

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

.loading {
  height: 100%;
  display: grid;
  place-items: center;
}

.loading .spinner {
  width: 28px;
  height: 28px;
  border-width: 3px;
}

/* sign in */
.signin {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.signin-card {
  width: 100%;
  max-width: 480px;
  padding: 32px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--background-base-lower);
  box-shadow: var(--shadow-high);
  text-align: center;
}

.signin-card p {
  color: var(--text-muted);
  font-size: 16px;
}

.signin-message {
  color: var(--text-default) !important;
  font-size: 14px !important;
  text-align: left;
  background: var(--feedback-critical-background);
  border: 1px solid var(--feedback-critical-border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.fine {
  font-size: 12px !important;
  color: var(--text-muted) !important;
}

/* Roblox's sign in button */
.roblox-signin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  margin: 12px 0 4px;
  padding: 0 20px;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-family: "builder sans", var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  transition: background-color .15s ease-out;
}

.roblox-signin:hover {
  background: #1f1f1f;
  text-decoration: none;
}

.roblox-signin:active {
  background: #333;
}

.roblox-signin svg {
  width: 22px;
  height: 22px;
  flex: none;
}

/* the privacy policy and terms */
.doc-page {
  height: auto;
  min-height: 100%;
}

.doc {
  max-width: 720px;
  margin: 40px auto;
  padding: 32px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--background-base-lower);
  font-size: 16px;
  line-height: 1.5;
}

.doc h1 {
  margin: 16px 0 4px;
  font-size: 24px;
  line-height: 30px;
  font-weight: 700;
  color: var(--text-strong);
}

.doc h2 {
  margin: 28px 0 8px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.doc p,
.doc ul {
  margin: 0 0 12px;
}

.doc li {
  margin-bottom: 8px;
}

.doc b {
  color: var(--text-strong);
}

.doc-date {
  color: var(--text-muted);
  font-size: 14px;
}

.doc-back {
  font-size: 14px;
}

@media (max-width: 760px) {
  .doc {
    margin: 0;
    padding: 24px 16px;
    border: 0;
    border-radius: 0;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-strong);
  white-space: nowrap;
}

.brand.big {
  justify-content: center;
  font-size: 24px;
  margin-bottom: 8px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--brand);
  color: #fff;
  font-size: 15px;
}

.brand-sub {
  color: var(--text-muted);
  font-weight: 500;
}

/* the app frame: a title bar, with the panels inset into it like Discord's */
.app {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 48px;
  padding: 0 12px 0 16px;
  min-width: 0;
  flex: none;
}

.spacer {
  flex: 1;
}

.ai-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-status .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--status-online);
  flex: none;
}

.ai-status.down .dot {
  background: var(--status-warning);
}

.me {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.me-text {
  display: flex;
  flex-direction: column;
  line-height: 18px;
  min-width: 0;
}

.me-text b {
  font-size: 14px;
  color: var(--text-strong);
}

.me-text small {
  font-size: 12px;
  color: var(--text-muted);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--background-mod-normal);
  object-fit: cover;
  flex: none;
}

.avatar.small {
  width: 32px;
  height: 32px;
}

.avatar.tiny {
  width: 24px;
  height: 24px;
}

.avatar.big {
  width: 64px;
  height: 64px;
}

/* the three columns */
.layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr) 300px;
  border-top: 1px solid var(--app-frame-border);
  border-left: 1px solid var(--app-frame-border);
  border-top-left-radius: var(--radius-sm);
  overflow: hidden;
}

.list-pane,
.detail-pane,
.log-pane {
  min-height: 0;
  overflow-y: auto;
  background: var(--background-base-lower);
}

.list-pane {
  padding: 12px 8px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* (a long list scrolls instead of squashing the tabs and search) */
.list-pane>* {
  flex-shrink: 0;
}

.detail-pane {
  padding: 24px 24px 60px;
}

/* (the activity panel: tabs at the top, the list scrolls, and the comment box sits at the bottom like Discord's) */
.log-pane {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid var(--border-subtle);
}

.log-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 8px 12px;
}

.log-toggle,
.log-close,
.back {
  display: none !important;
}

/* Discord's tab bar */
.tabs {
  display: flex;
  gap: 4px;
  padding: 0 4px;
}

.tabs button {
  flex: 1 1 auto;
  min-width: 0;
  height: 32px;
  padding: 2px 8px;
  border-color: transparent;
  background: transparent;
  color: var(--interactive-text-default);
  font-size: 14px;
  font-weight: 500;
}

.tabs button:hover:not(:disabled) {
  background: var(--interactive-background-hover);
  color: var(--interactive-text-hover);
}

.tabs button.active,
.tabs button.active:hover {
  background: var(--interactive-background-selected);
  color: var(--interactive-text-active);
}

.count {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--badge-notification-background);
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  text-align: center;
}

.count:empty {
  display: none;
}

.search-box {
  position: relative;
  margin: 0 4px;
}

.search {
  height: 32px;
  width: 100%;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 500;
}

/* Discord's search popout: the filters, then a filter's values */
.search-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  max-height: min(560px, 70vh);
  overflow-y: auto;
  padding-bottom: 8px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--background-surface-higher);
  box-shadow: var(--shadow-high);
  animation: dropdown-in .12s ease-out;
}

.search-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 8px;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.search-option:hover,
.search-option.active {
  background: var(--interactive-background-hover);
}

.search-option .grow {
  flex: 1;
  min-width: 0;
}

.search-option > .icon,
.search-option > .avatar,
.search-option > .cat-dot {
  flex: none;
  color: var(--text-muted);
}

.search-option > .icon {
  width: 24px;
  height: 24px;
}

.search-option > .cat-dot {
  width: 12px;
  height: 12px;
  margin: 0 6px;
}

.search-option .title {
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text-strong);
}

.search-option .sub {
  font-size: 14px;
  line-height: 18px;
  color: var(--text-muted);
}

.search-option .sub b {
  color: var(--text-subtle);
  font-weight: 600;
}

.search-go {
  margin: 8px;
}

.search-go .title {
  min-width: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-divider {
  height: 1px;
  margin-bottom: 8px;
  background: var(--border-subtle);
}

.search-heading {
  padding: 8px 16px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: var(--text-subtle);
}

.search-note {
  padding: 8px 16px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.report-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* reports in the list look like Discord's channel and DM rows */
.report-card {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-width: 0;
  height: auto;
  padding: 8px;
  text-align: left;
  white-space: normal;
  border-color: transparent;
  background: transparent;
  color: var(--interactive-text-default);
  font-weight: 400;
  line-height: 1.375;
}

.report-card:hover:not(:disabled) {
  background: var(--interactive-background-hover);
  color: var(--interactive-text-hover);
}

.report-card:active:not(:disabled) {
  background: var(--interactive-background-active);
}

.report-card.selected,
.report-card.selected:hover {
  background: var(--interactive-background-selected);
  color: var(--interactive-text-active);
}

.card-body {
  flex: 1;
  min-width: 0;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.card-top b {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-strong);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.time {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.card-category {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.card-reasons {
  color: var(--text-muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 600;
  background: var(--background-mod-normal);
  color: var(--text-subtle);
  white-space: nowrap;
}

.badge .spinner {
  width: 10px;
  height: 10px;
  border-width: 2px;
}

.sev-minor,
.tone-blue {
  background: var(--feedback-info-background);
  box-shadow: inset 0 0 0 1px #8bbcf833;
  color: var(--feedback-info-text);
}

.sev-moderate,
.tone-yellow {
  background: var(--feedback-warning-background);
  box-shadow: inset 0 0 0 1px #fbb32f33;
  color: var(--feedback-warning-text);
}

.sev-serious {
  background: var(--feedback-critical-background);
  box-shadow: inset 0 0 0 1px #ffa39c33;
  color: var(--feedback-critical-text);
}

.sev-severe {
  background: var(--control-critical-background-default);
  color: #fff;
}

.tone-green {
  background: var(--feedback-positive-background);
  box-shadow: inset 0 0 0 1px #7ecb9433;
  color: var(--feedback-positive-text);
}

.tone-grey {
  background: var(--background-mod-normal);
  color: var(--text-subtle);
}

.cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.empty {
  display: grid;
  place-items: center;
  min-height: 60%;
  color: var(--text-muted);
  text-align: center;
  padding: 30px 10px;
}

.empty.small {
  min-height: 0;
  font-size: 14px;
}

/* report */
.detail {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.report-head h2 {
  font-size: 24px;
  line-height: 30px;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* (the delete button, level with the title) */
.report-head > button {
  flex: none;
  margin-top: 1px;
}

.report-head .reasons {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 16px;
  color: var(--text-subtle);
}

.report-head .reasons b {
  color: var(--text-strong);
}

.report-meta {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 6px;
}

/* Discord's cards */
.card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--background-surface-high);
  padding: 16px;
}

.card h3 {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.ai-card {
  box-shadow: inset 4px 0 0 var(--brand);
  padding-left: 20px;
}

.ai-card .summary {
  font-size: 16px;
}

.quote {
  display: flex;
  margin: 4px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 16px;
}

.quote::before {
  content: "";
  width: 4px;
  margin-right: 12px;
  border-radius: 4px;
  background: var(--border-strong);
  flex: none;
}

.label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 16px 0 6px;
}

.card>.label:first-child {
  margin-top: 0;
}

/* Discord's notices */
.banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--feedback-info-border);
  background: var(--feedback-info-background);
}

.banner.warn {
  border-color: var(--feedback-warning-border);
  background: var(--feedback-warning-background);
}

.banner.bad {
  border-color: var(--feedback-critical-border);
  background: var(--feedback-critical-background);
}

.banner .grow {
  flex: 1;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.player-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.player-head a {
  font-weight: 600;
  font-size: 16px;
}

.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 12px 0 0;
}

.facts dt {
  color: var(--text-muted);
}

.facts dd {
  margin: 0;
  min-width: 0;
  word-break: break-word;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}

/* evidence: the chat log is a Discord code block, with the reported player's lines highlighted the way Discord
   highlights messages that mention you */
.chat {
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--background-base-lowest);
  padding: 6px 0;
}

.chat-line {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  padding: 2px 12px;
  border-left: 2px solid transparent;
}

.chat-line .when {
  color: var(--text-muted);
  font-size: 12px;
  padding-top: 1px;
}

.chat-line .who {
  font-weight: 600;
  color: var(--text-strong);
  margin-right: 6px;
}

.chat-line .what {
  word-break: break-word;
}

.chat-line.reported {
  background: var(--message-mentioned-background);
  border-left-color: var(--status-warning);
}

.chat-line.reported .who {
  color: var(--feedback-warning-text);
}

.chat-line.reporter .who {
  color: var(--text-link);
}

.text-box {
  margin: 4px 0 0;
  padding: 8px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--background-base-lowest);
  font-family: var(--font-code);
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* the AI's English translation of something players wrote in another language, under the original */
.translation {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 18px;
  font-style: italic;
  white-space: pre-wrap;
  word-break: break-word;
}

.translation-from {
  font-style: normal;
  font-weight: 600;
}

.quote+.translation {
  padding-left: 16px;
}

.text-box+.translation {
  margin-top: 4px;
}

.translating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--background-mod-subtle);
  min-width: 0;
}

.row .grow {
  flex: 1;
  min-width: 0;
}

button.row {
  width: 100%;
  height: auto;
  min-width: 0;
  justify-content: flex-start;
  text-align: left;
  white-space: normal;
  font-weight: 400;
  line-height: 1.375;
  color: var(--text-default);
}

button.row:hover:not(:disabled) {
  background: var(--background-mod-strong);
}

/* actions */
.ban-explain {
  color: var(--text-subtle);
  margin: 0 0 12px;
}

.ban-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ban-option {
  flex-direction: column;
  gap: 2px;
  min-width: 110px;
  height: auto;
  min-height: 52px;
  padding: 8px 16px;
  border: 1px solid var(--input-border-default);
  border-radius: var(--radius-sm);
  background: var(--input-background-default);
  color: var(--text-default);
  font-size: 16px;
}

.ban-option:hover:not(:disabled) {
  background: var(--interactive-background-hover);
  border-color: var(--border-strong);
}

.ban-option small {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.ban-option.recommended {
  border-color: var(--brand);
}

.ban-option.selected,
.ban-option.selected:hover {
  background: var(--control-primary-background-default);
  border-color: var(--control-border);
  color: #fff;
}

.ban-option.selected small {
  color: rgba(255, 255, 255, .85);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 20px 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event {
  display: flex;
  gap: 12px;
}

.event-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--background-mod-normal);
  flex: none;
  font-size: 15px;
}

.event img.avatar {
  width: 32px;
  height: 32px;
}

.event-body {
  flex: 1;
  min-width: 0;
  font-size: 15px;
}

.event-body b {
  color: var(--text-strong);
  font-weight: 500;
}

.event-body .when {
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 6px;
}

.comment {
  margin-top: 2px;
  font-size: 16px;
  color: var(--text-default);
  white-space: pre-wrap;
  word-break: break-word;
}

/* activity, like Discord's member list */
.log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 12px 8px;
  flex: none;
}

.activity-tabs {
  display: flex;
  gap: 4px;
  flex: 1;
}

.activity-tabs button {
  flex: 1 1 auto;
  min-width: 0;
  height: 32px;
  padding: 2px 8px;
  border-color: transparent;
  background: transparent;
  color: var(--interactive-text-default);
}

.activity-tabs button:hover:not(:disabled) {
  background: var(--interactive-background-hover);
  color: var(--interactive-text-hover);
}

.activity-tabs button.active,
.activity-tabs button.active:hover {
  background: var(--interactive-background-selected);
  color: var(--interactive-text-active);
}

/* a report's history and comments, read top to bottom */
.activity-item {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.activity-item:hover {
  background: var(--interactive-background-hover);
}

.activity-item .grow {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  word-break: break-word;
}

.activity-item.system {
  align-items: center;
  color: var(--text-muted);
}

.activity-item .event-icon {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.activity-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.activity-head b {
  color: var(--text-strong);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-action {
  color: var(--text-subtle);
}

.activity-item.ban .activity-action {
  color: var(--feedback-critical-text);
}

.activity-item.ban .activity-action .muted,
.activity-item .activity-action .muted {
  color: var(--text-muted);
}

.activity-item .comment {
  font-size: 15px;
}

/* the comment box, like Discord's message box */
.comment-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 12px 12px;
  border-top: 1px solid var(--border-subtle);
  flex: none;
}

.comment-form textarea {
  flex: 1;
  height: 40px;
  min-height: 40px;
  max-height: 200px;
  padding: 9px 12px;
  resize: none;
  overflow-y: hidden;
  background: var(--background-surface-high);
  border-color: var(--border-subtle);
  font-size: 15px;
  line-height: 20px;
}

.comment-form button {
  height: 40px;
  min-width: 0;
}

.log-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.log-item {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-width: 0;
  height: auto;
  padding: 8px;
  text-align: left;
  white-space: normal;
  font-weight: 400;
  line-height: 1.375;
  border-color: transparent;
  background: transparent;
  color: var(--interactive-text-default);
}

.log-item:hover:not(:disabled) {
  background: var(--interactive-background-hover);
  color: var(--interactive-text-hover);
}

.log-item:active:not(:disabled) {
  background: var(--interactive-background-active);
}

.log-item .avatar.tiny {
  box-shadow: 0 0 0 2px var(--background-base-lower), 0 0 0 4px var(--border-normal);
}

.log-item.ban .avatar.tiny {
  box-shadow: 0 0 0 2px var(--background-base-lower), 0 0 0 4px var(--status-danger);
}

.log-item.unban .avatar.tiny,
.log-item.resolve .avatar.tiny {
  box-shadow: 0 0 0 2px var(--background-base-lower), 0 0 0 4px var(--status-online);
}

.log-item.reopen .avatar.tiny,
.log-item.comment .avatar.tiny {
  box-shadow: 0 0 0 2px var(--background-base-lower), 0 0 0 4px var(--brand);
}

.log-item .grow {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  word-break: break-word;
}

.log-item .grow b {
  font-weight: 600;
  color: var(--text-strong);
}

.log-item .time {
  display: block;
}

.log-excerpt {
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* loading placeholders: Discord's shimmering grey shapes */
.skeleton {
  display: block;
  height: 14px;
  margin: 6px 0;
  border-radius: var(--radius-xs);
  background: linear-gradient(90deg, var(--background-mod-subtle) 0%, var(--background-mod-strong) 40%, var(--background-mod-subtle) 80%);
  background-size: 300% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

@keyframes shimmer {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
  }
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 50%;
  flex: none;
}

.skeleton-avatar.small {
  width: 32px;
  height: 32px;
}

.skeleton-avatar.tiny {
  width: 24px;
  height: 24px;
}

.skeleton-avatar.big {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
}

.skeleton-line.small {
  height: 10px;
}

.skeleton-title {
  width: 40%;
  height: 26px;
  margin: 0 0 10px;
}

.skeleton-pill {
  width: 72px;
  height: 20px;
  margin-top: 8px;
}

.skeleton-option {
  width: 110px;
  height: 52px;
  margin: 8px 0;
  border-radius: var(--radius-sm);
}

.skeleton-input {
  height: 40px;
  margin: 12px 0;
  border-radius: var(--radius-sm);
}

.skeleton-row-block {
  height: 44px;
  margin: 0;
  border-radius: var(--radius-sm);
}

.skeleton-row {
  pointer-events: none;
}

.skeleton-card .skeleton-line {
  margin: 10px 0;
}

/* the Owners' stats page */
.stats-body {
  height: auto;
  min-height: 100%;
}

.stats-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-count {
  color: var(--text-strong);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.section-head .section-title {
  margin: 0;
}

.filters {
  display: flex;
  gap: 8px;
}

.filters .dropdown {
  width: 200px;
}

.online-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.online-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--background-surface-high);
}

.online-person b {
  color: var(--text-strong);
}

.avatar-wrap {
  position: relative;
  flex: none;
}

.status-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--status-online);
  border: 3px solid var(--background-surface-high);
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.stat-card .label {
  margin: 0 0 6px;
}

.stat-value {
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  color: var(--text-strong);
}

.table-card {
  padding: 0;
  overflow-x: auto;
}

.mod-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.mod-table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 1px solid var(--border-subtle);
}

.mod-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

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

.mod-table tr.clickable {
  cursor: pointer;
  transition: background-color .15s ease-out;
}

.mod-table tr.clickable:hover {
  background: var(--interactive-background-hover);
}

.mod-table .who {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mod-table .who b {
  color: var(--text-strong);
}

.mod-table .status-dot {
  border-color: var(--background-surface-high);
}

.big-number {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong);
}

.online-text {
  color: var(--feedback-positive-text);
  font-weight: 600;
}

.log-card {
  padding: 8px;
}

/* Discord's toasts */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--background-surface-highest);
  box-shadow: var(--shadow-high);
  font-weight: 500;
  z-index: 50;
  animation: toast-in .2s ease-out;
}

.toast.bad {
  background: #3d2b30;
  border-color: #e24d50;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
}

/* narrower screens: the log becomes a drawer */
@media (max-width: 1240px) {
  .layout {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .log-toggle,
  .log-close {
    display: inline-flex !important;
  }

  .log-pane {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 100%);
    z-index: 40;
    border-left: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-high);
    transform: translateX(100%);
    transition: transform .2s ease-out;
  }

  .app.log-open .log-pane {
    transform: none;
  }
}

/* phones: the list and the report take turns */
@media (max-width: 760px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    border-left: 0;
    border-top-left-radius: 0;
  }

  .topbar {
    gap: 10px;
  }

  .topbar button {
    padding: 2px 10px;
    min-width: 0;
  }

  .brand-sub,
  .me-text,
  .ai-status .ai-text {
    display: none;
  }

  .list-pane {
    border-right: 0;
  }

  .detail-pane {
    display: none;
    padding: 16px 16px 60px;
  }

  .app.show-detail .list-pane {
    display: none;
  }

  .app.show-detail .detail-pane {
    display: block;
  }

  .back {
    display: inline-flex !important;
    align-self: flex-start;
  }

  .two,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* (the ban box's note that banning closes the player's other open reports) */
.ban-explain.duplicates {
  margin: 10px 0 0;
  color: var(--text-muted);
}

/* (a muted note after a field's label, like "Suggested by the AI") */
.label-hint {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Discord's checkboxes, for the changes the AI suggested making alongside a ban */
.checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

/* (relative so the hidden input sits inside it; otherwise it's placed against the page and
   makes the whole window scroll when the box is far down a long report) */
label.check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 500;
  color: var(--text-default);
  cursor: pointer;
}

.check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.check-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid #97979fa3;
  background: #00000014;
  color: transparent;
}

.check:hover .check-box {
  border-color: #97979fcc;
}

.check input:checked + .check-box {
  border-color: var(--border-subtle);
  background: var(--brand);
  color: #ffffff;
}

.check input:focus-visible + .check-box {
  outline: 2px solid var(--input-border-active);
  outline-offset: 2px;
}

.check-box .icon {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

.banner.good {
  border-color: var(--feedback-positive-border);
  background: var(--feedback-positive-background);
}

.banner.good .icon {
  color: var(--feedback-positive-text);
}

.actions-card .banner {
  margin-top: 12px;
}

/* (a ban's reason being edited, in the player's history) */
.banner.editing {
  align-items: flex-start;
}

.banner.editing label {
  margin-top: 12px;
}

.banner.editing .action-row {
  margin-top: 12px;
}
