.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 5px 0 20px;
}
.chip {
  border: 1px solid transparent;
  border-radius: 6px;
  color: #aca6b7;
  padding: 7px 11px;
  font-size: 11px;
  min-height: 30px;
}
.chip.chosen {
  color: #d6c4f8;
  border-color: #b9a3e531;
  background: #ad91d517;
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.active-build {
  border-color: #b495e76e;
}
.library-art {
  height: 125px;
  position: relative;
}
.library-art img {
  object-position: 65% center;
}
.art-tag {
  left: 11px;
  bottom: 10px;
}
.build-card-body {
  padding: 15px 13px;
}
.build-card-body h2 {
  font-size: 18px;
  margin: 7px 0;
  letter-spacing: -0.7px;
}
.build-meta {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
}
.build-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 18px 0 12px;
  font-size: 10.5px;
  min-height: 21px;
}
.selected-mark {
  margin-left: auto;
  border-radius: 4px;
  background: #b393ef15;
  color: #cfb8f4;
  padding: 3px 6px;
  font-size: 9px;
}
.build-card-actions {
  border-top: 1px solid var(--line);
  padding-top: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}
.mini-info {
  color: var(--muted);
  padding: 6px;
}
.build-card-actions .secondary {
  font-size: 11px;
  min-height: 31px;
  padding: 0 10px;
}
.compact {
  margin-top: 16px;
}
.refresh-info {
  font-size: 10px;
  border-radius: 7px;
}
.refresh-info b {
  font-variant-numeric: tabular-nums;
  color: #d6c2f9;
}
.shop-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 21px;
}
.shop-grid.daily {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.shop-card,
.item-preview {
  --art-tone: #6c538e;
  --art-shadow: #383045;
}
.legendary {
  --art-tone: #977454;
  --art-shadow: #493a33;
}
.rare {
  --art-tone: #4c6f9a;
  --art-shadow: #2f3e56;
}
.cosmetic-raven {
  --art-tone: #6c658a;
  --art-shadow: #302e43;
}
.cosmetic-cuddle {
  --art-tone: #bf7498;
  --art-shadow: #684259;
}
.cosmetic-art,
.item-preview {
  background: radial-gradient(
    ellipse at 55% 42%,
    var(--art-tone),
    var(--art-shadow)
  );
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.cosmetic-art {
  height: 131px;
}
.cosmetic-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.22s;
}
.featured .cosmetic-art img {
  object-position: 50% 8%;
  height: 118%;
}
.rarity {
  left: 8px;
  bottom: 7px;
  font-size: 7px;
}
.saved-icon {
  position: absolute;
  right: 7px;
  top: 7px;
  color: #fff;
}
.cosmetic-info {
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: 4px;
  align-items: center;
}
.cosmetic-info small {
  grid-column: 1/-1;
  font-size: 9px;
  color: var(--muted);
}
.cosmetic-info strong {
  font-size: 12px;
  font-weight: 620;
  letter-spacing: -0.25px;
}
.price {
  font-size: 10px;
  gap: 4px;
  color: #e2deeb;
  white-space: nowrap;
}
.price svg {
  color: #bbccdf;
}
.daily .cosmetic-art {
  height: 103px;
}
.daily .cosmetic-info {
  grid-template-columns: 1fr;
}
.daily .price {
  justify-self: start;
}
.shop-filters {
  margin-bottom: 8px;
}
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 65px;
  padding: 14px 17px;
}
.setting-row + .setting-row,
.account-detail + .setting-row {
  border-top: 1px solid var(--line);
}
.setting-row label,
.setting-row > span {
  font-size: 12px;
  font-weight: 550;
}
.setting-row small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.5;
}
.setting-row input[type="text"],
.setting-row select,
.directory-input {
  width: 42%;
  max-width: 260px;
  min-width: 100px;
}
.directory-input {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}
.directory-input span {
  margin-right: auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.autosave {
  font-size: 10px;
  color: #a69eaf;
  gap: 5px;
}
.switch {
  appearance: none;
  -webkit-appearance: none;
  width: 34px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 20px;
  border: 1px solid #ffffff20;
  background: #46424c;
  cursor: pointer;
  position: relative;
}
.switch:before {
  content: "";
  display: block;
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #efedf3;
  transition: transform 0.17s;
}
.switch:checked {
  background: #a98bde;
}
.switch:checked:before {
  transform: translateX(14px);
}
.account-detail {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
}
.account-detail .large-avatar {
  width: 54px;
  height: 54px;
}
.account-detail h2 {
  font-size: 17px;
}
.account-detail p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
dialog {
  width: min(445px, calc(100% - 36px));
  max-height: calc(100svh - 52px);
  padding: 0;
  border: 1px solid #e0d3f636;
  border-radius: 13px;
  background: #25242ef5;
  backdrop-filter: blur(22px);
  color: #eeeaf4;
  box-shadow: 0 18px 80px #0009;
  scrollbar-width: thin;
}
dialog::backdrop {
  background: #08070cb3;
  backdrop-filter: blur(4px);
}
dialog[open] {
  animation: pop 0.16s ease-out;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.dialog-head h2 {
  font-size: 16px;
  font-weight: 640;
  letter-spacing: -0.4px;
}
.dialog-body {
  padding: 17px;
  font-size: 12px;
  line-height: 1.6;
}
.dialog-body > p,
.dialog-body form p {
  color: #bcb6c8;
  margin: 12px 0 15px;
}
.dialog-body > :first-child {
  margin-top: 0;
}
.dialog-body > :last-child {
  margin-bottom: 0;
}
.modal-banner {
  width: 100%;
  height: 135px;
  border-radius: 6px;
  object-fit: cover;
}
.detail-strip,
.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}
.detail-strip .eyebrow {
  color: #cdb5ef;
  font-size: 9px;
}
.modal-actions {
  justify-content: flex-end;
}
.modal-actions .muted {
  margin-right: auto;
  font-size: 11px;
}
.dialog-body dl {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.5fr);
  gap: 8px 10px;
}
.dialog-body dt {
  color: #b4adbf;
}
.dialog-body dd {
  text-align: right;
  margin: 0;
  overflow-wrap: anywhere;
}
.article-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--line);
}
.article-row:hover {
  background: #ffffff06;
}
.article-row img {
  width: 69px;
  height: 42px;
  object-fit: cover;
  border-radius: 5px;
}
.article-row span {
  display: flex;
  flex-direction: column;
}
.article-row small {
  font-size: 9px;
  color: #b5adbf;
}
.article-row strong {
  font-size: 12px;
}
.article-row > svg {
  margin-left: auto;
  color: #aaa2b5;
}
.health-title {
  color: #c3e8d3;
}
.item-preview {
  height: 174px;
  border-radius: 7px;
}
.item-preview img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
#directory-form > input {
  width: 100%;
  margin-top: 6px;
}
.toasts {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
}
.toast {
  background: #34303eeb;
  border: 1px solid #cbb7eb40;
  border-radius: 9px;
  padding: 11px 16px;
  box-shadow: 0 8px 28px #0007;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  animation: pop 0.16s ease-out;
}
.toast svg {
  color: #cab3f1;
}
.skeleton {
  margin-top: 64px;
  height: 240px;
  border-radius: 8px;
  background: linear-gradient(100deg, #24232b 30%, #302e39 48%, #24232b 65%);
  background-size: 300%;
  animation: load 1.4s linear infinite;
}
@keyframes load {
  to {
    background-position: -150% 0;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    translate: 0 4px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (max-width: 960px) {
  .sidebar {
    width: 155px;
    padding-left: 9px;
    padding-right: 9px;
  }
  #main {
    padding: 21px 19px;
  }
  .strip-path {
    display: none;
  }
  .hero-copy {
    padding: 0 24px;
  }
  .news-grid,
  .library-grid {
    gap: 9px;
  }
  .news-caption {
    padding: 10px;
  }
  .shop-grid.daily {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cosmetic-info {
    grid-template-columns: 1fr;
  }
  .cosmetic-info .price {
    justify-self: start;
  }
}
@media (max-width: 760px) {
  .desktop {
    padding: 15px;
  }
  .window,
  .window.larger {
    height: min(720px, calc(100svh - 30px));
  }
  .sidebar {
    width: 63px;
    padding: 22px 8px 0;
  }
  .wordmark {
    margin: 0 auto 28px;
  }
  .wordmark img {
    width: 32px;
  }
  .wordmark > span,
  .nav-link span,
  .account-name,
  .account-button > svg,
  .version {
    display: none;
  }
  .nav-link {
    justify-content: center;
    padding: 0;
  }
  .account-button {
    justify-content: center;
  }
  .account-pop {
    left: 3px;
  }
  .hero {
    height: 228px;
  }
  .hero-copy {
    padding: 0 20px;
  }
  .hero h2 {
    font-size: 59px;
  }
  .hero-copy p {
    max-width: 240px;
  }
  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .news-caption strong {
    font-size: 11px;
  }
  .news-image {
    height: 79px;
  }
  .strip-status {
    margin-left: 0;
    padding-left: 9px;
  }
}
@media (max-width: 560px) {
  .desktop {
    padding: 9px;
  }
  .window,
  .window.larger {
    height: min(800px, calc(100svh - 18px));
    border-radius: 12px;
  }
  .titlebar {
    height: 31px;
    padding: 0 10px;
  }
  .preview-label {
    font-size: 8px;
  }
  .traffic {
    gap: 5px;
  }
  .dot {
    width: 9px;
    height: 9px;
  }
  .sidebar {
    width: 47px;
    padding: 16px 4px 0;
  }
  .wordmark img {
    width: 26px;
  }
  .wordmark {
    margin-bottom: 22px;
  }
  .nav-link {
    height: 37px;
  }
  .avatar {
    width: 29px;
    height: 29px;
  }
  #main {
    padding: 17px 12px;
  }
  .page-heading {
    margin-bottom: 14px;
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .page-heading p {
    font-size: 10.5px;
  }
  .server-pill {
    padding: 5px 7px;
    font-size: 8px;
  }
  .heading-actions {
    gap: 5px;
  }
  .notify-button {
    height: 24px;
    width: 24px;
  }
  .hero {
    height: 216px;
  }
  .hero::before {
    background-position: 62% center;
  }
  .hero::after {
    background: linear-gradient(90deg, #1b1129c9, #1b11296b 56%, #1912210a);
  }
  .hero-copy {
    padding: 0 14px;
    max-width: 85%;
  }
  .hero h2 {
    font-size: 50px;
    letter-spacing: -2px;
  }
  .season-tag {
    font-size: 7px;
    letter-spacing: 1px;
    padding: 4px 5px;
    gap: 4px;
  }
  .hero-copy p {
    font-size: 10px;
    max-width: 165px;
  }
  .hero-buttons {
    gap: 5px;
    margin-top: 13px;
  }
  .hero-buttons .primary {
    height: 31px;
    min-height: 31px;
    padding: 0 10px;
    font-size: 10.5px;
  }
  .hero-details {
    font-size: 9px;
  }
  .slider-controls {
    right: 7px;
    bottom: 6px;
    gap: 0;
  }
  .slider-controls .icon-button {
    width: 18px;
    height: 18px;
  }
  .slider-controls span {
    font-size: 8px;
  }
  .build-strip {
    padding: 7px;
    gap: 6px;
    min-height: 52px;
  }
  .build-icon {
    width: 25px;
    height: 29px;
  }
  .strip-main small {
    font-size: 6.5px;
    letter-spacing: 1px;
  }
  .strip-main strong {
    font-size: 10px;
  }
  .strip-status {
    font-size: 8px;
    border: 0;
    padding: 0;
    gap: 4px;
  }
  .build-strip .subtle-link {
    font-size: 9px;
    padding: 3px;
  }
  .section-heading {
    margin: 17px 0 9px;
  }
  .section-heading h2 {
    font-size: 14px;
  }
  .section-heading .subtle-link {
    font-size: 9px;
  }
  .news-grid {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
  .news-card {
    display: flex;
    align-items: center;
  }
  .news-image {
    width: 37%;
    height: 65px;
    flex-shrink: 0;
  }
  .news-caption {
    text-align: left;
    gap: 4px;
  }
  .news-tag {
    font-size: 6px;
    left: 4px;
    bottom: 4px;
    padding: 3px;
  }
  .news-caption time {
    font-size: 9px;
  }
  .library-grid,
  .shop-grid,
  .shop-grid.daily {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .build-card-body {
    padding: 9px;
  }
  .build-card-body h2 {
    font-size: 15px;
  }
  .build-meta {
    font-size: 9px;
  }
  .library-art {
    height: 74px;
  }
  .build-card-actions {
    flex-wrap: wrap;
  }
  .build-line {
    flex-wrap: wrap;
    margin: 8px 0;
  }
  .selected-mark {
    margin: 0;
  }
  .build-card-actions .secondary {
    font-size: 9px;
    padding: 0 6px;
  }
  .chip {
    font-size: 10px;
    min-height: 27px;
    padding: 5px 7px;
  }
  .filter-row {
    gap: 3px;
    margin-bottom: 12px;
  }
  .refresh-info {
    display: flex;
    flex-wrap: wrap;
    max-width: 98px;
    gap: 3px;
    font-size: 8px;
    padding: 4px;
  }
  .cosmetic-art {
    height: 99px;
  }
  .cosmetic-info {
    padding: 8px;
  }
  .cosmetic-info strong {
    font-size: 11px;
  }
  .setting-row {
    gap: 8px;
    padding: 11px;
    align-items: flex-start;
  }
  .setting-row label {
    font-size: 11px;
  }
  .setting-row small {
    font-size: 9px;
  }
  .setting-row:has(select),
  .setting-row:has(input[type="text"]),
  .setting-row:has(.directory-input) {
    flex-direction: column;
  }
  .setting-row select,
  .setting-row input[type="text"],
  .directory-input {
    width: 100%;
    max-width: none;
  }
  .setting-row .switch {
    margin: 0;
  }
  .dialog-body {
    font-size: 11px;
  }
  .toast {
    width: max-content;
    max-width: 90vw;
  }
  .autosave {
    font-size: 8px;
  }
}
@media (max-width: 360px) {
  .heading-actions .notify-button,
  .strip-status {
    display: none;
  }
  .hero h2 {
    font-size: 42px;
  }
  .library-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 761px) {
  .featured .cosmetic-art {
    height: 145px;
  }
  .featured .cosmetic-art img {
    height: 205%;
    object-position: center top;
  }
  .cosmetic-info strong {
    font-size: 13px;
  }
  .daily .cosmetic-art img {
    padding: 5px;
  }
  .shop-card.featured:hover img {
    transform: scale(1.035);
  }
}

.dialog-body [role="alert"] {
  color: #f2c4c9;
  padding: 9px 12px;
  background: #c17b8612;
  border: 1px solid #c98e9a40;
  border-radius: 6px;
}
