.user-settings-layout {
  display: flex;
  gap: 16px;
  min-height: 280px;
}
.user-settings-nav {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--border);
  padding-right: 12px;
}
.user-pref-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  color: var(--text-mid);
}
.user-pref-nav-item:hover:not(.active) {
  background: var(--bg-light);
  color: var(--text-dark);
}
.user-pref-nav-item.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}
.user-pref-nav-item .icon {
  width: 18px;
  height: 18px;
}
.user-settings-panel {
  flex: 1;
  min-width: 0;
}
.user-pref-section-title {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin: 0 0 14px;
  font-weight: 600;
}
.user-pref-toggle {
  margin-bottom: 10px;
}
@media (max-width: 640px) {
  .user-settings-layout {
    flex-direction: column;
  }
  .user-settings-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0 0 8px;
  }
  .user-pref-nav-item {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

:root {
  --room-featured-shelf-bg: linear-gradient(180deg, #eef4ff 0%, #f6f8fb 100%);
  --room-featured-shelf-border: rgba(41, 121, 255, 0.16);
  --room-featured-shelf-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 3px rgba(41, 121, 255, 0.08);
  --room-featured-chip-border: var(--border-light);
  --room-featured-chip-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

body.theme-dark {
  --room-featured-shelf-bg: linear-gradient(180deg, rgba(41, 121, 255, 0.16) 0%, rgba(26, 35, 50, 0.92) 100%);
  --room-featured-shelf-border: rgba(41, 121, 255, 0.24);
  --room-featured-shelf-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 4px rgba(0, 0, 0, 0.32);
  --room-featured-chip-border: var(--border);
  --room-featured-chip-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

.room-featured-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 5px 8px 0;
  padding: 8px 7px 10px;
  box-sizing: border-box;
  border-radius: var(--radius, 10px);
  background: var(--room-featured-shelf-bg);
  border: 1px solid var(--room-featured-shelf-border);
  box-shadow: var(--room-featured-shelf-shadow);
}

.room-featured-chip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  border: 1px solid var(--room-featured-chip-border);
  background: var(--bg-white);
  border-radius: 9px;
  padding: 7px 5px 8px;
  cursor: pointer;
  min-width: 0;
  width: 100%;
  min-height: 0;
  box-shadow: var(--room-featured-chip-shadow);
  text-align: center;
  transition: background 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.room-featured-chip:hover {
  background: var(--bg-light);
  border-color: var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

body.theme-dark .room-featured-chip:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.38);
}
.room-featured-chip.active {
  background: var(--accent-light);
  border-color: rgba(41, 121, 255, 0.45);
  outline: 2px solid var(--accent);
  box-shadow: 0 1px 4px rgba(41, 121, 255, 0.18);
}

body.theme-dark .room-featured-chip.active {
  box-shadow: 0 1px 6px rgba(41, 121, 255, 0.28);
}
.room-featured-chip.active:hover {
  background: var(--accent-light);
}
.room-featured-chip.active .room-featured-avatar {
  box-shadow: none;
}
.room-featured-chip.active .room-featured-name {
  color: var(--accent);
  font-weight: 600;
}
.room-featured-avatar {
  align-self: stretch;
  width: 100%;
  height: 46px;
  min-height: 46px;
  max-height: 46px;
  aspect-ratio: unset;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light, #f0f2f5);
  flex-shrink: 0;
}
.room-featured-avatar .room-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.room-featured-avatar .room-icon-emoji {
  font-size: 22px;
  line-height: 1;
}
.room-featured-name {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.25;
  text-align: center;
}
.room-featured-name .marquee-text-inner {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
}
.room-featured-name:not(.marquee-text--active) .marquee-text-track {
  text-align: center;
}
.room-featured-count {
  font-size: 10px;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  max-width: 100%;
  line-height: 1.2;
  align-self: center;
}
.room-featured-count.has-users {
  color: var(--accent);
  font-weight: 600;
}
/* avatar-frame.css */
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.market-item-card {
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.market-item-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.inventory-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}
.inventory-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border, #eee);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
