.website-appearance {
  min-width: 0;
  margin: 0 0 25px;
  padding: 0;
  border: 0;
}
.website-appearance legend {
  margin-bottom: 12px;
  color: var(--ps-text);
  font-size: 14px;
  font-weight: 650;
}
.website-theme-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.website-theme-option {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-auto-rows: min-content;
  align-items: start;
  gap: 7px 6px;
  margin: 0;
  padding: 9px;
  border: 1px solid var(--ps-line);
  border-radius: 11px;
  background: var(--ps-panel);
  color: var(--ps-text);
  cursor: pointer;
}
.website-theme-option:hover {
  border-color: var(--ps-muted);
}
.website-theme-option:has(input:checked) {
  border-color: var(--ps-accent);
}
.website-theme-option:has(input:focus-visible) {
  outline: 2px solid var(--ps-accent);
  outline-offset: 2px;
}
.website-theme-option > input[type='radio'] {
  appearance: none;
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
  border: 1px solid #7a8ba2;
  border-radius: 50%;
  background: #f9fbff;
}
.website-theme-option > input[type='radio']:checked {
  background: #5174a1;
  box-shadow: inset 0 0 0 2px #f9fbff;
}
.website-theme-swatch {
  --swatch-base: #151915;
  --swatch-rail: #23291d;
  --swatch-card: #30382a;
  --swatch-button: #d5f79b;
  display: grid;
  grid-column: 1 / -1;
  grid-template: 1fr 13px / 22% 1fr 17%;
  gap: 4px;
  aspect-ratio: 3 / 1;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 8px 21% 8px 8px;
  overflow: hidden;
  border: 1px solid #8295ae45;
  border-radius: 6px;
  background: var(--swatch-base);
  color-scheme: dark;
}
.website-theme-swatch[data-swatch='silverstone'] {
  --swatch-base: #e8edf4;
  --swatch-rail: #c2cde0;
  --swatch-card: #fcfdff;
  --swatch-button: #506b8f;
}
.website-theme-swatch[data-swatch='midnight'] {
  --swatch-base: #090c12;
  --swatch-rail: #171d28;
  --swatch-card: #262f40;
  --swatch-button: #cbd8ee;
}
.website-theme-swatch[data-swatch='auto'] {
  --swatch-base: linear-gradient(112deg, #e8edf4 50%, #090c12 50%);
  --swatch-rail: #bdc9dc;
  --swatch-card: linear-gradient(112deg, #fcfdff 52%, #343f53 52%);
  --swatch-button: #849abb;
}
.website-theme-swatch i {
  border-radius: 3px;
}
.website-theme-swatch i:first-child {
  grid-row: 1 / -1;
  background: var(--swatch-rail);
}
.website-theme-swatch i:nth-child(2) {
  grid-column: 2 / -1;
  background: var(--swatch-card);
}
.website-theme-swatch i:last-child {
  background: var(--swatch-button);
}
.website-theme-name {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  font-weight: 650;
  line-height: 1.3;
}
.website-theme-beta {
  padding: 2px 5px;
  border: 1px solid #9482e2;
  border-radius: 4px;
  background: #272046;
  color: #e0d7ff;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.09em;
}
.website-theme-option small {
  grid-column: 1 / -1;
  color: var(--ps-muted);
  line-height: 1.4;
}
.website-theme-note {
  margin: 10px 0 0;
  color: var(--ps-muted);
  font-size: 12px;
}

#restored-ui .ps-account-display .ps-section-label {
  margin: 0 0 12px;
  color: var(--ps-text);
}
.ps-display-controls {
  border: 1px solid var(--ps-line);
  border-radius: 11px;
  background: var(--ps-panel);
}
#restored-ui .ps-account-display .ps-control-row {
  gap: 14px 20px;
  margin: 0;
  padding: 13px 15px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#restored-ui .ps-account-display .ps-control-row + .ps-control-row {
  border-top: 1px solid var(--ps-line);
}
#restored-ui .ps-account-display .ps-control-row strong {
  font-size: 13px;
  font-weight: 650;
}
#restored-ui .ps-account-display .ps-control-row p {
  margin: 3px 0 0;
  color: var(--ps-muted);
  line-height: 1.5;
}
#restored-ui .ps-account-display .ps-switch {
  width: 41px;
  height: 24px;
  background: var(--ps-bg);
  border-color: var(--ps-muted);
}
#restored-ui .ps-account-display .ps-switch > span {
  width: 14px;
  height: 14px;
  background: var(--ps-muted);
}
#restored-ui .ps-account-display .ps-switch[aria-checked='true'] {
  background: var(--ps-accent);
  border-color: var(--ps-accent);
}
#restored-ui .ps-account-display .ps-switch[aria-checked='true'] > span {
  transform: translateX(17px);
  background: var(--ps-bg);
}
.ps-motion-row {
  flex-wrap: wrap;
}
.ps-motion-row > div {
  flex: 1 1 215px;
}
#ps-motion {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 0;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--ps-line);
  border-radius: 8px;
  background: var(--ps-bg);
}
#ps-motion label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 30px;
  margin: 0;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--ps-muted);
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
#ps-motion label:hover {
  color: var(--ps-text);
}
#ps-motion label:has(:checked) {
  background: var(--ps-panel);
  border-color: var(--ps-line);
  color: var(--ps-text);
  font-weight: 650;
}
#ps-motion label:has(:focus-visible) {
  outline: 2px solid var(--ps-accent);
  outline-offset: -1px;
}
#ps-motion[disabled] {
  opacity: 0.65;
}
#ps-motion[disabled] label {
  cursor: wait;
}
.ps-display-note {
  margin: 8px 0 0;
  color: var(--ps-muted);
  font-size: 12px;
}
@media (max-width: 480px) {
  #ps-motion {
    flex: 1 1 100%;
  }
  #ps-motion label {
    min-height: 40px;
  }
}

:root[data-website-theme='silverstone']
  :is(.ranked-wordmark, .dashboard-sidebar .brand img, #session-gate img),
:root[data-website-theme='silverstone'] .mobile-brand img {
  filter: brightness(0.27) saturate(0.35);
}
:root[data-website-theme='silverstone'][data-guest-play]
  :is(#sidebar-profile-open, #mobile-profile)
  .avatar {
  background: #dfe7f1;
  color: #334e70;
}

#restored-ui .player-settings.ps-public-appearance[open] {
  grid-template-columns: minmax(0, 1fr);
  width: min(560px, calc(100vw - 28px));
  height: fit-content;
  max-height: calc(100dvh - 32px);
}
#restored-ui
  .ps-public-appearance
  :is(.ps-rail, .ps-sections-toggle, .ps-bottom, .ps-account-display) {
  display: none;
}
@media (max-width: 700px), (max-width: 950px) and (max-height: 500px) {
  #restored-ui .player-settings.ps-public-appearance {
    --review-settings-height: fit-content;
  }
}
