/* Connection surfaces follow the approved local orbit design. */
[hidden] {
  display: none !important;
}
.connected-account {
  display: flex;
  align-items: center;
  gap: 9px;
  position: relative;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.connected-account a,
.connected-account button {
  font:
    500 11px "DM Sans",
    sans-serif;
  padding: 10px 14px;
  white-space: nowrap;
  min-height: 40px;
}
.connected-account a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.connected-account img {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  object-fit: cover;
}
.connected-account-status {
  font-size: 10px;
  color: #c1a68d;
  max-width: 150px;
}
.connected-main {
  padding: 65px 0 80px;
  min-height: 70svh;
}
.connected-main h1 {
  font:
    500 clamp(32px, 5vw, 48px) "Space Grotesk",
    sans-serif;
  margin: 18px 0;
}
.connected-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 35px;
}
.connected-page-heading p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
#servers-status {
  padding: 23px;
  font-size: 13px;
  color: #b8b6aa;
  line-height: 1.8;
  margin-bottom: 35px;
}
#servers-status a,
#servers-status button {
  display: inline-flex;
  margin-top: 15px;
}
#auth-error {
  color: #d0a989;
  font-size: 13px;
  margin-bottom: 20px;
}
.connected-server-section {
  margin-top: 40px;
}
.connected-server-section h2 {
  font-size: 23px;
  margin-bottom: 23px;
}
.guild-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.connected-guild {
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
}
.connected-guild .server-avatar {
  width: 48px;
  height: 48px;
  position: relative;
  overflow: hidden;
}
.connected-guild .server-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.connected-guild h3 {
  font-size: 20px;
  overflow-wrap: anywhere;
}
.connected-guild p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.connected-guild a {
  font-size: 12px;
  margin-top: auto;
  width: 100%;
  text-align: center;
}
.connection-status {
  padding: 22px;
  margin: 20px 0;
  color: #b8b6aa;
  font-size: 12px;
  line-height: 1.8;
}
#connection-status[hidden] {
  display: none;
}
.connection-status h2 {
  font-size: 22px;
  margin-bottom: 10px;
}
.connection-status a,
.connection-status button {
  display: inline-flex;
  margin: 12px 8px 0 0;
  font-size: 12px;
}
.connection-checking .connection-status.is-loading,
.connection-restricted .connection-status.is-error {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  margin: 0;
  padding: 32px;
  border: 0;
  border-radius: 0;
  background: #0b0b0a;
  color: #eeeee8;
  text-align: center;
}
.connection-status.is-loading .connection-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid #ffffff20;
  border-top-color: #d5c09a;
  border-right-color: #d5c09a;
  border-radius: 50%;
  animation: connection-spin 0.8s linear infinite;
}
.connection-status.is-loading p {
  font-size: 15px;
  color: #c8c7be;
}
.connection-status.is-error h2 {
  margin: 0;
}
.connection-status.is-error a,
.connection-status.is-error button {
  margin: 0;
}
.connection-warning {
  border-color: #f2c66d50;
  color: #f2c66d;
}
@keyframes connection-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .connection-status.is-loading .connection-spinner {
    animation-duration: 1.8s;
  }
}
.connected-dashboard .server-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}
.connection-restricted .view,
.connection-restricted .page-heading {
  display: none !important;
}
.connected-dashboard .sidebar .account {
  flex-wrap: wrap;
  font-size: 12px;
}
.connected-dashboard .sidebar .account a {
  font-size: 10px;
}
.connected-dashboard .view button:disabled,
.connected-dashboard .view select:disabled,
.connected-dashboard .view input:disabled {
  cursor: default;
  opacity: 0.55;
}
.connected-dashboard .top-actions {
  flex-wrap: wrap;
}
.connected-dashboard .top-actions > .pill {
  font-size: 9px;
}
.account-detail {
  padding: 30px;
  line-height: 1.8;
  color: var(--muted);
  font-size: 14px;
  margin: 30px 0;
}
#verification-widget {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 65px;
}
#verification-status {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin: 16px 0;
}
#verification-retry {
  font-size: 11px;
  margin: 10px 0;
}
.verification-disclosure {
  color: #a09c90;
}
.verification-nav > .secondary {
  display: none;
}
.verification-main {
  padding-top: 20px;
}
.comparison-table-key > .comparison-no:last-child {
  margin-left: 10px;
  width: auto;
}
.two-col > .panel {
  min-width: 0;
}
.filters {
  flex-wrap: wrap;
}
[data-authored-style="authored-premium-html-0"] {
  margin-top: 40px;
}
[data-authored-style="authored-premium-html-1"] {
  margin-top: 12px;
}
@media (max-width: 700px) {
  .topbar {
    height: auto;
    min-height: 74px;
    padding-block: 12px;
  }
  .topbar > .top-actions {
    flex: 1;
    min-width: 0;
  }
  .topbar .connected-account {
    margin-left: auto;
  }
  .topbar .connected-account > a:first-child {
    max-width: 125px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .workspace {
    min-width: 0;
    width: auto;
  }
  .view {
    min-width: 0;
  }
}
@media (max-width: 1000px) {
  .guild-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .header .connected-account {
    gap: 4px;
  }
  .header .connected-account a,
  .header .connected-account button {
    padding: 9px 10px;
  }
}
@media (max-width: 700px) {
  .connected-main {
    padding: 35px 0 50px;
  }
  .connected-page-heading {
    display: block;
  }
  .connected-page-heading > button {
    margin-top: 20px;
  }
  .guild-grid {
    grid-template-columns: 1fr;
  }
  .premium-nav > .connected-account {
    margin-left: auto;
  }
  .connected-account {
    gap: 5px;
  }
  .connected-account a,
  .connected-account button {
    font-size: 10px;
    padding: 8px 10px;
  }
  .header-inner > .connected-account {
    margin-left: auto;
  }
  .header .connected-account > a:first-child {
    display: none;
  }
  .verification-nav {
    padding: 22px 18px;
    gap: 15px;
  }
  .verification-nav .connected-account {
    gap: 4px;
  }
  .connected-dashboard .top-actions {
    justify-content: flex-start;
  }
  .connected-dashboard .top-actions > .pill {
    display: none;
  }
  .connection-status {
    padding: 18px;
  }
  .verification-action {
    min-width: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *,
  *:before,
  *:after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
@media (forced-colors: active) {
  .connected-guild,
  .connection-status,
  #servers-status {
    border: 1px solid CanvasText;
  }
  .connected-account a,
  .connected-account button {
    border: 1px solid ButtonText;
  }
  .verification-universe {
    display: none;
  }
}

[data-authored-style="authored-dashboard-index-html-0"] {
  margin-top: 20px;
}

/* Account menus, themed selects and dashboard entrances. */
.ui-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.inline-brand {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.connected-account > button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 230px;
  padding: 8px;
  border: 1px solid #d6c6a42b;
  border-radius: 14px;
  background: #191917;
  box-shadow: 0 18px 55px #0008;
  z-index: 120;
  animation: menu-in 220ms ease-out both;
}
.connected-account .account-menu > a,
.connected-account .account-menu > button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  padding: 13px;
  min-height: 46px;
  font-size: 13px;
  animation: menu-item-in 260ms ease-out backwards;
  animation-delay: calc(var(--item-order) * 55ms);
}
.account-menu > :hover,
.account-menu > :focus-visible {
  background: #d6c6a416 !important;
  color: #eee3cc;
}
.account-menu.is-closing {
  animation: menu-out 160ms ease-in both;
  pointer-events: none;
}
.account-menu .ui-icon {
  color: #cbb991;
}
.custom-select {
  position: relative;
  min-width: 0;
  width: 100%;
}
.custom-select-native {
  position: absolute !important;
  opacity: 0;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  pointer-events: none;
}
.custom-select-trigger {
  display: block;
  position: relative;
  width: 100%;
  min-height: 44px;
  text-align: left;
  border: 1px solid #ffffff18;
  border-radius: 7px;
  background: #10100f;
  color: #e5e1d6;
  padding: 12px 34px 12px 14px;
  font: inherit;
  font-size: 13px;
}
.custom-select-trigger:after {
  content: "";
  position: absolute;
  right: 15px;
  top: 45%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #c2b89f;
  border-bottom: 1.5px solid #c2b89f;
  transform: rotate(45deg);
}
.custom-select-trigger[aria-expanded="true"] {
  border-color: #d6c6a4aa;
}
.custom-select-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.server-select .custom-select-trigger {
  border: 0;
  background: transparent;
  padding-left: 3px;
  font-size: 11px;
}
.custom-select-list {
  position: fixed;
  z-index: 150;
  box-sizing: border-box;
  min-width: min(220px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px;
  border: 1px solid #d6c6a448;
  border-radius: 10px;
  background: #1c1c19;
  box-shadow: 0 16px 50px #0008;
  animation: menu-in 180ms ease-out both;
}
.custom-select-list button {
  display: block;
  width: 100%;
  text-align: left;
  min-height: 42px;
  padding: 11px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #e7e3d8;
  font: inherit;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.custom-select-list button:hover,
.custom-select-list button:focus-visible {
  background: #d6c6a41c;
}
.custom-select-list button[aria-selected="true"] {
  background: #d6c6a4;
  color: #242019;
}
.custom-select-list button:disabled {
  opacity: 0.4;
}
.scroll-pending {
  opacity: 0 !important;
  transform: translateY(18px) scale(0.985);
  animation: none !important;
}
.scroll-arrived {
  animation: scroll-in 600ms cubic-bezier(0.16, 1, 0.3, 1) both !important;
}
.backup-drive {
  margin-block: 24px;
  padding: 28px;
}
.backup-drive h2 {
  margin: 12px 0;
}
.backup-drive small {
  display: block;
  color: #999385;
  margin-top: 12px;
}
.backup-import {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.backup-import small {
  color: #999385;
}
.backup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.backup-row > div {
  flex: 1;
  min-width: 180px;
}
.backup-dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.danger {
  background: #aa4e40;
  color: #fff;
  border: 1px solid #d58a77;
  border-radius: 8px;
  padding: 12px 18px;
}
#backup-delete-dialog {
  max-width: min(500px, calc(100vw - 32px));
}
#backup-delete-dialog p {
  color: #b5aea0;
  line-height: 1.7;
}
.legal-placeholder {
  min-height: 52vh;
  padding: 45px;
  margin-top: 35px;
}
.footer-legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #aaa596;
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-7px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes menu-out {
  to {
    opacity: 0;
    transform: translateY(-5px) scale(0.98);
  }
}
@keyframes menu-item-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes scroll-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
body.reduce-motion .account-menu,
body.reduce-motion .account-menu > *,
body.reduce-motion .custom-select-list,
body.reduce-motion .scroll-arrived {
  animation: none !important;
}
body.reduce-motion .scroll-pending {
  opacity: 1 !important;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .account-menu,
  .account-menu > *,
  .custom-select-list,
  .scroll-arrived {
    animation: none !important;
  }
  .scroll-pending {
    opacity: 1 !important;
    transform: none;
  }
}
@media (max-width: 700px) {
  .topbar .connected-account > button {
    padding: 9px 10px;
    font-size: 10px;
    max-width: 125px;
  }
  .top-actions {
    flex-wrap: wrap;
  }
  .account-menu {
    max-width: calc(100vw - 32px);
  }
  .backup-row > div {
    min-width: 100%;
  }
  .legal-placeholder {
    padding: 24px;
  }
}

/* Paddle purchase disclosure styled externally to respect the strict CSP. */
.purchase-legal{font-size:12px;line-height:1.7;color:#aaa596;max-width:670px;text-align:center;margin:15px auto 26px}
.purchase-legal a{color:#ddc497;text-underline-offset:3px}
.purchase-legal a:focus-visible{outline:2px solid #ddc497;outline-offset:3px}
