body.dashboard-v2 { --surface: #191a1d; --surface-2: #222427; --line: #34373b; --muted: #b0b4bb; --accent: #f7cf53; background: #111214; letter-spacing: 0; }
.dashboard-v2 .container { max-width: 1580px; padding-inline: 24px; }
.dashboard-v2 .server-workspace { display: grid; grid-template-columns: 236px minmax(0,1fr); gap: 0; align-items: start; border-top: 1px solid var(--line); }
.dashboard-v2 .module-sidebar { position: sticky; top: 84px; max-height: calc(100dvh - 96px); overflow-y: auto; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; padding: 20px 16px 32px 0; box-shadow: none; scrollbar-width: thin; }
.dashboard-v2 .module-sidebar-brand { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 6px; text-align: left; background: #1c1e21; color: #f5f6f7; cursor: pointer; font: inherit; }
.dashboard-v2 .module-sidebar-brand > div { flex: 1; min-width: 0; }
.dashboard-v2 .module-sidebar-name { white-space: normal; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.dashboard-v2 .module-sidebar-subtitle { color: var(--muted); font-size: 12px; margin-top: 3px; }
.dashboard-v2 .module-sidebar-logo { width: 32px; height: 32px; flex: 0 0 32px; object-fit: contain; border-radius: 6px; }
.dashboard-v2 .module-sidebar-title { margin: 14px 12px 6px; padding: 0; color: #8d929b; font-size: 11px; font-weight: 650; letter-spacing: 0; }
.dashboard-v2 .module-nav-group { gap: 3px; }
.workspace-shortcuts { display: grid; gap: 4px; padding-bottom: 14px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.dashboard-v2 .workspace-shortcuts a { text-decoration: none; min-width: 0; }
.dashboard-v2 .workspace-shortcuts .workspace-premium { color: #f7cf53; background: #28251c; flex-wrap: wrap; }
.workspace-premium small { font-size: 10px; color: #c8bf9c; }
.dashboard-premium-link { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; background: #28251c; border: 1px solid #65572e; border-radius: 6px; color: #f7cf53; font: 600 14px/1.4 Inter, sans-serif; text-decoration: none; }
.dashboard-premium-link span { color: #c8bf9c; font-size: 12px; font-weight: 400; }
.dashboard-premium-link:hover { background: #373022; border-color: #f7cf53; }
.workspace-shortcuts a:focus-visible, .dashboard-premium-link:focus-visible { outline: 2px solid #f7cf53; outline-offset: 3px; }
.module-mobile-picker { display: none; }
.dashboard-v2.tool-workspace .server-toolbar { display: none; }
.dashboard-v2 .module-nav-btn { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 10px 12px; border: 0; border-radius: 5px; background: transparent; color: #b9bec5; font-size: 13px; text-align: left; transition: color .15s, background .15s; }
.dashboard-v2 .module-nav-btn.active { background: #302b1d; color: #ffe28a; box-shadow: inset 3px 0 #f7cf53; }
.dashboard-v2 .module-nav-btn:hover { background: #25272b; color: #fff; transform: none; }
.dashboard-v2 .module-nav-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.tool-icon { width: 18px; height: 18px; display: inline-block; flex: 0 0 18px; filter: invert(85%); object-fit: contain; vertical-align: middle; }
.cmd-save-btn:not(.secondary) .tool-icon { filter: none; }
.dashboard-v2 .server-main { min-width: 0; padding: 24px 0 64px 32px; }
.dashboard-v2 .server-toolbar { margin: 0 0 28px; gap: 20px; align-items: center; }
.dashboard-v2 #commandsTitle { font-size: 23px; font-weight: 650; line-height: 1.25; }
.dashboard-v2 .commands-meta { color: var(--muted); font-size: 13px; }
.dashboard-v2 .search-bar { max-width: 270px; min-width: 0; }
.dashboard-v2 .module-settings-card, .dashboard-v2 .module-commands-card { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.dashboard-v2 .settings-panel-title { font-size: 19px; }
.dashboard-v2 .settings-save-row { padding: 0 0 18px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.dashboard-v2 .settings-grid, .dashboard-v2 .community-fields { gap: 22px; }
.dashboard-v2 .settings-section { border-radius: 0; background: transparent; padding: 24px 0; box-shadow: none; }
.dashboard-v2 .settings-check { background: transparent; box-shadow: none; border: 0; border-bottom: 1px solid #303338; border-radius: 0; padding: 16px 0; }
.dashboard-v2 .settings-help, .dashboard-v2 .settings-check-hint { color: var(--muted); line-height: 1.55; font-size: 13px; }
.dashboard-v2 .settings-input, .dashboard-v2 .settings-textarea, .dashboard-v2 select { border-radius: 5px; border-color: #454950; background: #191b1e; color: #f4f5f6; box-shadow: none; font: inherit; font-size: 14px; }
.dashboard-v2 .settings-field { min-width: 0; }
.dashboard-v2 .settings-input:focus, .dashboard-v2 .settings-textarea:focus { outline: 2px solid #d3b14e; outline-offset: 2px; }
.dashboard-v2 .cmd-card { border-radius: 6px; box-shadow: none; background: #191b1e; border-color: var(--line); }
.dashboard-v2 .cmd-save-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 9px 14px; border-radius: 5px; font-size: 13px; line-height: 1.35; white-space: normal; }
.dashboard-v2 .cmd-save-btn.secondary { background: #24262a; border: 1px solid #454950; color: #eef0f2; }
.tool-panel-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-bottom: 24px; }
.tool-panel-heading h2 { font-size: 22px; line-height: 1.3; margin: 0 0 6px; }
.tool-panel-heading p { font-size: 14px; color: var(--muted); margin: 0; }
.dashboard-v2 .tool-panel .cmd-save-btn { width: auto; margin-top: 0; flex: 0 0 auto; }
.tool-section { padding: 26px 0; border-top: 1px solid var(--line); }
.tool-section > header { margin-bottom: 20px; }
.tool-section h3 { margin: 0; font-size: 16px; font-weight: 650; }
.tool-section header p { margin: 7px 0 0; max-width: 750px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.tool-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.tool-wide { grid-column: 1/-1; }
.tool-grid .settings-field, .tool-section > .settings-field { display: flex; flex-direction: column; gap: 9px; }
.tool-section > .settings-field { max-width: 400px; }
.tool-toggle-row { display: flex; align-items: center; position: relative; gap: 20px; padding: 16px 0; border-bottom: 1px solid #292c30; cursor: pointer; }
.tool-toggle-row > span:first-child { flex: 1; min-width: 0; }
.tool-toggle-row strong { font-size: 14px; font-weight: 550; }
.tool-toggle-row small { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.5; max-width: 700px; }
.tool-toggle-row input[role=switch] { position: absolute; right: 0; width: 42px; height: 25px; opacity: 0; cursor: pointer; }
.tool-switch { display: inline-block; width: 42px; height: 25px; border-radius: 20px; background: #4c515b; flex: 0 0 42px; pointer-events: none; transition: background .15s; }
.tool-switch::after { content: ''; display: block; width: 19px; height: 19px; border-radius: 50%; margin: 3px; background: #f7f8f9; transition: transform .15s; }
.tool-toggle-row input:checked + .tool-switch { background: #e7c04a; }
.tool-toggle-row input:checked + .tool-switch::after { transform: translateX(17px); background: #191a1d; }
.tool-toggle-row input:focus-visible + .tool-switch { outline: 2px solid white; outline-offset: 3px; }
.tool-toggle-row input:disabled + .tool-switch { opacity: .4; }
.tool-toggle-row.compact { padding: 0; border: 0; }
.tool-inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tool-inline > .settings-input { flex: 1; min-width: 120px; }
.tool-inline input[type=checkbox] { accent-color: #e7c04a; }
.tool-thresholds { margin-top: 24px; }
.tool-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid #464a50; border-radius: 5px; background: #24262a; color: #fff; cursor: pointer; }
.tool-icon-button:hover { background: #35383c; }
.tool-icon-button:focus-visible { outline: 2px solid #f7cf53; outline-offset: 3px; }
.tool-token-list, .tool-exemptions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tool-token { display: inline-flex; align-items: center; gap: 6px; padding: 4px 5px 4px 9px; background: #292d32; border: 1px solid #474d55; border-radius: 5px; font-size: 13px; max-width: 100%; overflow-wrap: anywhere; }
.tool-token small { color: #c4c9d2; }
.tool-token button { display: flex; align-items: center; border: 0; background: transparent; padding: 3px; cursor: pointer; }
.tool-token .tool-icon { width: 14px; height: 14px; flex-basis: 14px; }
.tool-list-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.tool-list-row > div:first-child { min-width: 0; flex: 1; }
.tool-list-row strong { font-size: 14px; overflow-wrap: anywhere; }
.tool-list-row small { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 5px; overflow-wrap: anywhere; }
.tool-list-row p { color: #d4d7dd; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; margin: 10px 0 0; }
.tool-list-row time { font-size: 12px; color: var(--muted); }
.tool-count { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 10px; }
.tool-empty { padding: 20px 0; color: var(--muted); font-size: 14px; }
.tool-error { color: #ffb1b1; line-height: 1.5; }
.tool-preview-label { color: #dbcb90; background: #252219; border-left: 2px solid #d0ad42; padding: 10px 14px; margin-bottom: 16px; font-size: 12px; }
.tool-member-identity { display: flex; align-items: center; gap: 12px; }
.tool-member-identity > img { width: 36px; height: 36px; border-radius: 50%; }
.tool-search { display: flex; gap: 10px; max-width: 550px; }
.tool-search .settings-input { flex: 1; min-width: 0; }
.tool-pagination { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; }
.tool-dialog { margin: auto; width: min(600px, calc(100vw - 32px)); max-height: 85dvh; overflow-y: auto; color: #f6f7f8; background: #202225; border: 1px solid #53585f; border-radius: 8px; padding: 24px; }
.tool-dialog::backdrop { background: #000b; }
.tool-dialog-header, .tool-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tool-dialog-header h2 { font-size: 20px; margin: 0; overflow-wrap: anywhere; }
.tool-dialog-footer { margin-top: 24px; justify-content: flex-end; }
.tool-dialog .settings-help { margin: 18px 0; }
.tool-dialog [hidden], .tool-panel [hidden] { display: none !important; }
.tool-embed-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,.75fr); gap: 32px; }
.tool-embed-layout > div > .cmd-save-btn { margin-top: 20px; }
.tool-embed-preview { align-self: start; position: sticky; top: 100px; padding: 20px; background: #26282c; border: 1px solid #41454d; border-radius: 6px; }
.tool-eyebrow { font-size: 11px; color: #b5bac3; }
.tool-discord-embed { margin: 14px 0; border-left: 3px solid #f7cf53; background: #1e2023; padding: 16px; border-radius: 3px; overflow-wrap: anywhere; }
.tool-discord-embed > strong { display: block; font-size: 15px; }
.tool-discord-embed p { font-size: 13px; line-height: 1.5; white-space: pre-wrap; margin: 12px 0; }
.tool-discord-embed small { display: block; font-size: 11px; color: #b9bfc9; }
.tool-discord-embed img { max-width: 100%; max-height: 230px; object-fit: contain; margin: 12px 0; }
.tool-discord-embed img.thumbnail { width: 64px; height: 64px; }
.tool-embed-preview > small { font-size: 12px; color: var(--muted); }
.tool-embed-field { display: grid; grid-template-columns: minmax(0,1fr) 36px; gap: 10px; margin: 16px 0; }
.tool-embed-field > input, .tool-embed-field > textarea { grid-column: 1/-1; }
.tool-server-summary { display: flex; align-items: center; gap: 20px; padding: 32px 0; }
.tool-server-summary img { border-radius: 8px; }
.tool-server-summary h2 { font-size: 26px; line-height: 1.35; margin: 5px 0; overflow-wrap: anywhere; }
.tool-server-summary p { color: var(--muted); margin: 5px 0; font-size: 14px; }
.tool-server-initial { display: grid; place-items: center; width: 64px; height: 64px; flex: 0 0 64px; border-radius: 8px; background: #393222; color: #ffdd76; font-size: 28px; }
.tool-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-block: 1px solid var(--line); margin-bottom: 24px; }
.tool-metrics > div { padding: 22px; border-right: 1px solid var(--line); }
.tool-metrics > div:first-child { padding-left: 0; }
.tool-metrics > div:last-child { border: 0; }
.tool-metrics span { color: var(--muted); font-size: 12px; }
.tool-metrics strong { display: block; font-size: 26px; margin-top: 9px; font-weight: 600; }
.tool-module-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.tool-module-tile { display: flex; align-items: center; gap: 12px; border: 1px solid #3e4248; padding: 16px; background: #1b1d20; border-radius: 6px; color: #e8ebef; text-align: left; cursor: pointer; font: inherit; font-size: 13px; min-height: 58px; }
.tool-module-tile > span { flex: 1; }
.tool-module-tile > .tool-icon:last-child { width: 14px; flex-basis: 14px; }
.tool-module-tile:hover { border-color: #bda24f; background: #28271f; }
.tool-overview-footer { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); }
.dashboard-v2 .tool-overview-footer .cmd-save-btn { width: auto; max-width: 100%; margin: 0; flex: 0 1 auto; }
.dashboard-v2 .overview-card:not(:has(.overview-card-icon)) { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 8px; min-width: 0; height: auto; }
.dashboard-v2 .overview-card > span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.dashboard-v2 #applicationEditorSection > .settings-grid { grid-template-columns: minmax(220px, .8fr) minmax(0, 2.2fr) !important; }
.dashboard-v2 #applicationSavedSection { top: 96px !important; }
@media (max-width: 1000px) {
  .dashboard-v2 #applicationEditorSection > .settings-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .dashboard-v2 #applicationSavedSection { position: static !important; }
}
.tool-overview-footer .settings-field { display: flex; flex-direction: column; gap: 10px; flex: 1; max-width: 360px; }
.tool-module-link { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #e5e8ed; flex: 1; }
.dashboard-v2 select.settings-input {
  color-scheme: dark;
  appearance: none;
  padding-right: 40px;
  background-color: #1b1d20;
  background-image: url('/icons/chevron-down.svg');
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  border: 1px solid #45484e;
  border-radius: 6px;
  min-height: 44px;
  transition: border-color .15s, background-color .15s;
}
.dashboard-v2 select.settings-input:hover { border-color: #8f8050; background-color: #232427; }
.dashboard-v2 select.settings-input:focus-visible { outline: 2px solid #f4d36c; outline-offset: 2px; }
.dashboard-v2 select.settings-input option { background: #1b1d20; color: #f0f1f3; }
.tool-member-actions { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; min-width: 0; }
.tool-member-actions legend { margin-bottom: 12px; font-size: 14px; }
.tool-action-choice { position: relative; min-width: 0; cursor: pointer; }
.tool-action-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tool-action-choice span { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px; box-sizing: border-box; border: 1px solid #45484e; border-radius: 6px; background: #1b1d20; color: #e8ebef; font-size: 13px; text-align: center; }
.tool-action-choice:hover span { background: #2b2d31; border-color: #8f8050; }
.tool-action-choice input:checked + span { background: #383322; border-color: #f4d36c; color: #ffdf80; }
.tool-action-choice.destructive input:checked + span { background: #3b2428; border-color: #ee8996; color: #ffb2bc; }
.tool-action-choice input:focus-visible + span { outline: 2px solid #f4d36c; outline-offset: 2px; }
@media (max-width: 480px) { .tool-member-actions { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 1100px) {
  .dashboard-v2 .server-workspace { grid-template-columns: 208px minmax(0,1fr); }
  .dashboard-v2 .server-main { padding-left: 24px; }
  .tool-module-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tool-embed-layout { grid-template-columns: minmax(0,1fr); }
  .tool-embed-preview { position: static; }
}
@media (max-width: 760px) {
  .dashboard-v2 .container { padding-inline: 16px; }
  .dashboard-v2 .server-workspace { display: block; }
  .dashboard-v2 .module-sidebar { position: static; max-height: none; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 0 20px; display: block; }
  .dashboard-v2 .module-sidebar-brand { grid-column: 1/-1; margin: 0; }
  .dashboard-v2 .module-sidebar-title, .dashboard-v2 .module-sidebar-footer { display: none; }
  .dashboard-v2 .module-nav-group { display: none; }
  .module-mobile-picker { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--muted); }
  .module-mobile-picker select { flex: 1; min-width: 0; }
  .dashboard-v2 .module-nav-btn { width: 100%; }
  .dashboard-v2 .server-main { padding: 24px 0 70px; }
  .dashboard-v2 .server-toolbar { flex-wrap: wrap; }
  .dashboard-v2 .search-bar { max-width: none; width: 100%; }
  .tool-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .tool-panel-heading { align-items: flex-start; }
  .tool-panel-heading h2 { font-size: 20px; }
  .tool-panel-heading p { font-size: 13px; }
  .tool-panel-heading .cmd-save-btn { flex: 0 0 auto; width: auto; }
  .tool-module-grid { grid-template-columns: minmax(0,1fr); }
  .tool-metrics > div { padding: 18px 10px; }
  .tool-metrics strong { font-size: 23px; }
  .tool-metrics span { font-size: 11px; }
  .tool-server-summary h2 { font-size: 22px; }
  .tool-overview-footer { flex-wrap: wrap; align-items: stretch; }
  .tool-overview-footer .settings-field { max-width: none; min-width: 100%; }
  .tool-list-row { align-items: flex-start; gap: 12px; }
  .tool-list-row time { max-width: 105px; }
  .tool-dialog { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .tool-switch, .tool-switch::after { transition: none; } }
.dashboard-v2 .tool-dialog { max-height:calc(100dvh - 32px); overflow-y:auto; overflow-wrap:anywhere; }
.dashboard-v2 .tool-dialog form { min-width:0; }
.dashboard-v2 .tool-inline { flex-wrap:wrap; }
.dashboard-v2 .tool-inline > .cmd-save-btn { width:auto; max-width:100%; margin:0; }
.dashboard-v2 [data-application-question] > div:first-child { flex-wrap:wrap; }
.dashboard-v2 [data-application-question] > div:first-child .cmd-save-btn { width:auto; margin:0; }
@media(max-width:760px) {
  .dashboard-v2 [data-application-question] > .settings-grid { grid-template-columns:minmax(0,1fr) !important; }
  .dashboard-v2 [data-application-question] .settings-check { margin-top:0 !important; }
}
.application-cleanup-groups { display:grid; gap:24px; }
#applicationCleanupSection .application-cleanup-row { background:#202223; border:1px solid #383b3e; box-shadow:none; }
#applicationCleanupSection .application-cleanup-title { font-family:inherit; letter-spacing:0; }
#applicationCleanupSection .commands-meta { overflow-wrap:anywhere; }
#applicationCleanupSection .cmd-save-btn.danger { background:#49262c; border-color:#92505d; color:#ffdae0; }
#applicationCleanupSection .cmd-save-btn.danger:hover { background:#64303b; }
.overview-card-copy a { color:#f7cf53; text-underline-offset:3px; }
.ticket-editor-tabs { display:flex; flex-wrap:wrap; gap:8px; padding:16px 0; border-bottom:1px solid #383b3e; margin-bottom:20px; }
.ticket-editor-tabs .cmd-save-btn { width:auto; margin:0; }
.ticket-multi-editor, .ticket-global-settings, #communityTicketPanels { scroll-margin-top:100px; }
.automod-rule-action { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:start; gap:24px; padding:16px 0; border-bottom:1px solid #383b3e; }
.automod-rule-action > *, .tool-duration > * { min-width:0; }
.tool-duration { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; }
.dashboard-v2 [data-rule-duration][hidden], .dashboard-v2 #settingSpamTrapDuration[hidden] { display:none; }
@media(max-width:900px) { .automod-rule-action { grid-template-columns:minmax(0,1fr); gap:16px; } }
