.stella-app-shell {
  min-height: 100vh;
  background: var(--stella-bg);
}

.stella-topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--stella-topbar-height);
  border-bottom: 1px solid var(--stella-border);
  background: var(--stella-surface);
}

.stella-topbar-inner {
  width: min(100%, 1900px);
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.stella-topbar-primary,
.stella-main-nav,
.stella-quick-nav {
  display: flex;
  align-items: center;
}

.stella-topbar-primary {
  min-width: 0;
  gap: 38px;
}

.stella-logo {
  width: 176px;
  flex: 0 0 176px;
  display: grid;
  justify-items: center;
  color: var(--stella-text);
}

.stella-logo-script {
  position: relative;
  font-family: "Brush Script MT", "Segoe Script", "URW Chancery L", cursive;
  font-size: 2rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.06em;
}

.stella-logo-heart {
  position: absolute;
  top: -2px;
  right: -14px;
  color: var(--stella-accent);
  font-family: sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0;
}

.stella-logo-caption {
  margin-top: 5px;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.stella-main-nav {
  gap: 3px;
}

.stella-nav-link,
.stella-quick-link {
  position: relative;
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: var(--stella-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--stella-muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.stella-nav-link i,
.stella-quick-link i {
  font-size: 1.05rem;
}

.stella-nav-link:hover,
.stella-quick-link:hover,
.stella-nav-link.is-active,
.stella-quick-link.is-active {
  color: var(--stella-accent);
  background: var(--stella-accent-soft);
}

.stella-nav-link.is-active::after,
.stella-quick-link.is-active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: -17px;
  height: 2px;
  background: var(--stella-accent);
}

.stella-nav-subscription {
  margin-left: 5px;
  border: 1px solid color-mix(in srgb, var(--stella-accent) 20%, var(--stella-border));
  color: var(--stella-accent);
  background: var(--stella-accent-soft);
}

.stella-quick-nav {
  gap: 5px;
}

.stella-quick-link {
  padding: 0 10px;
}

.stella-count-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--stella-accent);
  color: #fff;
  font-size: 0.67rem;
  font-weight: 750;
}

.stella-icon-link {
  border-color: transparent;
  background: transparent;
}

.stella-notification-button {
  position: relative;
}

.stella-notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--stella-surface);
  border-radius: 50%;
  background: var(--stella-accent);
}

.stella-account-link {
  height: 44px;
  margin-left: 4px;
  padding: 3px 7px 3px 3px;
  border: 1px solid transparent;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.stella-account-link:hover {
  border-color: var(--stella-border-strong);
  background: var(--stella-surface-alt);
}

.stella-account-link img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.stella-app-main {
  width: min(100%, 1900px);
  margin: 0 auto;
  padding: 30px 28px 46px;
}

.stella-page-heading {
  min-height: 70px;
  margin-bottom: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.stella-page-heading h1,
.stella-panel-heading h1 {
  margin: 0;
  color: var(--stella-text);
  font-size: 1.75rem;
  line-height: 1.08;
}

.stella-page-heading p {
  margin: 6px 0 0;
  color: var(--stella-muted);
  font-size: 0.9rem;
}

.stella-discover-layout {
  display: grid;
  grid-template-columns: 318px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.stella-filter-panel {
  position: sticky;
  top: calc(var(--stella-topbar-height) + 22px);
  max-height: calc(100vh - var(--stella-topbar-height) - 44px);
  border: 1px solid var(--stella-border);
  border-radius: var(--stella-radius);
  background: var(--stella-surface);
  overflow: hidden;
  box-shadow: var(--stella-shadow);
}

.stella-panel-heading {
  padding: 18px 18px 15px;
  border-bottom: 1px solid var(--stella-border);
}

.stella-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.stella-filter-heading h1 {
  font-size: 1.08rem;
}

.stella-saved-filter-row {
  border-bottom: 1px solid var(--stella-border);
}

.stella-saved-filter-row button {
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: var(--stella-muted);
  cursor: pointer;
}

.stella-saved-filter-row button span {
  flex: 1;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 650;
}

.stella-filter-groups {
  max-height: calc(100vh - 340px);
  overflow: auto;
  scrollbar-width: thin;
}

.stella-filter-group {
  border-bottom: 1px solid var(--stella-border);
}

.stella-filter-group-toggle {
  width: 100%;
  min-height: 48px;
  padding: 0 17px;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  cursor: pointer;
}

.stella-filter-group-toggle > span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.84rem;
  font-weight: 700;
}

.stella-filter-group-toggle > span i {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--stella-accent-soft);
  color: var(--stella-accent);
}

.stella-filter-group-toggle > i {
  color: var(--stella-faint);
  transition: transform 140ms ease;
}

.stella-filter-group.is-open .stella-filter-group-toggle > i {
  transform: rotate(180deg);
}

.stella-filter-group-body {
  display: none;
  padding: 1px 17px 17px;
}

.stella-filter-group.is-open .stella-filter-group-body {
  display: grid;
  gap: 16px;
}

.stella-filter-control {
  display: grid;
  gap: 8px;
}

.stella-filter-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--stella-muted);
  font-size: 0.75rem;
  font-weight: 650;
}

.stella-filter-label small {
  color: var(--stella-faint);
  font-size: 0.68rem;
  font-weight: 500;
}

.stella-filter-control select {
  min-height: 39px;
  padding: 0 9px;
  font-size: 0.78rem;
}

.stella-filter-control select[multiple] {
  min-height: 108px;
  padding: 5px;
}

.stella-filter-control select[multiple] option {
  padding: 7px 8px;
  border-radius: 5px;
}

.stella-choice-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
}

.stella-choice-row button {
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--stella-border);
  border-radius: 7px;
  background: var(--stella-surface);
  color: var(--stella-muted);
  font-size: 0.73rem;
  cursor: pointer;
}

.stella-choice-row button:hover,
.stella-choice-row button.is-selected {
  border-color: color-mix(in srgb, var(--stella-accent) 42%, var(--stella-border));
  background: var(--stella-accent-soft);
  color: var(--stella-accent);
}

.stella-range-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 7px;
}

.stella-range-fields label {
  display: grid;
  gap: 4px;
}

.stella-range-fields label span {
  color: var(--stella-faint);
  font-size: 0.64rem;
  font-weight: 600;
}

.stella-range-fields > span {
  padding-bottom: 10px;
  color: var(--stella-faint);
}

.stella-range-fields input {
  min-width: 0;
  min-height: 37px;
  padding: 0 8px;
  font-size: 0.75rem;
}

.stella-filter-actions {
  padding: 14px 17px 17px;
  display: grid;
  gap: 8px;
  background: var(--stella-surface);
}

.stella-filter-actions .stella-button {
  width: 100%;
}

.stella-filter-loading {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.stella-filter-loading span {
  height: 42px;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--stella-surface-alt), var(--stella-surface-hover), var(--stella-surface-alt));
  background-size: 220% 100%;
  animation: stella-shimmer 1.2s linear infinite;
}

.stella-discover-content {
  min-width: 0;
}

.stella-discover-heading {
  align-items: center;
}

.stella-discover-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stella-inline-select {
  min-width: 180px;
  display: grid;
  gap: 4px;
  color: var(--stella-faint);
  font-size: 0.64rem;
  font-weight: 600;
}

.stella-inline-select select {
  min-height: 42px;
  padding: 0 10px;
}

.stella-view-toggle,
.stella-segmented {
  padding: 3px;
  border: 1px solid var(--stella-border);
  border-radius: var(--stella-radius-sm);
  display: flex;
  background: var(--stella-surface);
}

.stella-view-toggle button,
.stella-segmented button {
  min-width: 40px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--stella-muted);
  cursor: pointer;
}

.stella-view-toggle button.is-active,
.stella-segmented button.is-active {
  background: var(--stella-accent-soft);
  color: var(--stella-accent);
}

.stella-mobile-filter-button {
  display: none;
}

.stella-result-summary {
  margin: -5px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--stella-muted);
  font-size: 0.78rem;
}

.stella-result-summary > span:first-child {
  padding: 7px 11px;
  border: 1px solid var(--stella-border);
  border-radius: 999px;
  background: var(--stella-surface);
}

.stella-result-source {
  color: var(--stella-faint);
  font-size: 0.68rem;
}

.stella-profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.stella-profile-card {
  position: relative;
  min-width: 0;
  height: 520px;
  border: 1px solid var(--stella-border);
  border-radius: var(--stella-radius);
  background: var(--stella-surface-alt);
  overflow: hidden;
  box-shadow: var(--stella-shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, opacity 220ms ease;
}

.stella-profile-card:hover {
  transform: translateY(-2px);
  border-color: var(--stella-border-strong);
  box-shadow: var(--stella-shadow-hover);
}

.stella-profile-card.is-dismissed {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

.stella-profile-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.stella-profile-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stella-profile-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.12) 0%, transparent 34%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.86) 100%);
  pointer-events: none;
}

.stella-profile-card-top {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stella-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);
}

.stella-card-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a6a0ad;
}

.stella-card-status-online i {
  background: var(--stella-success);
}

.stella-card-status-new i {
  background: var(--stella-purple);
}

.stella-card-icon-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 18, 22, 0.32);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  backdrop-filter: blur(3px);
}

.stella-card-icon-button.is-active {
  background: var(--stella-accent);
}

.stella-profile-card-content {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 17px;
  color: #fff;
}

.stella-profile-card-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 1.14rem;
  font-weight: 750;
}

.stella-profile-card-name .stella-verified {
  color: #ff5b86;
}

.stella-profile-card-place {
  margin-top: 4px;
  color: rgba(255,255,255,0.86);
  font-size: 0.72rem;
}

.stella-profile-card-tags {
  min-height: 27px;
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stella-profile-card-tags span {
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(15, 14, 16, 0.46);
  color: #fff;
  font-size: 0.67rem;
}

.stella-profile-card-actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.stella-card-round {
  position: relative;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 20, 24, 0.68);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(0,0,0,0.18);
}

.stella-card-round-save {
  border-color: #ff6b91;
  background: linear-gradient(145deg, #ff769b, var(--stella-accent-strong));
}

.stella-card-round.is-active {
  transform: scale(1.08);
}

.stella-profile-grid.is-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stella-profile-grid.is-compact .stella-profile-card {
  height: 280px;
}

.stella-profile-grid.is-compact .stella-profile-card-content {
  left: 20px;
  right: 20px;
}

.stella-profile-grid-collection {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stella-profile-page {
  width: min(1500px, 100%);
  margin: 0 auto;
}

.stella-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.stella-profile-main-column {
  min-width: 0;
}

.stella-profile-hero-card,
.stella-side-card,
.stella-settings-card,
.stella-chat-shell {
  border: 1px solid var(--stella-border);
  border-radius: var(--stella-radius);
  background: var(--stella-surface);
  box-shadow: var(--stella-shadow);
}

.stella-profile-hero-card {
  overflow: hidden;
}

.stella-profile-gallery {
  height: 510px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 4px;
  background: var(--stella-border);
}

.stella-profile-main-image-wrap {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--stella-surface-alt);
}

.stella-profile-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stella-profile-hero-top {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stella-online-badge {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(22, 20, 24, 0.58);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 650;
}

.stella-online-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--stella-success);
}

.stella-online-badge-offline i {
  background: #9d98a4;
}

.stella-profile-thumbnails {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 4px;
  overflow: hidden;
}

.stella-gallery-thumb {
  min-height: 0;
  padding: 0;
  border: 0;
  background: var(--stella-surface-alt);
  cursor: pointer;
  overflow: hidden;
}

.stella-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.stella-gallery-thumb:hover img {
  transform: scale(1.035);
}

.stella-profile-summary {
  padding: 23px 26px 20px;
}

.stella-profile-summary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.stella-profile-summary-heading h1 {
  margin: 0;
  color: var(--stella-text);
  font-size: 1.75rem;
}

.stella-profile-location {
  margin-top: 5px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--stella-muted);
  font-size: 0.8rem;
}

.stella-profile-primary-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.stella-profile-more {
  flex: 0 0 auto;
}

.stella-profile-about {
  margin-top: 22px;
}

.stella-profile-about h2,
.stella-side-card h2,
.stella-settings-card h2,
.stella-profile-tab-panel h3 {
  margin: 0;
  color: var(--stella-text);
}

.stella-profile-about h2,
.stella-side-card h2 {
  font-size: 1rem;
}

.stella-profile-about p {
  max-width: 820px;
  margin: 7px 0 0;
  color: var(--stella-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.stella-profile-chips {
  margin-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.stella-profile-chip {
  padding: 7px 11px;
  border: 1px solid var(--stella-border);
  border-radius: var(--stella-radius-sm);
  background: var(--stella-surface-alt);
  color: var(--stella-muted);
  font-size: 0.72rem;
}

.stella-profile-tabs {
  padding: 0 25px;
  border-top: 1px solid var(--stella-border);
  border-bottom: 1px solid var(--stella-border);
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.stella-profile-tabs button {
  position: relative;
  min-height: 56px;
  padding: 0 10px;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: var(--stella-muted);
  font-size: 0.75rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}

.stella-profile-tabs button.is-active {
  color: var(--stella-text);
}

.stella-profile-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -1px;
  height: 2px;
  background: var(--stella-accent);
}

.stella-profile-tab-content {
  padding: 22px 26px 25px;
}

.stella-profile-tab-panel h3 {
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.stella-profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 35px;
}

.stella-profile-fact {
  min-height: 43px;
  border-bottom: 1px solid var(--stella-border);
  display: grid;
  grid-template-columns: 22px 120px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
}

.stella-profile-fact i {
  color: var(--stella-accent);
}

.stella-profile-fact span {
  color: var(--stella-muted);
}

.stella-profile-fact strong {
  overflow: hidden;
  color: var(--stella-text);
  font-weight: 600;
  text-overflow: ellipsis;
}

.stella-full-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.stella-full-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--stella-border);
  border-radius: var(--stella-radius-sm);
  object-fit: cover;
}

.stella-profile-side-column {
  display: grid;
  gap: 20px;
}

.stella-side-card {
  padding: 21px 20px;
}

.stella-detail-list,
.stella-value-list {
  margin-top: 13px;
  display: grid;
}

.stella-detail-row {
  min-height: 41px;
  display: grid;
  grid-template-columns: 23px minmax(80px, 1fr) auto;
  align-items: center;
  gap: 7px;
  color: var(--stella-muted);
  font-size: 0.73rem;
}

.stella-detail-row i,
.stella-value-list i {
  width: 23px;
  height: 23px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--stella-accent-soft);
  color: var(--stella-accent);
}

.stella-detail-row strong {
  max-width: 140px;
  overflow: hidden;
  color: var(--stella-muted);
  font-weight: 500;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stella-profile-chips-side {
  margin-top: 14px;
}

.stella-value-list {
  gap: 3px;
}

.stella-value-list > div {
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--stella-text);
  font-size: 0.76rem;
}

.stella-profile-loading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.stella-profile-loading-hero,
.stella-profile-loading-lines span {
  border-radius: var(--stella-radius);
  background: linear-gradient(90deg, var(--stella-surface-alt), var(--stella-surface-hover), var(--stella-surface-alt));
  background-size: 220% 100%;
  animation: stella-shimmer 1.2s linear infinite;
}

.stella-profile-loading-hero {
  height: 720px;
  border: 1px solid var(--stella-border);
}

.stella-profile-loading-lines {
  display: grid;
  align-content: start;
  gap: 20px;
}

.stella-profile-loading-lines span {
  height: 180px;
  border: 1px solid var(--stella-border);
}

.stella-settings-page,
.stella-collection-page,
.stella-messages-page {
  width: min(1400px, 100%);
  margin: 0 auto;
}

.stella-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.stella-settings-card {
  padding: 22px;
}

.stella-settings-card-wide {
  grid-column: 1 / -1;
}

.stella-card-title {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.stella-card-title > i {
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--stella-accent) 18%, var(--stella-border));
  border-radius: var(--stella-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--stella-accent-soft);
  color: var(--stella-accent);
  font-size: 1.1rem;
}

.stella-card-title h2 {
  font-size: 1rem;
}

.stella-card-title p {
  margin: 4px 0 0;
  color: var(--stella-muted);
  font-size: 0.76rem;
}

.stella-theme-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stella-theme-choice button {
  min-height: 82px;
  border: 1px solid var(--stella-border);
  border-radius: var(--stella-radius-sm);
  display: grid;
  place-items: center;
  gap: 5px;
  background: var(--stella-surface-alt);
  color: var(--stella-muted);
  cursor: pointer;
}

.stella-theme-choice button i {
  font-size: 1.35rem;
}

.stella-theme-choice button.is-active {
  border-color: var(--stella-accent);
  background: var(--stella-accent-soft);
  color: var(--stella-accent);
}

.stella-subscription-summary {
  min-height: 42px;
  margin-bottom: 14px;
  padding: 0 12px;
  border: 1px solid var(--stella-border);
  border-radius: var(--stella-radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--stella-surface-alt);
  color: var(--stella-muted);
  font-size: 0.78rem;
}

.stella-switch-row {
  min-height: 62px;
  border-top: 1px solid var(--stella-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
}

.stella-switch-row > span {
  display: grid;
  gap: 3px;
}

.stella-switch-row strong {
  font-size: 0.79rem;
}

.stella-switch-row small {
  color: var(--stella-muted);
  font-size: 0.7rem;
}

.stella-switch-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.stella-switch-row i {
  position: relative;
  width: 42px;
  height: 23px;
  flex: 0 0 42px;
  border-radius: 999px;
  background: var(--stella-border-strong);
  transition: background 140ms ease;
}

.stella-switch-row i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform 140ms ease;
}

.stella-switch-row input:checked + i {
  background: var(--stella-accent);
}

.stella-switch-row input:checked + i::after {
  transform: translateX(19px);
}

.stella-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stella-messages-page {
  height: calc(100vh - var(--stella-topbar-height) - 76px);
  min-height: 620px;
}

.stella-messages-heading {
  min-height: 64px;
}

.stella-chat-shell {
  height: calc(100% - 88px);
  min-height: 520px;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  overflow: hidden;
}

.stella-conversation-list {
  border-right: 1px solid var(--stella-border);
  overflow-y: auto;
}

.stella-conversation-search {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 14px;
  border-bottom: 1px solid var(--stella-border);
  background: var(--stella-surface);
}

.stella-conversation-search i {
  position: absolute;
  top: 27px;
  left: 27px;
  color: var(--stella-faint);
}

.stella-conversation-search input {
  height: 40px;
  padding: 0 12px 0 36px;
  background: var(--stella-surface-alt);
}

.stella-conversation-item {
  width: 100%;
  min-height: 78px;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid var(--stella-border);
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.stella-conversation-item:hover,
.stella-conversation-item.is-active {
  background: var(--stella-surface-alt);
}

.stella-conversation-item.is-active {
  box-shadow: inset 3px 0 0 var(--stella-accent);
}

.stella-conversation-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.stella-conversation-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.stella-conversation-avatar > i {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--stella-surface);
  border-radius: 50%;
  background: var(--stella-success);
}

.stella-conversation-copy,
.stella-conversation-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.stella-conversation-copy strong {
  font-size: 0.8rem;
}

.stella-conversation-copy small {
  overflow: hidden;
  color: var(--stella-muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stella-conversation-meta {
  justify-items: end;
}

.stella-conversation-meta small {
  color: var(--stella-faint);
  font-size: 0.64rem;
}

.stella-conversation-meta b {
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--stella-accent);
  color: #fff;
  font-size: 0.62rem;
}

.stella-chat-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr) 68px;
}

.stella-chat-header {
  padding: 0 18px;
  border-bottom: 1px solid var(--stella-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.stella-chat-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stella-chat-person > span:last-child {
  display: grid;
  gap: 2px;
}

.stella-chat-person strong {
  font-size: 0.82rem;
}

.stella-chat-person small {
  color: var(--stella-muted);
  font-size: 0.67rem;
}

.stella-chat-header-actions {
  display: flex;
  gap: 7px;
}

.stella-chat-messages {
  padding: 24px;
  overflow-y: auto;
  background: var(--stella-bg);
}

.stella-chat-bubble-row {
  margin: 8px 0;
  display: flex;
  justify-content: flex-start;
}

.stella-chat-bubble-row.is-mine {
  justify-content: flex-end;
}

.stella-chat-bubble {
  max-width: min(70%, 600px);
  padding: 10px 12px 7px;
  border: 1px solid var(--stella-border);
  border-radius: 12px 12px 12px 4px;
  background: var(--stella-surface);
}

.stella-chat-bubble-row.is-mine .stella-chat-bubble {
  border-color: color-mix(in srgb, var(--stella-accent) 28%, var(--stella-border));
  border-radius: 12px 12px 4px 12px;
  background: var(--stella-accent-soft);
}

.stella-chat-bubble p {
  margin: 0;
  color: var(--stella-text);
  font-size: 0.8rem;
  line-height: 1.48;
}

.stella-chat-bubble small {
  display: block;
  margin-top: 5px;
  color: var(--stella-faint);
  font-size: 0.6rem;
  text-align: right;
}

.stella-chat-compose {
  padding: 11px 14px;
  border-top: 1px solid var(--stella-border);
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  background: var(--stella-surface);
}

.stella-chat-compose input {
  height: 42px;
  padding: 0 13px;
  background: var(--stella-surface-alt);
}

.stella-send-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--stella-accent);
  border-radius: var(--stella-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--stella-accent);
  color: #fff;
  cursor: pointer;
}

.stella-modal-backdrop {
  position: fixed;
  z-index: 4000;
  inset: 0;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 8, 11, 0.58);
  opacity: 0;
  transition: opacity 150ms ease;
}

.stella-modal-backdrop.is-visible {
  opacity: 1;
}

.stella-modal {
  width: min(650px, 100%);
  max-height: calc(100vh - 48px);
  padding: 22px;
  border: 1px solid var(--stella-border-strong);
  border-radius: var(--stella-radius);
  background: var(--stella-surface);
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
  overflow-y: auto;
}

.stella-modal-header {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.stella-modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.stella-edit-profile-form {
  display: grid;
  gap: 16px;
}

.stella-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.stella-filter-backdrop {
  display: none;
}

.stella-auth-page {
  min-height: 100vh;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--stella-bg);
}

.stella-auth-card {
  width: min(440px, 100%);
  padding: 30px;
  border: 1px solid var(--stella-border);
  border-radius: var(--stella-radius);
  background: var(--stella-surface);
  box-shadow: var(--stella-shadow);
}

.stella-auth-card-wide {
  width: min(720px, 100%);
}

.stella-brand-auth {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--stella-text);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 2rem;
}

.stella-auth-card h1 {
  margin: 0 0 6px;
  font-size: 1.7rem;
}

.stella-auth-card > p {
  margin: 0 0 22px;
  color: var(--stella-muted);
}

.stella-form {
  display: grid;
  gap: 14px;
}

.stella-form .stella-button {
  width: 100%;
}

.stella-auth-links {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--stella-accent);
  font-size: 0.78rem;
  font-weight: 600;
}

@keyframes stella-shimmer {
  to { background-position: -220% 0; }
}

@media (max-width: 1500px) {
  .stella-profile-grid,
  .stella-profile-grid-collection {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stella-topbar-primary {
    gap: 22px;
  }

  .stella-logo {
    width: 155px;
    flex-basis: 155px;
  }
}

@media (max-width: 1240px) {
  .stella-topbar-inner {
    padding: 0 18px;
  }

  .stella-app-main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .stella-nav-link span,
  .stella-quick-link span:not(.stella-count-badge) {
    display: none;
  }

  .stella-nav-link,
  .stella-quick-link {
    width: 42px;
    justify-content: center;
    padding: 0;
  }

  .stella-nav-subscription {
    width: 42px;
  }

  .stella-count-badge {
    position: absolute;
    top: 1px;
    right: 0;
    min-width: 17px;
    height: 17px;
    font-size: 0.58rem;
  }

  .stella-discover-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
  }

  .stella-profile-grid,
  .stella-profile-grid-collection {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stella-profile-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 20px;
  }
}

@media (max-width: 980px) {
  .stella-logo {
    width: 140px;
    flex-basis: 140px;
  }

  .stella-main-nav {
    gap: 1px;
  }

  .stella-quick-nav {
    gap: 1px;
  }

  .stella-account-link i {
    display: none;
  }

  .stella-discover-layout {
    display: block;
  }

  .stella-filter-panel {
    position: fixed;
    z-index: 2200;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(360px, 90vw);
    max-height: none;
    border-radius: 0 12px 12px 0;
    transform: translateX(-102%);
    transition: transform 180ms ease;
  }

  .stella-filter-panel.is-mobile-open {
    transform: translateX(0);
  }

  .stella-filter-groups {
    max-height: calc(100vh - 210px);
  }

  .stella-filter-backdrop {
    position: fixed;
    z-index: 2100;
    inset: 0;
    display: block;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .stella-filter-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  body.stella-filter-open {
    overflow: hidden;
  }

  .stella-mobile-filter-button {
    display: inline-flex;
  }

  .stella-profile-layout {
    grid-template-columns: 1fr;
  }

  .stella-profile-side-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .stella-profile-loading {
    grid-template-columns: 1fr;
  }

  .stella-profile-loading-lines {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stella-chat-shell {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  :root {
    --stella-topbar-height: 68px;
  }

  .stella-topbar-inner {
    padding: 0 12px;
    gap: 8px;
  }

  .stella-topbar-primary {
    gap: 8px;
  }

  .stella-logo {
    width: 116px;
    flex-basis: 116px;
  }

  .stella-logo-script {
    font-size: 1.55rem;
  }

  .stella-logo-caption {
    display: none;
  }

  .stella-main-nav .stella-nav-link:not([data-nav-page="discover"]):not([data-nav-page="me"]),
  .stella-quick-nav .stella-quick-link,
  .stella-quick-nav .stella-icon-link[href="/bookmarks/"] {
    display: none;
  }

  .stella-app-main {
    padding: 20px 12px 34px;
  }

  .stella-page-heading,
  .stella-discover-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .stella-discover-tools {
    width: 100%;
    flex-wrap: wrap;
  }

  .stella-inline-select {
    min-width: 0;
    flex: 1;
  }

  .stella-profile-grid,
  .stella-profile-grid-collection,
  .stella-profile-grid.is-compact {
    grid-template-columns: 1fr;
  }

  .stella-profile-card,
  .stella-profile-grid.is-compact .stella-profile-card {
    height: min(580px, 135vw);
  }

  .stella-profile-gallery {
    height: auto;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .stella-profile-main-image-wrap {
    height: 520px;
  }

  .stella-profile-thumbnails {
    height: 110px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 1fr;
  }

  .stella-profile-summary {
    padding: 18px;
  }

  .stella-profile-summary-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .stella-profile-primary-actions {
    width: 100%;
  }

  .stella-profile-primary-actions .stella-button {
    flex: 1;
  }

  .stella-profile-tabs {
    padding: 0 10px;
  }

  .stella-profile-tab-content {
    padding: 18px;
  }

  .stella-profile-facts {
    grid-template-columns: 1fr;
  }

  .stella-profile-side-column {
    grid-template-columns: 1fr;
  }

  .stella-settings-grid {
    grid-template-columns: 1fr;
  }

  .stella-settings-card-wide {
    grid-column: auto;
  }

  .stella-messages-page {
    height: auto;
  }

  .stella-chat-shell {
    height: 720px;
    grid-template-columns: 1fr;
    grid-template-rows: 220px minmax(0, 1fr);
  }

  .stella-conversation-list {
    border-right: 0;
    border-bottom: 1px solid var(--stella-border);
  }

  .stella-chat-panel {
    min-height: 500px;
  }

  .stella-chat-bubble {
    max-width: 86%;
  }

  .stella-full-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .stella-quick-nav .stella-notification-button {
    display: none;
  }

  .stella-account-link {
    padding-right: 3px;
  }

  .stella-profile-main-image-wrap {
    height: 430px;
  }

  .stella-profile-summary-heading h1 {
    font-size: 1.45rem;
  }

  .stella-settings-card,
  .stella-side-card {
    padding: 17px;
  }

  .stella-theme-choice {
    grid-template-columns: 1fr;
  }
}
.stella-topbar-menu {
  position: relative;
}

.stella-account-link {
  appearance: none;
  background: transparent;
  color: var(--stella-text);
  cursor: pointer;
}

.stella-dropdown[hidden] {
  display: none;
}

.stella-dropdown {
  position: absolute;
  z-index: 3200;
  top: calc(100% + 10px);
  right: 0;
  width: 290px;
  border: 1px solid var(--stella-border-strong);
  border-radius: var(--stella-radius);
  background: var(--stella-surface);
  box-shadow: 0 18px 55px rgba(14, 12, 18, 0.16);
  overflow: hidden;
}

.stella-account-dropdown > a,
.stella-account-dropdown > button {
  width: 100%;
  min-height: 58px;
  padding: 10px 14px;
  border: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--stella-text);
  text-align: left;
  cursor: pointer;
}

.stella-account-dropdown > a:hover,
.stella-account-dropdown > button:hover {
  background: var(--stella-surface-hover);
}

.stella-account-dropdown > a > i,
.stella-account-dropdown > button > i {
  color: var(--stella-accent);
  font-size: 1.08rem;
}

.stella-account-dropdown > a > span,
.stella-account-dropdown > button > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.stella-account-dropdown strong {
  font-size: 0.78rem;
}

.stella-account-dropdown small {
  color: var(--stella-muted);
  font-size: 0.67rem;
  font-weight: 500;
}

.stella-dropdown-divider {
  height: 1px;
  background: var(--stella-border);
}

.stella-notification-dropdown {
  width: min(370px, calc(100vw - 28px));
}

.stella-dropdown-heading {
  min-height: 62px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--stella-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stella-dropdown-heading > div {
  display: grid;
  gap: 2px;
}

.stella-dropdown-heading strong {
  font-size: 0.82rem;
}

.stella-dropdown-heading span {
  color: var(--stella-muted);
  font-size: 0.66rem;
}

.stella-dropdown-heading button {
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--stella-accent);
  font-size: 0.67rem;
  font-weight: 650;
  cursor: pointer;
}

.stella-dropdown-heading button:hover {
  background: var(--stella-accent-soft);
}

.stella-notification-list {
  max-height: 430px;
  overflow-y: auto;
}

.stella-notification-item {
  min-height: 68px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--stella-border);
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--stella-text);
}

.stella-notification-item:last-child {
  border-bottom: 0;
}

.stella-notification-item:hover {
  background: var(--stella-surface-hover);
}

.stella-notification-item.is-unread {
  background: color-mix(in srgb, var(--stella-accent-soft) 72%, var(--stella-surface));
}

.stella-notification-item > i {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--stella-accent-soft);
  color: var(--stella-accent);
}

.stella-notification-item > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.stella-notification-item strong {
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stella-notification-item small {
  overflow: hidden;
  color: var(--stella-muted);
  font-size: 0.68rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stella-dropdown-empty {
  min-height: 150px;
  padding: 22px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--stella-muted);
  text-align: center;
}

.stella-dropdown-empty i {
  color: var(--stella-accent);
  font-size: 1.5rem;
}

.stella-menu-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid var(--stella-surface);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--stella-accent);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 750;
}

.stella-modal-backdrop:not(.is-visible) {
  pointer-events: none;
}

.stella-card-round-save {
  border-color: #ff6b91;
  background: linear-gradient(145deg, #ff769b, var(--stella-accent-strong));
}

@media (max-width: 760px) {
  .stella-dropdown {
    position: fixed;
    top: var(--stella-topbar-height);
    right: 10px;
  }
}
