/* Blackout control panel */
:root {
  --blackout-page: #0d0c12;
  --blackout-sidebar: #111016;
  --blackout-surface: #16141c;
  --blackout-raised: #1d1923;
  --blackout-field: #110f17;
  --blackout-line: #2e2736;
  --blackout-control: #423749;
  --blackout-ink: #f6eff7;
  --blackout-secondary: #c0b3c5;
  --blackout-muted: #9e91a3;
  --blackout-accent: #ffa097;
  --blackout-accent-ink: #2a101d;
  --blackout-accent-soft: #34212c;
  --blackout-danger: #ffadb1;
  --blackout-focus: #ffac9e;
  --blackout-hairline: 1px solid var(--blackout-line);
  --blackout-radius: 13px;
}
html[data-theme="light"] {
  --blackout-page: #f7f5f8;
  --blackout-sidebar: #fcfafc;
  --blackout-surface: #fff;
  --blackout-raised: #f5eff5;
  --blackout-field: #fcfafc;
  --blackout-line: #e1d7e3;
  --blackout-control: #c8b9cc;
  --blackout-ink: #251d2b;
  --blackout-secondary: #594960;
  --blackout-muted: #685b6e;
  --blackout-accent: #a22643;
  --blackout-accent-ink: #fff;
  --blackout-accent-soft: #f7e2e7;
  --blackout-danger: #a52c3f;
  --blackout-focus: #a22643;
}
[hidden] { display: none !important; }

.panel-shell {
  --sidebar-w: 252px;
  --content-max: 1240px;
  --bg-deep: var(--blackout-page);
  --bg-primary: var(--blackout-sidebar);
  --bg-secondary: var(--blackout-raised);
  --bg-tertiary: var(--blackout-field);
  --bg-elevated: var(--blackout-raised);
  --bg-hover: var(--blackout-raised);
  --bg-glass: var(--blackout-surface);
  --bg-glass-strong: var(--blackout-raised);
  --border: var(--blackout-line);
  --border-light: var(--blackout-control);
  --border-accent: var(--blackout-accent);
  --text-primary: var(--blackout-ink);
  --text-secondary: var(--blackout-secondary);
  --text-muted: var(--blackout-muted);
  --accent: var(--blackout-accent);
  --accent-soft: var(--blackout-accent-soft);
  --accent-hover: var(--blackout-accent);
  --accent-glow: transparent;
  --shadow-pink: none;
  --radius: var(--blackout-radius);
  background: var(--blackout-page);
  color: var(--blackout-ink);
  min-width: 0;
}
.panel-shell .sidebar { background: var(--blackout-sidebar); border-color: var(--blackout-line); box-shadow: none; }
.panel-shell .sidebar-header { padding: 18px 15px; }
.panel-shell .sidebar-nav { padding: 10px; overscroll-behavior: contain; }
.panel-shell .sidebar-footer { background: var(--blackout-sidebar); }
.panel-shell .logo { gap: 10px; }
.panel-shell .logo-text { font-size: 17px; background: none; color: var(--blackout-ink); -webkit-text-fill-color: currentColor; }
.panel-shell .logo-icon, .panel-shell .top-brand-icon { width: 32px; height: 32px; flex: 0 0 32px; }
.panel-shell .nav-item {
  min-height: 39px;
  margin-bottom: 2px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--blackout-secondary);
  line-height: 1.27;
  font-weight: 550;
  gap: 9px;
}
.panel-shell .nav-item:hover { background: var(--blackout-raised); color: var(--blackout-ink); }
.panel-shell .nav-item.active {
  background: var(--blackout-accent-soft);
  color: var(--blackout-accent);
  border-color: transparent;
}
.panel-shell .nav-item.active::before { display: none; }
.panel-shell .nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.panel-shell .nav-section { margin-top: 14px; }
.panel-shell .nav-section-title {
  margin: 0 0 5px;
  padding-inline: 9px;
  color: var(--blackout-muted);
  letter-spacing: .015em;
  font-size: 11px;
  font-weight: 650;
  text-transform: none;
}
.server-context {
  display: flex; align-items: center; gap: 9px; margin: 16px 0 6px;
  border-block: var(--blackout-hairline); padding: 12px 8px;
  min-width: 0; color: var(--blackout-ink);
}
.server-context img { width: 25px; height: 25px; object-fit: cover; border-radius: 7px; }
.server-context strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.panel-shell .top-header { background: var(--blackout-sidebar); border-color: var(--blackout-line); }
.panel-shell .main-content { width: 100%; max-width: min(100%, 1340px); padding: 34px clamp(20px, 4vw, 55px) 64px; }
.panel-shell .main-content::before { display: none; }
.panel-shell .page-header { margin-bottom: 28px; padding: 0 0 21px; border-bottom: var(--blackout-hairline); }
.panel-shell .page-header h1 { background: none; -webkit-text-fill-color: currentColor; color: var(--blackout-ink); font-size: clamp(26px, 4vw, 39px); letter-spacing: -.052em; line-height: 1.15; }
.panel-shell .page-header.with-back { align-items: center; }
.panel-shell .page-desc { color: var(--blackout-muted); margin-top: 7px; }
.panel-shell .config-form { max-width: 960px; gap: 15px; }
.panel-shell .form-section, .panel-shell .guild-card, .panel-shell .empty-state {
  background: var(--blackout-surface);
  border: var(--blackout-hairline);
  border-radius: var(--blackout-radius);
  box-shadow: none;
  backdrop-filter: none;
}
.panel-shell .form-section { padding: clamp(14px, 2.5vw, 24px); }
.panel-shell .form-section:hover { border-color: var(--blackout-line); }
.panel-shell .form-section h3 {
  color: var(--blackout-ink);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: -.02em;
  margin-bottom: 15px;
}
.panel-shell .form-section .form-section { background: var(--blackout-page); }
.panel-shell .guilds-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 13px; }
.panel-shell .guild-card { min-height: 92px; padding: 16px; }
.panel-shell .guild-card:hover { background: var(--blackout-raised); border-color: var(--blackout-control); transform: none; }
.panel-shell .form-grid { gap: 12px 16px; }
.panel-shell .form-group :is(label,legend) { color: var(--blackout-secondary); font-size: 13px; font-weight: 650; margin-bottom: 6px; }
.panel-shell .form-group .checkbox-label { display: flex; }
.panel-shell .section-hint { color: var(--blackout-muted); font-size: 12px; font-weight: 450; line-height: 1.55; cursor: auto; }
.panel-shell :is(.btn-primary, .btn-secondary, .btn-danger, .btn-icon, .btn-back, .btn-sm) {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid var(--blackout-control);
  box-shadow: none;
  font-weight: 700;
  gap: 7px;
  text-decoration: none;
}
.panel-shell :is(.btn-icon, .btn-back) { min-width: 38px; padding: 7px; }
.panel-shell :is(.btn-secondary,.btn-icon,.btn-back,.btn-sm) { background: var(--blackout-raised); color: var(--blackout-ink); }
.panel-shell .btn-primary { background: var(--blackout-accent); color: var(--blackout-accent-ink); border-color: var(--blackout-accent); }
.panel-shell .btn-danger { background: var(--blackout-accent-soft); color: var(--blackout-danger); }
.panel-shell :is(.btn-primary,.btn-secondary,.btn-icon,.btn-back,.btn-sm,.btn-danger):hover:not(:disabled) { filter: brightness(1.10); transform: none; }
.panel-shell button:disabled { opacity: .55; cursor: not-allowed; }
.panel-shell :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--blackout-focus);
  outline-offset: 2px;
}
.panel-shell :is(.form-actions,.sa-actions) { border: var(--blackout-hairline); background: var(--blackout-surface); box-shadow: none; }
.panel-shell .form-actions { gap: 8px; }
.panel-shell :is(input:not([type]),input[type="text"],input[type="search"],input[type="number"],input[type="password"],input[type="url"],textarea,select) {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 41px;
  padding: 9px 11px;
  border: 1px solid var(--blackout-control);
  border-radius: 8px;
  background-color: var(--blackout-field);
  color: var(--blackout-ink);
  line-height: 1.4;
  box-shadow: none;
}
.panel-shell :is(input,textarea)::placeholder { color: var(--blackout-muted); opacity: 1; }
.panel-shell :is(input,textarea,select):focus { border-color: var(--blackout-focus); box-shadow: none; }
.panel-shell select:not([multiple]) {
  appearance: none;
  padding-inline-end: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%239b899b' stroke-linecap='round' stroke-width='1.7'/%3E%3C/svg%3E");
  background-position: right 11px center;
  background-repeat: no-repeat;
  text-overflow: ellipsis;
  cursor: pointer;
}
.panel-shell select option { background: var(--blackout-field); color: var(--blackout-ink); }
.panel-shell select[multiple] { min-height: 93px; padding: 6px; background-image: none; }
.panel-shell select[multiple] option { padding: 4px 6px; border-radius: 4px; }
.panel-shell textarea { min-height: 72px; resize: vertical; }
.panel-shell :is(.color-input:has(input[type=color]),.color-row:has(input[type=color]),.rcpt-color:has(input[type=color])) {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: auto;
}
.panel-shell input[type="color"] {
  appearance: none;
  -webkit-appearance: none;
  width: 42px !important;
  height: 41px !important;
  flex: 0 0 42px;
  inset: auto;
  min-width: 42px;
  max-width: 42px;
  padding: 5px !important;
  border-radius: 8px;
  border: 1px solid var(--blackout-control) !important;
  background: var(--blackout-field) !important;
  cursor: pointer;
}
.panel-shell input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.panel-shell input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 4px; }
.panel-shell input[type="color"]::-moz-color-swatch { border: 0; border-radius: 4px; }
.panel-shell .color-input input[type="text"] { flex: 1; min-width: 0; font-family: var(--mono); }
.panel-shell input[type="checkbox"] { accent-color: var(--blackout-accent); }
.panel-shell .switch:has(input:focus-visible) { outline: 2px solid var(--blackout-focus); outline-offset: 2px; border-radius: 12px; }
.panel-shell .form-section :is(.dynamic-item,.access-card) { background: var(--blackout-field); border: var(--blackout-hairline); box-shadow: none; }
.panel-shell :is(.modal-workspace,.sa-shell,.robux-workspace,.rcpt-layout) { min-width: 0; }
.panel-shell :is(.sa-card,.robux-section,.modal-surface,.rcpt-card,.modal-panel,.ra-card) { border-color: var(--blackout-line); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.module-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.module-toolbar h2, .module-toolbar h3 { font-size: 16px; margin: 0 !important; padding: 0; border: 0; }
.panel-form-footer { margin-top: 10px; align-items: center; justify-content: flex-end; }
.form-feedback { color: var(--blackout-danger); font-size: 13px; overflow-wrap: anywhere; }
.form-feedback:empty { display: none; }
.control-toggle {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  margin: 0 0 16px; padding: 12px; background: var(--blackout-field); border: var(--blackout-hairline);
  border-radius: 8px; font-size: 13px; cursor: pointer;
}
.control-toggle strong, .control-toggle small { display: block; }
.control-toggle small { margin-top: 3px; color: var(--blackout-muted); }
.control-toggle input { width: 18px; height: 18px; flex: 0 0 18px; }
.option-checks { display: flex; flex-wrap: wrap; column-gap: 18px; row-gap: 8px; margin-block: 14px; }
.editor-details { border: var(--blackout-hairline); border-radius: 8px; padding: 12px; margin-block: 11px; }
.editor-details summary { cursor: pointer; color: var(--blackout-secondary); font-weight: 650; }
.editor-details[open] summary { margin-bottom: 13px; }
.module-list { display: grid; gap: 8px; margin-block: 14px 0; }
.module-list-row { display: flex; padding: 10px; border: var(--blackout-hairline); border-radius: 8px; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.module-list-row a:hover { text-decoration: underline; }
.module-list-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.module-list-actions button { font-size: 12px; min-height: 32px !important; padding: 5px 8px; }
.panel-dialog {
  width: min(640px, calc(100% - 24px)); max-height: min(85dvh, 780px);
  padding: 0; margin: auto; border: 1px solid var(--blackout-control); border-radius: 15px;
  color: var(--blackout-ink); background: var(--blackout-surface);
  box-shadow: 0 20px 90px #0008;
}
.panel-dialog[open] { display: block; }
.panel-dialog::backdrop { background: #09060cc2; }
.panel-dialog > form { display: flex; flex-direction: column; max-height: min(85dvh, 780px); }
.panel-dialog-head, .panel-dialog-foot {
  display: flex; align-items: center; gap: 8px; padding: 14px 18px; flex-wrap: wrap; flex: 0 0 auto;
}
.panel-dialog-head { border-bottom: var(--blackout-hairline); justify-content: space-between; }
.panel-dialog-head h2 { font-size: 18px; line-height: 1.25; }
.panel-dialog-body { padding: 18px; overflow-y: auto; }
.panel-dialog-foot { border-top: var(--blackout-hairline); justify-content: flex-end; }
.panel-dialog fieldset { border: var(--blackout-hairline); border-radius: 8px; margin-bottom: 13px; padding: 12px; min-width: 0; }
.panel-dialog legend { padding-inline: 5px; font-weight: 750; font-size: 13px; }
.access-workspace { max-width: 1020px; }
.access-workspace > .module-toolbar { margin-bottom: 20px; }
.access-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 151px),1fr)); gap: 6px; }
.access-options-group + .access-options-group { margin-top: 12px; }
.access-workspace .access-options-group h3 { border: 0; margin: 0 0 6px; padding: 0; font-size: 13px; }
.access-option { padding: 6px 7px; border: var(--blackout-hairline); border-radius: 6px; min-width: 0; }
.access-option:has(input:checked) { background: var(--blackout-accent-soft); }
.access-option input { flex-shrink: 0; }
.access-user-list { display: grid; gap: 7px; }
.access-person {
  display: grid; grid-template-columns: 34px minmax(117px, 175px) minmax(0, 1fr) auto;
  align-items: center; gap: 12px; padding: 12px 10px; border-bottom: var(--blackout-hairline);
}
.access-person:last-child { border-bottom: 0; }
.access-person-info { display: grid; gap: 3px; overflow-wrap: anywhere; }
.access-person-info code { color: var(--blackout-muted); }
.access-person-scopes { display: flex; flex-wrap: wrap; gap: 5px; }
.access-scope,.access-permission {
  display: inline-block; font-size: 11px; font-weight: 600; line-height: 1.4;
  padding: 4px 7px; background: var(--blackout-raised); border: var(--blackout-hairline);
  border-radius: 5px; color: var(--blackout-secondary); overflow-wrap: anywhere;
}
.access-scope { color: var(--blackout-accent); background: var(--blackout-accent-soft); }
.access-empty { padding-block: 16px; }
#access-revoke { margin-inline-end: auto; }

.giveaway-workspace { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(280px, .8fr); align-items: start; gap: 16px; }
.giveaway-workspace .config-form { min-width: 0; }
.giveaway-side { display: grid; gap: 16px; min-width: 0; }
.giveaway-preview {
  display: grid; gap: 7px; margin-top: 13px; padding: 13px; border-radius: 8px;
  border: var(--blackout-hairline); background: var(--blackout-field); overflow-wrap: anywhere;
}
.giveaway-preview.is-embed { border-left: 4px solid var(--message-accent); }
.giveaway-preview.is-container { border-left: 3px solid var(--message-accent); border-radius: 12px; }
.giveaway-preview.is-plain { border: 0; padding: 5px; }
.giveaway-preview :is(p,h4) { font-size: 13px; }
.gw-description { white-space: pre-wrap; }
.gw-preview-fields { display: flex; flex-wrap: wrap; gap: 6px; }
.gw-preview-fields > div { flex: 0 0 100%; }
.gw-preview-fields > .inline-field { flex: 1 1 40%; }
.gw-participate {
  justify-self: start; background: #4655be; color: #fff; border-radius: 6px;
  padding: 6px 10px; margin-top: 4px; font-size: 12px;
}
.gw-participate.secondary { background: #545965; }
.gw-participate.success { background: #197d51; }
.gw-participate.danger { background: #a43343; }
.gw-field { display: grid; gap: 6px; padding: 9px; border: var(--blackout-hairline); border-radius: 7px; margin-bottom: 8px; }
.gw-field .btn-secondary { justify-self: start; }
.gw-share-code { display: block; color: var(--blackout-accent); margin-top: 4px; overflow-wrap: anywhere; }
#gw-published { margin-top: 18px; }
#form-mention-rules { margin-bottom: 18px; }

.conversations-shell {
  display: grid; grid-template-columns: minmax(200px, 285px) minmax(0, 1fr);
  min-height: 440px; height: min(720px, calc(100dvh - 165px)); border: var(--blackout-hairline);
  border-radius: var(--blackout-radius); overflow: hidden; background: var(--blackout-surface);
}
.conversation-sidebar { background: var(--blackout-sidebar); border-right: var(--blackout-hairline); display: flex; flex-direction: column; min-width: 0; padding: 12px; }
.conversation-sidebar > .module-toolbar { margin-bottom: 12px; }
.conversation-sidebar h2, .conversation-head h2 { font-size: 15px; }
.conversation-list { min-height: 0; overflow-y: auto; }
.conversation-item {
  width: 100%; display: flex; text-align: left; align-items: center; gap: 8px;
  background: transparent; border: 0; padding: 8px; color: var(--blackout-ink); border-radius: 7px; cursor: pointer;
}
.conversation-item:is(:hover,.active) { background: var(--blackout-raised); }
.conversation-item.active { box-shadow: inset 2px 0 var(--blackout-accent); }
.conversation-item-label { display: grid; min-width: 0; }
.conversation-item-label :is(strong,small) { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-item-label small { color: var(--blackout-muted); }
.conversation-avatar, #dm-avatar { width: 32px; height: 32px; flex: 0 0 32px; object-fit: cover; border-radius: 50%; }
.conversation-thread { min-width: 0; min-height: 0; }
.conversation-empty { display: grid; align-content: center; justify-items: center; min-height: 100%; padding: 14px; text-align: center; color: var(--blackout-muted); }
.conversation-empty h2 { color: var(--blackout-ink); font-size: 17px; margin: 7px 0; }
.conversation-opened { height: 100%; display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.conversation-head {
  display: flex; align-items: center; gap: 9px; padding: 10px 14px;
  border-bottom: var(--blackout-hairline); overflow-wrap: anywhere;
}
.conversation-head h2 { line-height: 1.25; }
.conversation-head #dm-back { display: none; }
.conversation-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 13px; }
.conversation-messages { display: grid; gap: 5px; padding-top: 9px; }
.conversation-message { display: flex; align-items: flex-start; gap: 9px; padding: 8px 6px; min-width: 0; }
.conversation-message:hover { background: var(--blackout-raised); border-radius: 7px; }
.conversation-message-copy { min-width: 0; display: grid; gap: 5px; }
.conversation-message-meta { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.conversation-message-meta time { font-size: 11px; color: var(--blackout-muted); }
.conversation-message.outgoing .conversation-message-meta strong { color: var(--blackout-accent); }
.conversation-message-body, .conversation-embed p { white-space: pre-wrap; overflow-wrap: anywhere; }
.conversation-embed { background: var(--blackout-field); border-left: 2px solid var(--blackout-accent); padding: 9px; border-radius: 5px; }
.conversation-media { max-width: min(100%, 340px); max-height: 240px; object-fit: contain; border-radius: 7px; }
.conversation-file { justify-self: start; overflow-wrap: anywhere; color: var(--blackout-accent); font-size: 13px; }
.conversation-file:hover { text-decoration: underline; }
.conversation-composer { border-top: var(--blackout-hairline); padding: 10px; }
.conversation-inputs { display: flex; align-items: end; gap: 7px; }
.panel-shell .conversation-inputs textarea { min-height: 39px; max-height: 140px; }
.conversation-inputs .btn-primary { flex: 0 0 auto; }
.conversation-attachments { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-bottom: 8px; }

.rx-landing { --landing-width: 1160px; background: #0e0a11; }
.rx-hero { padding-block: clamp(66px, 9vw, 122px) clamp(52px, 7vw, 94px); }
.rx-title { max-width: 12ch; font-size: clamp(40px, 7.2vw, 92px); }
.rx-feature { background: #1b1420; border-color: #342739; }
.rx-feature-icon { color: #ffa697; }
.rx-features-inner { border-top-color: #382b3a; }
.rx-product { width: min(880px, 100%); margin: 0 auto; border: 1px solid #3b2b3e; border-radius: 15px; overflow: hidden; background: #17111c; box-shadow: 0 22px 74px #08060bb0; }
.rx-product-head { display: flex; align-items: center; justify-content: space-between; align-items: baseline; border-bottom: 1px solid #392b3c; padding: 12px 18px; color: #dfcfe2; }
.rx-product-head strong { font-size: 14px; }
.rx-product-head span { font-size: 12px; color: #b1a2b6; }
.rx-product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.rx-product-grid a { min-height: 75px; display: flex; align-items: center; gap: 8px; padding: 13px; border-right: 1px solid #392b3c; color: #f4ecf4; font-size: 14px; font-weight: 650; }
.rx-product-grid a:last-child { border: 0; }
.rx-product-grid a:hover { background: #2a1d2b; }
.rx-product-grid svg { color: #ffae9e; flex-shrink: 0; }

@media (max-width: 1100px) { .giveaway-workspace { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 900px) {
  .panel-shell .main-content { padding-top: 77px; }
  .panel-shell .sidebar { width: min(var(--sidebar-w), 86vw); }
}
@media (max-width: 650px) {
  .panel-shell .main-content { padding-bottom: 44px; }
  .panel-shell .form-grid { grid-template-columns: minmax(0,1fr); }
  .panel-shell :is(input:not([type]),input[type="text"],input[type="search"],input[type="number"],input[type="password"],input[type="url"],textarea,select) { font-size: 16px; }
  .panel-shell .form-section .form-group { margin-bottom: 11px; }
  .access-person { grid-template-columns: 31px minmax(0,1fr) auto; row-gap: 7px; }
  .access-person-scopes { grid-column: 2 / 4; grid-row: 2; }
  .conversations-shell { grid-template-columns: minmax(0,1fr); height: min(700px, calc(100dvh - 155px)); }
  .conversations-shell:not(.is-open) .conversation-thread, .conversations-shell.is-open .conversation-sidebar { display: none; }
  .conversation-head #dm-back { display: inline-flex; }
  .rx-product-grid { grid-template-columns: minmax(0,1fr); }
  .rx-product-grid a { min-height: 44px; border: 0; border-bottom: 1px solid #392b3c; }
}
@media (prefers-reduced-motion: reduce) {
  .panel-shell * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.panel-shell .theme-desktop { width: 32px; height: 32px; padding: 5px; }
.panel-shell .nav-item.active { box-shadow: none; border-color: var(--blackout-line); }
.panel-shell #sa-app :is(.sa-heading,.sa-card,.sa-stat),
.panel-shell #tab-robuxauto :is(.ra-hero,.ra-card,.ra-product,.ra-order),
.panel-shell #modal-root .form-section {
  background: var(--blackout-surface);
  border-color: var(--blackout-line);
  box-shadow: none;
}
.panel-shell :is(.rcpt-subtab,.robux-auto-tab,.ra-subtab,.modal-tabs button) { border-radius: 8px; }
@media (max-width: 900px) { .panel-shell .theme-desktop { display: none; } }

.panel-shell .main-content > .page-header,
.panel-shell .tab-content.active,
.panel-shell .tab-content.active .config-form { animation: none; }

.dm-directory-search { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; }
.dm-search-results { list-style: none; display: grid; gap: 5px; margin: 8px 0; }
.dm-search-status:empty { display: none; }
.dm-search-result { padding: 9px; border: var(--blackout-hairline); }
.dm-search-result:hover, .dm-search-result:focus-visible { border-color: var(--blackout-accent); }
.dm-search-result .dm-result-guilds { color: var(--blackout-accent); }

.mention-choices {
  border: var(--blackout-hairline);
  border-radius: 8px;
  background: var(--blackout-field);
  min-width: 0;
  align-self: start;
}
.mention-choices summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  min-height: 40px;
  color: var(--blackout-ink);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.mention-choices summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-inline: 2px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}
.mention-choices[open] summary::after { transform: rotate(225deg); }
.mention-choices summary small { margin-inline-start: auto; color: var(--blackout-muted); font-weight: 500; }
.mention-choice-list { max-height: 190px; overflow-y: auto; border-top: var(--blackout-hairline); padding: 5px 11px; }
.mention-choice-list .checkbox-label { margin: 0; min-height: 38px; overflow-wrap: anywhere; }
.mention-diagnostics {
  border: var(--blackout-hairline);
  background: var(--blackout-field);
  padding: 10px 12px;
  border-radius: 8px;
}
.mention-diagnostics .section-hint { margin-top: 8px; overflow-wrap: anywhere; }
.mention-warnings { padding-inline-start: 18px; margin-top: 7px; color: var(--blackout-danger); font-size: 13px; }

/* Blackout Conversas — mídia, composição, notificações e gravação (v4) */
.dm-sidebar-title { gap: 10px; }
.dm-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-shell .dm-page-heading .dm-notification-toggle { min-width: 0; padding-inline: 10px; font-size: 12px; white-space: normal; }
.panel-shell .dm-notification-toggle.is-enabled { color: var(--blackout-accent); background: var(--blackout-accent-soft); border-color: var(--blackout-accent); }
.dm-notification-status { margin: 4px 0 0; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.dm-notification-status[hidden], .dm-voice-preview[hidden], .dm-record-status[hidden],
.dm-emoji-picker[hidden], .conversation-attachments[hidden] { display: none !important; }
.dm-inline-emoji { display: inline-block; vertical-align: middle; width: 26px; height: 26px; object-fit: contain; margin-inline: 1px; }
.conversation-message { position: relative; }
.conversation-message-copy { flex: 1 1 auto; }
.panel-shell .dm-message-more { align-self: start; min-width: 31px; min-height: 31px; padding: 4px; }
@media (hover: hover) and (pointer: fine) {
  .conversation-message:not(:hover):not(:focus-within) .dm-message-more { opacity: 0; }
}
.dm-edited { color: var(--blackout-muted); font-size: 11px; }
.dm-message-pieces { display: grid; gap: 6px; min-width: 0; }
.conversation-message-body { line-height: 1.55; white-space: normal; min-width: 0; }
.conversation-message-body > :not(:first-child) { margin-top: 5px; }
.conversation-message-body :is(h1,h2,h3,h4,h5,h6) { margin: 0; font-weight: 750; line-height: 1.25; color: var(--blackout-ink); }
.conversation-message-body h1 { font-size: 1.42rem; }
.conversation-message-body h2 { font-size: 1.23rem; }
.conversation-message-body :is(h3,h4,h5,h6) { font-size: 1.05rem; }
.conversation-message-body :is(ul,ol) { padding-inline-start: 1.4em; }
.conversation-message-body blockquote { padding-inline-start: 10px; border-inline-start: 3px solid var(--blackout-control); }
.conversation-message-body a { color: var(--blackout-accent); text-decoration: underline; }
.conversation-message-body code { padding: 1px 4px; border-radius: 4px; background: var(--blackout-field); font: 12px "JetBrains Mono", ui-monospace, monospace; }
.conversation-message-body pre { overflow-x: auto; max-width: 100%; border: var(--blackout-hairline); background: var(--blackout-field); border-radius: 7px; padding: 10px; white-space: pre; }
.conversation-message-body pre code { padding: 0; background: none; }
.dm-code-add { color: #9ee6ad; }
.dm-code-remove { color: #ffa5b0; }
html[data-theme="light"] .dm-code-add { color: #186631; }
html[data-theme="light"] .dm-code-remove { color: #a42039; }
.dm-reactions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.dm-reaction { display: inline-flex; align-items: center; gap: 3px; min-height: 29px; padding: 1px 7px; border: var(--blackout-hairline); border-radius: 7px; color: var(--blackout-ink); background: var(--blackout-raised); cursor: pointer; font-size: 16px; }
.dm-reaction .dm-inline-emoji { width: 18px; height: 18px; }
.dm-reaction-count { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--blackout-secondary); }
.dm-reaction:hover, .dm-reaction[aria-pressed="true"] { border-color: var(--blackout-accent); }
.dm-reaction[aria-pressed="true"] { background: var(--blackout-accent-soft); }
.dm-message-dialog { width: min(490px, calc(100vw - 24px)); }
.dm-message-actions { display: grid; gap: 7px; }
.panel-shell .dm-message-actions button { justify-content: flex-start; }
.dm-gif-frame { position: relative; width: min(100%, 340px); }
.dm-gif video { width: 100%; max-height: 240px; object-fit: contain; background: var(--blackout-field); }
.panel-shell .dm-gif-toggle { position: absolute; inset: 5px 5px auto auto; min-width: 29px; min-height: 29px; padding: 3px; background: var(--blackout-surface); }
.dm-media-wrap { display: grid; gap: 5px; justify-items: start; max-width: 100%; min-width: 0; }
.dm-media-wrap > .conversation-file { max-width: 100%; }
.dm-media-wrap .conversation-media { display: block; }
.dm-inline-player { display: block; width: min(100%, 370px); max-width: 100%; border-radius: 10px; }
.dm-media-audio { min-width: min(100%, 265px); }
.dm-video-player { width: min(100%, 470px); max-height: 330px; aspect-ratio: auto; background: #0c0b10; }
.dm-media-link { font-size: 11px; color: var(--blackout-muted); text-decoration: none; overflow-wrap: anywhere; }
.dm-media-link:hover { text-decoration: underline; color: var(--blackout-accent); }
.dm-file-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 6px 5px 8px;
  border: var(--blackout-hairline); border-radius: 9px; background: var(--blackout-raised); font-size: 11px; }
.dm-file-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 185px; }
.dm-attachment-thumb { width: 30px; height: 30px; flex: 0 0 30px; object-fit: cover; border-radius: 5px; }
.dm-chip-remove { border: 0; background: transparent; color: var(--blackout-muted); cursor: pointer; font-size: 20px; line-height: 24px; padding: 0 4px; }
.dm-chip-remove:hover { color: var(--blackout-accent); }
.dm-compose-action { flex: 0 0 34px; min-width: 34px; width: 34px; height: 38px; font-size: 21px; }
.dm-compose-action:hover { background: var(--blackout-raised); }
.dm-compose-action.is-recording { background: #d52a4b29; color: #ff6477; animation: blackout-record-pulse 1.5s ease-in-out infinite; }
@keyframes blackout-record-pulse { 50% { box-shadow: 0 0 0 3px #fa54742b; } }
.dm-record-status { font-size: 12px; color: var(--blackout-muted); margin: 7px 0 0; }
.dm-voice-preview { display: grid; gap: 9px; border: var(--blackout-hairline); background: var(--blackout-field);
  border-radius: 11px; padding: 11px; margin-bottom: 9px; }
.dm-voice-preview-info, .dm-voice-preview-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.dm-voice-preview-info strong { font-size: 12px; }
.dm-voice-preview-info small { color: var(--blackout-muted); font-variant-numeric: tabular-nums; }
.dm-voice-preview audio { width: 100%; height: 42px; }
.dm-voice-preview-actions { justify-content: flex-end; }
.dm-voice-preview-actions button { font-size: 12px; padding: 7px 11px; }
.dm-emoji-anchor { position: relative; flex: 0 0 34px; }
.dm-emoji-picker { position: absolute; bottom: calc(100% + 12px); left: -80px; z-index: 15;
  width: min(320px, calc(100vw - 33px)); max-height: 330px; padding: 12px;
  display: grid; gap: 9px; grid-template-rows: auto auto auto minmax(0,1fr);
  background: var(--blackout-surface); color: var(--blackout-ink);
  border: 1px solid var(--blackout-line); border-radius: 12px; box-shadow: 0 12px 40px #0008; }
.dm-emoji-picker.is-reacting { position: fixed; inset: 50% auto auto 50%; transform: translate(-50%, -50%); z-index: 1100; }
.dm-emoji-heading { display: flex; align-items: center; justify-content: space-between; }
.dm-emoji-heading strong { font-size: 13px; }
.dm-emoji-heading button { font-size: 20px; }
.dm-emoji-picker input { min-width: 0; width: 100%; padding: 9px 10px; font-size: 13px; }
.dm-emoji-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
.dm-emoji-tab { border: var(--blackout-hairline); background: var(--blackout-field); color: var(--blackout-muted); cursor: pointer; padding: 7px; border-radius: 6px; font-size: 12px; }
.dm-emoji-tab.active { color: var(--blackout-ink); border-color: var(--blackout-accent); background: var(--blackout-raised); }
.dm-emoji-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; overflow-y: auto; align-content: start; min-height: 90px; }
.dm-emoji { aspect-ratio: 1; border: none; border-radius: 6px; background: transparent; color: var(--blackout-ink); font-size: 23px; cursor: pointer; display: grid; place-items: center; padding: 2px; }
.dm-emoji:hover, .dm-emoji:focus-visible { background: var(--blackout-raised); }
.dm-emoji img { width: 27px; height: 27px; object-fit: contain; }
.dm-emoji-grid > p { grid-column: 1 / -1; font-size: 12px; }
@media (max-width: 650px) {
  .conversations-shell { overflow: visible; }
  .conversation-sidebar { border-radius: var(--blackout-radius); }
  .conversation-opened { min-height: 0; }
  .conversation-inputs { gap: 3px; flex-wrap: nowrap; }
  .dm-compose-action { flex-basis: 31px; min-width: 31px; width: 31px; padding: 3px; font-size: 19px; }
  .conversation-inputs textarea { min-width: 0; width: 100%; flex: 1 1 auto; }
  .conversation-inputs .btn-primary { min-width: 35px; padding-inline: 9px; }
  .dm-send-label { display: none; }
  .dm-emoji-picker { left: -92px; max-height: min(340px, calc(100dvh - 280px)); }
  .conversation-head { padding: 9px; flex-wrap: wrap; }
  .conversation-scroll { padding: 8px; }
  .conversation-message { padding: 7px 2px; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) { .dm-compose-action.is-recording { animation: none; } }
