/* Layout polish for the static client.
   Card footers stay above the fixed tab bar, missing covers stay distinguishable,
   and the first chat screen no longer treats a cancelled opening as a blocking card. */

html[data-theme] .page:not(.create-route):not(.chat-page) {
  padding-bottom: calc(148px + env(safe-area-inset-bottom, 0px));
}

html .fab {
  bottom: calc(118px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 12;
}

html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) .overlay-card167 .character-cover {
  aspect-ratio: 5 / 7.1;
}

@media (max-width: 520px) {
  html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) .overlay-card167 .character-cover {
    aspect-ratio: 5 / 6.15;
  }

  html[data-android-webview1791] #app[data-ui-route] .overlay-card167 .character-cover {
    padding-top: 123% !important;
  }
}

html[data-android-webview1791] #app[data-ui-route] .overlay-card167 .character-cover {
  padding-top: 142% !important;
}

.role-gender-unspecified {
  display: none !important;
}

/* Shared fallback art stays intact. Recoloring the same face looked broken,
   and a corner dot sat on the heat badge. */

html .detail-cover-copy h1,
html .detail-cover-copy .eyebrow,
html .detail-cover-copy p {
  color: #fffaf7 !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.82);
}

.detail-page .detail-actions:first-child {
  grid-template-columns: 1fr 1fr;
}

html[data-theme] .detail-page .detail-actions:first-child > .primary-button {
  grid-column: 1 / -1;
  min-height: 50px;
  font-size: 16px;
  background: #8d4560 !important;
  color: #fffaf7 !important;
  border: 0 !important;
}

html[data-appearance="night"] .detail-page .detail-actions:first-child > .primary-button {
  background: #e7b3c0 !important;
  color: #2a1520 !important;
}

html .detail-content > button.link-button[data-action="report-character"] {
  min-height: 40px;
  margin: 6px 0 12px;
  font-size: 14px;
  color: #8a4d62;
}

.discover-page :is(.pool-row, .filter-row),
.home-page .filter-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent);
}

.home-page .filter-row::-webkit-scrollbar,
.discover-page .filter-row::-webkit-scrollbar {
  display: none;
}

html .home-page .filter-row > .chip,
html .discover-page .filter-row > .chip {
  background: transparent;
  border-color: transparent;
  color: #8d7380;
  box-shadow: none;
  font-weight: 500;
}

html .home-page .filter-row > .chip.active,
html .discover-page .filter-row > .chip.active {
  background: #f4e3ea;
  color: #7a3452;
  font-weight: 700;
}

html[data-appearance="night"] .home-page .filter-row > .chip,
html[data-appearance="night"] .discover-page .filter-row > .chip {
  color: #cbb8c2;
}

html[data-appearance="night"] .home-page .filter-row > .chip.active,
html[data-appearance="night"] .discover-page .filter-row > .chip.active {
  background: rgba(231, 179, 192, 0.18);
  color: #f4d5df;
}

html .account-page.is-guest .stats {
  display: none;
}

html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) .account-page.is-guest .profile-shortcuts71 {
  display: none;
}

.chat-page .chat-messages > .state-card {
  margin-top: auto;
  align-self: center;
  width: min(440px, calc(100% - 8px));
  background: rgba(255, 250, 247, 0.95);
  color: #3a2a32;
  border-color: rgba(120, 80, 96, 0.18);
}

html[data-appearance="night"] .chat-page .chat-messages > .state-card {
  background: rgba(28, 22, 32, 0.92);
  color: #f4eaf1;
  border-color: rgba(255, 236, 244, 0.16);
}

html .chat-page .model-launch164 {
  width: min(280px, calc(100% - 32px));
  max-width: none;
  margin: 8px auto 6px;
  background: rgba(24, 14, 20, 0.72) !important;
  color: #fff6f2 !important;
  border-color: rgba(255, 236, 244, 0.18) !important;
  box-shadow: none !important;
}

/* Sheets used to dim only the legacy 430px column, so wide pages looked sliced. */
html .modal-backdrop {
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  transform: none;
}

html[data-theme="黑金"][data-appearance="day"] .modal-backdrop {
  background: rgba(47, 29, 41, 0.38);
}

html .modal-backdrop > .sheet {
  width: min(440px, calc(100% - 24px));
  max-height: calc(100dvh - 28px - env(safe-area-inset-bottom, 0px));
  overflow: auto;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  html .modal-backdrop {
    align-items: center;
    padding: 24px;
  }

  html .modal-backdrop > .sheet {
    border-radius: 24px;
  }
}

/* 广场顶部已有「开始创作」，不再叠一只固定加号。 */
html .fab[data-action="new-create"] {
  display: none !important;
}

html .plot-deck {
  scrollbar-width: none;
}

html .plot-deck::-webkit-scrollbar {
  display: none;
  height: 0;
}

html .square-page {
  padding-bottom: calc(176px + env(safe-area-inset-bottom, 0px));
}

html .chat-page .chat-messages:has(.chat-intro) .chat-message-items {
  flex: 1 0 auto;
  min-height: 100%;
  justify-content: flex-end;
}

html .chat-page .chat-intro {
  margin: 8px 16px 12px;
  width: min(440px, calc(100% - 32px));
  justify-self: center;
  justify-items: start;
  text-align: left;
  background: rgba(255, 250, 247, 0.94);
  border: 1px solid rgba(120, 80, 96, 0.16);
  border-style: solid;
  border-radius: 18px;
  color: #3a2a32;
}

html[data-appearance="night"] .chat-page .chat-intro {
  background: rgba(28, 22, 32, 0.92);
  color: #f4eaf1;
  border-color: rgba(255, 236, 244, 0.16);
}

/* Chat list and profile use the same top bar width as home. */
@media (min-width: 768px) {
  html[data-theme="黑金"] #app :is(.conversations-page, .account-page) {
    max-width: none;
    width: 100%;
    margin: 0;
  }
}

html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) .discover-page .pool-row > .chip {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  min-height: 32px;
  padding: 4px 0;
  margin-right: 18px;
  color: #8d7380;
  font-weight: 500;
}

html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) .discover-page .pool-row > .chip.active {
  background: transparent !important;
  color: #7a3452;
  font-weight: 700;
  box-shadow: inset 0 -2px 0 #c47b93 !important;
}

html[data-appearance="night"] #app[data-ui-route]:not(#lq74) .discover-page .pool-row > .chip {
  color: #b7a3ae;
}

html[data-appearance="night"] #app[data-ui-route]:not(#lq74) .discover-page .pool-row > .chip.active {
  color: #f4d5df;
  box-shadow: inset 0 -2px 0 #e7b3c0 !important;
}

html[data-theme="黑金"][data-appearance="night"] #app .auth-switch button {
  color: #b7a3ae !important;
  background: transparent !important;
  font-weight: 500;
}

html[data-theme="黑金"][data-appearance="night"] #app .auth-switch button.active {
  color: #2a1520 !important;
  background: #e7b3c0 !important;
  font-weight: 700;
}

html[data-theme="黑金"][data-appearance="day"] #app .auth-switch button.active {
  color: #7a3452 !important;
  background: #fff !important;
  font-weight: 700;
}

html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) .auth-card .password-input input {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) .auth-card .password-input input:focus-visible {
  outline: 2px solid rgba(196, 123, 147, 0.7);
  outline-offset: 2px;
}

html[data-theme="黑金"][data-appearance] #app[data-ui-route] .conversations-page .section-head {
  justify-content: flex-start;
}

html .conversations-page .section-head > [data-import-chat] {
  margin-left: auto;
}

html .conversations-page .section-head > [data-import-chat] + .icon-button {
  margin-left: 8px;
}

html .conversations-page .menu-item[data-route="groups"] {
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 8px;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  overflow: visible;
  text-align: left;
}

html .conversations-page .menu-item[data-route="groups"] .menu-icon {
  position: static !important;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 14px;
  background: rgba(168, 124, 214, 0.28);
  overflow: hidden;
}

html .conversations-page .menu-item[data-route="groups"] .menu-icon .ui-icon,
html .conversations-page .menu-item[data-route="groups"] > .ui-icon {
  position: static !important;
  margin: 0 !important;
}

html .conversations-page .menu-item[data-route="groups"] > div {
  flex: 1 1 auto;
  min-width: 0;
}

html .conversations-page .menu-item[data-route="groups"] > div small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html .conversations-page .menu-item[data-route="groups"] > .ui-icon {
  margin-left: auto !important;
  flex: 0 0 auto;
}

html .feedback-notice-entry1786 {
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

html .feedback-notice-entry1786 .menu-icon,
html .feedback-notice-entry1786 > .ui-icon {
  position: static !important;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin: 0 !important;
}

html .feedback-notice-entry1786 > div {
  flex: 1 1 auto;
  min-width: 0;
}

html .feedback-notice-entry1786 strong,
html .feedback-notice-entry1786 small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html .feedback-notice-entry1786 > .ui-icon {
  margin-left: auto !important;
  flex: 0 0 auto;
  width: auto;
}

html .group-form-sheet {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(440px, calc(100vw - 32px));
  margin: auto;
  padding: 18px 16px 16px;
  box-sizing: border-box;
}

html .group-form-sheet .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

html .group-form-sheet input,
html .group-form-sheet textarea,
html .group-form-sheet select {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font: inherit;
}

html .group-form-sheet textarea {
  min-height: 84px;
  resize: vertical;
}

html .group-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

html .chat-search-status:empty {
  display: none;
}

html .memory-sheet .memory-content {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  column-count: 1 !important;
  width: 100%;
  min-width: 0;
}

html .memory-sheet .chat-search-results,
html .sheet .chat-search-results {
  display: flex !important;
  flex-flow: column nowrap !important;
  align-items: stretch !important;
  column-count: 1 !important;
  width: 100%;
  max-height: min(52vh, 440px);
  overflow: auto;
  gap: 8px;
}

html .memory-sheet .chat-search-hit,
html .sheet .chat-search-hit {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-areas: "who text" "who time";
  gap: 2px 10px;
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
  float: none !important;
  break-inside: avoid;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  text-align: left;
  white-space: normal;
}

html .memory-sheet .chat-search-hit strong,
html .sheet .chat-search-hit strong {
  grid-area: who;
  align-self: center;
}

html .memory-sheet .chat-search-hit p,
html .sheet .chat-search-hit p {
  grid-area: text;
  margin: 0;
  white-space: normal;
  word-break: break-word;
}

html .memory-sheet .chat-search-hit small,
html .sheet .chat-search-hit small {
  grid-area: time;
  opacity: 0.72;
}

html .chat-search-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

html .chat-search-pager[hidden] {
  display: none !important;
}

html .chat-search-pager button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

html .message > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: max-content;
  max-width: min(100%, calc(100% - 40px));
  min-width: 0;
}

html .message.me > div {
  align-items: flex-end;
}

html .message .message-status {
  position: static !important;
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 6px 0 0;
  padding: 0;
  background: transparent;
  white-space: nowrap;
  line-height: 1.4;
}

/* Model switch sits with the composer, below the portrait. */
html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) .chat-page .model-launch164 {
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  transform: none;
  align-self: center;
  flex: 0 0 auto;
  z-index: 4;
}

/* 创建 now lives in the section head, so the round button no longer covers a card. */
html .fab[data-route="create"] {
  display: none !important;
}

html .home-page .section-head > [data-route="create"].link-button {
  margin-left: auto;
  margin-right: 12px;
}

html .discover-page .section-head [data-route="create"].link-button {
  margin-right: 12px;
}

/* Cover photos were fetched, then dropped by a rounded isolated layer.
   Hover rebuilt that layer, so the picture only appeared under the pointer.
   Paint them in normal flow instead: no isolated group, no transform. */
html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) :is(.character-card.overlay-card167, .character-card.editorial-card73) {
  isolation: auto !important;
  contain: none !important;
  content-visibility: visible !important;
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
  position: relative;
  z-index: 0;
}

html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) :is(.overlay-card167, .editorial-card73) .character-cover,
html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) .detail-cover {
  isolation: auto !important;
  contain: none !important;
  content-visibility: visible !important;
  transform: none !important;
  will-change: auto !important;
}

html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) .night-hero-art {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
}

/* The photo must cover the rounded frame. A translated layer left a white
   strip of the page behind the top corners. Overscan paints past that edge. */
html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) :is(.character-cover, .detail-cover) {
  background: #121016 !important;
  box-shadow: none !important;
}
html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) .character-card.overlay-card167 {
  box-shadow: 0 10px 26px -14px rgba(8, 3, 12, .75) !important;
}
html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) :is(.character-cover, .detail-cover) {
  position: relative !important;
}
html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) :is(.overlay-card167, .editorial-card73) .character-cover > img,
html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) .detail-cover > img,
html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) :is(.character-cover, .detail-cover) > img {
  opacity: 1 !important;
  visibility: visible !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  transform: none !important;
  -webkit-transform: none !important;
  filter: none !important;
  transition: none !important;
  animation: none !important;
  zoom: 1 !important;
  object-fit: cover !important;
  object-position: center 18% !important;
  background: transparent !important;
  z-index: 0 !important;
}

html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) :is(.character-cover, .detail-cover),
html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) :is(.character-cover, .detail-cover).miu-zoom-a,
html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) :is(.character-cover, .detail-cover).miu-zoom-b {
  zoom: 1 !important;
}

/* On a wide page the tab bar stayed a 440px pill and covered the middle of the feed. */
@media (min-width: 840px) {
  html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) .bottom-nav {
    left: 50%;
    right: auto;
    width: min(1120px, calc(100% - 48px));
    max-width: 1120px;
    transform: translateX(-50%);
  }
}

/* Chrome covers are painted as card background-image by index.html; keep children transparent. */
html.miu-chromium[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) .character-card.overlay-card167,
html.miu-chromium[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) .character-card.editorial-card73 {
  isolation: auto !important;
  transform: none !important;
  filter: none !important;
  will-change: auto !important;
  contain: none !important;
  content-visibility: visible !important;
  background-size: cover !important;
  background-position: center 18% !important;
  background-repeat: no-repeat !important;
}
html.miu-chromium[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) :is(.overlay-card167, .editorial-card73) .character-cover {
  background: transparent !important;
  background-image: none !important;
  overflow: visible !important;
  height: 0 !important;
  padding-bottom: 176% !important;
  aspect-ratio: auto !important;
}
html.miu-chromium[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) .editorial-card73 .character-cover {
  padding-bottom: 133.333% !important;
}
html.miu-chromium[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) :is(.overlay-card167, .editorial-card73) .character-cover > img,
html.miu-chromium[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) :is(.overlay-card167, .editorial-card73) .character-cover > .miu-cover-bg {
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
}

/* Short CJK bubbles: min-content collapses to one glyph; use max-content + keep-all. */
html .message > div {
  width: max-content !important;
  max-width: min(86vw, calc(100% - 36px)) !important;
  min-width: 0 !important;
}

html .message .bubble,
html .message > div > p,
html .message > div > .bubble {
  width: max-content !important;
  max-width: min(86vw, 100%) !important;
  box-sizing: border-box;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: keep-all;
  line-break: auto;
}

html .group-chat-page .message {
  max-width: min(86%, 100%);
}

html .group-chat-page .message > div {
  width: max-content !important;
  max-width: min(100%, calc(100vw - 96px)) !important;
  min-width: 0 !important;
}

html .group-chat-page .message .bubble {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

/* 九日契约：已签到的天显示勾选 */
html .checkin-day {
  position: relative;
}
html .checkin-day.claimed {
  color: #c9b4a8;
  border-color: #8f6b4d;
  background: linear-gradient(160deg, rgba(201, 154, 92, 0.18), rgba(40, 32, 36, 0.9));
}
html .checkin-day.claimed b {
  color: #e2c08a;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  opacity: 0.85;
}
html .checkin-day-mark {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  color: #1a1412;
  background: #e2c08a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
html .checkin-day.today:not(.claimed) {
  border-color: #e2c08a;
  box-shadow: inset 0 0 0 1px rgba(226, 192, 138, 0.35);
}
html[data-theme="黑金"] .checkin-day.claimed {
  border-color: #8f6b4d;
  background: linear-gradient(160deg, rgba(201, 154, 92, 0.2), var(--surface));
}

/* 输入框随内容增高 + 聊天底栏永不被裁切 */
html .chat-page .composer #message-input,
html #app.chat-active #composer #message-input {
  min-height: 42px !important;
  max-height: 160px !important;
  height: auto;
  overflow-y: hidden;
  resize: none;
  field-sizing: content;
  transition: height 0.05s ease-out;
}
html #app.chat-active {
  --chat-inset-top: max(0px, calc(var(--miu-safe-top, env(safe-area-inset-top, 0px)) - var(--visible-top, 0px)));
  --chat-inset-bottom: max(0px, calc(var(--miu-safe-bottom, env(safe-area-inset-bottom, 0px)) - var(--chat-bottom-outside, 0px)));
  position: fixed !important;
  top: var(--visible-top, 0px) !important;
  bottom: auto !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  width: min(100%, 960px) !important;
  height: var(--visible-height, 100vh) !important;
  max-height: none !important;
  margin: 0 auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
html.keyboard-open #app.chat-active {
  --chat-inset-bottom: 0px;
}
/* Standalone iOS can report a short visual viewport without a keyboard. */
html.miu-ios-standalone:not(.keyboard-open) #app.chat-active {
  --chat-inset-top: var(--miu-safe-top, env(safe-area-inset-top, 0px));
  --chat-inset-bottom: env(safe-area-inset-bottom, 0px);
  top: 0 !important;
  bottom: 0 !important;
  height: auto !important;
}
html #app.chat-active > .chat-page {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}
html #app.chat-active > .chat-page > .chat-stage {
  flex: 1 1 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
html #app.chat-active > .chat-page > :is(
  .chat-top,
  .model-launch164,
  .quick-actions,
  .composer,
  .composer-quote,
  .chat-image-hint,
  .chat-attachment-preview,
  .chat-reply-pending169,
  .form-hint,
  .role-unavailable-note
) {
  flex: 0 0 auto !important;
}
html .chat-page .composer,
html #app.chat-active #composer {
  display: grid !important;
  align-items: center;
  position: relative;
  z-index: 30 !important;
  flex: 0 0 auto !important;
  min-height: 64px;
  visibility: visible !important;
  opacity: 1 !important;
  background: #161018 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
  padding: 8px max(10px, calc(8px + var(--miu-safe-right, 0px))) max(8px, var(--chat-inset-bottom, 0px)) max(10px, calc(8px + var(--miu-safe-left, 0px))) !important;
}
html #app.chat-active #composer textarea,
html #app.chat-active #composer #message-input {
  background: #2a2232 !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  color: #fff8f4 !important;
  min-height: 42px !important;
}

html .group-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 20px 16px;
}

html .group-row {
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  margin: 0;
  padding: 12px 14px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  color: inherit;
  text-align: left;
  box-shadow: none;
}

html .group-row-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(168, 124, 214, 0.28);
  overflow: hidden;
}

html .group-row-icon .ui-icon {
  position: static !important;
  margin: 0 !important;
}

html .group-row-copy {
  flex: 1 1 auto;
  min-width: 0;
}

html .group-row-copy strong,
html .group-row-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html .group-row-copy strong {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.3;
}

html .group-row-copy small {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.72;
}

html .group-row-count {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex: 0 0 auto;
  margin-left: auto;
  gap: 2px;
  min-width: 42px;
  font-size: 12px;
  line-height: 1;
  opacity: 0.86;
}

html .group-row-count b {
  font-size: 18px;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
}

html .group-row > .ui-icon {
  position: static !important;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0 0 0 2px !important;
}

/* miu-layout-center-grey-fix-2211 */
/* 1) 壳子居中，避免宽屏贴左留一大块黑边 */
html[data-theme="黑金"] .app-shell,
html[data-theme="黑金"] #app.app-shell {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 2) 平板宽度仍按单列首页排，内容铺满再略收边 */
@media (max-width: 899px) {
  html[data-theme="黑金"][data-appearance] #app[data-ui-route] .home-lead73 {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin: 12px 16px 8px !important;
  }
  html[data-theme="黑金"][data-appearance] #app[data-ui-route] .home-feature73 .atelier-hero73 {
    width: 100%;
    margin: 0 !important;
  }
  html[data-theme="黑金"][data-appearance] #app[data-ui-route] .home-companion73 {
    width: 100%;
  }
}

/* 3) 角色栅格铺满容器并居中 */
html[data-theme="黑金"][data-appearance] #app[data-ui-route] .grid,
html[data-theme="黑金"][data-appearance] #app[data-ui-route] .square-section .grid {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-left: 0;
  margin-right: 0;
  justify-content: center;
}
@media (min-width: 768px) and (max-width: 1100px) {
  html[data-theme="黑金"][data-appearance] #app[data-ui-route] .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* 4) 消息条：整行可用，去掉发灰的玻璃底 */
html[data-theme="黑金"][data-appearance] #app[data-ui-route] .home-page .notice-strip {
  display: flex;
  align-items: center;
  width: auto;
  box-sizing: border-box;
  margin: 8px 16px 12px !important;
  padding: 12px 14px !important;
  gap: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.045) !important;
}
html[data-theme="黑金"][data-appearance] #app[data-ui-route] .home-page .notice-strip > div {
  flex: 1;
  min-width: 0;
}
html[data-theme="黑金"][data-appearance] #app[data-ui-route] .home-page .notice-strip strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap !important;
  text-overflow: ellipsis;
}
html[data-theme="黑金"][data-appearance] #app[data-ui-route] .home-page .notice-strip small {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal !important;
}
html[data-theme="黑金"][data-appearance] #app[data-ui-route] .home-page .notice-strip > .ui-icon {
  flex: none;
  opacity: 0.72;
}
html[data-theme="黑金"][data-appearance] #app[data-ui-route] .notice-strip-icon,
html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) .notice-strip-icon {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border-radius: 9px !important;
  background: rgba(226, 192, 138, 0.16) !important;
  box-shadow: none !important;
  color: #e2c08a !important;
}
html[data-theme="黑金"][data-appearance] #app[data-ui-route] .notice-strip-icon .ui-icon,
html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) .notice-strip-icon .ui-icon {
  color: #e2c08a !important;
  filter: none !important;
}

html[data-theme="黑金"] .chat-page .opening-shown {
  line-height: 1.75;
}
html[data-theme="黑金"] .chat-page .opening-more {
  display: inline-flex;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e7c39a;
  font-size: 13px;
  line-height: 1.4;
}
html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) .chat-page > .composer {
  position: relative;
  z-index: 4;
  flex-shrink: 0;
  background: #1c1522 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
  padding: 8px max(12px, calc(8px + var(--miu-safe-right, 0px)))
    calc(8px + var(--chat-inset-bottom, 0px)) max(12px, calc(8px + var(--miu-safe-left, 0px))) !important;
}
html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) .chat-page > .composer textarea {
  background: #2c2433 !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  color: #fff8f4 !important;
}
html[data-theme="黑金"][data-appearance="day"] #app[data-ui-route]:not(#lq74) .chat-page > .composer {
  background: #fffaf6 !important;
  border-top: 1px solid rgba(80, 40, 60, 0.14) !important;
}
html[data-theme="黑金"][data-appearance="day"] #app[data-ui-route]:not(#lq74) .chat-page > .composer textarea {
  background: #fff !important;
  border: 1px solid rgba(80, 40, 60, 0.2) !important;
  color: #3a2a34 !important;
}

/* 5) 群聊入口：不被圆角裁切，整行铺满 */
html[data-theme="黑金"][data-appearance] #app[data-ui-route] .conversations-page .menu-list,
html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) .conversations-page .menu-list {
  overflow: visible !important;
  margin: 10px 16px !important;
  padding: 6px 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.04) !important;
}
html[data-theme="黑金"][data-appearance] #app[data-ui-route] .conversations-page .menu-item {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px !important;
  gap: 14px !important;
  border-radius: 0;
  background: transparent !important;
}
html[data-theme="黑金"][data-appearance] #app[data-ui-route] .conversations-page .menu-icon,
html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) .conversations-page .menu-icon {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 12px !important;
  background: linear-gradient(150deg, #c9a0e8, #7a5bb0) !important;
  box-shadow: none !important;
  flex-shrink: 0;
}
html[data-theme="黑金"][data-appearance] #app[data-ui-route] .conversations-page .menu-item > div {
  flex: 1;
  min-width: 0;
  text-align: left;
}
html[data-theme="黑金"][data-appearance] #app[data-ui-route] .conversations-page .menu-item strong {
  display: block;
  font-size: 15px;
}
html[data-theme="黑金"][data-appearance] #app[data-ui-route] .conversations-page .menu-item small {
  display: block;
  margin-top: 4px;
  opacity: 0.75;
}

/* 6) 角色卡顶部灰帽：盖图铺满，减弱顶部灰雾 */
html[data-theme="黑金"][data-appearance] #app[data-ui-route] .character-card.overlay-card167 {
  background: #100c14 !important;
}
html[data-theme="黑金"][data-appearance] #app[data-ui-route] .character-card.overlay-card167 .character-cover {
  background: #100c14 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  aspect-ratio: 5 / 8.4 !important;
  overflow: hidden !important;
  border-radius: inherit;
}
html[data-theme="黑金"][data-appearance] #app[data-ui-route] .character-card.overlay-card167 .character-cover > img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center 16% !important;
  transform: none !important;
}
html[data-theme="黑金"][data-appearance] #app[data-ui-route] .character-card.overlay-card167 .character-cover::after {
  background: linear-gradient(
    180deg,
    rgba(8, 5, 10, 0.12) 0%,
    rgba(8, 5, 10, 0) 18%,
    rgba(8, 5, 10, 0) 48%,
    rgba(8, 5, 10, 0.55) 72%,
    rgba(8, 5, 10, 0.92) 100%
  ) !important;
}

/* 通用菜单图标：去掉发脏的高光灰层 */
html[data-theme="黑金"][data-appearance] #app[data-ui-route]:not(#lq74) .menu-icon {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 2px 6px -3px rgba(0, 0, 0, 0.45) !important;
  background-image: linear-gradient(150deg, var(--lq-chip-a, #d9a0b8), var(--lq-chip-b, #9a5a86)) !important;
}
/* /miu-layout-center-grey-fix-2211 */


/* 快捷回复条：窄屏横向滑动，避免右侧被裁 */
html #app.chat-active > .chat-page > .quick-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px;
  max-width: 100%;
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
html #app.chat-active > .chat-page > .quick-actions::-webkit-scrollbar {
  display: none;
  height: 0;
}
html #app.chat-active > .chat-page > .quick-actions > * {
  flex: 0 0 auto;
}

/* 开场白里的场景描述和聊天消息用同一套样式。
   消息气泡的规则限定在 .bubble 内，而开场白渲染在 .opening-shown 里，
   所以同一段（动作）文字在开场白里一直没有黄色底和左侧金色竖线。 */
html[data-theme] .chat-page .opening-shown .chat-narration,
html[data-theme] .chat-page .long-opening .chat-narration {
  display: block;
  margin-block: 8px;
  padding: 9px 12px;
  border-left: 3px solid #d9b977;
  border-radius: 0 9px 9px 0;
  background: #d9b9771d;
  color: #dfc8a4;
  font-style: normal;
  line-height: 1.75;
  text-shadow: none;
}
html[data-theme=\6d45\8272] .chat-page .opening-shown .chat-narration,
html[data-theme=\7c89\8272] .chat-page .opening-shown .chat-narration,
html[data-theme=\6d45\8272] .chat-page .long-opening .chat-narration,
html[data-theme=\7c89\8272] .chat-page .long-opening .chat-narration {
  background: #f5e9ed;
  color: #704e64;
  border-color: #c889a2;
}
/* 对话段落之间保留换行，否则整段会挤成一行。 */
html[data-theme] .chat-page .opening-shown .chat-dialogue,
html[data-theme] .chat-page .long-opening .chat-dialogue {
  white-space: pre-wrap;
}

/* 普通消息同样需要保留换行：解析器现在用 \n 连接对话行。 */
html[data-theme] .chat-page .message .bubble .chat-dialogue {
  white-space: pre-wrap;
}

/* 标题栏和输入区各自承接一侧安全区，背景仍铺至可见视口边缘。 */
html #app.chat-active > .chat-page > .chat-top,
html[data-theme][data-appearance] #app.chat-active[data-ui-route]:not(#lq74):not(#miu-lq169-off) > .chat-page > .chat-top {
  min-height: calc(62px + var(--chat-inset-top));
  padding-top: calc(8px + var(--chat-inset-top));
  padding-bottom: 8px;
  padding-left: max(12px, calc(8px + var(--miu-safe-left, 0px)));
  padding-right: max(12px, calc(8px + var(--miu-safe-right, 0px)));
}
html[data-appearance="day"] #app.chat-active #composer #message-input {
  background: #fffaf7 !important;
  border-color: #58304335 !important;
  color: #3a2a34 !important;
}
html[data-appearance="day"] #app.chat-active #composer #message-input::placeholder {
  color: #786871;
}
html #app.chat-active > .chat-page > .chat-backdrop > img {
  --chat-image-bleed: calc(var(--chat-bg-blur, 0px) * 2);
  width: calc(100% + 2 * var(--chat-image-bleed));
  height: calc(100% + 2 * var(--chat-image-bleed));
  margin: calc(-1 * var(--chat-image-bleed));
  transform: none;
}
@media (max-width: 767px), (orientation: landscape) and (max-height: 520px) {
  html #app.chat-active #composer #message-input {
    font-size: 16px;
  }
  html.keyboard-open #app.chat-active > .chat-page > .quick-actions,
  html.keyboard-open #app.chat-active > .chat-page > .model-launch164 {
    display: none !important;
  }
  html.keyboard-open #app.chat-active #composer #message-input {
    max-height: min(96px, 24vh) !important;
    overflow-y: auto !important;
  }
  html.keyboard-open #app.chat-active > .chat-page > .chat-backdrop > img {
    min-height: calc(var(--chat-cover-height, 0px) + 2 * var(--chat-image-bleed));
  }
}
@media (max-width: 430px) {
  html #app.chat-active #composer {
    grid-template-columns: repeat(3, 44px) minmax(0, 1fr) 44px;
    gap: 4px;
  }
  html #app.chat-active #composer > .icon-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }
}

/* The lock settings use the existing settings state and controls. */
[data-app-lock-open] .app-lock-menu-icon {
  background: linear-gradient(145deg, #ad82b1, #78466c);
  color: #fff9ff;
}
#miu-app-lock > .pad[hidden] { display: none; }
#miu-app-lock > .app-lock-sheet {
  --lock-paper: #fffaf7;
  --lock-ink: #372736;
  --lock-muted: #725c6d;
  --lock-line: #e8d9e1;
  --lock-field: #fff;
  --lock-accent: #74406d;
  position: fixed;
  inset: var(--visible-top, 0px) 0 auto;
  box-sizing: border-box;
  height: var(--visible-height, 100vh);
  overflow: auto;
  display: flex;
  justify-content: center;
  padding: max(16px, var(--miu-safe-top, 0px)) max(14px, var(--miu-safe-right, 0px))
    max(16px, var(--miu-safe-bottom, 0px)) max(14px, var(--miu-safe-left, 0px));
  background: #170d1ac9;
  overscroll-behavior: contain;
}
#miu-app-lock > .app-lock-sheet[hidden] { display: none; }
html[data-appearance="night"] #miu-app-lock > .app-lock-sheet,
html[data-theme="深色"]:not([data-appearance="day"]) #miu-app-lock > .app-lock-sheet {
  --lock-paper: #2b222e;
  --lock-ink: #f9eaf3;
  --lock-muted: #dac0d0;
  --lock-line: #604959;
  --lock-field: #352936;
  --lock-accent: #e9b6d9;
}
#miu-app-lock .app-lock-card {
  box-sizing: border-box;
  width: min(100%, 400px);
  margin: auto 0;
  padding: 20px;
  display: grid;
  gap: 16px;
  border: 1px solid var(--lock-line);
  border-radius: 24px;
  background: var(--lock-paper);
  color: var(--lock-ink);
  box-shadow: 0 18px 60px #10081360;
  font: 500 14px/1.45 system-ui, sans-serif;
}
#miu-app-lock .app-lock-heading { display: flex; align-items: center; gap: 12px; }
#miu-app-lock .app-lock-emblem {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center; border-radius: 14px;
  color: #fff7fc; background: linear-gradient(145deg, #986588, #6d3b64);
}
#miu-app-lock .app-lock-heading h2 { margin: 0; font: 700 20px/1.25 system-ui, sans-serif; }
#miu-app-lock .app-lock-heading small { display: block; margin-top: 3px; color: var(--lock-muted); }
#miu-app-lock .app-lock-field { display: grid; gap: 6px; font-weight: 650; }
#miu-app-lock .app-lock-field input,
#miu-app-lock .app-lock-field select {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--lock-line);
  border-radius: 12px;
  padding: 0 12px;
  background: var(--lock-field);
  color: var(--lock-ink);
  font: 500 16px/1.4 system-ui, sans-serif;
}
#miu-app-lock .app-lock-field input::placeholder { color: var(--lock-muted); }
#miu-app-lock .app-lock-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#miu-app-lock .app-lock-actions button {
  height: 44px; border-radius: 12px;
  font: 650 14px/1.2 system-ui, sans-serif;
  background: var(--lock-field); color: var(--lock-ink); border: 1px solid var(--lock-line);
}
#miu-app-lock .app-lock-actions button[type="submit"] { background: #77446c; color: #fff7fc; border-color: transparent; }
#miu-app-lock .app-lock-actions [data-off] { grid-column: 1 / -1; background: transparent; color: var(--lock-accent); }
#miu-app-lock .app-lock-actions [data-off][hidden] { display: none; }
#miu-app-lock .app-lock-card button:focus,
#miu-app-lock .app-lock-card input:focus,
#miu-app-lock .app-lock-card select:focus { outline: 2px solid var(--lock-accent); outline-offset: 2px; }

html #app.chat-active .message .bubble .chat-dialogue,
html #app.chat-active .message .bubble .chat-narration {
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
}
html #app.chat-active .message .bubble .chat-literal { white-space: pre-wrap; }

/* Chat recovery and announcement surfaces use the same night/day theme tokens. */
.credit-recovery-sheet{width:min(100%,440px);max-height:min(90dvh,680px)}
.credit-recovery-paths{display:grid;gap:8px;margin:18px 0 12px}
.credit-recovery-paths>button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:12px 14px;min-height:56px;text-align:left;border-radius:14px;gap:3px}
.credit-recovery-paths span{display:block;font-size:12px;line-height:1.45;color:inherit;opacity:.84}
.credit-recovery-close{width:100%;text-align:center;min-height:44px}
html[data-appearance="day"] .credit-recovery-sheet,
html[data-appearance="day"] .growth175-popup .growth175-popup-sheet,
html[data-appearance="day"] .lifecycle-backdrop .lifecycle-sheet{background:#fffaf7;color:#382934;border-color:#ead9df}
html[data-appearance="day"] .credit-recovery-sheet .sheet-subtitle,
html[data-appearance="day"] .growth175-popup .growth175-popup-sheet p,
html[data-appearance="day"] .lifecycle-backdrop .lifecycle-body{color:#685365}
html[data-appearance="day"] .credit-recovery-paths>.secondary-button,
html[data-appearance="day"] .growth175-popup .growth175-secondary{background:#fff6fa;color:#493345;border-color:#dfcad5}
html[data-appearance="day"] .credit-recovery-sheet .credit-recovery-primary,
html[data-appearance="day"] .growth175-popup .growth175-primary{background:#764469;color:#fff;border-color:#764469}
@media(max-width:430px){.credit-recovery-sheet{max-height:calc(var(--visible-height,100dvh) - 12px);padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}}

.notification-center .notice-tabs{display:flex;gap:6px;flex-wrap:wrap}
.notification-center .notice-tabs button{min-height:40px;padding-inline:12px}
.notification-center .notice-list172{gap:8px}
.notification-center .notice-entry{min-height:84px;align-items:start;content-visibility:auto;contain-intrinsic-size:auto 108px}
.notification-center .notice-entry-content{min-width:0}
.notification-center .notice-entry-summary{overflow-wrap:anywhere}
.notification-center .notice-card-icon{display:grid;place-items:center;inline-size:36px;block-size:36px;border-radius:12px}
.notification-center .notice-card-icon[data-notice-group="interactions"]{background:#6d3d63;color:#fff}
.notification-center .notice-card-icon[data-notice-group="rewards"]{background:#785037;color:#fff}
html[data-appearance="day"] .notification-center .notice-card-icon[data-notice-group="interactions"]{background:#f8dfed;color:#773c66}
html[data-appearance="day"] .notification-center .notice-card-icon[data-notice-group="rewards"]{background:#f9e7d7;color:#824f30}
.notification-center :is(.notice-entry,.notice-tabs button,.notice-more172):focus-visible{outline:2px solid #a87793;outline-offset:2px}
.comment-item.comment-from-inbox{outline:2px solid #a87793;outline-offset:-2px;border-radius:12px}
@media(max-width:430px){.notification-center .notice-tabs button{min-height:44px;padding-inline:10px}}
html[data-theme][data-appearance] #app[data-ui-route]:not(#lq74):not(#miu-lq169-off):not(#miu-lq172-off) .notification-center .notice-entry{
  min-height:108px;
  padding:12px 14px;
  contain-intrinsic-size:auto 120px;
}
html[data-theme][data-appearance] #app[data-ui-route]:not(#lq74):not(#miu-lq169-off):not(#miu-lq172-off) .notification-center .notice-entry-meta{
  min-height:23px;
  margin-bottom:4px;
}
.notification-center .secondary-head h1{font-size:clamp(24px,5.8vw,31px)}
.notification-center .notice-entry-content{display:grid;align-content:start;gap:4px}
.notification-center .notice-entry-summary{margin-block:0;line-height:1.45}
.notification-center .notice-entry-footer{margin-top:3px}
.notification-center .notice-card-icon[data-notice-group]{background-image:none}

/* Growth cards follow the active app appearance. */
html {
  --growth-surface: #fffaf8;
  --growth-tint: #f8edf2;
  --growth-line: #e9dce3;
  --growth-ink: #382630;
  --growth-muted: #735968;
  --growth-accent: #884762;
  --growth-on-accent: #fff;
}
html[data-appearance="night"] {
  --growth-surface: #27212c;
  --growth-tint: #352932;
  --growth-line: #4f3d4a;
  --growth-ink: #f7edf3;
  --growth-muted: #cdbac7;
  --growth-accent: #efb7ce;
  --growth-on-accent: #291a25;
}
.growth-picks-entry, .growth-pick-role {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 1px solid var(--growth-line);
  border-radius: 15px;
  background: var(--growth-surface);
  color: var(--growth-ink);
}
.growth-pick-role strong { display: block; font-size: 14px; }
.growth-pick-role small { display: block; margin-top: 4px; font-size: 12px; color: var(--growth-muted); line-height: 1.42; overflow-wrap: anywhere; }
.growth-share-emblem {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--growth-tint);
  color: var(--growth-accent);
  border: 1px solid var(--growth-line);
}
html[data-appearance] .modal-backdrop > .sheet:is(.growth-share-sheet,.growth-picker-sheet) {
  color: var(--growth-ink);
  background: var(--growth-surface);
  max-height: 88dvh;
  border: 1px solid var(--growth-line);
}
.growth-share-sheet .growth-share-card { background: var(--growth-tint); border-color: var(--growth-line); }
.growth-share-sheet .growth-share-card small { color: var(--growth-muted); }
.growth-share-sheet .growth-share-opening {
  margin: 10px 0 12px;
  border-color: var(--growth-accent);
  color: var(--growth-muted);
}
.growth-share-reward {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  background: var(--growth-tint);
  border: 1px solid var(--growth-line);
  border-radius: 12px;
  margin-bottom: 12px;
}
.growth-share-reward strong { display: block; color: var(--growth-accent); font-size: 13px; }
.growth-share-reward p {
  margin: 3px 0 0;
  color: var(--growth-ink);
  font-size: 12px;
  line-height: 1.5;
}
.growth-share-sheet .growth-share-link, .growth-picker-sheet .growth-share-link, .growth-invite-code .growth-share-link {
  color: var(--growth-muted);
}
.growth-share-sheet .growth-share-link input, .growth-picker-sheet .growth-share-link input, .growth-invite-code .growth-share-link input {
  min-width: 0;
  border-color: var(--growth-line);
  background: var(--growth-surface);
  color: var(--growth-ink);
}
.growth-share-sheet .growth-share-status, .growth-picker-sheet .growth-share-status {
  color: var(--growth-muted);
  font-size: 11px;
}
#app .growth-picks-entry {
  width: auto;
  margin: 10px 20px 14px;
  padding: 12px;
  background: var(--growth-tint);
}
.growth-picks-entry h3 { margin: 0 0 4px; font-size: 15px; }
.growth-picks-entry p { margin: 0; color: var(--growth-muted); font-size: 12px; line-height: 1.4; }
.growth-picks-entry .primary-button { min-height: 40px; padding: 7px 10px; white-space: nowrap; }
.growth-pick-role {
  width: 100%;
  min-height: 63px;
  padding: 7px 9px;
  text-decoration: none;
}
.growth-pick-role img { width: 54px; height: 55px; object-fit: cover; border-radius: 9px; }
.growth-picker-roles {
  display: grid;
  gap: 6px;
  max-height: min(36dvh, 300px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1px;
}
.growth-pick-role[aria-pressed="true"] { background: var(--growth-tint); border-color: var(--growth-accent); }
.growth-pick-check { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid var(--growth-line); border-radius: 50%; }
.growth-pick-check .mi { opacity: 0; }
.growth-pick-role[aria-pressed="true"] .growth-pick-check { background: var(--growth-accent); color: var(--growth-on-accent); }
.growth-pick-role[aria-pressed="true"] .growth-pick-check .mi { opacity: 1; }
.growth-picker-footer { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 10px; }
.growth-picker-footer .growth-picker-meter, .growth-picker-footer .growth-share-link, .growth-picker-footer > small { grid-column: 1/-1; }
.growth-picker-footer .growth-share-link[hidden] { display: none; }
.growth-picker-meter { color: var(--growth-muted); font-size: 12px; }
.growth-picks-hero, .growth-picks-roles, .growth-picks-footer { width: min(calc(100% - 36px), 690px); margin-inline: auto; }
.growth-picks-hero {
  padding: 16px;
  margin-block: 14px 10px;
  color: var(--growth-ink);
  background: var(--growth-tint);
  border: 1px solid var(--growth-line);
  border-radius: 17px;
}
.growth-picks-hero h1 { margin: 9px 0 3px; font-size: clamp(22px,6vw,34px); }
.growth-picks-hero p, .growth-picks-footer p { margin: 0; color: var(--growth-muted); font-size: 13px; line-height: 1.55; }
.growth-picks-roles { display: grid; gap: 7px; }
.growth-picks-footer { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 14px 22px; padding: 10px 1px 0; }
.growth-picks-footer p { width: 100%; }
.growth-picks-footer a { text-decoration: none; }
.growth-picks-footer :is(a,button) { min-width: 108px; min-height: 44px; padding: 8px 15px; }
.growth-picks-footer .primary-button, .growth-picker-footer .primary-button {
  background: var(--growth-accent);
  color: var(--growth-on-accent);
}
#app .growth-rank-page .chip[aria-pressed="true"] { border-color: var(--growth-accent); color: var(--growth-accent); }

/* Narrow additions to the existing Home, role, invite and rankings layouts. */
.home-notice-stack {
  display: grid;
  gap: 8px;
  margin: 8px 16px 12px;
}
html[data-appearance] #app[data-ui-route] .home-page .home-notice-stack > button.notice-strip {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  margin: 0 !important;
  text-align: left;
  font-family: inherit;
}
.home-notice-stack .notice-strip-copy { min-width: 0; }
.home-notice-stack .notice-strip-copy small { overflow-wrap: anywhere; }
#app .growth-share-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  margin: 10px 0 16px;
}
#app .growth-share-entry > .growth-share-button,
#app .growth-share-entry > .gift-entry {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 56px;
  margin: 0;
  padding: 8px 13px;
  text-align: left;
  white-space: normal;
}
#app .growth-share-entry > button > :first-child,
#app .growth-share-entry > button > :last-child {
  justify-self: center;
}
#app .growth-share-entry .growth-share-copy,
#app .growth-share-entry .notice-strip-copy { min-width: 0; }
#app .growth-share-entry .growth-share-copy strong,
#app .growth-share-entry .growth-share-copy small,
#app .growth-share-entry .notice-strip-copy strong,
#app .growth-share-entry .notice-strip-copy small {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
}
.growth-share-copy small {
  margin-top: 2px;
  color: var(--growth-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}
.growth-share-card {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: 12px;
  padding: 9px;
  border: 1px solid var(--growth-line);
  border-radius: 12px;
}
.growth-share-card img { width: 68px; height: 77px; border-radius: 9px; object-fit: cover; }
.growth-share-card strong { display: block; margin: 4px 0; font-size: 17px; overflow-wrap: anywhere; }
.growth-share-card small { font-size: 12px; }
.growth-share-opening { font-size: 13px; padding: 7px 10px; line-height: 1.55; border-left: 2px solid; overflow-wrap: anywhere; }
.growth-share-link { display: grid; gap: 5px; font-size: 12px; margin-bottom: 9px; }
.growth-share-link input { width: 100%; border: 1px solid; border-radius: 9px; padding: 9px; }
.growth-share-status { display: block; min-height: 1.5em; margin-top: 5px; }
.growth-invite-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin: 8px 0; }
.growth-invite-metrics > div { display: flex; flex-direction: column-reverse; align-items: center; padding: 8px 4px; border: 1px solid var(--growth-line); border-radius: 10px; }
.growth-invite-metrics dd { margin: 0; color: var(--growth-accent); font-size: 20px; font-weight: 700; }
.growth-invite-metrics dt, .growth-invite-paid, .growth-invite-visibility small { color: var(--growth-muted); font-size: 12px; }
.growth-invite-visibility { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--growth-line); padding-top: 9px; }
.growth-invite-visibility small { display: block; margin-top: 3px; }
.growth-invite-visibility button { flex: none; min-height: 42px; }
.growth-invite-actions, .growth-rank-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 9px 0; }
#app .growth-rank-page .growth-rank-select { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 5px; }
#app .growth-rank-page :is(.growth-rank-select,.growth-rank-controls,.growth-rank-actions,.growth-rank-time) { margin-inline: 18px; }
#app .growth-rank-select > button { min-height: 40px; padding: 6px 2px; white-space: nowrap; }
.growth-rank-periods { display: flex; flex-wrap: wrap; gap: 5px; margin-block: 8px; }
.growth-rank-head, .growth-rank-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.growth-rank-head h2 { margin: 0; font-size: 17px; }
.growth-rank-head > span { font-size: 11px; white-space: nowrap; color: var(--growth-accent); }
.growth-rank-meta, .growth-rank-time { color: var(--growth-muted); font-size: 11px; }
.growth-rank-meta { border-top: 1px solid var(--growth-line); padding-top: 4px; }
.growth-rank-row > span:not(.growth-rank-avatar) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.growth-rank-row > em { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
#app .growth-rank-row > :is(img,.growth-rank-avatar) { flex: none; width: 38px; height: 38px; object-fit: cover; }
.growth-rank-avatar { display: grid; place-items: center; border-radius: 8px; background: var(--growth-tint); color: var(--growth-accent); }
.invite-rank-avatar { position: relative; overflow: hidden; }
.invite-rank-avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.invite-rank-avatar > img[hidden] { display: none; }
.growth-rank-more { margin: 8px 18px; }
@media(max-width: 540px) {
  #app .growth-rank-page .growth-rank-select { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width: 430px) {
  .growth-share-link input { font-size: 16px; }
  .growth-rank-row > em small { font-size: 10px; }
}

.growth-invite-code .invite-code-actions {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  margin: 6px 0 11px;
}
.growth-invite-code .invite-code-actions > button {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding-inline: 6px;
  font-size: 12px;
}
.invite-starlight-rule {
  margin-block: 8px;
  padding: 12px;
  border: 1px solid var(--growth-line);
  border-radius: 12px;
}
.invite-starlight-rule strong {
  display: block;
  margin-block: 6px;
  color: var(--growth-accent);
  font-size: 21px;
}
.invite-starlight-rule p { margin: 0; }
.growth-invite-progress details.growth-invite-visibility { display: block; }
.growth-invite-visibility > summary {
  cursor: pointer;
  color: var(--growth-muted);
  font-size: 12px;
}
.growth-invite-privacy { display: flex; gap: 8px; justify-content: space-between; align-items: center; margin-top: 4px; }
.modal-backdrop .invite-poster-sheet {
  width: min(100%,680px);
  max-height: min(88dvh,800px);
  padding-bottom: max(14px,env(safe-area-inset-bottom));
}
.invite-poster-body {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 10px;
}
.invite-poster-choices { min-width: 0; }
.invite-poster-choices > p { margin: 0 0 7px; }
.invite-poster-gallery {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 1px 2px 5px;
  scrollbar-width: thin;
}
.invite-poster-choice {
  display: grid;
  flex: 0 0 69px;
  justify-items: center;
  gap: 4px;
  padding: 5px 2px;
  border: 1px solid var(--growth-line);
  border-radius: 10px;
  background: var(--growth-tint);
  color: var(--growth-muted);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.invite-poster-choice[aria-pressed="true"] { border-color: var(--growth-accent); color: var(--growth-accent); }
.invite-poster-choice img { width: 42px; height: 63px; object-fit: cover; border-radius: 5px; }
.invite-poster-frame {
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--growth-line);
  border-radius: 14px;
  background: var(--growth-tint);
  min-height: 130px;
}
.invite-poster-preview {
  display: block;
  max-width: 100%;
  width: min(215px, 43vh);
  height: auto;
  border-radius: 8px;
}
.invite-poster-preview[hidden] { display: none; }
.invite-poster-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.invite-poster-actions > * { min-height: 43px; text-decoration: none; }
.invite-poster-actions > a:not([href]) { opacity: .45; cursor: default; }
.invite-poster-note { margin: 7px 0 0; color: var(--growth-muted); font-size: 12px; line-height: 1.5; }
@media(min-width: 650px) {
  .invite-poster-body { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; }
  .invite-poster-gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
  .invite-poster-choice { min-width: 0; }
}

/* Discover popular roles */
.discover-hot-carousel {
  margin: 13px 20px 17px;
}
.discover-hot-carousel[hidden],
.discover-hot-track[hidden],
.discover-hot-retry[hidden] {
  display: none;
}
.discover-hot-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 1px 8px;
}
.discover-hot-heading h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 720;
}
.discover-hot-controls {
  display: flex;
  gap: 6px;
}
.discover-hot-controls button,
.discover-hot-retry {
  background: rgba(155, 83, 111, .08);
  color: inherit;
  border: 1px solid rgba(155, 83, 111, .14);
}
.discover-hot-controls button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  font: inherit;
  font-size: 24px;
  line-height: 1;
}
.discover-hot-controls button:disabled {
  opacity: .32;
}
.discover-hot-track {
  --hot-width: clamp(94px, 32vw, 148px);
  --hot-height: calc(var(--hot-width) * 1.55);
  position: relative;
  height: calc(var(--hot-height) + 14px);
  max-width: 450px;
  margin: 0 auto;
  perspective: 720px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.discover-hot-track[aria-busy="true"]::before,
.discover-hot-track[aria-busy="true"]::after {
  position: absolute;
  content: "";
  left: 50%;
  width: var(--hot-width);
  border-radius: 18px;
  pointer-events: none;
}
.discover-hot-track[aria-busy="true"]::before {
  top: 13px;
  height: calc(var(--hot-height) - 13px);
  transform: translateX(-50%);
  box-shadow: calc(var(--hot-width) * -.65) 0 rgba(155, 83, 111, .09),
    calc(var(--hot-width) * .65) 0 rgba(155, 83, 111, .09);
}
.discover-hot-track[aria-busy="true"]::after {
  top: 0;
  height: var(--hot-height);
  transform: translateX(-50%);
  background: rgba(155, 83, 111, .13);
}
.discover-hot-card {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  width: var(--hot-width);
  height: var(--hot-height);
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(144deg, #f5dbdc, #9b7488 44%, #53394d 74%, #d49bb2);
  color: #fff;
  text-align: left;
  isolation: isolate;
  cursor: pointer;
  box-shadow: 0 7px 15px rgba(52, 27, 45, .23);
}
.discover-hot-card[data-slot="center"] {
  z-index: 2;
  background: linear-gradient(143deg, #fff2d9 3%, #f3b2c8 25%, #b878a1 52%, #815e92 74%, #ffdfdd 99%);
  box-shadow: 0 9px 18px rgba(68, 32, 58, .3), 0 0 13px rgba(204, 99, 145, .45);
}
.discover-hot-card img,
.discover-hot-card::after {
  position: absolute;
  top: 1px;
  left: 1px;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  border-radius: 17px;
  pointer-events: none;
}
.discover-hot-card img {
  background: #59434e;
  object-fit: cover;
  object-position: center 32%;
}
.discover-hot-card::after {
  content: "";
  background: linear-gradient(180deg, rgba(253, 211, 229, .13), transparent 19%, transparent 46%, rgba(24, 13, 24, .72) 80%, #180d18 100%);
}
.discover-hot-caption {
  position: absolute;
  z-index: 1;
  right: 9px;
  bottom: 10px;
  left: 9px;
  display: grid;
  justify-items: center;
  gap: 4px;
  text-shadow: 0 1px 4px #160e17;
  pointer-events: none;
}
.discover-hot-caption strong,
.discover-hot-tags span {
  display: block;
  min-width: 0;
  max-width: 100%;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.discover-hot-caption strong {
  font-size: 14px;
  font-weight: 720;
}
.discover-hot-tags {
  display: flex;
  justify-content: center;
  gap: 3px;
  max-width: 100%;
}
.discover-hot-tags:empty {
  display: none;
}
.discover-hot-tags span {
  padding: 2px 4px;
  border: 1px solid rgba(255, 217, 232, .28);
  border-radius: 7px;
  background: rgba(91, 58, 79, .76);
  color: #fff0f5;
  font-size: 10px;
  font-weight: 520;
}
.discover-hot-card[data-slot="left"] .discover-hot-caption {
  right: auto;
  justify-items: start;
}
.discover-hot-card[data-slot="right"] .discover-hot-caption {
  left: auto;
  justify-items: end;
}
.discover-hot-card:not([data-slot="center"]) .discover-hot-caption {
  width: 55%;
}
.discover-hot-card:not([data-slot="center"]) .discover-hot-caption strong {
  font-size: 12px;
}
.discover-hot-card:not([data-slot="center"]) .discover-hot-tags span + span {
  display: none;
}
.discover-hot-card:focus-visible,
.discover-hot-controls button:focus-visible,
.discover-hot-retry:focus-visible {
  outline: 2px solid #c77e9d;
  outline-offset: 3px;
}
.discover-hot-track[data-dragging="true"] .discover-hot-card {
  cursor: grabbing;
}
.discover-hot-retry {
  margin: 5px auto 0;
  display: block;
  padding: 7px 12px;
  border-radius: 12px;
  font: inherit;
  font-size: 12px;
}
.discover-hot-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
html[data-appearance="night"] .discover-hot-card[data-slot="center"] {
  box-shadow: 0 9px 20px rgba(0, 0, 0, .55), 0 0 16px rgba(221, 124, 171, .42);
}

/* Creator workspace */
.creator-studio > .creator-benefit,
.creator-studio > .studio-works,
.creator-studio > .studio-footnote {
  margin-left: 16px;
  margin-right: 16px;
}
.creator-studio .studio-hero {
  margin-bottom: 16px;
}
.creator-studio .creator-benefit,
.create-route .create-card .creator-benefit {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
}
.create-route .create-card .creator-benefit {
  margin: 12px 0 0;
}
.creator-studio .creator-benefit p,
.create-route .create-card .creator-benefit p {
  margin: 5px 0 6px;
  color: var(--muted);
}
.creator-studio .creator-benefit .link-button,
.create-route .creator-benefit .link-button {
  min-height: 36px;
  padding: 5px 0;
  color: var(--ui-accent);
  text-align: left;
}
.studio-works {
  min-width: 0;
  margin-top: 22px;
}
.studio-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.studio-section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}
.studio-section-heading > span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
html[data-theme] #app[data-ui-route] .creator-studio .creator-filter {
  gap: 12px;
  margin: 0 0 14px;
  padding: 0;
}
html[data-theme] #app[data-ui-route] .creator-studio .creator-filter button {
  padding: 8px 6px;
}
.creator-studio .studio-role-list {
  display: grid;
  gap: 12px;
}
html[data-theme] #app[data-ui-route] .creator-studio .studio-role {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface);
  border-color: var(--line);
}
.creator-studio .studio-role-identity {
  flex: 1;
  min-width: 0;
}
.creator-studio .studio-role-identity h3 {
  margin: 0 0 5px;
  font-size: 18px;
  line-height: 1.45;
}
.studio-role-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 9px;
  color: var(--muted);
  font-size: 12px;
}
.studio-role-status .status-pill[data-status="approved"] {
  color: var(--ui-accent);
}
.creator-studio .studio-role-intro {
  margin: 10px 0 0;
  overflow-wrap: anywhere;
}
.creator-studio .studio-role .studio-review {
  margin: 10px 0 0;
  padding: 9px 11px;
  border-left: 2px solid var(--ui-accent);
  border-radius: 0 9px 9px 0;
  background: var(--paper);
}
.studio-metrics,
.studio-earnings dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}
.studio-metrics-single {
  grid-template-columns: minmax(0, 1fr);
}
.studio-hero .studio-metrics {
  margin-bottom: 12px;
}
.studio-metrics > div,
.studio-earnings dl > div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.studio-metrics dt,
.studio-earnings dt {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.studio-metrics dd,
.studio-earnings dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
html[data-theme] #app[data-ui-route] .studio-metrics small {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.studio-earnings {
  margin-top: 10px;
  border-bottom: 1px solid var(--line);
}
.studio-earnings summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  list-style: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.studio-earnings summary::-webkit-details-marker {
  display: none;
}
.studio-earnings summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg);
}
.studio-earnings[open] summary::after {
  transform: rotate(225deg);
}
.studio-earnings dl {
  margin: 0 0 12px;
}
.studio-earnings dd {
  font-size: 14px;
}
.studio-role-actions,
.creator-editor-actions,
.creator-manage-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.studio-role-actions {
  margin-top: 12px;
}
.studio-role-actions button,
.creator-editor-actions button,
.creator-manage-actions button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding-right: 8px;
  padding-left: 8px;
  white-space: normal;
}
.studio-role-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
html[data-theme] #app[data-ui-route] .studio-role-footer small,
html[data-theme] #app[data-ui-route] .studio-role-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.studio-role-footer .studio-role-delete {
  flex: none;
  margin-left: auto;
  min-height: 42px;
  padding: 8px 4px;
  color: var(--danger, #b64b62);
}
.creator-editor-section {
  min-width: 0;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.creator-editor-section > h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.45;
}
.creator-editor-section .form-field:last-child {
  margin-bottom: 0;
}
.creator-editor-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.creator-editor-options .form-field {
  min-width: 0;
  margin: 0;
}
.creator-editor-options select {
  width: 100%;
  max-width: 100%;
}
.creator-editor-actions {
  margin-top: 16px;
}
.creator-editor-note {
  margin-top: 14px;
}
.creator-manage-description {
  margin: 10px 0 20px;
  color: var(--muted);
  line-height: 1.7;
}
.creator-manage-actions .creator-confirm[data-danger="true"] {
  background: #9f3a50;
  color: #fff;
}
@media (min-width: 430px) {
  .creator-editor-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .creator-editor-options > .form-field:first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 360px) {
  html[data-theme] #app[data-ui-route] .creator-studio .creator-filter {
    gap: 4px;
  }
  html[data-theme] #app[data-ui-route] .creator-studio .creator-filter button {
    padding-right: 2px;
    padding-left: 2px;
  }
}
.studio-more {
  display: block;
  min-height: 44px;
  width: 100%;
  margin-top: 12px;
}

/* Home activity navigation and the gift-specific selection mode of Discover. */
.miu-charm{display:inline-block;flex:none;width:38px;height:38px;background:url("../role-gifts/activity-charms.webp") no-repeat;background-size:300% 200%}
.charm-calendar{background-position:0 0}.charm-create{background-position:50% 0}.charm-ticket{background-position:100% 0}.charm-invite{background-position:0 100%}.charm-chat{background-position:50% 100%}.charm-bell{background-position:100% 100%}
.home-page .miu-home-activities{box-sizing:border-box;width:100%;min-width:0;margin:6px 0 9px;overflow:hidden;border-radius:17px;border:1px solid var(--growth-line,var(--line));background:var(--growth-surface,var(--surface));color:var(--growth-ink,var(--ink));box-shadow:0 3px 12px #3925360b}
.miu-home-shortcuts{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);padding:6px 4px 5px}
.home-page .miu-home-shortcut{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;min-height:64px;min-width:0;border:0;border-radius:12px;background:transparent;color:inherit;padding:2px;cursor:pointer}
.miu-home-shortcut strong{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.45;font-weight:650}
.miu-home-shortcut:disabled{opacity:.6}.miu-home-shortcut:active,.miu-home-news:active{background:var(--growth-tint,var(--paper))}
.home-page .miu-home-news{display:flex;align-items:center;gap:7px;width:100%;min-width:0;min-height:40px;border:0;background:transparent;color:inherit;text-align:left;padding:4px 12px;cursor:pointer}
.miu-home-shortcuts+.miu-home-news{border-top:1px solid var(--growth-line,var(--line))}
.miu-home-news .miu-charm{width:19px;height:19px}.miu-home-news>span:nth-child(2){font-size:11px;color:var(--growth-accent,var(--pink-deep));font-weight:700}.miu-home-news strong{font-size:12px;font-weight:500;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.miu-home-news>i,.miu-home-news>span:last-child{font-size:16px}
.gift-discovery.page{padding-bottom:calc(95px + env(safe-area-inset-bottom));min-height:80vh}
.gift-discovery .editorial-intro,.gift-discovery .section-head button[data-route],.gift-discovery + .fab{display:none!important}
.gift-picker-head{display:flex;align-items:center;gap:14px;margin:8px 16px 14px}
.gift-picker-head h1{font:650 23px/1.3 Georgia,"Songti SC",serif;margin:0}.gift-picker-head button,.gift-picker-footer button{border:1px solid var(--growth-line,var(--line));border-radius:18px;background:var(--growth-surface,var(--surface));color:var(--growth-ink,var(--ink));min-height:42px;padding:0 16px;cursor:pointer}
.gift-discovery .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.gift-discovery .gift-pick-card{display:block;position:relative;overflow:hidden;isolation:isolate;aspect-ratio:4/5;min-width:0;width:100%;padding:0;border:2px solid transparent;border-radius:17px;background:var(--growth-tint,var(--paper));color:white;cursor:pointer;text-align:left}
.gift-pick-card img{display:block;width:100%;height:100%;object-fit:cover}.gift-pick-name{position:absolute;inset:auto 0 0;padding:30px 11px 10px;background:linear-gradient(transparent,#17111cdd);font-weight:650;line-height:1.4;overflow-wrap:anywhere}
.gift-tick{position:absolute;right:9px;top:9px;border-radius:50%;width:26px;height:26px;border:2px solid white;background:#221b2880;display:grid;place-items:center;color:#fff;font-weight:bold}
.gift-discovery .gift-pick-card[aria-pressed=true]{border-color:#b95685}.gift-pick-card[aria-pressed=true] .gift-tick{background:#9e3b69}
.gift-picker-footer{position:fixed;z-index:40;bottom:0;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:space-between;gap:12px;width:min(100%,560px);padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:var(--growth-surface,var(--surface));color:var(--growth-ink,var(--ink));border:1px solid var(--growth-line,var(--line));border-radius:22px 22px 0 0;box-shadow:0 -4px 20px #20102014}
.gift-picked-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.gift-picker-footer button{background:#953965;color:white;border:0;flex:none;font-weight:650}.gift-picker-footer button:disabled{opacity:.45}
@media(min-width:800px){.gift-discovery .grid{grid-template-columns:repeat(auto-fill,minmax(155px,1fr))}.miu-home-shortcut .miu-charm{width:42px;height:42px}}

.home-page .top-actions .notice-trigger .miu-charm{width:25px;height:25px}
.home-page .top-actions .support-entry{display:inline-flex;align-items:center;justify-content:center;gap:3px}
.home-page .top-actions .support-entry .ui-icon{display:inline-flex;width:15px;height:15px}
.home-page .top-actions .support-entry svg{width:100%;height:100%}
.home-page .top-actions .appearance-trigger71 .ui-icon{color:var(--growth-accent,var(--ink))}
.home-page + .bottom-nav .nav-item .ui-icon{display:inline-grid;place-items:center;width:29px;height:23px;border-radius:9px}
.home-page + .bottom-nav .nav-item.active .ui-icon{background:var(--growth-tint);color:var(--growth-accent)}
.home-page + .bottom-nav .nav-item:focus-visible,.home-page .top-actions button:focus-visible,.home-page .miu-home-shortcut:focus-visible{outline:2px solid var(--growth-accent);outline-offset:-2px}


/* Wallet and recharge entry */
.wallet-recharge-page {
  --recharge-ink: #392538;
  --recharge-muted: #705a69;
  --recharge-accent: #8b315e;
  --recharge-border: #e9d8e3;
  --recharge-card: #fffbfd;
  --recharge-soft: #f7e9f0;
  --recharge-glow: #ecd5e8;
  --recharge-action: #89365c;
  --recharge-action-text: #fff;
}
html[data-appearance="night"] .wallet-recharge-page {
  --recharge-ink: #fff2f8;
  --recharge-muted: #c4b1bf;
  --recharge-accent: #ffc5df;
  --recharge-border: #554052;
  --recharge-card: #251e2b;
  --recharge-soft: #3c293c;
  --recharge-glow: #52354b;
  --recharge-action: #f1aacc;
  --recharge-action-text: #3d1c32;
}
.wallet-recharge-page .recharge-balance,
.wallet-recharge-page .recharge-catalog {
  margin: 0 16px 14px;
  color: var(--recharge-ink);
}
.wallet-recharge-page .recharge-balance {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  margin-top: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--recharge-border);
  border-radius: 19px;
  background: radial-gradient(ellipse at 93% 5%,var(--recharge-glow),transparent 65%), var(--recharge-card);
}
.recharge-balance-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.recharge-balance-icon {
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 13px;
  background: linear-gradient(145deg,#873558,#a95063);
  color: #fff;
}
.wallet-recharge-page .recharge-balance-icon .ui-icon { font-size: 19px; }
.recharge-balance-main > div { min-width: 0; }
.recharge-balance-main > div > span {
  display: block;
  color: var(--recharge-muted);
  font-size: 11px;
}
.recharge-balance-main strong {
  display: block;
  color: var(--recharge-ink);
  font-size: clamp(23px,5.4vw,29px);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.wallet-recharge-page .recharge-help {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--recharge-accent);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.wallet-recharge-page .recharge-tabs {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 4px;
  margin: 12px 16px 17px;
  padding: 4px;
  border: 1px solid var(--recharge-border);
  border-radius: 16px;
  background: var(--recharge-soft);
}
.wallet-recharge-page .recharge-tabs a {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 7px 3px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--recharge-muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.wallet-recharge-page .recharge-tabs a[aria-current="page"] {
  color: var(--recharge-action-text);
  background: var(--recharge-action);
}
#app .wallet-recharge-page .recharge-catalog > h2 {
  margin: 0 0 10px;
  color: var(--recharge-ink);
  font-size: 17px;
  line-height: 1.3;
}
.recharge-member-current {
  margin: 0 0 8px;
  padding: 0 2px;
  color: var(--recharge-muted);
  font-size: 12px;
  line-height: 1.5;
}
.recharge-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  grid-template-columns: repeat(auto-fit,minmax(min(100%,134px),1fr));
  gap: 9px;
}
.recharge-grid-membership {
  grid-template-columns: minmax(0,1fr);
  grid-template-columns: repeat(auto-fit,minmax(min(100%,210px),1fr));
}
.recharge-offer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--recharge-border);
  border-radius: 17px;
  background: var(--recharge-card);
}
.recharge-offer.has-gift {
  background: radial-gradient(ellipse at top right,var(--recharge-soft),transparent 65%),var(--recharge-card);
}
.recharge-offer-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 8px;
  width: 100%;
}
.recharge-offer-head h3 {
  margin: 0;
  color: var(--recharge-ink);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.recharge-offer-head span {
  color: var(--recharge-muted);
  font-size: 11px;
}
.recharge-offer-price {
  color: var(--recharge-ink);
  font-size: 25px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.recharge-offer-credits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin: 2px 0;
  color: var(--recharge-muted);
  font-size: 11px;
  line-height: 1.5;
}
.recharge-offer-credits b { font-variant-numeric: tabular-nums; }
.recharge-offer-gift {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 5px;
  border-radius: 6px;
  color: var(--recharge-accent);
  background: var(--recharge-soft);
}
.wallet-recharge-page .recharge-offer-gift .ui-icon { font-size: 11px; }
.recharge-member-benefits {
  display: grid;
  gap: 3px;
  margin: 1px 0 3px;
  color: var(--recharge-muted);
}
.recharge-member-benefits small { font-size: 11px; line-height: 1.45; }
.wallet-recharge-page .recharge-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 40px;
  padding: 7px 10px;
  margin-top: auto;
  border: 1px solid var(--recharge-border);
  border-radius: 10px;
  background: var(--recharge-soft);
  color: var(--recharge-accent);
  font-size: 12px;
  font-weight: 750;
}
.recharge-offer .recharge-buy { width: 100%; }
.wallet-recharge-page .recharge-buy .ui-icon { font-size: 16px; }
.recharge-state {
  grid-column: 1/-1;
  padding: 18px 12px;
  border: 1px solid var(--recharge-border);
  border-radius: 16px;
  background: var(--recharge-card);
  color: var(--recharge-muted);
  font-size: 13px;
  text-align: center;
}
.recharge-state p { margin: 0 0 9px; }
.recharge-details {
  display: grid;
  gap: 18px;
  margin: 16px 16px 20px;
}
#app .wallet-recharge-page .recharge-panel {
  display: grid;
  gap: 15px;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--recharge-border);
  border-radius: 19px;
  background: var(--recharge-card);
  color: var(--recharge-ink);
}
.recharge-panel-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
}
.recharge-panel-heading > div { min-width: 0; }
#app .wallet-recharge-page .recharge-panel-heading h2 {
  margin: 0;
  color: var(--recharge-ink);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.3;
}
.recharge-panel-heading p {
  margin: 3px 0 0;
  color: var(--recharge-muted);
  font-size: 12px;
  line-height: 1.35;
}
.recharge-panel-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--recharge-soft);
  color: var(--recharge-accent);
}
.recharge-panel-icon .ui-icon { font-size: 18px; }
.wallet-recharge-page .recharge-panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: auto;
  min-height: 44px;
  padding: 7px 9px;
  border: 1px solid var(--recharge-border);
  border-radius: 12px;
  background: transparent;
  color: var(--recharge-accent);
  font-size: 12px;
  font-weight: 700;
}
.wallet-recharge-page .recharge-panel-link .ui-icon { font-size: 15px; }
.recharge-metrics {
  display: grid;
  gap: 8px;
  margin: 0;
}
.recharge-fund-split { grid-template-columns: repeat(2,minmax(0,1fr)); }
.recharge-activity-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
.recharge-metrics > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 5px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 11px;
  background: var(--recharge-soft);
}
.recharge-activity-metrics > div:first-child dd { color: var(--recharge-accent); }
.recharge-metrics dt {
  color: var(--recharge-muted);
  font-size: 12px;
  line-height: 1.4;
}
.recharge-metrics dd {
  margin: 0;
  color: var(--recharge-ink);
  font-size: 18px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
#app .wallet-recharge-page .recharge-panel-note {
  margin: 0;
  color: var(--recharge-muted);
  font-size: 13px;
  line-height: 1.6;
}
.recharge-panel-note p { margin: 0; }
.recharge-panel-note p + p { margin-top: 5px; }
.recharge-fund-tools {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
}
.recharge-fund-tools button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 59px;
  padding: 7px 3px;
  border: 1px solid var(--recharge-border);
  border-radius: 13px;
  background: var(--recharge-card);
  color: var(--recharge-ink);
  font-size: 12px;
  font-weight: 650;
}
.wallet-recharge-page .recharge-fund-tools .ui-icon {
  color: var(--recharge-accent);
  font-size: 19px;
}
.recharge-benefit-status {
  margin: 0;
  border-block: 1px solid var(--recharge-border);
}
.recharge-benefit-status > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  padding: 9px 0;
}
.recharge-benefit-status > div + div { border-top: 1px solid var(--recharge-border); }
.recharge-benefit-status dt {
  font-size: 14px;
  font-weight: 650;
}
.recharge-benefit-status dd {
  margin: 0;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--recharge-soft);
  color: var(--recharge-muted);
  font-size: 12px;
  text-align: right;
}
.recharge-benefit-status .is-claimable { color: var(--recharge-accent); }
.recharge-benefit-action {
  display: grid;
  gap: 9px;
}
.recharge-benefit-action p,.recharge-benefit-prompt {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}
.recharge-benefit-action strong {
  color: var(--recharge-accent);
  font-size: 15px;
}
.recharge-rules dl { margin: 0; }
.recharge-rules dl > div + div {
  border-top: 1px solid var(--recharge-border);
  margin-top: 11px;
  padding-top: 11px;
}
.recharge-rules dt {
  margin-bottom: 3px;
  font-size: 13px;
  font-weight: 700;
}
.recharge-rules dd {
  margin: 0;
  color: var(--recharge-muted);
  font-size: 13px;
  line-height: 1.65;
}
@media (min-width: 600px) {
  .recharge-fund-split { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .recharge-benefit-action {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
  .recharge-benefit-action .primary-button { width: auto; }
}
.wallet-recharge-page .recharge-help:focus-visible,
.wallet-recharge-page .recharge-tabs a:focus-visible,
.wallet-recharge-page .recharge-buy:focus-visible,
.wallet-recharge-page .recharge-fund-tools button:focus-visible,
.wallet-recharge-page .recharge-panel-link:focus-visible,
#app .account-page .recharge-entry:focus-visible {
  outline: 2px solid #c06592;
  outline-offset: 2px;
}
#app[data-ui-route] .account-page .menu-list > .recharge-entry {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
  text-align: left;
}
.recharge-entry-description {
  display: grid;
  flex: 1;
  gap: 3px;
  min-width: 0;
}
.recharge-entry-description strong,.recharge-entry-description small {
  display: block;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.recharge-entry-description small { margin: 0; }
.recharge-entry-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  min-height: 37px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(116deg,#ae255c,#9c3d47);
  color: #fff;
  box-shadow: 0 4px 12px rgba(174,37,92,.3);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
#app .recharge-entry-cta .ui-icon {
  color: #ffdfb6;
  font-size: 17px;
  animation: recharge-entry-glint 720ms 150ms 1 both;
}
@keyframes recharge-entry-glint {
  50% { opacity: .75; transform: scale(1.26) rotate(-12deg); }
}
@media (prefers-reduced-motion: reduce) {
  #app .recharge-entry-cta .ui-icon { animation: none; }
}
@media (max-width: 350px) {
  #app[data-ui-route="wallet"] .wallet-recharge-page .topbar {
    gap: 5px;
    padding-right: 9px;
    padding-left: 9px;
  }
  #app[data-ui-route="wallet"] .wallet-recharge-page .topbar .brand {
    gap: 4px;
    white-space: normal;
  }
  #app[data-ui-route="wallet"] .wallet-recharge-page .topbar .brand > span,
  #app[data-ui-route="wallet"] .wallet-recharge-page .topbar .brand b {
    white-space: normal;
    overflow: visible;
  }
}

.commission-page { max-width: 680px; margin-inline: auto; }
.commission-page h1, .commission-page h2, .commission-confirm h2 { margin: 0; }
.commission-page .secondary-head { margin-bottom: 14px; }
.commission-page .info-card { margin: 12px 0; padding: 20px; }
.commission-page h2 { font-size: 16px; }
.commission-page .commission-balance { position: relative; overflow: hidden; background: linear-gradient(125deg,rgba(175,97,139,.19),rgba(198,153,93,.1)),var(--surface,transparent); }
.commission-glyph { float: right; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; background: rgba(185,132,150,.18); }
.commission-page .commission-number { margin: 12px 0 6px; color: inherit; font: 650 clamp(28px,7vw,42px)/1.15 Georgia,serif; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.commission-number small { font: 500 13px/1.4 system-ui,sans-serif; }
.commission-convert .primary-button { margin-top: 6px; min-height: 44px; }
.commission-page .commission-ledger { width: 100%; }
.commission-receipt { padding: 0 4px; font-size: 14px; }
.commission-confirm-actions { display: flex; gap: 10px; margin-top: 18px; }
.commission-confirm-actions button { flex: 1; min-height: 44px; }
/* Scope the account typography above the shared info-card and menu themes. */
#app .commission-page .commission-balance {
  background-image: linear-gradient(125deg,rgba(180,100,149,.14),rgba(205,155,95,.07)) !important;
}
#app .commission-page .commission-balance h2 { font-size: 15px !important; }
#app .commission-page p.commission-number {
  margin: 8px 0 !important;
  font-family: Georgia,serif;
  font-size: clamp(32px,7vw,44px) !important;
  font-weight: 600;
  line-height: 1.15 !important;
  color: var(--text,inherit) !important;
}
#app .commission-page .commission-ledger {
  width: calc(100% - 40px);
  margin: 12px auto;
  padding: 6px 10px;
}
#app .commission-page .commission-convert .primary-button { min-width: 132px; padding-inline: 18px; }
#app .commission-page .commission-receipt { margin: 12px 20px; }

.commission-history [data-commission-rows] { max-height: 46vh; overflow-y: auto; margin: 12px 0; }
.commission-history [data-all-ledger] { min-height: 44px; }

.chat-page .bubble .miu-letter-message-open {
  display: block;
  min-height: 40px;
  margin: 0 0 8px;
  padding: 6px 12px;
  border: 1px solid rgba(174, 121, 154, .45);
  border-radius: 11px;
  background: rgba(174, 121, 154, .12);
  color: inherit;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

/* 2026-11-25 UI 优化 */
html .topbar .top-actions {
  align-items: center;
  gap: 8px;
}
html .topbar .top-actions > .icon-button,
html .topbar .top-actions > .support-entry,
html .topbar .top-actions > .avatar {
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
  margin: 0;
  flex: 0 0 auto;
}
html .topbar .top-actions > .icon-button,
html .topbar .top-actions > .avatar {
  width: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: 50%;
}
html .topbar .top-actions > .support-entry {
  min-width: 52px;
  padding: 0 12px;
  border-radius: 999px;
}
html .topbar .top-actions > .avatar {
  object-fit: cover;
}

html .home-page > .s176-entry {
  min-height: 56px;
  margin: 8px 16px;
  padding: 8px 14px;
  border-radius: 16px;
}
html .home-page > .s176-entry img {
  width: 40px;
  height: 40px;
}
html .home-page > .s176-entry small {
  line-height: 1.4;
}
html .home-page > .s176-entry strong {
  font-size: 13px !important;
  line-height: 1.4;
}

html .night-role-quote {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  white-space: normal;
}

html .feedback-notice-entry1786 > .ui-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-width: 0;
}
html .feedback-notice-entry1786 > .ui-icon svg {
  width: 18px;
  height: 18px;
}

html .conversations-page .menu-list {
  display: flex;
  flex-direction: column;
}
html .conversations-page .menu-list > .empty-state {
  order: -1;
  margin: 12px 14px 8px;
}
html #app .home-page .night-hero .night-role-quote {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 1 !important;
  overflow: hidden !important;
}
html .b-cycle .tip {
  margin: 8px 0 10px;
  font-size: 11.5px;
  color: #7d6a74;
}
html .ck-entry-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(189, 123, 155, .3);
  border-radius: 16px;
  background: linear-gradient(115deg, rgba(255, 244, 248, .96), rgba(246, 236, 252, .96));
  color: #4f315d;
}
html .ck-entry-card .ck-entry-ico {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #d78aa9, #a67bd0);
}
html .ck-entry-card > div {
  flex: 1 1 auto;
  min-width: 0;
}
html .ck-entry-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.4;
}
html .ck-entry-card small {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: #7d6a74;
}
html .ck-entry-card button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, #c8648c, #a85580);
}

.notice-home-confirm .notice-reader{display:flex;flex-direction:column;max-height:80vh;max-height:min(80dvh,46rem);overflow:hidden}
.notice-home-confirm .notice-reader-header,.notice-home-confirm .notice-reader-footer{flex:none}
.notice-home-confirm h2,.notice-home-confirm .notice-detail-body{overflow-wrap:anywhere}
.notice-home-confirm .notice-detail-kind{display:inline-flex;align-items:center;gap:.4em}
.notice-home-confirm .notice-detail-kind svg{width:1em;height:1em}
.notice-home-confirm .notice-detail-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;line-height:1.75;-webkit-overflow-scrolling:touch}
.notice-home-confirm .notice-detail-body p{margin:0 0 .65em}
.notice-home-confirm .notice-detail-body img{display:block;max-width:100%;height:auto;margin:.6em auto}
.notice-home-confirm .notice-reader-footer{display:flex;flex-direction:column;align-items:stretch}
.notice-home-confirm [role=status]:empty{display:none}
