.module-settings {
  width:100%;
  max-width:1360px;
  margin-inline:auto;
  container:module-settings / inline-size;
}
.module-settings .settings-layout { max-width:none; }
.command-list .record-copy { flex:1; min-width:0; }
.command-list-title { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.command-list-title code,.command-trigger code { color:var(--ink); font-size:14px; font-weight:650; overflow-wrap:anywhere; }
.command-list-summary { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; line-height:1.5; }
.command-list .command-list-meta { margin-top:6px; font-size:11px; }
.command-status { padding:2px 7px; border-radius:6px; background:var(--wash); }
.command-list .actions-inline { flex-shrink:0; }
.command-dialog { width:min(860px,calc(100vw - 32px)); }
.command-trigger { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:20px 0; }
.command-trigger-hint { display:block; margin-top:10px; line-height:1.5; }
.command-tabs { margin:0; gap:22px; }
.command-tabs .tab { padding:12px 0; white-space:nowrap; }
:root[data-site-theme] .command-dialog .command-tabs .tab { border:0; border-bottom:2px solid transparent; border-radius:0; background:transparent; box-shadow:none; }
:root[data-site-theme] .command-dialog .command-tabs .tab[aria-selected=true] { border-bottom-color:var(--accent-ink); color:var(--ink); font-weight:650; }
.command-panel { padding-top:22px; min-height:270px; }
.command-panel-heading h3 { font-size:16px; margin:0 0 6px; }
.command-panel-heading p { color:var(--muted); line-height:1.5; max-width:70ch; margin:0 0 18px; }
.command-panel .field-row { padding:14px 0; }
.command-response>.field-row { grid-template-columns:minmax(0,1fr); gap:10px; }
.command-response textarea { min-height:180px; }
.command-response-tools { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin:14px 0; }
.command-preview-disclosure { margin-top:20px; }
.command-preview-disclosure>summary { padding:12px 0; cursor:pointer; color:var(--muted); }
.command-panel .disclosure-summary { display:flex; align-items:center; gap:10px; list-style:none; cursor:pointer; }
.command-response-preview { margin-top:10px; }
.command-buttons>.actions-inline { margin-top:18px; }
.command-button>summary { display:flex; justify-content:space-between; gap:12px; }
.command-button-fields { padding:0 16px 16px; }
.command-button-fields>.command-response { border-top:1px solid var(--line); padding-top:20px; }
.command-field-note { color:var(--muted); line-height:1.5; margin:12px 0 20px; }
@media(max-width:720px) {
  .command-dialog .record-body { padding:0 18px 20px; }
  .command-tabs { gap:16px; overflow-x:auto; }
  .command-tabs .tab { font-size:13px; }
  .command-panel .field-row { grid-template-columns:minmax(0,1fr); gap:10px; }
  .command-panel .field-row:has(.toggle) { grid-template-columns:minmax(0,1fr) auto; }
  .command-list .record-row { align-items:flex-start; flex-wrap:wrap; gap:12px; }
  .command-list .record-copy { flex-basis:100%; }
}
.module-settings-body { min-width:0; }
.module-page-header { margin-bottom:20px; }
.module-page-header h1 { font-size:28px; line-height:1.2; margin:0 0 14px; letter-spacing:-.6px; }
.module-page-header:has(.module-section-nav[hidden]) h1 { margin-bottom:0; }
.module-settings .module-section-nav { gap:20px; margin:0; padding:0; }
:root[data-site-theme] .module-settings .module-section-nav .tab {
  min-height:44px;
  padding:10px 0;
  font-size:1rem;
  border:0;
  border-bottom:2px solid transparent;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
:root[data-site-theme] .module-settings .module-section-nav .tab:hover { color:var(--ink); }
:root[data-site-theme] .module-settings .module-section-nav .tab[aria-selected=true] {
  color:var(--ink);
  border-bottom-color:var(--accent-ink);
  font-weight:650;
}
:root[data-site-theme] .module-settings .settings-section {
  margin-bottom:16px;
  border:1px solid var(--line);
  border-radius:10px;
  box-shadow:none;
}
:root[data-site-theme] .module-settings .settings-section>header {
  padding:14px 18px;
  border-radius:10px 10px 0 0;
  background:transparent;
}
:root[data-site-theme] .module-settings .settings-section>header h2 { font-family:inherit; font-size:16px; font-weight:650; letter-spacing:0; }
.module-settings .settings-section>header p { max-width:75ch; line-height:1.5; }
.module-settings .settings-section-header { display:flex; align-items:flex-start; flex-wrap:wrap; gap:16px 24px; }
.module-settings .settings-section-copy { min-width:0; flex:1 1 280px; }
.module-settings .settings-section-header>.section-enable {
  display:flex;
  flex:0 0 auto;
  min-height:32px;
  padding:0;
  border:0;
  margin-left:auto;
}
.module-settings .section-enable>.field-copy { display:none; }
.module-settings .section-enable .activation-control { max-width:100%; white-space:normal; }
@container module-settings (max-width:480px) {
  .module-settings .settings-section-header>.section-enable { margin-left:0; }
}
.module-settings .field-row { padding:14px 18px; gap:16px; align-items:center; }
.module-settings .field-row.wide { grid-template-columns:minmax(0,1fr); align-items:start; gap:8px; }
.module-settings .field-copy { min-width:0; overflow-wrap:anywhere; }
.module-settings .field-label { min-height:26px; }
.module-settings .field-control { overflow-wrap:anywhere; }
@container module-settings (max-width:700px) {
  .logging-events-table,.logging-events-table tbody { display:block; }
  .logging-events-table thead { display:none; }
  .logging-events-table .event-row {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:12px;
    padding:16px;
    border-bottom:1px solid var(--line);
  }
  .logging-events-table .event-row:last-child { border-bottom:0; }
  .module-settings .logging-events-table .event-row td { padding:0; border:0; min-width:0; width:auto; }
  .logging-events-table .event-row td:first-child { grid-column:1 / -1; grid-row:2; }
  .logging-events-table .event-row td:nth-child(2) { grid-column:1; grid-row:1; align-self:center; font-weight:650; }
  .logging-events-table .event-row td:nth-child(3) { grid-column:1 / -1; grid-row:3; }
  .logging-events-table .event-row td:last-child { grid-column:2; grid-row:1; }
}
.music-canvas-preview { margin:0; padding:18px; border-bottom:1px solid var(--line); }
.music-canvas-preview figcaption { display:flex; flex-direction:column; gap:4px; }
.music-canvas-preview figcaption strong { font-size:14px; }
.music-canvas-preview figcaption span { color:var(--muted); font-size:12px; line-height:1.5; }
.music-canvas-preview .actions-inline { margin:12px 0; }
.music-canvas-preview [aria-pressed=true] { border-color:var(--accent-ink); color:var(--accent-ink); }
.music-canvas-image { display:block; width:100%; height:auto; border-radius:8px; }
.music-canvas-image[hidden] { display:none; }
.music-preview-status { color:var(--muted); font-size:12px; line-height:1.5; margin:10px 0 0; }
.music-preview-status:empty { display:none; }
@container module-settings (min-width:700px) {
  .music-theme-body>.settings-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .module-settings .music-theme-body>.settings-fields>.field-row { grid-template-columns:minmax(0,1fr); align-content:start; gap:8px; }
}
.music-playback>.settings-fields .field-label { min-height:24px; }
.deezer-token-field .field-copy>.quiet-link { margin-top:8px; font-size:12px; }
.deezer-token-field .field-control>small { display:block; margin-top:8px; color:var(--muted); line-height:1.5; }
.module-settings .deezer-token-field { border-top:1px solid var(--line); align-items:start; }
.deezer-token-controls { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.deezer-token-controls>input,.deezer-token-saved { flex:1 1 240px; min-width:0; }
.deezer-token-controls>.button { flex-shrink:0; }
.deezer-token-saved { display:flex; align-items:flex-start; gap:10px; padding-block:4px; }
.deezer-token-saved>.icon { flex-shrink:0; color:var(--muted); margin-top:2px; }
.deezer-token-saved strong { display:block; font-size:13px; font-weight:650; }
.deezer-token-saved small { display:block; margin-top:4px; color:var(--muted); line-height:1.5; }
.module-settings .role-table td { padding:12px 18px; }
.module-settings .role-table td:first-child { width:32%; }
.server-stats .section-heading { flex-wrap:wrap; }
.server-stats .section-heading>.button { flex-shrink:0; }
.server-stats .section-heading .boolean-control { width:190px; max-width:100%; }
.server-stats .activity-access { margin:4px 18px 18px; }
.server-stats .activity-source { margin:0; padding:0 18px 16px; color:var(--muted); font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
@media(max-width:720px) {
  .server-stats .activity-access { margin:4px 16px 16px; }
  .server-stats .activity-source { padding-inline:16px; }
}
.server-stats .record-row { padding:14px 18px; }
.server-stats header+.record-row { border-top:0; }
.server-stats .record-copy { flex:1; overflow-wrap:anywhere; }
.server-stats .record-row>.actions-inline { flex-shrink:0; flex-wrap:nowrap; }
.module-settings .record-row {
  flex-direction:column;
  align-items:stretch;
  gap:12px;
}
.module-settings .record-copy { overflow-wrap:anywhere; }
.module-settings .record-row>.actions-inline {
  align-self:flex-start;
  flex-wrap:wrap;
  gap:8px;
}
@container module-settings (min-width:880px) {
  .module-settings .music-playback>.deezer-token-field { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
  .settings-section>.settings-fields {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding:4px 18px 16px;
    column-gap:24px;
  }
  .module-settings .settings-section>.settings-fields>.field-row {
    grid-template-columns:minmax(0,1fr);
    align-content:start;
    gap:8px;
    padding:12px 0;
    border-bottom:0;
  }
  .settings-section>.settings-fields>:not(.field-row),
  .settings-section>.settings-fields>.field-row.wide { grid-column:1 / -1; }
  .settings-section>.settings-fields>.field-row:last-child:nth-child(odd) { grid-column:1 / -1; }
  .settings-section>.settings-fields>.field-row[data-setting-path='["Invites","Enabled"]'],
  .settings-section>.settings-fields>.field-row[data-setting-path='["Invites","TrackLeaves"]'] { grid-column:1 / -1; }
}
@media(max-width:720px) {
  .module-page-header { margin-bottom:16px; }
  .module-page-header h1 { font-size:26px; margin-bottom:10px; }
  .module-settings .module-section-nav { gap:16px; }
  :root[data-site-theme] .module-settings .settings-section>header { padding:13px 16px; }
  .module-settings .field-row { grid-template-columns:minmax(0,1fr); padding:14px 16px; gap:8px; }
  .module-settings .role-table td { padding:12px 10px; }
  .server-stats .record-row { padding:14px 16px; }
}
.anti-hoist-actions { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.anti-hoist-actions > .btn { flex-shrink: 0; }
.anti-hoist-actions > div { flex: 1; min-width: min(280px, 100%); }
.anti-hoist-actions p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.anti-hoist-actions .anti-hoist-status { margin-top: 6px; color: var(--ink); }
