#dashboard .dashboard-wrapper { overflow: visible; }
#dashboard-menu-toggle, .mobile-palette-close { display: none; }
.radar-surface canvas { width: 100%; height: auto; }
#dashboard .old-quick-actions, #dashboard #all-server-tools[hidden] { display: none !important; }
#dashboard-management-panel { color: #f8f3f5; }
#dashboard-management-panel .guild-command-center {
  background: linear-gradient(115deg,#30212c,#1e1c23 65%) !important;
  border-color: #604050 !important;
  margin-bottom: 0 !important;
}
#dashboard-management-panel .guild-stat-card > div:first-child { color: #c8b9c1 !important; }
.server-destinations {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: .35rem;
  padding: .55rem;
  background: #17151b;
  border-bottom: 1px solid #4b3945;
  scroll-margin-top: 6rem;
}
.server-destinations button, #server-overview button {
  background: #302630;
  border: 1px solid #5b4653;
  border-radius: .6rem;
  padding: .65rem .85rem;
  color: #ffe9f0;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
}
.server-destinations button { min-height: 44px; }
.server-destinations button[aria-current="page"], .server-destinations button[aria-expanded="true"] {
  background: #502638;
  border-color: #de839e;
  box-shadow: inset 0 -2px #ffa4c0;
}
#tab-overview { background: #19171d; border-radius: 0 0 24px 24px; }
#server-overview { display: grid; gap: 1rem; }
#server-overview header { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
#server-overview h2, #server-overview h3, #server-overview p { margin: 0; }
#server-overview h2 { font-size: clamp(1.55rem,3vw,2.25rem); margin-right: auto; }
#server-overview small, #server-overview p, .overview-control span { color: #d5c6d0; }
.overview-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
#server-overview article {
  display: grid;
  gap: .7rem;
  align-content: start;
  padding: clamp(1rem,2.5vw,1.5rem);
  border: 1px solid #4f3f4c;
  border-radius: 1rem;
  background: linear-gradient(145deg,#33252f,#232127 65%);
  overflow-wrap: anywhere;
}
.overview-cards article:first-child { grid-column: 1 / -1; }
.overview-control { display: grid; grid-template-columns: 1fr 1.4fr auto; align-items: center; gap: .7rem; padding-top: .65rem; border-top: 1px solid #4a3a46; }
#server-overview button:hover, .server-destinations button:hover { border-color: #eaa0b8; }
#server-overview .overview-clear { border-left: 3px solid #70e5ab; padding: .7rem 1rem; background: #1c2a24; color: #baf2d5; }
.attention-items button { text-align: left; }
#server-overview .attention-items [data-tone="amber"] { border-left: 3px solid #ffc869; }
#server-overview .attention-items [data-tone="red"] { border-left: 3px solid #ff7788; }
@media (max-width: 720px) {
  .dashboard-page .navbar { position: relative; }
  #dashboard-management-panel .guild-command-center { position: sticky !important; top: 0; }
  .guild-command-center .custom-guild-switcher-container { width: 100%; min-width: 0; }
  .guild-command-center .cgs-trigger-btn { flex: 1; min-width: 0; }
  .guild-command-center .cgs-popover { max-width: 100%; max-height: 65dvh; overflow-y: auto; }
  .guild-command-center .guild-stat-card { flex: 1 0 auto; padding: .25rem .45rem !important; }
  #dashboard .server-destinations { scroll-margin-top: 8rem; gap: .2rem; padding: .35rem; }
  .server-destinations button { font-size: .83rem; padding-inline: .2rem; }
  .overview-cards { grid-template-columns: minmax(0,1fr); }
  .overview-control { grid-template-columns: minmax(0,1fr) auto; }
  .overview-control span { grid-column: 1; }
  .overview-control button { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 1120px) {
  html .navbar {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto auto;
    align-items: center;
    gap: .5rem;
    padding: .55rem clamp(.6rem, 2.4vw, 1.5rem);
  }
  html .navbar > .nav-tools { order: 0; width: auto; }
  html #dashboard-menu-toggle { display: inline-flex; min-height: 44px; padding: .5rem .85rem; }
  html .navbar :is(.nav-links, .nav-cta) { display: none; grid-column: 1 / -1; margin: 0; }
  html #dashboard-menu-toggle[aria-expanded=true] ~ .nav-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7rem,1fr));
    gap: .35rem;
    padding-top: .5rem;
    border-top: 1px solid #57303f;
  }
  html .nav-links a { display: flex; align-items: center; padding: .4rem .65rem; min-height: 44px; border-radius: .5rem; background: #24171e; }
  html #dashboard-menu-toggle[aria-expanded=true] ~ .nav-cta { display: flex; flex-wrap: wrap; gap: .4rem; }
  html .nav-cta > div { max-width: 100%; overflow-wrap: anywhere; }
  html :is(.nav-tools button, .navbar .nav-cta button, .navbar .nav-cta a) { min-width: 44px; min-height: 44px; }
}
@media (max-width: 720px) {
  html .navbar .nav-brand { gap: .4rem; font-size: clamp(.93rem, 4vw, 1.2rem); }
  html .navbar .brand-icon { width: 32px; height: 32px; }
  html .nav-tools .nav-search { padding: .45rem !important; }
  html .nav-search :is(kbd, span:nth-child(2)) { display: none; }
  .dashboard-page #dashboard { padding-inline: clamp(.45rem,2vw,1rem); }
  .dashboard-page #dashboard > .section-header { margin: 1.1rem .4rem; text-align: left; }
  .dashboard-page #dashboard .section-title { font-size: clamp(1.45rem,6vw,2rem); line-height: 1.15; }
  .dashboard-page #dashboard .section-desc { font-size: .95rem; margin: 0; }
  .dashboard-page #dashboard .dashboard-content { padding: clamp(.55rem,2.4vw,1rem); overflow-wrap: anywhere; }
  #dashboard .cgs-trigger-info { min-width: 0; }
  #dashboard .cgs-guild-list { overscroll-behavior: contain; }
  #dashboard .dashboard-content :is(input,textarea,select) { max-width: 100%; }
  #dashboard .dashboard-content :is(input:not([type=checkbox]):not([type=range]),textarea,select),
  .dashboard-page dialog :is(input:not([type=checkbox]),textarea,select) { font-size: 16px !important; }
  #dashboard .dashboard-content .btn { min-height: 44px; white-space: normal; }
  #dashboard :is(.vault-nav, .vault-actions) { flex-wrap: wrap; }
  #dashboard .dash-grid > *, #dashboard .dashboard-content [style*="grid-template-columns"] > * { min-width: 0; }
  .dashboard-page #quick-palette-modal { padding: .65rem; }
  .dashboard-page .palette-dialog { width: 100%; max-height: calc(100dvh - 1.3rem); }
  .dashboard-page .palette-search-box { padding: .65rem; gap: .4rem; }
  .dashboard-page .palette-search-box input { min-width: 0; font-size: 16px; }
  .dashboard-page .palette-shortcut-badge, .dashboard-page .palette-footer { display: none; }
  .dashboard-page .mobile-palette-close { display: inline-flex; min-height: 44px; padding: .4rem .65rem; }
  .dashboard-page .palette-item { min-height: 44px; }
  .dashboard-page #module-config-modal { max-width: calc(100% - .65rem); }
  .dashboard-page #module-config-modal .modal-content { max-height: 92dvh; }
  .dashboard-page .modal-footer { flex-wrap: wrap; }
}
