.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);
  color: #fff;
}
.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;
  }
}

.room-featured-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 8px 12px;
  box-sizing: border-box;
}
.room-featured-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: none;
  background: var(--bg-white);
  border-radius: 10px;
  padding: 6px 4px 8px;
  cursor: pointer;
  min-width: 0;
  width: 100%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: background 0.15s, box-shadow 0.15s;
}
.room-featured-chip:hover {
  background: var(--bg-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.room-featured-chip.active {
  background: var(--accent-light);
  outline: 2px solid var(--accent);
  box-shadow: 0 1px 4px rgba(41, 121, 255, 0.15);
}
.room-featured-chip.active:hover {
  background: var(--accent-light);
}
.room-featured-chip.active .room-featured-avatar {
  box-shadow: 0 0 0 2px var(--accent);
}
.room-featured-avatar {
  align-self: stretch;
  width: 100%;
  aspect-ratio: 1;
  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: clamp(18px, 5vw, 26px);
  line-height: 1;
}
.room-featured-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 2px;
}
.room-featured-count {
  font-size: 10px;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  max-width: 100%;
}
.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;
}
