:root {
  color-scheme: light;
  --app-width: 430px;
  --bg: #eef1f5;
  --screen: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #f2f4f8;
  --line: #e8ecf2;
  --text: #101828;
  --muted: #7a8494;
  --brand: #55a7ff;
  --brand-dark: #348fff;
  --ok: #16805f;
  --danger: #d93d32;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
  --card-shadow: 0 8px 24px rgba(17, 24, 39, 0.035);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  font-weight: 400 !important;
}

html,
body {
  margin: 0;
  min-width: 320px;
  height: 100%;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  font-size: 15px;
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  letter-spacing: 0;
}

.phone-app {
  width: min(100vw, var(--app-width));
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--screen);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow-x: hidden;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), var(--shadow);
}

.app-screen {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  position: relative;
  overflow: hidden;
}

.app-header {
  display: none;
  padding: calc(14px + env(safe-area-inset-top)) 18px 12px;
  align-items: center;
  justify-content: space-between;
  background: rgba(246, 247, 251, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(220, 226, 234, 0.8);
  z-index: 5;
}

.app-header small {
  color: var(--muted);
  font-size: 12px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 25px;
  line-height: 1.1;
  font-weight: 800;
}

h2 {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
}

h3 {
  font-size: 15px;
  font-weight: 760;
}

.screen-body {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 14px calc(108px + env(safe-area-inset-bottom, 0px));
  transform: translateY(var(--pull-offset, 0px));
  transition: none;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.screen-body.is-pulling {
  transition: none;
}

.screen-body.pull-refresh-instant-reset {
  transition: none !important;
}

.screen-body.is-pull-settling {
  transition-duration: 420ms;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.screen-body.pull-refresh-unlocking {
  touch-action: pan-y;
  overscroll-behavior-y: auto;
}

.pull-refresh-indicator {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  left: 50%;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(218, 225, 236, 0.9);
  box-shadow: 0 10px 26px rgba(20, 31, 49, 0.12);
  font-size: 13px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -18px);
  transition: opacity 180ms ease, transform 320ms cubic-bezier(0.16, 1, 0.3, 1), border-color 160ms ease;
}

.pull-refresh-indicator::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(85, 167, 255, 0.24);
  border-top-color: var(--brand);
}

.pull-refresh-indicator.active {
  opacity: 1;
  transform: translate(-50%, 0);
}

.pull-refresh-indicator.ready {
  border-color: rgba(85, 167, 255, 0.3);
}

.pull-refresh-indicator.loading::before {
  animation: pull-refresh-spin 820ms linear infinite;
}

@keyframes pull-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.auth-screen {
  height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(24px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
}

.auth-card {
  width: 100%;
  display: grid;
  gap: 16px;
}

.app-logo,
.avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  overflow: hidden;
}

.avatar-upload {
  position: relative;
  flex: 0 0 auto;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 22px rgba(31, 45, 61, 0.12);
}

.avatar-upload::after {
  content: "换";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(85, 167, 255, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.avatar-upload.busy {
  opacity: 0.7;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-title {
  display: grid;
  gap: 7px;
}

.auth-title p {
  color: var(--brand);
  font-weight: 800;
}

.auth-title span,
.hero-block p,
.section-title span,
.status-line,
.work-card small,
.wallet-card p,
.plan small,
.account-card p {
  color: var(--muted);
  font-size: 13px;
}

.segmented {
  height: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--surface-soft);
  border-radius: 14px;
}

.seg {
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.seg.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 13px 15px;
  outline: none;
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(85, 167, 255, 0.1);
}

.creator-flow {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 10px;
}

.hero-block,
.step-block,
.wallet-card,
.account-card,
.work-card {
  width: 100%;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid rgba(232, 236, 242, 0.9);
  border-radius: 8px;
  padding: 15px;
  box-shadow: var(--card-shadow);
}

.hero-block {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  color: var(--text);
  border-color: transparent;
  padding: 8px 2px 10px;
  box-shadow: none;
}

.hero-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.hero-meta {
  flex: 0 0 auto;
  max-width: 58%;
  display: grid;
  justify-items: end;
  gap: 5px;
}

.hero-meta span {
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.studio-model-name,
.model-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.studio-model-name {
  background: #eef5ff;
  color: var(--brand);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-badge {
  background: #eef4ff;
  color: var(--brand);
}

@media (max-width: 340px) {
  .hero-block {
    flex-wrap: wrap;
  }

  .hero-meta {
    width: 100%;
    max-width: 100%;
    grid-auto-flow: column;
    justify-content: end;
  }
}

.hero-block p {
  color: rgba(255, 255, 255, 0.78);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

#accountView .section-title h3 {
  color: var(--brand);
}

.section-title.title-blue h3 {
  color: var(--brand);
}

.page-title {
  padding: 4px 2px 12px;
}

.prompt-block {
  display: grid;
  gap: 12px;
}

.prompt-field {
  position: relative;
}

.prompt-block textarea {
  min-height: 158px;
  width: 100%;
  padding-bottom: 58px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.65;
}

.compact-settings {
  margin-top: 0;
}

.creator-picks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.creator-pick {
  min-width: 0;
  min-height: 64px;
  display: grid;
  gap: 5px;
  align-content: center;
  justify-items: start;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--card-shadow);
}

.creator-pick strong {
  color: var(--brand);
  font-size: 14px;
  font-weight: 760;
}

.creator-pick span {
  max-width: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-pick span:empty {
  display: none;
}

.creator-pick.active {
  border-color: rgba(85, 167, 255, 0.36);
  background: #eef4ff;
  box-shadow: 0 8px 24px rgba(85, 167, 255, 0.1);
}

.ai-prompt-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-height: 34px;
  width: auto;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--brand);
  font-size: 12px;
  box-shadow: none;
}

.creator-panel {
  margin-top: 0;
}

.asset-strip,
.template-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  padding-bottom: 0;
}

.asset-chip {
  min-width: 0;
  min-height: 0;
  position: relative;
  display: grid;
  align-items: start;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 6px;
  user-select: none;
  touch-action: manipulation;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.asset-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.asset-chip:has(input:checked),
.asset-chip.selected {
  border-color: var(--brand);
  background: #eef4ff;
  box-shadow: 0 0 0 2px rgba(85, 167, 255, 0.18), 0 10px 24px rgba(85, 167, 255, 0.14);
  transform: translateY(-1px);
}

.asset-chip:has(input:checked) .asset-thumb,
.asset-chip.selected .asset-thumb {
  border-color: rgba(85, 167, 255, 0.68);
}

.asset-selected-mark {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 18px;
  font-weight: 900 !important;
  line-height: 1;
  opacity: 0;
  transform: scale(0.72);
  box-shadow: 0 8px 18px rgba(85, 167, 255, 0.34);
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.asset-chip:has(input:checked) .asset-selected-mark,
.asset-chip.selected .asset-selected-mark {
  opacity: 1;
  transform: scale(1);
}

.asset-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(217, 45, 32, 0.95);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: 0.16s ease;
  box-shadow: 0 6px 14px rgba(217, 45, 32, 0.22);
}

.asset-chip.show-delete .asset-delete {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.asset-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(232, 236, 242, 0.9);
  background: #edf1f6;
}

.asset-view {
  position: absolute;
  left: 8px;
  bottom: 8px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.asset-thumb.empty {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.asset-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 13, 24, 0.82);
}

.asset-viewer-overlay.hidden {
  display: none;
}

.asset-viewer-mask {
  position: absolute;
  inset: 0;
}

.asset-viewer-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  max-height: 88vh;
  display: grid;
  gap: 10px;
}

.asset-viewer-image {
  width: 100%;
  max-height: calc(88vh - 64px);
  object-fit: contain;
  border-radius: 8px;
  background: #0f172a;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
}

.asset-viewer-close {
  position: absolute;
  top: -12px;
  right: -8px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.asset-viewer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.asset-viewer-actions strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111827;
}

.asset-viewer-download {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 8px;
  background: #55a7ff;
  color: #fff;
  font-weight: 800;
}

.upload-action {
  width: 100%;
  min-height: 50px;
  margin-top: 8px;
  border: 1px dashed #cbd4e1;
  border-radius: 8px;
  background: #fafbfc;
  padding: 10px 13px;
  display: grid;
  gap: 3px;
}

.asset-generate-action {
  appearance: none;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  border-style: solid;
  background: linear-gradient(135deg, #fff8e8, #f3f8ff);
}

.asset-generate-action strong {
  display: block;
}

.upload-action small {
  color: var(--muted);
}

.asset-hint {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.upload-action.busy {
  border-color: var(--brand);
  background: #eef4ff;
}

.file-hidden {
  display: none;
}

.template {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
}

.template-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 210px;
  overflow-y: auto;
  padding-right: 2px;
}

.template.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.setting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.setting-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.primary,
.secondary,
.icon-button,
.danger-button {
  min-height: 48px;
  border-radius: 16px;
  font-weight: 780;
  cursor: pointer;
}

.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 26px rgba(85, 167, 255, 0.18);
}

.primary:hover {
  background: var(--brand-dark);
}

.secondary {
  border: 1px solid rgba(232, 236, 242, 0.9);
  background: var(--surface);
  color: var(--text);
}

.icon-button {
  width: 44px;
  min-height: 44px;
  background: var(--surface);
  color: var(--brand);
  border: 1px solid var(--line);
}

.danger-button {
  width: 100%;
  color: var(--danger);
  background: #fff2f1;
}

button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.sticky-submit {
  position: static;
  width: 100%;
  margin-top: 2px;
  box-shadow: 0 14px 30px rgba(85, 167, 255, 0.22);
}

.main-create-wrap {
  position: relative;
  display: grid;
}

.main-create-button {
  min-height: 58px;
  font-size: 17px;
  border-radius: 18px;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.main-create-button * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.tab-item[data-view="studioView"],
.tab-item[data-view="studioView"] * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.status-line {
  min-height: 16px;
  margin-top: 6px;
  font-size: 12px;
}

.status-line.ok {
  color: var(--ok);
}

.status-line.error,
.error {
  color: var(--danger);
}

.works-list {
  display: grid;
  gap: 10px;
}

.auto-create-card {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid rgba(85, 167, 255, 0.16);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 203, 87, 0.20), transparent 32%),
    linear-gradient(135deg, #ffffff, #f3f8ff);
  box-shadow: 0 10px 26px rgba(21, 37, 72, 0.07);
}

.auto-create-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auto-create-head div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.auto-create-head strong {
  color: #101828;
  font-size: 15px;
  font-weight: 500;
}

.auto-create-head span,
.auto-create-status {
  color: #667085;
  font-size: 12px;
}

.auto-voice-btn {
  width: 42px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  background: #55a7ff;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 18px rgba(85, 167, 255, 0.18);
}

.auto-voice-btn.listening {
  background: #ef4444;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.12);
}

.auto-create-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px;
  gap: 8px;
}

.auto-create-input input {
  min-height: 40px;
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
}

.auto-create-input button {
  min-height: 40px;
  border-radius: 12px;
  background: #55a7ff;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.auto-create-status {
  min-height: 17px;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.auto-create-status.ok {
  color: #16805f;
}

.auto-create-status.error {
  color: #d93d32;
}

.auto-agent-open {
  overflow: hidden;
}

.auto-agent-overlay {
  position: fixed;
  inset: 0;
  z-index: 86;
  display: grid;
  place-items: center;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 14px calc(14px + env(safe-area-inset-bottom, 0px));
}

.auto-agent-overlay.hidden {
  display: none;
}

.studio-agent-inline {
  position: static;
  inset: auto;
  z-index: auto;
  display: block;
  padding: 0;
}

.studio-agent-inline .auto-agent-panel {
  width: 100%;
  max-height: none;
  min-height: calc(100dvh - 156px);
  grid-template-rows: auto minmax(210px, 1fr) auto auto auto;
  border-radius: 0;
  box-shadow: none;
  animation: none;
}

.auto-agent-manual-btn {
  width: auto;
  min-width: 82px;
  height: 34px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #55a7ff;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.auto-agent-mask {
  position: absolute;
  inset: 0;
  background: rgba(8, 13, 24, 0.56);
  backdrop-filter: blur(6px);
}

.auto-agent-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  max-height: min(86vh, 720px);
  display: grid;
  grid-template-rows: auto minmax(150px, 1fr) auto auto auto;
  gap: 12px;
  overflow: hidden;
  padding: 16px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 6%, rgba(255, 202, 71, 0.22), transparent 30%),
    linear-gradient(180deg, #ffffff, #f6f9ff);
  box-shadow: 0 26px 72px rgba(8, 13, 24, 0.34);
  animation: recharge-sheet-in 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auto-agent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auto-agent-head div {
  display: grid;
  gap: 3px;
}

.auto-agent-head span {
  color: #55a7ff;
  font-size: 12px;
  font-weight: 760;
}

.auto-agent-head strong {
  color: #101828;
  font-size: 16px;
  font-weight: 600;
}

.auto-agent-head button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  background: #eef2f7;
  color: #475467;
  font-size: 22px;
}

.auto-agent-head .auto-agent-manual-btn {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  background: rgba(85, 167, 255, 0.12);
  color: #55a7ff;
  font-size: 17px;
  line-height: 1;
  font-weight: 900;
}

.auto-agent-head .auto-agent-clear-btn {
  width: auto;
  min-width: 58px;
  padding: 0 11px;
  background: #f2f4f7;
  color: #344054;
  font-size: 12px;
}

.auto-agent-log {
  min-height: 180px;
  display: grid;
  align-content: start;
  gap: 9px;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(196, 207, 222, 0.92);
  border-radius: 18px;
  background: rgba(241, 245, 251, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.auto-agent-task-list {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(218, 226, 238, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.auto-agent-task-list.hidden {
  display: none;
}

.auto-agent-task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.auto-agent-task-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.auto-agent-task-head strong {
  color: #101828;
  font-size: 13px;
  font-weight: 900;
}

.auto-agent-task-head span,
.auto-agent-task-head button {
  color: #667085;
  font-size: 11px;
  font-weight: 700;
}

.auto-agent-task-head button {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf5ff;
  color: #55a7ff;
}

.auto-agent-task {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #f6f9ff;
}

.auto-agent-task.active {
  border-color: rgba(85, 167, 255, 0.28);
  background: #eef5ff;
}

.auto-agent-task-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #55a7ff;
  box-shadow: 0 0 0 4px rgba(85, 167, 255, 0.12);
}

.auto-agent-task.success .auto-agent-task-dot {
  background: #12b76a;
  box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.12);
}

.auto-agent-task.error .auto-agent-task-dot {
  background: #f04438;
  box-shadow: 0 0 0 4px rgba(240, 68, 56, 0.12);
}

.auto-agent-task.waiting .auto-agent-task-dot {
  background: #f79009;
  box-shadow: 0 0 0 4px rgba(247, 144, 9, 0.14);
}

.auto-agent-task strong {
  display: block;
  color: #101828;
  font-size: 12px;
  font-weight: 900;
}

.auto-agent-task p {
  margin: 2px 0 0;
  color: #667085;
  font-size: 11px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auto-agent-task em {
  color: #55a7ff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.auto-agent-msg {
  max-width: 88%;
  display: grid;
  gap: 3px;
}

.auto-agent-msg.auto-agent-rich {
  max-width: 96%;
}

.auto-agent-msg.user {
  justify-self: end;
}

.auto-agent-msg span {
  color: #98a2b3;
  font-size: 11px;
}

.auto-agent-msg p {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #eef4ff;
  color: #173153;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-line;
}

.auto-agent-preview-card,
.auto-agent-video-progress,
.auto-agent-video-result {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(218, 226, 238, 0.86);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.auto-agent-preview-card strong,
.auto-agent-video-progress strong,
.auto-agent-video-result strong {
  display: block;
  color: #101828;
  font-size: 13px;
  font-weight: 900;
}

.auto-agent-preview-card small,
.auto-agent-video-progress small,
.auto-agent-video-result small {
  display: block;
  margin-top: 2px;
  color: #667085;
  font-size: 11px;
  line-height: 1.35;
}

.auto-agent-preview-card img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  background: #eef2f7;
}

.auto-agent-video-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auto-agent-video-progress-head span {
  color: #55a7ff;
  font-size: 12px;
  font-weight: 900;
}

.auto-agent-video-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef8;
}

.auto-agent-video-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #55a7ff, #20c7ff);
  transition: width 0.35s ease;
}

.auto-agent-video-result video {
  width: 100%;
  max-height: 320px;
  border-radius: 14px;
  background: #020617;
}

.auto-agent-msg.working {
  max-width: 94%;
}

.auto-agent-msg.working p {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(85, 167, 255, 0.14);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0)) 0 0 / 52% 100% no-repeat,
    linear-gradient(135deg, #eef5ff, #eaf8ff);
  box-shadow: 0 8px 20px rgba(85, 167, 255, 0.08);
  animation: agent-working-shine 1.65s ease-in-out infinite, agent-working-breathe 1.35s ease-in-out infinite;
}

.auto-agent-msg.working p em {
  position: relative;
  z-index: 1;
  font-style: normal;
}

.auto-agent-msg.done p::after {
  content: "?";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-left: 7px;
  border-radius: 999px;
  background: #dcfce7;
  color: #16805f;
  font-size: 11px;
  font-weight: 900;
}

.auto-agent-dots {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 23px;
  vertical-align: middle;
}

.auto-agent-dots i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #55a7ff;
  box-shadow: 0 0 0 3px rgba(85, 167, 255, 0.08);
  animation: agent-dot-jump 0.92s ease-in-out infinite;
}

.auto-agent-dots i:nth-child(2) {
  animation-delay: 0.14s;
}

.auto-agent-dots i:nth-child(3) {
  animation-delay: 0.28s;
}

.auto-agent-msg.user p {
  background: #55a7ff;
  color: #fff;
}

.auto-agent-msg.ok p {
  background: #ecfdf3;
  color: #16805f;
}

.auto-agent-msg.error p {
  background: #fff1f2;
  color: #d93d32;
}

.auto-agent-confirm {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(85, 167, 255, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.92));
  box-shadow: 0 12px 26px rgba(85, 167, 255, 0.08);
}

.auto-agent-confirm.hidden {
  display: none;
}

.auto-agent-confirm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.auto-agent-confirm-head span {
  color: #55a7ff;
  font-size: 13px;
  font-weight: 800;
}

.auto-agent-confirm-head strong {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(85, 167, 255, 0.08);
  color: #55a7ff;
  font-size: 11px;
  font-weight: 800;
}

.auto-agent-plan-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.auto-agent-plan-meta span {
  min-width: 0;
  padding: 8px 9px;
  border-radius: 12px;
  background: #fff;
  color: #475467;
  font-size: 11px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auto-agent-asset-choices {
  display: grid;
  gap: 7px;
}

.auto-agent-asset-choices.hidden {
  display: none;
}

.auto-agent-asset-choice {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(218, 226, 238, 0.82);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.auto-agent-asset-choice > span {
  color: #55a7ff;
  font-size: 12px;
  font-weight: 800;
}

.auto-agent-asset-choice select {
  min-width: 0;
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: #f5f8fc;
  color: #101828;
  font-size: 12px;
  font-weight: 700;
}

.auto-agent-prompt-editor {
  display: grid;
  gap: 6px;
}

.auto-agent-prompt-editor span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.auto-agent-prompt-editor textarea {
  width: 100%;
  min-height: 98px;
  resize: vertical;
  border-radius: 14px;
  background: #fff;
  font-size: 13px;
  line-height: 1.55;
}

.auto-agent-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 8px;
}

.auto-agent-confirm-actions button {
  min-height: 40px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 800;
}

.auto-agent-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "input"
    "voice";
  align-items: center;
  justify-items: center;
  gap: 18px;
  padding-bottom: 24px;
}

.auto-agent-overlay.auto-agent-has-draft .auto-agent-input {
  display: none;
}

.auto-agent-input textarea {
  grid-area: input;
  min-height: 56px;
  max-height: 138px;
  border: 1px solid rgba(196, 207, 222, 0.92);
  border-radius: 14px;
  background: #f6f8fc;
  font-size: 13px;
  line-height: 1.45;
  resize: none;
  overflow-y: hidden;
  padding: 10px 12px;
}

.auto-agent-input textarea.is-scrollable {
  overflow-y: auto;
}

.auto-agent-input button {
  min-height: 56px;
  border-radius: 14px;
  background: #55a7ff;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.voice-input-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(85, 167, 255, 0.24) !important;
  border-radius: 999px;
  background: rgba(85, 167, 255, 0.1) !important;
  color: #55a7ff !important;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 8px 20px rgba(85, 167, 255, 0.12);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.voice-input-button.listening {
  background: #55a7ff !important;
  color: #fff !important;
  animation: mic-listening-pulse 1.05s ease-in-out infinite;
}

.auto-agent-voice-btn {
  grid-area: voice;
  gap: 6px;
  min-width: 168px;
  width: 168px;
  min-height: 48px !important;
  height: 48px;
  padding: 0 18px;
  overflow: hidden;
  justify-self: center;
  margin-top: 92px;
  margin-bottom: 2px;
  background: linear-gradient(135deg, #55a7ff 0%, #7aa7ff 100%) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.48) !important;
  box-shadow: 0 10px 22px rgba(85, 167, 255, 0.24);
  transform: translateZ(0);
  transition: transform 150ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.auto-agent-inline-actions {
  display: flex;
  justify-content: center;
  margin-top: -4px;
}

.auto-agent-inline-actions.hidden {
  display: none;
}

.auto-agent-inline-actions button {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(242, 244, 247, 0.92);
  color: #667085;
  font-size: 11px;
  font-weight: 760;
}

.auto-agent-voice-btn .voice-mic-label {
  font-size: 14px;
  font-weight: 900;
  opacity: 0.95;
}

.auto-agent-voice-btn strong {
  display: none;
}

.auto-agent-voice-btn.pressing {
  transform: scale(0.98);
  filter: brightness(1.03);
}

.auto-agent-voice-btn.listening {
  transform: scale(0.97);
}

.auto-voice-wave-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 54px;
  margin: 2px auto 8px;
  padding: 10px 18px;
  width: min(210px, 76%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(239, 246, 255, 0.88));
  border: 1px solid rgba(11, 94, 215, 0.12);
  box-shadow: 0 14px 34px rgba(11, 94, 215, 0.12);
}

.auto-voice-wave-panel.hidden {
  display: none;
}

.auto-voice-wave-panel span {
  display: block;
  width: 5px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0b5ed7, #5aa7ff);
  animation: agent-voice-wave 820ms ease-in-out infinite;
}

.auto-voice-wave-panel span:nth-child(2) {
  animation-delay: 80ms;
}

.auto-voice-wave-panel span:nth-child(3) {
  animation-delay: 160ms;
}

.auto-voice-wave-panel span:nth-child(4) {
  animation-delay: 240ms;
}

.auto-voice-wave-panel span:nth-child(5) {
  animation-delay: 320ms;
}

.auto-voice-wave-panel span:nth-child(6) {
  animation-delay: 400ms;
}

.auto-voice-wave-panel span:nth-child(7) {
  animation-delay: 480ms;
}

.voice-wave {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 28px;
  height: 20px;
  opacity: 0.9;
}

.voice-wave i {
  display: block;
  width: 3px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: 50% 50%;
  opacity: 0.72;
}

.voice-input-button.listening .voice-wave i {
  animation: voice-wave-bar 760ms ease-in-out infinite;
}

.voice-input-button.listening .voice-wave i:nth-child(2) {
  animation-delay: 90ms;
}

.voice-input-button.listening .voice-wave i:nth-child(3) {
  animation-delay: 180ms;
}

.voice-input-button.listening .voice-wave i:nth-child(4) {
  animation-delay: 270ms;
}

.voice-input-button.listening .voice-wave i:nth-child(5) {
  animation-delay: 360ms;
}

.manual-prompt-voice {
  position: absolute;
  right: 126px;
  bottom: 10px;
  min-width: 38px;
  min-height: 36px;
}

.works-switch {
  height: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: var(--surface-soft);
  transform: translateY(var(--works-pull-offset, 0px));
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms ease;
  will-change: transform;
}

#worksView.works-pull-visual .works-switch {
  transition: none;
  border-color: transparent;
  box-shadow: none;
}

#worksView.works-pull-ready .works-switch {
  border-color: transparent;
  box-shadow: none;
}

.works-switch button {
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font-weight: 760;
}

.works-switch button.active {
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
}

.works-section {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.compact-title {
  margin-bottom: 0;
  padding: 0 2px;
}

.work-card {
  display: grid;
  gap: 11px;
}

.work-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
}

.work-author {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.work-author strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
  font-weight: 760;
}

.work-author img,
.work-author span {
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  object-fit: cover;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.work-title > small {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 11px;
  color: var(--muted);
}

.work-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.work-card p,
.work-card code {
  overflow-wrap: anywhere;
}

.work-prompt {
  display: grid;
  gap: 7px;
}

.work-prompt summary {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text);
  line-height: 1.35;
  font-size: 14px;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.work-prompt summary::-webkit-details-marker {
  display: none;
}

.work-prompt summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-prompt summary small {
  min-width: 34px;
  color: var(--brand);
  font-size: 0;
  font-weight: 760;
  text-align: right;
  white-space: nowrap;
}

.work-prompt summary small::after {
  content: "展开";
  font-size: 12px;
}

.work-prompt[open] summary small::after {
  content: "收起";
}

.work-prompt p {
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.work-card code {
  color: var(--brand);
  font-size: 12px;
}

.work-card img,
.work-card video {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 460px;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 460px;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.work-card .video-frame img,
.work-card .video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover;
  background: #000;
}

.work-card .video-frame video {
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

.work-card .video-frame .video-cover {
  z-index: 1;
  opacity: 1;
  transition: opacity 140ms ease-out;
  will-change: opacity;
  background: linear-gradient(135deg, #eef6ff 0%, #f6f7fb 48%, #e9edff 100%);
}

.video-frame.video-loading video {
  opacity: 0;
}

.video-frame.video-visible video,
.video-frame.playing video {
  opacity: 1;
  pointer-events: auto;
}

.video-frame.video-visible .video-cover,
.video-frame.playing.video-visible .video-cover {
  opacity: 0;
  pointer-events: none;
}

.video-frame.video-loading .video-cover,
.video-frame.video-buffering:not(.video-visible) .video-cover,
.video-frame.playing:not(.video-visible) .video-cover {
  opacity: 1;
  pointer-events: auto;
}

.video-frame.playing .video-play {
  display: none;
}

.video-frame.video-loading .video-play,
.video-frame.video-buffering .video-play {
  opacity: 0;
  pointer-events: none;
}

.result-video {
  pointer-events: none;
}

.video-frame.cover-failed .video-cover {
  opacity: 1;
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  min-height: 58px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 14px;
  font-weight: 780;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(8px);
}

.video-pause-indicator {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: none;
  width: 56px;
  height: 56px;
  min-height: 56px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(8px);
}

.video-pause-indicator::before,
.video-pause-indicator::after {
  content: "";
  position: absolute;
  top: 17px;
  width: 7px;
  height: 22px;
  border-radius: 3px;
  background: #fff;
}

.video-pause-indicator::before {
  left: 19px;
}

.video-pause-indicator::after {
  right: 19px;
}

.video-frame.video-paused .video-pause-indicator {
  display: block;
}

.video-subtitle-overlay {
  position: absolute;
  left: 50%;
  bottom: 52px;
  z-index: 4;
  max-width: min(86%, 360px);
  padding: 7px 12px;
  transform: translateX(-50%);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.58);
  color: #fff;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.35;
  text-align: center;
  letter-spacing: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.video-subtitle-overlay.hidden {
  display: none;
}

.social-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  gap: 6px;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(232, 236, 242, 0.9);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  text-decoration: none;
}

.social-stat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f4f7fb;
  color: #64748b;
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
}

.social-button b,
.social-stat b {
  font: inherit;
}

.social-icon {
  width: 15px;
  height: 15px;
  display: inline-block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-icon-wechat {
  fill: currentColor;
  stroke: none;
}

.social-icon-timeline {
  stroke-width: 1.6;
}

.social-button.active {
  color: var(--brand);
  background: #eef4ff;
  border-color: rgba(85, 167, 255, 0.28);
}

.comment-list {
  display: grid;
  gap: 6px;
}

.comment-list p {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.comment-form input {
  min-height: 40px;
  border-radius: 999px;
}

.comment-form button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 760;
}

.wallet-card {
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
}

.wallet-card small {
  color: var(--brand);
  font-weight: 760;
}

#billingStatus {
  display: none;
}

.plan-list {
  display: grid;
  gap: 10px;
}

.ledger-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.ledger-item {
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.ledger-item div {
  min-width: 0;
}

.ledger-item strong,
.ledger-item small {
  display: block;
}

.ledger-item small {
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ledger-amount {
  text-align: right;
  white-space: nowrap;
}

.ledger-amount.income strong {
  color: var(--ok);
}

.ledger-amount.expense strong {
  color: var(--danger);
}

.empty-state.compact {
  min-height: 58px;
}

.model-options {
  display: grid;
  gap: 10px;
}

.recharge-plans {
  display: grid;
  gap: 8px;
}

.pricing-list {
  display: none;
}

.gold-balance-line {
  min-height: 48px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: #fff7df;
  color: #7a4d00;
  text-align: left;
  cursor: pointer;
}

.gold-balance-line::after {
  content: "兑换";
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 184, 0, 0.16);
  color: #9a6a00;
  font-size: 12px;
  font-weight: 760;
}

.gold-balance-line span {
  color: #9a6a00;
  font-size: 13px;
}

.gold-balance-line strong {
  font-size: 18px;
  font-weight: 780;
}

.gold-convert-open {
  overflow: hidden;
}

.gold-convert-sheet {
  position: fixed;
  inset: 0;
  z-index: 83;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: calc(82px + env(safe-area-inset-top, 0px)) 14px 18px;
}

.gold-convert-sheet.hidden {
  display: none;
}

.gold-convert-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
}

.gold-convert-card {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  display: grid;
  gap: 13px;
  padding: 17px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.26);
  animation: recharge-sheet-in 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gold-convert-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gold-convert-head div {
  display: grid;
  gap: 4px;
}

.gold-convert-head strong {
  color: #101828;
  font-size: 18px;
  font-weight: 500;
}

.gold-convert-head small {
  color: #667085;
  font-size: 12px;
}

.gold-convert-head button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  background: #f3f6fb;
  color: #475467;
  font-size: 22px;
  line-height: 1;
}

.gold-convert-rate {
  min-height: 92px;
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 14px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 214, 92, 0.36), transparent 34%),
    linear-gradient(135deg, #fff8e8, #f6fbff);
}

.gold-convert-rate span {
  color: #9a6a00;
  font-size: 14px;
  font-weight: 760;
}

.gold-convert-rate strong {
  color: #101828;
  font-size: 24px;
  font-weight: 500;
}

.gold-convert-card .convert-gold-button {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
}

.reward-limit-hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.retry-panel {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0 4px;
  padding: 9px 10px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 8px;
  background: #fff8e8;
}

.retry-panel small {
  min-width: 0;
  color: #7a4d00;
  font-size: 12px;
  line-height: 1.3;
}

.retry-submit-button {
  min-height: 34px;
  white-space: nowrap;
}

.reward-task-summary {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid rgba(232, 236, 242, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.reward-task-summary:empty {
  display: none;
}

.task-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.reward-task-summary strong {
  color: var(--ink);
  font-size: 13px;
}

.reward-task-summary p {
  margin: 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}

.task-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.task-summary-grid span {
  min-width: 0;
  padding: 7px 6px;
  border-radius: 8px;
  background: #f4f7fb;
  color: #64748b;
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
}

.task-summary-grid b {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.1;
}

.task-meter {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf5;
}

.task-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #55a7ff 0%, #14b8a6 100%);
}

.task-meter.gold span {
  background: linear-gradient(90deg, #f59e0b 0%, #22c55e 100%);
}

.convert-gold-button {
  min-height: 42px;
  border-radius: 8px;
  background: #1f2937;
  color: #fff;
  font-weight: 760;
}

.account-ad-slot {
  margin-bottom: 12px;
}

.reward-task-list {
  display: grid;
  gap: 9px;
}

.reward-task-card {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid #e7edf5;
  border-radius: 8px;
  background: #fff;
}

.reward-task-card.done,
.reward-task-card.locked {
  background: #f8fafc;
}

.reward-task-top,
.reward-task-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reward-task-top > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.reward-task-top strong {
  font-size: 14px;
  line-height: 1.25;
}

.reward-task-top small,
.reward-task-bottom small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.reward-task-tags {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 4px;
}

.reward-task-tags span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef6ff;
  color: #55a7ff;
  font-size: 11px;
  font-weight: 760;
}

.reward-task-card.done .reward-task-tags span,
.reward-task-card.locked .reward-task-tags span {
  background: #edf2f7;
  color: #64748b;
}

.reward-task-tags em {
  color: #0f766e;
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.reward-task-bottom button {
  min-width: 68px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 760;
}

.reward-task-bottom button:disabled {
  background: #d8dee8;
  color: #64748b;
}

.ledger-panel {
  display: grid;
  gap: 10px;
}

.ledger-filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.ledger-filters::-webkit-scrollbar {
  display: none;
}

.ledger-filters button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid #e5ebf3;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  font-size: 12px;
  font-weight: 740;
}

.ledger-filters button.active {
  border-color: rgba(85, 167, 255, 0.25);
  background: #eef6ff;
  color: #55a7ff;
}

.ad-card {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid #e7edf5;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: var(--card-shadow);
}

.ad-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 58%;
  border-radius: 8px;
  background: #f6f1e8;
  border: 1px solid rgba(159, 104, 36, 0.16);
}

.ad-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ad-highlights span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff7e8;
  color: #8a4b1d;
  font-size: 11px;
  font-weight: 720;
  border: 1px solid rgba(159, 104, 36, 0.16);
}

.ad-card-reward {
  cursor: pointer;
  touch-action: manipulation;
}

.ad-card-reward:active {
  transform: scale(0.992);
}

.ad-card-reward:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.ad-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ad-label-row span {
  min-width: 38px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #d6e3f4;
  border-radius: 999px;
  color: #3f6f9f;
  font-size: 11px;
}

.ad-label-row small,
.ad-card p {
  color: var(--muted);
}

.ad-card strong {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 780;
}

.ad-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.ad-cta {
  justify-self: start;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 760;
}

.daan-brand-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #25140b;
}

.daan-brand-overlay.hidden {
  display: none;
}

.daan-brand-open {
  overflow: hidden;
}

.daan-brand-mask {
  position: absolute;
  inset: 0;
  background: rgba(12, 9, 6, 0.58);
}

.daan-brand-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 22px 22px 0 0;
  background: #fffaf2;
  box-shadow: 0 -18px 44px rgba(20, 12, 7, 0.26);
}

.daan-brand-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(25, 18, 12, 0.62);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.daan-brand-hero {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 58%;
  display: block;
  background: #f6f1e8;
}

.daan-brand-content {
  display: grid;
  gap: 12px;
  padding: 17px 16px calc(22px + env(safe-area-inset-bottom));
}

.daan-brand-content small {
  color: #9a6a34;
  font-size: 12px;
  font-weight: 760;
}

.daan-brand-content h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
  color: #4a1f12;
}

.daan-brand-content p {
  margin: 0;
  color: #5f4128;
  font-size: 14px;
  line-height: 1.68;
}

.daan-brand-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.daan-brand-points span {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff3dd;
  color: #753911;
  font-size: 12px;
  font-weight: 760;
  border: 1px solid rgba(159, 104, 36, 0.18);
}

.daan-brand-content strong {
  color: #8a2f18;
  font-size: 12px;
}

.pricing-item,
.recharge-plan {
  min-height: 56px;
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.pricing-item small,
.recharge-plan small,
.payment-box small {
  color: var(--muted);
}

.recharge-plans {
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(232, 236, 242, 0.9);
  transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.recharge-plans.recharge-highlight {
  border-color: rgba(85, 167, 255, 0.35);
  background: #f4f8ff;
  box-shadow: 0 0 0 4px rgba(85, 167, 255, 0.12);
}

.recharge-plan {
  border: 1px solid transparent;
  color: var(--text);
  text-align: left;
}

.payment-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.payment-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.payment-close,
.payment-cancel {
  min-height: 34px;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 720;
  border: 1px solid rgba(232, 236, 242, 0.9);
}

.payment-close {
  padding: 0 12px;
}

.payment-cancel {
  width: 100%;
}

.payment-box img {
  justify-self: center;
  width: 180px;
  height: 180px;
  border-radius: 10px;
  background: #fff;
}

.model-option {
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--surface-soft);
}

.model-option input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--brand);
}

.model-option span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.model-option strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.model-option em {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  white-space: nowrap;
}

.model-option small {
  color: var(--muted);
  line-height: 1.35;
}

.model-option:has(input:checked) {
  border-color: var(--brand);
  background: #eef4ff;
}

.account-fold {
  padding: 0;
  overflow: hidden;
}

.account-fold summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 15px;
  cursor: pointer;
  list-style: none;
}

.account-fold summary::-webkit-details-marker {
  display: none;
}

.account-fold summary h3 {
  color: var(--brand);
}

.account-fold summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.account-fold[open] summary {
  border-bottom: 1px solid rgba(232, 236, 242, 0.9);
}

.account-fold[open] summary .fold-arrow {
  color: var(--brand);
}

.account-fold[open] summary .fold-arrow::before {
  content: "收起";
  font-size: 13px;
}

.account-fold[open] summary .fold-arrow {
  font-size: 0;
}

.account-fold[open] summary .fold-icon {
  color: var(--muted);
  font-size: 18px;
}

.account-fold[open] summary .fold-icon::before {
  content: none;
}

.fold-content {
  padding: 12px 14px 14px;
}

.reward-panel {
  display: grid;
  gap: 8px;
}

.reward-primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.reward-action {
  min-height: 58px;
  display: grid;
  gap: 3px;
  align-content: center;
  justify-items: start;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
}

.reward-action strong {
  color: var(--brand);
  font-weight: 760;
}

.reward-action small {
  color: var(--muted);
  font-weight: 680;
}

.reward-video-box {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.reward-video-screen {
  min-height: 116px;
  display: grid;
  place-items: center;
  gap: 6px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
}

.reward-video-screen span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.reward-video-screen strong {
  font-size: 32px;
}

.reward-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.reward-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 0.2s ease;
}

.reward-ad-open {
  overflow: hidden;
}

.reward-ad-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  background: #080b12;
  color: #fff;
}

.reward-ad-overlay.hidden {
  display: none;
}

.reward-ad-overlay.red-packet-mode .reward-ad-shell {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 229, 138, 0.24), transparent 30%),
    linear-gradient(180deg, #b81722 0%, #7f1018 58%, #22060a 100%);
}

.reward-ad-shell {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  background: #080b12;
  overflow: hidden;
}

.reward-ad-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #080b12;
}

.reward-ad-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 11, 18, 0.2) 0%, rgba(8, 11, 18, 0.12) 38%, rgba(8, 11, 18, 0.92) 100%);
}

.reward-ad-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reward-ad-media img.hidden {
  display: none;
}

.reward-ad-shell > :not(.reward-ad-media) {
  position: relative;
  z-index: 1;
}

.reward-ad-top,
.reward-ad-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reward-ad-top span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 760;
}

.reward-ad-top strong {
  min-width: 54px;
  text-align: right;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.reward-ad-creative {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 28px 2px;
  align-self: end;
}

.reward-ad-creative small {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 760;
}

.reward-ad-creative h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 9vw, 48px);
  line-height: 1.08;
  font-weight: 900;
}

.reward-ad-creative p {
  max-width: 28em;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  line-height: 1.65;
}

.reward-ad-bottom {
  padding-top: 16px;
}

.reward-ad-bottom > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.reward-ad-bottom strong {
  color: #fff;
  font-size: 15px;
  font-weight: 850;
}

.reward-ad-bottom span {
  color: #ffcf66;
  font-size: 13px;
  font-weight: 850;
}

.reward-ad-bottom button {
  flex: 0 0 auto;
  min-width: 82px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-weight: 850;
}

.reward-ad-bottom button:disabled {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.52);
}

.reward-ad-progress {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.14);
}

.gold-reward-celebration {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  overflow: hidden;
  background: rgba(8, 11, 18, 0.9);
  text-align: center;
}

.gold-reward-celebration.hidden {
  display: none;
}

.gold-shine {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 42px rgba(255, 214, 92, 0.5),
    0 0 120px rgba(255, 176, 30, 0.34);
  opacity: 0;
}

.gold-coin-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gold-coin-rain span,
.gold-pile i {
  display: block;
  width: 28px;
  height: 28px;
  border: 2px solid #ffe48a;
  border-radius: 999px;
  background: #f7b825;
  box-shadow:
    inset 0 -4px 0 rgba(152, 88, 8, 0.28),
    inset 0 3px 0 rgba(255, 255, 255, 0.42),
    0 8px 18px rgba(255, 184, 37, 0.26);
}

.gold-coin-rain span {
  position: absolute;
  top: -46px;
  opacity: 0;
}

.gold-coin-rain span::after,
.gold-pile i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(151, 90, 12, 0.42);
  transform: translate(-50%, -50%);
}

.gold-coin-rain span:nth-child(1) { left: 11%; animation-delay: 0.04s; }
.gold-coin-rain span:nth-child(2) { left: 24%; animation-delay: 0.18s; }
.gold-coin-rain span:nth-child(3) { left: 37%; animation-delay: 0.1s; }
.gold-coin-rain span:nth-child(4) { left: 51%; animation-delay: 0.26s; }
.gold-coin-rain span:nth-child(5) { left: 66%; animation-delay: 0.12s; }
.gold-coin-rain span:nth-child(6) { left: 79%; animation-delay: 0.3s; }
.gold-coin-rain span:nth-child(7) { left: 18%; animation-delay: 0.42s; }
.gold-coin-rain span:nth-child(8) { left: 45%; animation-delay: 0.48s; }
.gold-coin-rain span:nth-child(9) { left: 71%; animation-delay: 0.5s; }
.gold-coin-rain span:nth-child(10) { left: 88%; animation-delay: 0.38s; }

.gold-pile {
  position: relative;
  width: min(240px, 72vw);
  height: 118px;
  margin-top: 16px;
}

.gold-pile i {
  position: absolute;
  opacity: 0;
}

.gold-pile i:nth-child(1) { left: 21%; bottom: 0; width: 54px; height: 54px; }
.gold-pile i:nth-child(2) { left: 39%; bottom: 3px; width: 62px; height: 62px; }
.gold-pile i:nth-child(3) { left: 57%; bottom: 0; width: 50px; height: 50px; }
.gold-pile i:nth-child(4) { left: 31%; bottom: 38px; width: 46px; height: 46px; }
.gold-pile i:nth-child(5) { left: 50%; bottom: 45px; width: 48px; height: 48px; }
.gold-pile i:nth-child(6) { left: 15%; bottom: 28px; width: 42px; height: 42px; }
.gold-pile i:nth-child(7) { left: 67%; bottom: 30px; width: 42px; height: 42px; }
.gold-pile i:nth-child(8) { left: 42%; bottom: 78px; width: 38px; height: 38px; }

.red-envelope {
  position: relative;
  z-index: 1;
  display: none;
  width: 178px;
  height: 136px;
  margin-top: 12px;
  border-radius: 18px 18px 24px 24px;
  background: linear-gradient(180deg, #f3423d 0%, #b70f1a 100%);
  box-shadow: inset 0 -10px 0 rgba(100, 8, 18, 0.24), 0 18px 50px rgba(175, 14, 26, 0.42);
}

.red-envelope::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(255, 208, 83, 0.26), rgba(255, 255, 255, 0));
}

.red-envelope span {
  position: absolute;
  left: 50%;
  top: -18px;
  width: 126px;
  height: 58px;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, #ff645d, #d91422);
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  box-shadow: 0 12px 22px rgba(86, 6, 14, 0.18);
}

.red-envelope i {
  position: absolute;
  left: 50%;
  top: 42px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe18a, #f4ad22);
  transform: translateX(-50%);
  box-shadow: inset 0 -5px 0 rgba(145, 82, 7, 0.22);
}

.red-envelope i::after {
  content: "开";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #8a1c0d;
  font-size: 24px;
  font-style: normal;
  font-weight: 900;
}

.reward-ad-overlay.red-packet-mode .gold-pile {
  display: none;
}

.reward-ad-overlay.red-packet-mode .red-envelope {
  display: block;
}

.gold-reward-celebration strong {
  position: relative;
  z-index: 1;
  color: #ffe48a;
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 8px 28px rgba(247, 184, 37, 0.42);
  opacity: 0;
}

.gold-reward-celebration p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  font-weight: 760;
  opacity: 0;
}

.gold-reward-celebration.celebrating .gold-shine {
  animation: gold-shine-pop 1.55s ease both;
}

.gold-reward-celebration.celebrating .gold-coin-rain span {
  animation: gold-coin-fall 1.45s cubic-bezier(0.16, 0.9, 0.34, 1) both;
}

.gold-reward-celebration.celebrating .gold-pile i {
  animation: gold-pile-pop 0.72s cubic-bezier(0.18, 1.35, 0.36, 1) both;
}

.reward-ad-overlay.red-packet-mode .gold-reward-celebration.celebrating .red-envelope {
  animation: red-envelope-pop 0.78s cubic-bezier(0.18, 1.35, 0.36, 1) both;
}

.reward-ad-overlay.red-packet-mode .gold-reward-celebration.celebrating .red-envelope span {
  animation: red-envelope-open 0.86s 0.18s cubic-bezier(0.18, 1.2, 0.38, 1) both;
}

.gold-reward-celebration.celebrating .gold-pile i:nth-child(2) { animation-delay: 0.04s; }
.gold-reward-celebration.celebrating .gold-pile i:nth-child(3) { animation-delay: 0.08s; }
.gold-reward-celebration.celebrating .gold-pile i:nth-child(4) { animation-delay: 0.12s; }
.gold-reward-celebration.celebrating .gold-pile i:nth-child(5) { animation-delay: 0.16s; }
.gold-reward-celebration.celebrating .gold-pile i:nth-child(6) { animation-delay: 0.1s; }
.gold-reward-celebration.celebrating .gold-pile i:nth-child(7) { animation-delay: 0.14s; }
.gold-reward-celebration.celebrating .gold-pile i:nth-child(8) { animation-delay: 0.22s; }

.gold-reward-celebration.celebrating strong {
  animation: gold-amount-pop 0.78s 0.28s cubic-bezier(0.18, 1.28, 0.38, 1) both;
}

.gold-reward-celebration.celebrating p {
  animation: gold-copy-rise 0.58s 0.46s ease both;
}

@keyframes gold-shine-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.58);
  }
  32% {
    opacity: 1;
  }
  100% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(1.32);
  }
}

@keyframes gold-coin-fall {
  0% {
    opacity: 0;
    transform: translateY(-20px) rotate(-24deg) scale(0.7);
  }
  14% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(74vh) rotate(240deg) scale(1);
  }
}

@keyframes gold-pile-pop {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.72);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes red-envelope-pop {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.72);
  }
  58% {
    opacity: 1;
    transform: translateY(-5px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes red-envelope-open {
  0% {
    transform: translateX(-50%) rotateX(0deg);
  }
  100% {
    transform: translateX(-50%) rotateX(64deg) translateY(-10px);
  }
}

@keyframes gold-amount-pop {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.7);
  }
  68% {
    opacity: 1;
    transform: translateY(-4px) scale(1.06);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes gold-copy-rise {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.plan {
  min-height: 62px;
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.account-user {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-user > div:last-child {
  min-width: 0;
}

.membership-card {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 0 0 12px;
  padding: 16px;
  border: 1px solid rgba(85, 167, 255, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(85, 167, 255, 0.12), rgba(255, 255, 255, 0.94) 46%),
    #fff;
  box-shadow: 0 18px 48px rgba(39, 91, 148, 0.1);
  overflow: hidden;
}

.membership-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -42px;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  background: rgba(85, 167, 255, 0.14);
  pointer-events: none;
}

.membership-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.membership-kicker {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(85, 167, 255, 0.12);
  color: var(--brand);
  font-size: 11px;
  font-weight: 850;
}

.membership-card h3 {
  margin: 8px 0 4px;
  color: #111827;
  font-size: 20px;
  line-height: 1.15;
}

.membership-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.membership-badge {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 54px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef3f8;
  color: #687386;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.membership-badge.active {
  background: linear-gradient(135deg, var(--brand), #7567ff);
  color: #fff;
}

.membership-daily {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(85, 167, 255, 0.14);
}

.membership-daily span,
.membership-daily small,
.membership-plan small,
.membership-plan-tags span {
  color: var(--muted);
  font-size: 11px;
}

.membership-daily strong {
  display: block;
  margin-top: 3px;
  color: #111827;
  font-size: 15px;
}

.membership-daily small {
  display: block;
  margin-top: 4px;
  line-height: 1.35;
}

.membership-daily button,
.membership-plan button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.membership-daily button:disabled,
.membership-plan button:disabled {
  background: #dbe4ef;
  color: #8491a3;
}

.membership-plans {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.membership-plan {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(220, 228, 240, 0.92);
}

.membership-plan.current {
  border-color: rgba(85, 167, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(85, 167, 255, 0.12);
}

.membership-plan span:first-child {
  display: inline-flex;
  width: fit-content;
  min-height: 20px;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(85, 167, 255, 0.1);
  color: var(--brand);
  font-size: 10px;
  font-weight: 900;
}

.membership-plan strong {
  display: block;
  margin: 7px 0 4px;
  color: #111827;
  font-size: 15px;
  line-height: 1.25;
}

.membership-plan-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.membership-plan-tags span {
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
}

.membership-plan button {
  width: 100%;
}

.membership-confirm-sheet {
  position: fixed;
  inset: 0;
  z-index: 84;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: calc(78px + env(safe-area-inset-top, 0px)) 14px 18px;
}

.membership-confirm-sheet.hidden {
  display: none;
}

.membership-confirm-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(5px);
}

.membership-confirm-card {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  display: grid;
  gap: 13px;
  padding: 17px;
  border: 1px solid rgba(85, 167, 255, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(85, 167, 255, 0.16), transparent 34%),
    #fff;
  box-shadow: 0 22px 62px rgba(15, 23, 42, 0.24);
  animation: recharge-sheet-in 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.membership-confirm-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.membership-confirm-head div {
  display: grid;
  gap: 5px;
}

.membership-confirm-head span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(85, 167, 255, 0.1);
  color: var(--brand);
  font-size: 11px;
  font-weight: 850;
}

.membership-confirm-head strong {
  color: #101828;
  font-size: 18px;
  line-height: 1.25;
}

.membership-confirm-head button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  background: #f3f6fb;
  color: #475467;
  font-size: 22px;
}

.membership-confirm-details {
  display: grid;
  gap: 8px;
  padding: 13px;
  border-radius: 16px;
  background: rgba(85, 167, 255, 0.08);
  border: 1px solid rgba(85, 167, 255, 0.14);
}

.membership-confirm-details div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.membership-confirm-details span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.membership-confirm-details strong {
  color: #111827;
  font-size: 16px;
}

.membership-confirm-details small {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.membership-confirm-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.membership-confirm-benefits span {
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  color: #475467;
  font-size: 12px;
}

.membership-confirm-cost {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #f8fbff;
}

.membership-confirm-cost span {
  color: #667085;
  font-size: 12px;
}

.membership-confirm-cost span.warn {
  color: #d92d20;
  font-weight: 800;
}

.membership-confirm-cost strong {
  color: #111827;
  font-size: 17px;
  font-weight: 900;
}

.membership-confirm-actions {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 9px;
}

.membership-confirm-actions button {
  min-height: 46px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 850;
}

.membership-confirm-actions .ghost {
  background: #f3f6fb;
  color: #475467;
}

.membership-confirm-actions .primary {
  background: var(--brand);
  color: #fff;
}

.membership-confirm-actions .primary:disabled {
  background: #dbe4ef;
  color: #8491a3;
}

.recharge-shortcut {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  font-size: 14px;
  font-weight: 760;
}

.recharge-shortcut:active {
  transform: scale(0.98);
}

.tabbar {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  transform: translate3d(-50%, 0, 0);
  width: min(100vw, var(--app-width));
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.86);
  border-top: 1px solid rgba(232, 236, 242, 0.9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  z-index: 80;
  contain: layout paint;
  will-change: transform;
}

.tab-item {
  min-height: 52px;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.tab-item.active {
  background: #edf5ff;
  color: var(--brand);
}

.empty-state {
  min-height: 88px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: 8px;
}

.hidden {
  display: none !important;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(104px + env(safe-area-inset-bottom));
  transform: translate(-50%, 14px) scale(0.98);
  width: auto;
  max-width: min(calc(100vw - 28px), 390px);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  border: 1px solid rgba(218, 225, 236, 0.95);
  border-radius: 999px;
  padding: 10px 16px 10px 12px;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 90;
  text-align: left;
  pointer-events: none;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(16px);
}

#toast strong {
  max-width: min(310px, calc(100vw - 98px));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800 !important;
  line-height: 1.25;
}

.toast-dot {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(85, 167, 255, 0.12);
  color: var(--brand);
}

.toast-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 4px currentColor;
  opacity: 0.82;
}

#toast.success .toast-dot {
  background: rgba(85, 167, 255, 0.12);
  color: var(--brand);
}

#toast.error {
  border-color: rgba(217, 61, 50, 0.18);
  background: rgba(255, 250, 250, 0.98);
}

#toast.error .toast-dot {
  background: rgba(217, 61, 50, 0.1);
  color: var(--danger);
}

#toast.info .toast-dot {
  background: rgba(122, 132, 148, 0.12);
  color: var(--muted);
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

@media (max-width: 430px) {
  .phone-app {
    width: 100vw;
    box-shadow: none;
  }
}

/* ====== 底部导航栏图标 ====== */
.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 6px 0 4px;
  font-size: 10px;
  font-weight: 800;
  transition: color 0.2s ease;
}
.tab-item > span:not(.tab-icon) {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
}
.tab-icon {
  font-size: 20px;
  line-height: 1;
  margin-bottom: -2px;
  transition: transform 0.2s ease;
}
.tab-logo-icon {
  width: 48px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  margin-top: -2px;
  margin-bottom: -2px;
}
.tab-logo-icon img {
  width: 46px;
  height: 32px;
  display: block;
  object-fit: contain;
}
.tab-item.active .tab-logo-icon {
  background: transparent;
  box-shadow: none;
}
.tab-graphic-icon {
  position: relative;
  width: 48px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #8a94a6;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  margin-top: -2px;
  margin-bottom: -2px;
}
.tab-item.active .tab-graphic-icon {
  color: #5f78f3;
}
.tab-work-icon::before {
  content: "";
  width: 18px;
  height: 13px;
  display: block;
  border: 1.7px solid currentColor;
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(85, 167, 255, 0.12), rgba(109, 85, 242, 0.08));
}
.tab-work-icon::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 13px;
  width: 0;
  height: 0;
  border-top: 3.8px solid transparent;
  border-bottom: 3.8px solid transparent;
  border-left: 5.8px solid currentColor;
}
.tab-account-icon::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 1.7px solid currentColor;
  border-radius: 999px;
  transform: translateX(-50%);
  background: transparent;
}
.tab-account-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 20px;
  height: 9px;
  border: 1.7px solid currentColor;
  border-radius: 10px 10px 7px 7px;
  transform: translateX(-50%);
}
.tab-item.active .tab-icon {
  transform: scale(1.12);
}
.tab-item:active .tab-icon {
  transform: scale(0.9);
}

/* ====== 作品卡片优化 ====== */
.works-list { display: grid; gap: 14px; }
.works-load-more {
  min-height: 42px;
  border-radius: 14px;
  background: #eef5ff;
  color: #55a7ff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(85, 167, 255, 0.12);
}
.work-card {
  padding: 14px;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
  border: 1px solid rgba(232,236,242,0.7);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.work-card:hover {
  box-shadow: 0 4px 16px rgba(15,23,42,0.06);
  border-color: rgba(23,105,255,0.12);
}
.work-author img, .work-author span {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  font-size: 14px;
}
.model-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0f5ff, #e8f0fe);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(23,105,255,0.15);
}
.work-card .error {
  padding: 8px 12px;
  border-radius: 8px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 12px;
  line-height: 1.4;
  border: 1px solid #fee2e2;
}
.work-prompt summary:hover { color: var(--brand); }
.video-frame { cursor: pointer; }
.video-play { transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.video-play:hover {
  background: rgba(17,24,39,0.82);
  box-shadow: 0 16px 34px rgba(15,23,42,0.22);
  transform: translate(-50%,-50%) scale(1.06);
}
.video-play:active { transform: translate(-50%,-50%) scale(0.96); }
.work-card .video-frame video { transition: none; }
.social-bar { display: flex; flex-wrap: wrap; }
.social-button { transition: all 0.15s ease; cursor: pointer; }
.social-button:hover {
  border-color: rgba(23,105,255,0.2);
  background: #fafbff;
  color: var(--brand);
}
.social-button:active { transform: scale(0.97); }
.download-social { color: #059669; }
.download-social:hover {
  border-color: rgba(5,150,105,0.25);
  background: #ecfdf5;
  color: #059669;
}
.comment-list {
  padding-left: 2px;
  border-left: 2px solid rgba(23,105,255,0.15);
  margin-left: 4px;
  padding-left: 10px;
}
.comment-list p strong { color: var(--brand); font-weight: 720; margin-right: 4px; }
.comment-form input { transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.comment-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(23,105,255,0.1);
  outline: none;
}
.comment-form button { transition: background 0.15s ease, transform 0.1s ease; }
.comment-form button:hover { background: #1a56db; }
.comment-form button:active { transform: scale(0.96); }
.empty-state {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 48px 20px;
  text-align: center;
}
.empty-state::before {
  content: "??";
  font-size: 36px;
  opacity: 0.5;
}
.empty-state.compact { padding: 32px 16px; font-size: 13px; }
.work-card button.secondary {
  border-radius: 10px;
  background: linear-gradient(135deg, #f0f5ff, #e8f0fe);
  color: var(--brand);
  font-weight: 700;
  border: 1px solid rgba(23,105,255,0.12);
  transition: all 0.15s ease;
}
.work-card button.secondary:hover {
  background: linear-gradient(135deg, #e0ebff, #d4e4fe);
  border-color: rgba(23,105,255,0.25);
}
.work-card button.secondary:active { transform: scale(0.98); }
.work-card > small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 700;
  font-size: 12px;
  animation: pulse-text 1.4s ease-in-out infinite;
}
@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}


/* ====== 登录页全新视觉 ====== */
.auth-screen {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  padding: 0 24px calc(22px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: start;
  justify-items: stretch;
  place-items: initial;
  overflow: hidden;
  background: #f7f9fc;
}

.auth-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 249, 252, 0.96) 52%, #eef2f7 100%),
    linear-gradient(135deg, rgba(44, 108, 255, 0.12), rgba(108, 92, 231, 0.08));
}

.auth-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 78%);
}

.auth-bg::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: calc(116px + env(safe-area-inset-top));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(85, 167, 255, 0.32), transparent);
}

/* Logo */
.auth-top {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding-top: calc(42px + env(safe-area-inset-top));
  padding-bottom: 18px;
}

.auth-logo-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
}

.auth-logo-inner {
  position: relative;
  z-index: 2;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.auth-logo-inner img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.auth-logo-ring {
  position: absolute;
  z-index: 1;
  width: 92px;
  height: 92px;
  border-radius: 24px;
  border: 1px solid rgba(85, 167, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.84);
  animation: logo-breathe 3.6s ease-in-out infinite;
}

@keyframes logo-breathe {
  0%, 100% { transform: scale(1); opacity: 0.62; }
  50% { transform: scale(1.08); opacity: 0.24; }
}

/* 卡片 */
.auth-card {
  position: relative;
  z-index: 1;
  width: min(100%, calc(100vw - 48px));
  max-width: 100%;
  min-width: 0;
  justify-self: stretch;
  align-self: start;
  display: grid;
  gap: 14px;
  padding: 26px 20px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(18px);
}

.auth-brand-tag {
  color: #55a7ff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0;
}

.auth-brand-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  color: #0f172a;
  margin: 0;
}

.auth-sub {
  color: #5b6472;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  padding-bottom: 2px;
}

/* Feature 标签 */
.auth-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 10px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.84);
  border-bottom: 1px solid rgba(226, 232, 240, 0.84);
}

.auth-features span {
  padding: 0 8px;
  border-radius: 0;
  background: transparent;
  color: #334155;
  font-size: 11px;
  font-weight: 760;
  text-align: center;
  white-space: nowrap;
}

.auth-features span + span {
  border-left: 1px solid rgba(226, 232, 240, 0.95);
}

/* 输入框 */
.auth-inputs {
  display: grid;
  gap: 11px;
}

.input-field {
  position: relative;
  display: grid;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  z-index: 1;
  width: 28px;
  text-align: left;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 820;
  color: #64748b;
  pointer-events: none;
  opacity: 0.48;
  transition: opacity 0.2s ease;
}

.input-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px 0 54px;
  border-radius: 8px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  background: rgba(248, 250, 252, 0.86);
  font-size: 15px;
  color: #0f172a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-field input:focus {
  border-color: #55a7ff;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(85, 167, 255, 0.1);
  outline: none;
}

.input-field input:focus + .input-icon,
.input-field input:focus ~ .input-icon {
  opacity: 0.85;
}

/* 登录按钮 */
.auth-card .primary {
  min-height: 50px;
  border-radius: 8px;
  background: linear-gradient(135deg, #55a7ff 0%, #6d55f2 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 820;
  border: 0;
  box-shadow: 0 14px 30px rgba(82, 111, 239, 0.28);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-card .primary:hover {
  background: linear-gradient(135deg, #4f9eff 0%, #624bf0 100%);
  box-shadow: 0 18px 36px rgba(82, 111, 239, 0.34);
  transform: translateY(-1px);
}

.auth-card .primary:active {
  transform: translateY(0) scale(0.98);
}

/* 协议 */
.auth-footer {
  text-align: center;
  color: #8a94a6;
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
}

/* 入场动画 */
.auth-logo-wrap,
.auth-brand-tag,
.auth-brand-title,
.auth-sub,
.segmented,
.auth-inputs,
.auth-card .primary,
.auth-footer {
  opacity: 1;
  transform: none;
  animation: none;
}

.auth-logo-wrap { animation-delay: 0.05s; }
.auth-brand-tag { animation-delay: 0.12s; }
.auth-brand-title { animation-delay: 0.18s; }
.auth-sub { animation-delay: 0.24s; }
.auth-features { animation-delay: 0.30s; }
.segmented { animation-delay: 0.36s; }
.auth-inputs { animation-delay: 0.42s; }
.auth-card .primary { animation-delay: 0.48s; }
.auth-footer { animation-delay: 0.54s; }

@keyframes auth-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ====== 创作页优化 ====== */

/* 模型状态栏 */
.hero-block {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  background: transparent;
  padding: 4px 2px 4px;
  box-shadow: none;
  border: 0;
  border-radius: 0;
}

.hero-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface);
  border-radius: 999px;
  border: 1px solid rgba(232, 236, 242, 0.8);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.studio-model-name {
  background: transparent !important;
  padding: 0 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: var(--text) !important;
  border-radius: 0 !important;
}

.status-divider {
  width: 1px;
  height: 14px;
  background: rgba(203, 212, 225, 0.5);
}

.duration-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

/* 提示词区 */
.prompt-block .section-title h3 {
  font-size: 16px;
  line-height: 1.4;
}

.title-hint {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}

.prompt-field textarea {
  min-height: 120px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(203, 212, 225, 0.6);
  background: #fff;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.prompt-field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(85, 167, 255, 0.1);
  outline: none;
}

.prompt-field textarea::placeholder {
  color: #b0bec5;
  line-height: 1.8;
}

.ai-prompt-button {
  display: flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #f0f5ff, #e8f0fe) !important;
  border: 1px solid rgba(85, 167, 255, 0.12) !important;
  font-weight: 700 !important;
  transition: all 0.15s ease;
}

.ai-prompt-button:hover {
  background: linear-gradient(135deg, #e0ebff, #d4e4fe) !important;
  border-color: rgba(85, 167, 255, 0.25) !important;
}

.ai-icon {
  font-size: 14px;
}

/* 人物/场景/模板 选择卡 */
.creator-picks {
  gap: 8px;
}

.creator-pick {
  min-height: 72px;
  display: grid;
  gap: 3px;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 14px 8px;
  border-radius: 14px;
  border: 1.5px solid rgba(232, 236, 242, 0.7);
  background: var(--surface);
  transition: all 0.2s ease;
  cursor: pointer;
}

.creator-pick:hover {
  border-color: rgba(85, 167, 255, 0.2);
  background: #fafbff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.creator-pick:active {
  transform: translateY(0) scale(0.98);
}

.creator-pick.active {
  border-color: rgba(85, 167, 255, 0.4);
  background: #eef4ff;
  box-shadow: 0 4px 16px rgba(85, 167, 255, 0.12);
}

.pick-icon {
  font-size: 22px;
  line-height: 1;
}

.creator-pick strong {
  font-size: 13px;
  font-weight: 800;
}

.pick-label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  min-height: 14px;
}

/* 生成按钮 */
.main-create-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 56px;
  font-size: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #55a7ff, #55a7ff) !important;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.main-create-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(85, 167, 255, 0.3) !important;
}

.main-create-button:active {
  transform: translateY(0) scale(0.98);
}

.btn-icon {
  font-size: 16px;
}

/* 模板区 */
.template-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 240px;
  overflow-y: auto;
  gap: 8px;
}

.template {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: all 0.15s ease;
}

.template:hover {
  border-color: rgba(85, 167, 255, 0.3);
  background: #f4f8ff;
}

.template.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(85, 167, 255, 0.25);
}

/* 上传区 */
.upload-action {
  border-radius: 10px;
  transition: all 0.15s ease;
}

.upload-action:hover {
  border-color: var(--brand);
  background: #f0f5ff;
}

/* section标题区 */
.step-block .section-title {
  margin-bottom: 2px;
}

.section-title h3 {
  font-weight: 800;
}

/* 面板展开动画 */
.creator-panel {
  animation: panel-slide 0.25s ease;
}

@keyframes panel-slide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 全屏按钮 */
.video-fullscreen {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  width: 44px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.55);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.15s ease, transform 0.15s ease;
}

.video-fullscreen:hover {
  background: rgba(17, 24, 39, 0.78);
  transform: scale(1.1);
}

.video-fullscreen:active {
  transform: scale(0.95);
}

.video-fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #000;
  color: #fff;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: none;
}

.video-fullscreen-overlay.hidden {
  display: none;
}

.fullscreen-open {
  overflow: hidden;
  touch-action: none;
}

.fullscreen-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 300vh;
  height: 300dvh;
  contain: layout paint;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transform: translate3d(0, -100vh, 0);
  transform: translate3d(0, -100dvh, 0);
}

.fullscreen-slide {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: grid;
  place-items: center;
  background: #000;
  overflow: hidden;
  contain: layout paint size;
  transform: translateZ(0);
  will-change: transform;
}

.fullscreen-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 22%, transparent 72%, rgba(0, 0, 0, 0.22));
  opacity: 0.72;
}

.fullscreen-slide.empty {
  background: #030712;
}

.fullscreen-slide.empty::before {
  content: "";
  width: 58px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.fullscreen-slide video {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  object-fit: cover;
  background: #000;
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: paint;
  will-change: transform;
}

.fullscreen-close,
.fullscreen-play {
  position: absolute;
  z-index: 5;
  border: 0;
  color: #fff;
  background: rgba(17, 24, 39, 0.58);
  backdrop-filter: blur(8px);
}

.fullscreen-close {
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: 14px;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
}

.fullscreen-counter {
  position: absolute;
  left: 14px;
  top: calc(env(safe-area-inset-top, 0px) + 18px);
  z-index: 5;
  min-width: 42px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.46);
  color: #fff;
  font-size: 12px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.fullscreen-info {
  position: absolute;
  left: 16px;
  right: 86px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  z-index: 5;
  display: grid;
  gap: 8px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.52);
  pointer-events: none;
}

.fullscreen-author {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.fullscreen-author img,
.fullscreen-author span {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.16);
  object-fit: cover;
}

.fullscreen-author span {
  display: grid;
  place-items: center;
  font-weight: 800;
}

.fullscreen-author strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 800;
}

.fullscreen-info p {
  max-height: 44px;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.55;
}

.fullscreen-actions {
  position: absolute;
  right: 14px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  z-index: 6;
  display: grid;
  gap: 10px;
}

.fullscreen-actions button,
.fullscreen-stat {
  width: 50px;
  min-height: 50px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 6px 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.42);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.fullscreen-stat {
  pointer-events: none;
}

.fullscreen-actions .social-icon,
.fullscreen-stat .social-icon {
  width: 23px;
  height: 23px;
  color: rgba(255, 255, 255, 0.94);
}

.fullscreen-actions button.active .social-icon-thumb {
  color: #ff4d67;
  fill: rgba(255, 77, 103, 0.16);
  filter: drop-shadow(0 0 12px rgba(255, 77, 103, 0.45));
}

.fullscreen-actions strong,
.fullscreen-stat strong {
  font-size: 11px;
  line-height: 1;
  min-height: 11px;
}

.fullscreen-play {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 72px;
  min-height: 72px;
  border-radius: 999px;
  font-size: 14px;
}

.video-fullscreen-overlay.dragging .fullscreen-info,
.video-fullscreen-overlay.dragging .fullscreen-actions,
.video-fullscreen-overlay.dragging .fullscreen-counter,
.video-fullscreen-overlay.dragging .fullscreen-close {
  opacity: 0.86;
  transition: opacity 0.12s ease;
}

.video-fullscreen-overlay.dragging .fullscreen-close,
.video-fullscreen-overlay.dragging .fullscreen-counter {
  backdrop-filter: none;
}

/* Account polish */
#accountView {
  gap: 12px;
  padding-top: 2px;
}

#accountView .avatar-upload::after {
  content: none;
}

#accountView .account-card {
  min-height: 122px;
  align-items: flex-start;
  padding: 18px 16px;
  border: 1px solid rgba(213, 224, 240, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(85, 167, 255, 0.12), rgba(255, 255, 255, 0.88) 52%),
    #fff;
  box-shadow: 0 14px 34px rgba(28, 55, 90, 0.08);
}

#accountView .account-card-bg {
  opacity: 1;
  background:
    linear-gradient(120deg, rgba(85, 167, 255, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(245, 249, 255, 0.84));
}

#accountView .account-user {
  align-items: center;
  gap: 13px;
}

#accountView .avatar {
  width: 66px;
  height: 66px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, #55a7ff, #55a7ff);
  box-shadow: 0 12px 26px rgba(85, 167, 255, 0.2);
  font-size: 24px;
  font-weight: 500;
}

#accountView .account-user h2 {
  margin: 0 0 5px;
  color: #101828;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0;
}

#accountView .account-user p {
  color: #667085;
  font-size: 13px;
}

#accountView .recharge-shortcut {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(85, 167, 255, 0.1);
  color: #55a7ff;
  border: 1px solid rgba(85, 167, 255, 0.12);
  box-shadow: none;
  font-size: 13px;
  font-weight: 500;
}

#accountView .recharge-shortcut span {
  font-weight: 500;
}

#accountView .wallet-card {
  padding: 18px 16px 16px;
  border: 1px solid rgba(213, 224, 240, 0.74);
  border-radius: 18px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 10px 28px rgba(28, 55, 90, 0.06);
}

#accountView .wallet-bg {
  opacity: 1;
  background: linear-gradient(135deg, rgba(85, 167, 255, 0.1), rgba(85, 167, 255, 0));
}

#accountView .wallet-card::after {
  content: "";
}

#accountView .wallet-card small {
  color: #55a7ff !important;
  font-size: 12px !important;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

#accountView .wallet-card h2 {
  margin-top: 6px;
  color: #101828;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0;
}

#accountView .wallet-card p {
  margin-top: 3px;
  color: #667085;
  font-size: 12px;
}

#accountView .pricing-list {
  margin-top: 12px;
}

#accountView .recharge-plans {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(213, 224, 240, 0.82);
  border-radius: 16px;
  background: #fff;
}

#accountView .recharge-plans button,
#accountView .reward-action,
#accountView .model-option,
#accountView .plan {
  border-radius: 14px;
  border: 1px solid rgba(213, 224, 240, 0.82);
  background: #fff;
  box-shadow: 0 6px 18px rgba(28, 55, 90, 0.04);
}

#accountView .account-fold {
  border: 1px solid rgba(213, 224, 240, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(28, 55, 90, 0.05);
}

#accountView .account-fold summary {
  min-height: 56px;
  padding: 0 16px;
}

#accountView .account-fold summary h3 {
  color: #55a7ff;
  font-size: 15px;
  font-weight: 500;
}

#accountView .fold-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(85, 167, 255, 0.08);
  font-size: 14px;
}

#accountView .fold-arrow {
  color: #98a2b3;
  font-weight: 500;
}

#accountView .danger-button {
  min-height: 46px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(253, 162, 155, 0.5);
  color: #d92d20;
  font-weight: 500;
}

/* Studio polish */
#studioView {
  position: relative;
  gap: 12px;
  padding-top: 2px;
}

#studioView::before {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: -10px;
  height: 210px;
  border-radius: 0 0 28px 28px;
  background:
    linear-gradient(180deg, rgba(85, 167, 255, 0.12), rgba(85, 167, 255, 0)),
    linear-gradient(135deg, rgba(85, 167, 255, 0.1), rgba(255, 255, 255, 0));
  pointer-events: none;
}

#studioView .creator-flow {
  position: relative;
  z-index: 1;
  gap: 12px;
}

#studioView .creator-flow.hidden {
  display: none;
}

.studio-mode-bridge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(85, 167, 255, 0.14);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.studio-mode-bridge div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.studio-mode-bridge strong {
  color: #101828;
  font-size: 15px;
  font-weight: 800;
}

.studio-mode-bridge span {
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
}

.studio-mode-bridge button {
  flex: 0 0 auto;
  min-height: 34px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

#studioView .hero-block {
  position: relative;
  padding: 0;
  background: transparent;
}

#studioView .hero-status-bar {
  width: 100%;
  min-height: 48px;
  justify-content: space-between;
  padding: 9px 13px;
  border: 1px solid rgba(213, 224, 240, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(28, 55, 90, 0.07);
  backdrop-filter: blur(14px);
}

#studioView .studio-model-trigger {
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#studioView .studio-model-trigger:active {
  transform: scale(0.985);
}

#studioView .studio-model-trigger[aria-expanded="true"] {
  border-color: rgba(85, 167, 255, 0.34);
  box-shadow: 0 14px 32px rgba(85, 167, 255, 0.12);
}

#studioView .studio-model-name {
  flex: 1;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #101828 !important;
}

#studioView .duration-badge {
  padding: 5px 10px;
  background: rgba(85, 167, 255, 0.09);
  color: #55a7ff;
  font-size: 12px;
  font-weight: 500;
}

#studioView .studio-model-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 12;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(213, 224, 240, 0.86);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(28, 55, 90, 0.14);
  backdrop-filter: blur(18px);
}

#studioView .studio-model-choice {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(213, 224, 240, 0.72);
  border-radius: 14px;
  background: #fff;
  color: #101828;
  text-align: left;
}

#studioView .studio-model-choice span {
  display: grid;
  gap: 3px;
}

#studioView .studio-model-choice strong,
#studioView .studio-model-choice em {
  font-size: 14px;
  font-weight: 500;
  font-style: normal;
}

#studioView .studio-model-choice small {
  color: #667085;
  font-size: 11px;
}

#studioView .studio-model-choice em {
  color: #98a2b3;
}

#studioView .studio-model-choice.active {
  border-color: rgba(85, 167, 255, 0.36);
  background: #f3f8ff;
}

#studioView .studio-model-choice.active em {
  color: #55a7ff;
}

/* Account recharge layout fix */
#accountView .account-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 12px;
  min-height: 116px;
}

#accountView .account-user {
  min-width: 0;
  padding-right: 0;
}

#accountView .account-user > div:last-child {
  min-width: 0;
}

#accountView .account-user h2,
#accountView .account-user p {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#accountView .recharge-shortcut {
  align-self: start;
  justify-self: end;
  margin-top: 2px;
  white-space: nowrap;
  flex: none;
}

@media (max-width: 360px) {
  #accountView .account-card {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  #accountView .recharge-shortcut {
    justify-self: start;
    margin-left: 79px;
  }
}

#studioView .prompt-block {
  position: relative;
  overflow: hidden;
  padding: 17px 15px 15px;
  border: 1px solid rgba(213, 224, 240, 0.72);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.94)),
    #fff;
  box-shadow: 0 16px 38px rgba(28, 55, 90, 0.08);
}

#studioView .prompt-block::after {
  content: "";
  position: absolute;
  right: -38px;
  top: -54px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(85, 167, 255, 0.1), transparent 68%);
  pointer-events: none;
}

#studioView .prompt-block .section-title {
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}

#studioView .prompt-block .section-title h3 {
  color: #101828;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
}

#studioView .title-hint {
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
  font-weight: 400;
}

#studioView .prompt-field {
  z-index: 1;
}

#studioView .prompt-field textarea {
  min-height: 156px;
  padding: 15px 15px 54px;
  border: 1px solid rgba(213, 224, 240, 0.82);
  border-radius: 16px;
  background: #fff;
  color: #101828;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  resize: none;
}

#studioView .prompt-field textarea:focus {
  border-color: rgba(85, 167, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(85, 167, 255, 0.08);
}

#studioView .prompt-field textarea::placeholder {
  color: #98a2b3;
}

#studioView .ai-prompt-button {
  right: 10px;
  bottom: 10px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(85, 167, 255, 0.14) !important;
  background: rgba(85, 167, 255, 0.08) !important;
  color: #55a7ff;
  font-weight: 500 !important;
}

#studioView .compact-settings {
  position: relative;
  z-index: 1;
  gap: 8px;
}

#studioView .compact-settings label {
  padding: 10px;
  border: 1px solid rgba(213, 224, 240, 0.72);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

#studioView .compact-settings label span {
  color: #667085;
  font-size: 11px;
  font-weight: 400;
}

#studioView .compact-settings select,
#studioView .compact-settings input {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: #f5f8fc;
  font-weight: 500;
}

#studioView .creator-picks {
  gap: 10px;
}

#studioView .creator-pick {
  min-height: 88px;
  border: 1px solid rgba(213, 224, 240, 0.74);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(28, 55, 90, 0.06);
}

#studioView .creator-pick.active {
  border-color: rgba(85, 167, 255, 0.42);
  background: linear-gradient(180deg, #f3f8ff, #fff);
  box-shadow: 0 12px 28px rgba(85, 167, 255, 0.12);
}

#studioView .pick-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(85, 167, 255, 0.08);
  font-size: 17px;
}

#studioView .creator-pick strong {
  color: #101828;
  font-size: 14px;
  font-weight: 500;
}

#studioView .pick-label {
  color: #55a7ff;
  font-size: 11px;
  font-weight: 500;
}

#studioView .main-create-button {
  min-height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #55a7ff, #55a7ff) !important;
  box-shadow: 0 18px 34px rgba(85, 167, 255, 0.28);
  font-size: 16px;
  font-weight: 500;
}

#studioView .creator-panel {
  border: 1px solid rgba(213, 224, 240, 0.72);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(28, 55, 90, 0.07);
}

#studioView .creator-panel .section-title h3 {
  color: #55a7ff;
  font-weight: 500;
}

#studioView .asset-chip,
#studioView .template,
#studioView .upload-action {
  border-radius: 14px;
  border-color: rgba(213, 224, 240, 0.82);
  background: #fff;
}

#studioView .template.active {
  background: linear-gradient(135deg, #55a7ff, #55a7ff);
  border-color: transparent;
  font-weight: 500;
}

#worksView {
  padding: 0 12px;
}

#worksView .works-switch {
  margin: 0 2px 12px;
}

#worksView .works-list {
  gap: 0;
}

#worksView .work-card {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  box-shadow: none;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(232, 236, 242, 0.06);
}

@keyframes agent-dot-jump {
  0%, 72%, 100% {
    transform: translateY(0) scale(0.75);
    opacity: 0.45;
  }
  36% {
    transform: translateY(-5px) scale(1);
    opacity: 1;
  }
}

@keyframes agent-working-shine {
  0% {
    background-position: -65% 0, 0 0;
  }
  100% {
    background-position: 165% 0, 0 0;
  }
}

@keyframes agent-working-breathe {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

@keyframes agent-hint-pulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(172, 111, 0, 0.16);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(172, 111, 0, 0.22);
  }
}

@keyframes mic-listening-pulse {
  0%, 100% {
    box-shadow: 0 8px 20px rgba(85, 167, 255, 0.16), 0 0 0 0 rgba(85, 167, 255, 0.28);
  }
  50% {
    box-shadow: 0 10px 26px rgba(85, 167, 255, 0.24), 0 0 0 7px rgba(85, 167, 255, 0);
  }
}

@keyframes voice-wave-bar {
  0%, 100% {
    height: 6px;
    opacity: 0.58;
  }
  35% {
    height: 17px;
    opacity: 1;
  }
  65% {
    height: 10px;
    opacity: 0.82;
  }
}

@keyframes agent-voice-wave {
  0%, 100% {
    height: 9px;
    opacity: 0.55;
    transform: translateY(0);
  }
  35% {
    height: 34px;
    opacity: 1;
    transform: translateY(-1px);
  }
  65% {
    height: 18px;
    opacity: 0.78;
    transform: translateY(1px);
  }
}


/* ====== 我的页面优化 ====== */

/* 个人信息卡 */
.account-card {
  position: relative;
  overflow: hidden;
  padding: 18px 16px;
  border-radius: 16px;
}

.account-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #55a7ff 0%, #55a7ff 40%, #55a7ff 100%);
  opacity: 0.06;
  pointer-events: none;
}

.account-user {
  position: relative;
  z-index: 1;
}

.account-user h2 {
  font-size: 17px;
  font-weight: 800;
}

.avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #55a7ff, #55a7ff);
  box-shadow: 0 4px 14px rgba(85, 167, 255, 0.2);
  font-size: 24px;
}

.recharge-shortcut {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #55a7ff, #55a7ff);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  border: 0;
  box-shadow: 0 4px 12px rgba(85, 167, 255, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.recharge-shortcut:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(85, 167, 255, 0.35);
}

.recharge-shortcut:active {
  transform: translateY(0) scale(0.97);
}

.recharge-shortcut span {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

/* 钱包卡片 */
.wallet-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 18px 16px;
}

.wallet-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #55a7ff 0%, #55a7ff 100%);
  opacity: 0.05;
  pointer-events: none;
}

.wallet-card small {
  position: relative;
  z-index: 1;
  color: #7a8494 !important;
  font-size: 11px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wallet-card h2 {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
}

.wallet-card p {
  position: relative;
  z-index: 1;
}

.wallet-card::after {
  content: "A5";
  position: absolute;
  right: 8px;
  top: 8px;
  font-size: 72px;
  font-weight: 900;
  color: var(--brand);
  opacity: 0.04;
  pointer-events: none;
  line-height: 1;
}

/* 折叠菜单 */
.account-fold {
  border-radius: 16px;
  border: 1px solid rgba(232, 236, 242, 0.6);
}

.account-fold summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  transition: background 0.15s ease;
}

.account-fold summary::-webkit-details-marker {
  display: none;
}

.account-fold summary:hover {
  background: rgba(85, 167, 255, 0.02);
}

.fold-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.account-fold summary h3 {
  flex: 1;
  font-size: 15px;
  font-weight: 800;
}

.fold-arrow {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.account-fold[open] > summary .fold-arrow {
  opacity: 0.5;
}

.fold-content {
  padding: 0 16px 16px;
}

/* 赚币面板 */
.reward-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(232, 236, 242, 0.7);
  background: var(--surface);
  transition: all 0.15s ease;
  cursor: pointer;
}

.reward-action:hover {
  border-color: rgba(85, 167, 255, 0.2);
  background: #fafbff;
}

.reward-action strong {
  font-size: 14px;
  font-weight: 800;
}

.reward-action small {
  color: var(--brand);
  font-weight: 800;
  font-size: 14px;
}

.reward-primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.reward-main-action {
  min-height: 74px;
  display: grid;
  grid-template-columns: 30px 1fr;
  grid-template-areas:
    "icon title"
    "icon bonus";
  align-items: center;
  justify-content: start;
  column-gap: 9px;
  row-gap: 1px;
  padding: 12px;
}

.reward-main-action .reward-action-icon {
  grid-area: icon;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(85, 167, 255, 0.1);
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.reward-main-action strong {
  grid-area: title;
  align-self: end;
  line-height: 1.15;
}

.reward-main-action small {
  grid-area: bonus;
  align-self: start;
  font-size: 12px;
}

.invite-reward-action {
  min-height: 42px;
  padding: 9px 12px;
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.35);
  background: #fbfcff;
}

.invite-reward-action span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.invite-reward-action small {
  font-size: 12px;
}

.red-packet-action {
  border-color: rgba(229, 36, 48, 0.22);
  background: linear-gradient(135deg, #fff7ec, #fff 58%);
}

.red-packet-action:hover {
  border-color: rgba(229, 36, 48, 0.32);
  background: #fff8ee;
}

.red-packet-action strong {
  color: #b81722;
}

.red-packet-action .reward-action-icon {
  background: rgba(229, 36, 48, 0.1);
  color: #b81722;
}

.red-packet-float {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  z-index: 72;
  width: 70px;
  min-height: 76px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 10px 7px;
  border: 0;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 24%, #ffe18a 0 16%, transparent 17%),
    linear-gradient(180deg, #ff4b45 0%, #b81722 100%);
  color: #fff9db;
  box-shadow: 0 14px 34px rgba(184, 23, 34, 0.32);
  font-weight: 900;
  transform: translateZ(0);
}

.red-packet-float::before {
  content: "";
  width: 34px;
  height: 22px;
  border-radius: 12px 12px 4px 4px;
  background: rgba(255, 214, 92, 0.9);
  box-shadow: inset 0 -4px 0 rgba(139, 76, 0, 0.18);
}

.red-packet-float span {
  font-size: 14px;
  line-height: 1;
}

.red-packet-float strong {
  font-size: 11px;
  line-height: 1.15;
}

.red-packet-float.hidden {
  display: none;
}

/* 模型选项 */
.model-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
}

.model-option:hover {
  border-color: rgba(85, 167, 255, 0.2);
  background: #fafbff;
}

.model-option.selected {
  border-color: var(--brand);
  background: #eef4ff;
}

/* 套餐卡片 */
.plan {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(232, 236, 242, 0.7);
  transition: all 0.15s ease;
  cursor: pointer;
}

.plan:hover {
  border-color: rgba(85, 167, 255, 0.2);
  background: #fafbff;
}

.plan strong {
  font-size: 14px;
  font-weight: 800;
}

/* 账单明细 */
.ledger-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(232, 236, 242, 0.4);
}

.ledger-item:last-child {
  border-bottom: 0;
}

/* 退出登录 */
.danger-button {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  background: #fff;
  color: #ef4444;
  border: 1.5px solid #fee2e2;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.danger-button:hover {
  background: #fef2f2;
  border-color: #fecaca;
}

.danger-button:active {
  transform: scale(0.98);
}

/* 作品信息折叠区 */
.work-info-fold {
  border: 0;
  padding: 0;
}

.work-summary-line {
  display: block;
  padding: 8px 4px 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

.work-summary-line::-webkit-details-marker {
  display: none;
}

.work-summary-line::after {
  content: " ?";
  color: var(--muted);
  font-size: 16px;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.work-info-fold[open] > .work-summary-line::after {
  content: " ?";
}

.work-fold-body {
  padding: 4px 0 8px;
}

.work-full-prompt {
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 6px;
}

/* 进度条 */
.progress-bar {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(85, 167, 255, 0.1);
  overflow: hidden;
  margin: 4px 0;
}
.progress-fill {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #55a7ff, #55a7ff);
  animation: progress-slide 1.5s ease-in-out infinite;
}
@keyframes progress-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* Account recharge sheet */
.recharge-open {
  overflow: hidden;
}

.recharge-sheet {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: calc(74px + env(safe-area-inset-top, 0px)) 14px 18px;
}

.recharge-sheet.hidden {
  display: none;
}

.recharge-sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
}

.recharge-sheet-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  max-height: min(76vh, 620px);
  display: grid;
  gap: 12px;
  overflow: auto;
  padding: 17px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.26);
  animation: recharge-sheet-in 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes recharge-sheet-in {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.recharge-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.recharge-sheet-head div {
  display: grid;
  gap: 4px;
}

.recharge-sheet-head strong {
  color: #101828;
  font-size: 18px;
  font-weight: 500;
}

.recharge-sheet-head small {
  color: #667085;
  font-size: 12px;
}

.recharge-sheet-head button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  background: #f3f6fb;
  color: #475467;
  font-size: 22px;
  line-height: 1;
}

#accountView .recharge-sheet .recharge-plans,
.recharge-sheet .recharge-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
}

#accountView .recharge-sheet .recharge-plan,
.recharge-sheet .recharge-plan {
  min-height: 78px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(85, 167, 255, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, #fff, #f5f9ff);
  color: #101828;
  box-shadow: 0 8px 18px rgba(85, 167, 255, 0.08);
}

.recharge-sheet .recharge-plan strong {
  color: #55a7ff;
  font-size: 15px;
  font-weight: 500;
}

.recharge-sheet .recharge-plan small {
  color: #667085;
  font-size: 12px;
}

.recharge-sheet .payment-box {
  margin: 0;
}

@media (max-width: 360px) {
  #accountView .recharge-sheet .recharge-plans,
  .recharge-sheet .recharge-plans {
    grid-template-columns: 1fr;
  }
}


/* ====== 浣滃搧鐢熸垚杩涘害鏉?====== */
.work-progress {
  display: grid;
  gap: 6px;
  margin: 8px 0 4px;
}
.work-progress-track {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(85, 167, 255, 0.1);
}
.work-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #55a7ff;
  transition: width 500ms ease;
}
.work-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

/* ====== 鍏ㄥ睆鎸夐挳 ====== */
.video-fullscreen {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s ease, opacity 0.2s ease;
}
.video-fullscreen:hover {
  background: rgba(0, 0, 0, 0.65);
}

/* ====== Toast 鍔ㄧ敾澧炲己 ====== */
#toast {
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 20px) scale(0.92); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
#toast.show {
  animation: toast-in 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Works polish */
#worksView {
  position: relative;
  padding-top: 2px;
}

#worksView::before {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: -8px;
  height: 150px;
  z-index: -1;
  border-radius: 0 0 26px 26px;
  background:
    radial-gradient(circle at 18% 8%, rgba(85, 167, 255, 0.12), transparent 42%),
    linear-gradient(180deg, #f6f9ff 0%, rgba(246, 249, 255, 0) 100%);
}

#worksView.works-pull-visual::before,
#worksView.works-pull-ready::before {
  opacity: 0;
}

#worksView .works-switch {
  position: sticky;
  top: 0;
  z-index: 4;
  height: 42px;
  margin: 0 0 14px;
  padding: 3px;
  border: 1px solid rgba(213, 224, 240, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(21, 37, 72, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#worksView.works-pull-visual .works-switch,
#worksView.works-pull-ready .works-switch {
  border-color: transparent;
  box-shadow: none;
}

#worksView .works-switch button {
  min-height: 34px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 400;
  color: #667085;
}

#worksView .works-switch button.active {
  background: #55a7ff;
  color: #fff;
  box-shadow: 0 8px 20px rgba(85, 167, 255, 0.22);
}

#worksView .works-list {
  gap: 14px;
}

#worksView .work-card {
  position: relative;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(218, 226, 238, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(21, 37, 72, 0.07);
  overflow: hidden;
}

#worksView .work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 255, 0.45));
}

#worksView .work-card > * {
  position: relative;
  z-index: 1;
}

#worksView .work-title {
  align-items: flex-start;
  gap: 8px;
}

#worksView .work-author {
  gap: 9px;
}

#worksView .work-author img,
#worksView .work-author span {
  flex-basis: 38px;
  width: 38px;
  height: 38px;
  font-size: 14px;
  font-weight: 400;
  box-shadow: 0 6px 16px rgba(85, 167, 255, 0.18);
}

#worksView .work-author strong {
  font-size: 15px;
  font-weight: 400;
  color: #101828;
}

#worksView .work-title > small {
  max-width: 116px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #98a2b3;
  font-size: 11px;
}

#worksView .work-meta-row {
  justify-content: flex-start;
  gap: 8px;
}

#worksView .model-badge {
  padding: 4px 9px;
  border: 0;
  background: #eef4ff;
  color: #55a7ff;
  font-size: 11px;
  font-weight: 400;
}

#worksView .work-meta-row small {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f6fb;
  color: #667085;
  font-size: 11px;
}

#worksView .work-info-fold,
#worksView .work-prompt {
  margin: -1px 0 1px;
}

#worksView .work-summary-line,
#worksView .work-prompt summary {
  padding: 2px 1px;
  color: #344054;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

#worksView .work-full-prompt,
#worksView .work-prompt p {
  margin-top: 6px;
  border-radius: 12px;
  background: #f6f8fb;
  color: #667085;
  font-size: 12px;
}

#worksView .video-frame,
#worksView .work-card > img,
#worksView .work-card > video {
  max-height: 500px;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

#worksView .video-play {
  width: 54px;
  height: 54px;
  min-height: 54px;
  font-size: 13px;
  font-weight: 400;
  background: rgba(16, 24, 40, 0.62);
}

#worksView .video-fullscreen {
  top: 10px;
  left: 10px;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 24, 40, 0.52);
}

#worksView .social-bar {
  display: flex;
  gap: 6px;
  padding-top: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

#worksView .social-bar::-webkit-scrollbar {
  display: none;
}

#worksView .social-share-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 4px;
  overflow: visible;
}

#worksView .social-action-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 6px;
  margin-top: 2px;
  overflow: visible;
}

#worksView .social-action-row .social-button,
#worksView .social-action-row .social-stat {
  width: 100%;
  justify-content: center;
  text-align: center;
}

#worksView .social-share-row .social-button {
  min-height: 34px;
  padding: 0 10px;
  justify-content: center;
  border-radius: 14px;
  background: #eef8f1;
  color: #178d45;
  font-weight: 700;
}

#worksView .social-share-row .social-icon {
  width: 16px;
  height: 16px;
}
#worksView .social-button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 11px;
  border: 0;
  background: #f4f7fb;
  color: #475467;
  font-size: 12px;
  font-weight: 400;
}

#worksView .social-button.active {
  background: #eaf2ff;
  color: #55a7ff;
}

#worksView .timeline-social,
#worksView .wechat-social {
  background: #eef8f1;
  color: #178d45;
}

#worksView .comment-form {
  padding-top: 2px;
}

#worksView .comment-form input {
  min-height: 38px;
  border: 1px solid rgba(218, 226, 238, 0.9);
  background: #f8fafc;
  font-size: 13px;
}

#worksView .comment-form button {
  min-height: 38px;
  background: #55a7ff;
  font-weight: 400;
}

#worksView .comment-list p {
  border-radius: 12px;
  background: #f6f8fb;
  font-size: 12px;
}

.share-guide {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: end center;
  padding: 18px;
}

.share-guide.hidden {
  display: none;
}

body.share-guide-open .video-fullscreen-overlay {
  pointer-events: none;
}

body.share-guide-open .share-guide {
  pointer-events: auto;
}

.share-guide-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.share-guide-card {
  position: relative;
  width: min(100%, 390px);
  padding: 22px 18px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  color: #101828;
}

.share-guide-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f3f6fb;
  color: #667085;
  font-size: 20px;
  font-weight: 400;
}

.share-guide-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 14px;
  background: #eef4ff;
  color: #55a7ff;
  letter-spacing: 1px;
}

.share-guide-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 400;
}

.share-guide-card p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.55;
}

.share-guide-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

.share-guide-actions button {
  min-height: 42px;
  border-radius: 999px;
  font-weight: 400;
}

.account-name-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-name-row h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-edit-button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(85, 167, 255, 0.18);
  border-radius: 999px;
  background: #eef6ff;
  color: #55a7ff;
  font-size: 12px;
  font-weight: 760;
}

.social-button.danger {
  border-color: rgba(220, 38, 38, 0.16);
  background: #fff1f2;
  color: #dc2626;
}

/* Account balance and earnings layout */
#accountView .account-card {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 16px;
}

#accountView .account-user {
  grid-column: 1;
  min-width: 0;
}

#accountView .account-recharge-zone {
  grid-column: 2;
  display: grid;
  gap: 5px;
  justify-items: end;
  justify-self: end;
  align-self: start;
}

#accountView .recharge-shortcut {
  min-height: 34px;
}

#accountView .account-top-balance {
  max-width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #55a7ff;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 820;
  text-align: right;
}

#accountView .wallet-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  align-items: center;
  margin-top: 2px;
  padding: 12px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(85, 167, 255, 0.08), rgba(109, 85, 242, 0.05)),
    rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(213, 224, 240, 0.78);
}

#accountView .wallet-bg,
#accountView .wallet-card::after {
  display: none;
}

#accountView .wallet-card small {
  grid-column: 1;
  color: #55a7ff !important;
  font-size: 12px !important;
  font-weight: 760;
}

#accountView .wallet-card #billingStatus {
  grid-column: 1;
  margin: 0;
  color: #667085;
  font-size: 12px;
}

#accountView .gold-balance-line {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: auto;
  min-width: 112px;
  min-height: 42px;
  grid-template-columns: minmax(0, 1fr);
  justify-items: end;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 247, 223, 0.88);
}

#accountView .gold-balance-line::after {
  content: none;
}

#accountView .gold-balance-line span {
  font-size: 11px;
}

#accountView .gold-balance-line strong {
  font-size: 14px;
}

#accountView .reward-limit-hint {
  grid-column: 1 / -1;
  margin: 3px 0 0;
  font-size: 11px;
}

#accountView .reward-task-summary {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
}

#accountView .pricing-list {
  display: none;
}

/* Keep the center creation tab independent from global brand-color sweeps. */
.tab-item[data-view="studioView"] {
  color: var(--muted);
}

.tab-item[data-view="studioView"].active {
  color: var(--brand);
}

.tab-item[data-view="studioView"] .tab-logo-icon,
.tab-item[data-view="studioView"].active .tab-logo-icon {
  width: 48px;
  height: 34px;
  margin-top: -2px;
  margin-bottom: -2px;
  border-radius: 8px;
  background: transparent !important;
  box-shadow: none !important;
}

.tab-item[data-view="studioView"] .tab-logo-icon img {
  width: 46px;
  height: 32px;
  object-fit: contain;
}

/* Clean earnings card */
#accountView .wallet-card {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 8px;
  padding: 14px 12px;
}

#accountView .wallet-card small {
  justify-self: start;
  font-size: 24px !important;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
}

#accountView .wallet-card #billingStatus,
#accountView .wallet-card .reward-limit-hint,
#accountView .wallet-card .reward-task-summary {
  display: none !important;
}

#accountView .gold-balance-line {
  grid-column: 1;
  grid-row: auto;
  width: min(320px, 100%);
  min-height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 248, 218, 0.98), rgba(255, 235, 166, 0.86));
  box-shadow: inset 0 0 0 1px rgba(244, 185, 65, 0.24), 0 10px 24px rgba(202, 137, 0, 0.08);
}

#accountView .earnings-metric {
  min-width: 0;
  flex: 1 1 0;
  display: grid;
  justify-items: center;
  gap: 5px;
}

#accountView .earnings-metric em {
  color: #9a6a00;
  font-size: 12px;
  line-height: 1;
  font-style: normal;
  font-weight: 760;
}

#accountView .earnings-divider {
  width: 1px;
  height: 34px;
  flex: 0 0 auto;
  background: rgba(154, 106, 0, 0.16);
}

#accountView .gold-balance-line strong {
  color: #7a4d00;
  font-size: 25px;
  line-height: 1;
  font-weight: 860;
}

#accountView .earnings-report {
  display: grid;
  gap: 10px;
}

#accountView .earnings-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#accountView .earnings-report-grid article {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(232, 236, 242, 0.88);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

#accountView .earnings-report-grid span {
  color: #7a8494;
  font-size: 11px;
  line-height: 1.1;
}

#accountView .earnings-report-grid strong {
  color: #101828;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 860;
}

#accountView .earnings-report p {
  margin: 0;
  padding: 0 2px;
  color: #7a8494;
  font-size: 12px;
  line-height: 1.45;
}

#accountView .reward-panel .reward-module-summary {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
  padding: 10px;
  border: 1px solid rgba(232, 236, 242, 0.92);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 248, 223, 0.92), rgba(255, 255, 255, 0.88));
  box-shadow: none;
}

#accountView .reward-panel .reward-module-summary:empty {
  display: none !important;
}

#accountView .reward-quota-line {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
}

#accountView .reward-quota-line span {
  color: #7a8494;
  font-size: 11px;
  line-height: 1.1;
}

#accountView .reward-quota-line strong {
  color: #7a4d00 !important;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 860;
  white-space: nowrap;
}

#accountView .reward-module-summary .task-meter {
  grid-column: 1 / -1;
  height: 4px;
  margin-top: 1px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(154, 106, 0, 0.12);
}

#accountView .reward-module-summary .task-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd45a, #f5a400);
}

/* Logo blue brand normalization */
.view-title,
.asset-add-btn,
.asset-generate-btn,
.asset-card.selected .asset-name,
.model-chip.active,
.duration-option.active,
.template-chip.active,
.auto-agent-confirm-head span,
.auto-agent-confirm-head strong,
.auto-agent-prompt-editor span,
#accountView .account-top-balance,
#accountView .wallet-card small,
#accountView .profile-edit-button,
#accountView .billing-link,
#accountView .gold-convert-entry,
.work-action.primary,
.work-stat.is-active,
.fullscreen-action.is-active {
  color: #55a7ff !important;
}

.primary,
.recharge-shortcut,
.auto-agent-input button,
.auto-agent-confirm-actions .primary,
.auto-agent-manual-btn,
.auto-agent-clear-btn,
.asset-selected-check,
.creator-submit-btn,
.download-primary,
.reward-watch-btn,
.gold-convert-primary {
  background: #55a7ff !important;
  color: #ffffff !important;
}

.primary-gradient,
.login-primary,
.studio-model-trigger,
.creator-tab-logo,
.generate-fab,
.ad-reward-primary {
  background: linear-gradient(135deg, #55a7ff 0%, #6d55f2 100%) !important;
}

.model-chip.active,
.duration-option.active,
.template-chip.active,
.asset-card.selected,
.auto-agent-confirm,
.auto-agent-prompt-editor textarea:focus {
  border-color: rgba(85, 167, 255, 0.24) !important;
  box-shadow: 0 10px 24px rgba(85, 167, 255, 0.08);
}

.auto-agent-confirm {
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 255, 0.94));
}

.auto-agent-confirm-head span {
  font-size: 12px;
  line-height: 1.2;
}

.auto-agent-confirm-head strong {
  padding: 4px 7px;
  background: rgba(85, 167, 255, 0.1) !important;
  font-size: 10px;
}

.auto-agent-plan-meta {
  gap: 5px;
}

.auto-agent-plan-meta span {
  padding: 6px 7px;
  border-radius: 10px;
  background: rgba(248, 251, 255, 0.92);
  font-size: 10px;
}

.auto-agent-input {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "input"
    "voice";
  justify-items: center;
  gap: 18px;
  padding-bottom: 24px;
}

.auto-agent-input button {
  min-height: 56px;
  border-radius: 12px;
  font-size: 12px;
}

#studioView .auto-agent-input textarea {
  grid-area: input;
}

#studioView .auto-agent-input .voice-input-button {
  grid-area: voice;
  width: 168px;
  min-width: 168px;
  min-height: 48px;
  height: 48px;
  padding: 0 18px;
  justify-self: center;
  margin-top: 92px;
  margin-bottom: 2px;
  border-radius: 999px;
  background: linear-gradient(135deg, #55a7ff 0%, #7aa7ff 100%) !important;
  color: #fff !important;
  font-size: 10px;
}

#studioView .voice-input-button.listening {
  background: linear-gradient(135deg, #55a7ff 0%, #7aa7ff 100%) !important;
  color: #fff !important;
}

/* Account earnings visual balance */
#accountView .wallet-card {
  gap: 7px;
  padding: 12px;
}

#accountView .wallet-card small {
  font-size: 15px !important;
  line-height: 1.2;
  font-weight: 800 !important;
}

#accountView .gold-balance-line {
  width: min(280px, 100%);
  min-height: 58px;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 15px;
  box-shadow: inset 0 0 0 1px rgba(244, 185, 65, 0.2), 0 8px 18px rgba(202, 137, 0, 0.06);
}

#accountView .earnings-metric {
  gap: 4px;
}

#accountView .earnings-metric em {
  font-size: 11px;
  font-weight: 760;
}

#accountView .gold-balance-line strong {
  font-size: 18px;
  font-weight: 820;
}

#accountView .earnings-divider {
  height: 28px;
}

#accountView .invite-code-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(232, 236, 242, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

#accountView .invite-code-card span {
  color: #7a8494;
  font-size: 12px;
}

#accountView .invite-code-card strong {
  color: #101828;
  font-size: 15px;
  font-weight: 860;
  letter-spacing: 0.04em;
}

/* Keep the works filter fixed while the feed or pull gesture moves. */
#worksView .works-switch {
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  isolation: isolate;
  transform: none !important;
  will-change: auto;
}

#worksView .works-switch::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -18px;
  right: -14px;
  bottom: -10px;
  left: -14px;
  background: var(--screen);
  pointer-events: none;
}

/* Agent asset library picker */
.auto-agent-rich.asset-library {
  align-items: flex-start;
}

.auto-agent-library-card {
  width: 100%;
  border: 1px solid rgba(85, 167, 255, 0.2);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(244,248,255,0.96));
  border-radius: 16px;
  padding: 13px;
  box-shadow: 0 12px 30px rgba(48, 113, 203, 0.1);
}

.auto-agent-library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.auto-agent-library-head strong {
  display: block;
  color: #142033;
  font-size: 16px;
  font-weight: 700 !important;
}

.auto-agent-library-head small,
.auto-agent-library-note,
.auto-agent-library-section header small {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.auto-agent-library-note {
  margin: 0 0 12px;
}

.auto-agent-library-section {
  margin-top: 12px;
}

.auto-agent-library-section header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.auto-agent-library-section header strong {
  display: block;
  color: #1d2939;
  font-size: 14px;
  font-weight: 700 !important;
}

.auto-agent-library-section header em {
  color: #55a7ff;
  font-style: normal;
  font-size: 12px;
  font-weight: 700 !important;
}

.auto-agent-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.auto-agent-library-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 5px;
  border: 1px solid #e4eaf2;
  border-radius: 12px;
  background: #fff;
  color: #1d2939;
  text-align: left;
  overflow: hidden;
}

.auto-agent-library-item img,
.auto-agent-library-thumb-empty {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  object-fit: cover;
  background: #eef3fb;
}

.auto-agent-library-thumb-empty {
  display: grid;
  place-items: center;
  color: #98a2b3;
  font-size: 12px;
}

.auto-agent-library-item span {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #344054;
  font-size: 11px;
  line-height: 1.25;
}

.auto-agent-library-item i {
  position: absolute;
  top: 8px;
  right: 8px;
  display: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #55a7ff;
  color: #fff;
  place-items: center;
  font-style: normal;
  font-size: 13px;
  font-weight: 800 !important;
  box-shadow: 0 6px 16px rgba(85, 167, 255, 0.35);
}

.auto-agent-library-item.selected {
  border-color: #55a7ff;
  box-shadow: 0 0 0 2px rgba(85, 167, 255, 0.16);
}

.auto-agent-library-item.selected i {
  display: grid;
}

.auto-agent-library-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 10px;
  border: 1px dashed #d8e0ea;
  border-radius: 12px;
  color: #98a2b3;
  background: rgba(255,255,255,0.72);
  font-size: 12px;
  text-align: center;
}

.auto-agent-library-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.auto-agent-library-actions button {
  min-height: 38px;
  border-radius: 999px;
  background: #eef5ff;
  color: #277bd8;
  font-size: 12px;
  font-weight: 700 !important;
}

.auto-agent-library-actions button:last-child {
  background: linear-gradient(135deg, #55a7ff, #6a80ff);
  color: #fff;
}
/* Stable hold-to-talk button with ripple */
.auto-agent-voice-btn,
#studioView .auto-agent-input .voice-input-button {
  position: relative;
  overflow: visible;
  transform: none !important;
  will-change: auto;
}

.auto-agent-voice-btn::before,
.auto-agent-voice-btn::after,
#studioView .auto-agent-input .voice-input-button::before,
#studioView .auto-agent-input .voice-input-button::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  border: 1px solid rgba(85, 167, 255, 0.38);
  box-shadow: 0 0 0 0 rgba(85, 167, 255, 0.22);
}

.auto-agent-voice-btn.pressing,
.auto-agent-voice-btn.listening,
#studioView .auto-agent-input .voice-input-button.pressing,
#studioView .auto-agent-input .voice-input-button.listening {
  transform: none !important;
  filter: none;
}

.auto-agent-voice-btn.pressing::before,
.auto-agent-voice-btn.listening::before,
#studioView .auto-agent-input .voice-input-button.pressing::before,
#studioView .auto-agent-input .voice-input-button.listening::before {
  animation: agent-voice-ripple 1.25s ease-out infinite;
}

.auto-agent-voice-btn.pressing::after,
.auto-agent-voice-btn.listening::after,
#studioView .auto-agent-input .voice-input-button.pressing::after,
#studioView .auto-agent-input .voice-input-button.listening::after {
  animation: agent-voice-ripple 1.25s ease-out infinite 0.42s;
}

@keyframes agent-voice-ripple {
  0% {
    opacity: 0.72;
    transform: scale(0.96);
    box-shadow: 0 0 0 0 rgba(85, 167, 255, 0.26);
  }
  72% {
    opacity: 0.1;
    transform: scale(1.2);
    box-shadow: 0 0 0 12px rgba(85, 167, 255, 0);
  }
  100% {
    opacity: 0;
    transform: scale(1.26);
    box-shadow: 0 0 0 16px rgba(85, 167, 255, 0);
  }
}
/* Agent intent clarification */
.auto-agent-intent-card {
  width: 100%;
  border: 1px solid rgba(85, 167, 255, 0.18);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  box-shadow: 0 12px 28px rgba(48, 113, 203, 0.09);
}

.auto-agent-intent-card > strong {
  display: block;
  color: #142033;
  font-size: 15px;
  font-weight: 750 !important;
  margin-bottom: 6px;
}

.auto-agent-intent-card p {
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
  margin: 0 0 10px;
}

.auto-agent-intent-examples {
  display: grid;
  gap: 6px;
  margin: 10px 0 12px;
}

.auto-agent-intent-examples span {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(85, 167, 255, 0.08);
  color: #344054;
  font-size: 11px;
  line-height: 1.35;
}

.auto-agent-intent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.auto-agent-intent-actions button {
  min-height: 38px;
  border-radius: 999px;
  background: #eef5ff;
  color: #277bd8;
  font-size: 12px;
  font-weight: 700 !important;
}

.auto-agent-intent-actions button:last-child {
  background: linear-gradient(135deg, #55a7ff, #6a80ff);
  color: #fff;
}
/* Agent command/status separation */
.studio-agent-inline #autoCreateStatus {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.auto-agent-panel .auto-voice-wave-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  transform: translate(-50%, -50%);
  margin: 0;
  pointer-events: none;
  box-shadow: 0 16px 42px rgba(15, 35, 70, 0.16);
}

.auto-agent-panel .auto-voice-wave-panel.hidden {
  display: none !important;
}

.auto-agent-text-card {
  width: 100%;
  border: 1px solid rgba(85, 167, 255, 0.18);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  box-shadow: 0 12px 28px rgba(48, 113, 203, 0.08);
}

.auto-agent-text-card strong {
  display: block;
  color: #142033;
  font-size: 15px;
  font-weight: 750 !important;
  margin-bottom: 6px;
}

.auto-agent-text-card p {
  margin: 0 0 10px;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.auto-agent-text-card pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 12px;
  border-radius: 12px;
  background: rgba(85, 167, 255, 0.08);
  color: #1d2939;
  font: inherit;
  font-size: 12px;
  line-height: 1.6;
}
/* Agent history and voice hint */
.auto-agent-history-btn {
  position: absolute;
  right: 14px;
  bottom: 118px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 58px;
  height: 34px;
  min-height: 34px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(20, 32, 51, 0.82);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(10px);
}

.auto-agent-history-btn.hidden {
  display: none;
}

.auto-agent-history-btn.active {
  background: linear-gradient(135deg, #55a7ff, #6a80ff);
}

.auto-agent-history-btn span {
  font-size: 11px;
  font-weight: 700 !important;
}

.auto-agent-history-btn strong {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 10px;
  font-weight: 800 !important;
}

.studio-agent-inline #autoAgentTaskList:not(.hidden) {
  position: absolute;
  right: 12px;
  bottom: 158px;
  z-index: 11;
  width: min(320px, calc(100% - 24px));
  max-height: min(54vh, 420px);
  overflow: auto;
  box-shadow: 0 20px 52px rgba(15, 23, 42, 0.2);
}

.auto-agent-voice-hint {
  grid-area: hint;
  margin-top: -12px;
  color: #7a8494;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
}

.auto-agent-input,
#studioView .auto-agent-input {
  grid-template-areas:
    "input"
    "voice"
    "hint";
}
/* Agent taller canvas and lower command input */
.studio-agent-inline .auto-agent-panel {
  min-height: calc(100dvh - 92px);
  grid-template-rows: auto minmax(274px, 1fr) auto auto auto;
}

#studioView .auto-agent-input {
  margin-top: 56px;
}

#studioView .auto-agent-overlay.auto-agent-has-draft .auto-agent-input {
  margin-top: 0;
}
/* Manual typed Agent command confirm */
#studioView .auto-agent-input,
.auto-agent-input {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "input confirm"
    "voice voice"
    "hint hint";
  column-gap: 8px;
  row-gap: 14px;
}

.auto-agent-text-confirm {
  grid-area: confirm;
  align-self: center;
  width: 54px;
  min-width: 54px;
  height: 36px;
  min-height: 36px !important;
  padding: 0;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #55a7ff, #6a80ff) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  box-shadow: 0 8px 18px rgba(85, 167, 255, 0.2);
}

.auto-agent-text-confirm.hidden {
  display: none;
}

.auto-agent-text-confirm:disabled {
  opacity: 0.52;
}
/* Works upload plus entry */
#worksView .works-topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 7px;
  align-items: center;
  margin: 0 0 14px;
  padding: 0 0 8px;
  background: var(--screen);
}

#worksView .works-topbar .works-switch {
  position: relative;
  top: auto;
  z-index: 1;
  width: 66%;
  min-width: 190px;
  max-width: 270px;
  height: 38px;
  margin: 0;
  padding: 3px;
  transform: none !important;
}

#worksView .works-topbar .works-switch::before {
  display: none;
}

#worksView .works-topbar .works-switch button {
  min-height: 30px;
  font-size: 12px;
}

.works-upload-plus {
  width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #55a7ff, #6a80ff);
  color: #fff;
  font-size: 23px;
  line-height: 1;
  font-weight: 500 !important;
  box-shadow: 0 8px 20px rgba(85, 167, 255, 0.22);
}

.works-upload-plus.busy {
  animation: mh-upload-pulse 0.9s ease-in-out infinite;
}

@keyframes mh-upload-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.94); opacity: 0.72; }
}
/* Compact work card header: model below time */
#worksView .work-title {
  align-items: flex-start;
}

#worksView .work-side-meta {
  flex: 0 0 auto;
  max-width: 138px;
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

#worksView .work-side-meta small {
  max-width: 138px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #98a2b3;
  font-size: 10px;
  line-height: 1.15;
}

#worksView .work-side-meta .model-badge {
  max-width: 138px;
  min-height: 0;
  padding: 2px 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(85, 167, 255, 0.1);
  color: #55a7ff;
  font-size: 10px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#worksView .work-side-meta em {
  color: #667085;
  font-size: 10px;
  line-height: 1.1;
  font-style: normal;
}

#worksView .work-meta-row {
  display: none;
}
/* Prevent works feed from showing through the sticky tab gap */
#worksView .works-topbar {
  isolation: isolate;
}

#worksView .works-topbar::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -28px;
  right: -14px;
  bottom: 0;
  left: -14px;
  background: var(--screen);
  pointer-events: none;
}

#worksView .works-topbar > * {
  position: relative;
  z-index: 1;
}
/* Invite network card */
#accountView .invite-bind-card,
#accountView .invite-network-card {
  display: grid;
  gap: 9px;
  margin: 0 0 10px;
  padding: 11px 12px;
  border: 1px solid rgba(232, 236, 242, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

#accountView .invite-bind-card.hidden {
  display: none;
}

#accountView .invite-bind-card > span,
#accountView .invite-network-head span {
  color: #7a8494;
  font-size: 12px;
}

#accountView .invite-bind-card > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 8px;
}

#accountView .invite-bind-card input {
  min-height: 38px;
  border-radius: 12px;
  font-size: 13px;
}

#accountView .invite-bind-card button {
  min-height: 38px;
  border-radius: 12px;
  background: #55a7ff;
  color: #fff;
  font-size: 13px;
}

#accountView .invite-network-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#accountView .invite-network-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #101828;
  font-size: 12px;
}

#accountView .invite-network-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

#accountView .invite-network-metrics article {
  display: grid;
  gap: 3px;
  padding: 8px;
  border-radius: 12px;
  background: #f5f8fc;
}

#accountView .invite-network-metrics em {
  color: #7a8494;
  font-size: 10px;
  font-style: normal;
}

#accountView .invite-network-metrics strong {
  color: #101828;
  font-size: 16px;
  line-height: 1.1;
}

#accountView .invite-level-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#accountView .invite-level-list span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(85, 167, 255, 0.1);
  color: #348fff;
  font-size: 11px;
}
/* Account fold arrows: compact chevron symbol instead of text. */
#accountView .account-fold summary .fold-arrow {
  width: 22px;
  min-width: 22px;
  text-align: center;
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
  color: #98a2b3;
  transform-origin: center;
}

#accountView .account-fold[open] summary .fold-arrow {
  font-size: 24px;
  color: #55a7ff;
  opacity: 0.72;
  transform: rotate(90deg);
}

#accountView .account-fold[open] summary .fold-arrow::before {
  content: none;
}

/* Voice button no-shift overlay v1 */
.studio-agent-inline .auto-agent-panel {
  position: relative !important;
}

.studio-agent-inline .auto-agent-panel .auto-voice-wave-panel {
  position: absolute !important;
  left: 50% !important;
  top: 46% !important;
  z-index: 18 !important;
  display: flex !important;
  width: min(210px, 76%) !important;
  min-height: 54px !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  pointer-events: none !important;
  grid-area: unset !important;
}

.studio-agent-inline .auto-agent-panel .auto-voice-wave-panel.hidden {
  display: none !important;
}

.studio-agent-inline .auto-agent-input,
.studio-agent-inline .auto-agent-voice-btn,
.studio-agent-inline .auto-agent-voice-btn.pressing,
.studio-agent-inline .auto-agent-voice-btn.listening {
  transform: none !important;
  translate: none !important;
}

/* Account recharge balance contrast v1 */
#accountView .account-recharge-zone #balanceLabel.account-top-balance {
  color: #172033 !important;
  font-weight: 900 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Account balance order v1 */
#accountView .account-recharge-zone {
  gap: 7px !important;
}

#accountView .account-recharge-zone #balanceLabel.account-top-balance {
  max-width: 168px !important;
  color: #172033 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  opacity: 1 !important;
  text-align: right !important;
}

/* Voice button no-shift v2 */
.studio-agent-inline .auto-agent-input {
  position: relative !important;
  contain: layout paint !important;
  min-height: 230px !important;
  height: 230px !important;
  align-content: start !important;
  grid-template-rows: minmax(56px, 96px) 48px 18px !important;
  gap: 12px !important;
  padding-bottom: 0 !important;
}

.studio-agent-inline .auto-agent-input textarea {
  max-height: 96px !important;
  overflow-y: auto !important;
}

.studio-agent-inline .auto-agent-voice-btn {
  margin-top: 58px !important;
  margin-bottom: 0 !important;
  transform: none !important;
  translate: none !important;
}

.studio-agent-inline .auto-agent-voice-hint {
  margin-top: -2px !important;
}

.studio-agent-inline .auto-agent-voice-btn.pressing,
.studio-agent-inline .auto-agent-voice-btn.listening {
  transform: none !important;
  translate: none !important;
  top: auto !important;
}

.studio-agent-inline .auto-agent-panel .auto-voice-wave-panel {
  position: absolute !important;
  left: 50% !important;
  top: 42% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  grid-area: unset !important;
  pointer-events: none !important;
}

/* Works upload plus visual v1 */
#worksView .works-upload-plus {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 0 2px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, rgba(85, 167, 255, 0.82), rgba(106, 128, 255, 0.78)) !important;
  color: #fff !important;
  font-size: 21px !important;
  line-height: 1 !important;
  font-weight: 600 !important;
  box-shadow: 0 6px 16px rgba(85, 167, 255, 0.16) !important;
}


/* Creation-owned works v1 */
.studio-my-works {
  margin-top: 18px;
  padding-top: 4px;
}

.studio-section-head,
.works-public-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.studio-section-head {
  margin: 0 2px 12px;
}

.studio-section-head strong,
.works-public-title strong {
  display: block;
  color: #101828;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
}

.studio-section-head span,
.works-public-title span {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
}

#worksView .works-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 44px;
  margin: 0 0 14px;
  padding: 7px 4px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--screen);
  isolation: isolate;
}

#worksView .works-topbar::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -18px;
  right: -14px;
  bottom: -10px;
  left: -14px;
  background: var(--screen);
  pointer-events: none;
}

#worksView .works-upload-plus {
  flex: 0 0 auto;
}


/* In-page red packet reward v1 */
.gold-reward-celebration.in-page {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 11, 18, 0.42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  pointer-events: none;
}

.gold-reward-celebration.in-page.red-packet-mode .gold-pile {
  display: none;
}

.gold-reward-celebration.in-page.red-packet-mode .red-envelope {
  display: block;
}

.gold-reward-celebration.in-page.red-packet-mode.celebrating .red-envelope {
  animation: red-envelope-pop 0.78s cubic-bezier(0.18, 1.35, 0.36, 1) both;
}

.gold-reward-celebration.in-page.red-packet-mode.celebrating .red-envelope span {
  animation: red-envelope-open 0.86s 0.18s cubic-bezier(0.18, 1.2, 0.38, 1) both;
}

/* Ad WeChat share actions v1 */
.ad-share-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.ad-share-button {
  min-width: 0;
  min-height: 34px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  background: rgba(16, 185, 129, 0.08);
  color: #147a54;
  font-size: 12px;
  font-weight: 820;
}

.ad-share-button .social-icon {
  width: 15px;
  height: 15px;
}

.ad-share-timeline {
  background: rgba(88, 169, 255, 0.1);
  border-color: rgba(88, 169, 255, 0.28);
  color: #2e72b2;
}


/* Video creative support for feed ads v1 */
.ad-media.ad-video {
  width: 100%;
  display: block;
  object-fit: cover;
  background: #05070d;
}

/* Video edit sheet */
.video-edit-social { color: #2563eb; }
.video-edit-sheet.hidden { display: none; }
.video-edit-sheet {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.video-edit-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(8px);
}
.video-edit-panel {
  position: relative;
  width: min(430px, calc(100vw - 24px));
  margin: 0 12px calc(env(safe-area-inset-bottom, 0px) + 14px);
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  color: #0f172a;
}
.video-edit-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 20px;
  line-height: 1;
}
.video-edit-panel small {
  display: block;
  color: #2563eb;
  font-weight: 800;
}
.video-edit-panel h3 {
  margin: 6px 36px 12px 0;
  font-size: 19px;
  line-height: 1.25;
  color: #0f172a;
}
.video-edit-panel textarea {
  width: 100%;
  min-height: 116px;
  resize: vertical;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 13px 14px;
  background: #f8fbff;
  color: #0f172a;
  outline: none;
  font-size: 15px;
  line-height: 1.55;
}
.video-edit-panel textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.16);
}
.video-edit-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 8px;
}
.video-edit-options button {
  height: 38px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-weight: 800;
}
.video-edit-options button.active {
  border-color: #2563eb;
  background: linear-gradient(135deg, #5aa7ff, #5f63f2);
  color: #fff;
}
.video-edit-panel p {
  margin: 8px 0 14px;
  color: #64748b;
  font-size: 12px;
}
.video-edit-panel .primary {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #5aa7ff, #5f63f2);
  color: #fff;
  font-weight: 900;
}
/* v20260704-fullscreen-icon-v1: stable icon-only fullscreen button */
.video-fullscreen {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
.video-fullscreen .video-fullscreen-icon {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
/* v20260704-account-name-fit-v1: prevent nickname/edit overlap in Android WebView */
#accountView .account-user {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
}
#accountView .account-user-main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
#accountView .account-name-row {
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  column-gap: 8px !important;
}
#accountView .account-name-row h2 {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: clamp(18px, 5vw, 24px) !important;
  line-height: 1.15 !important;
}
#accountView .profile-edit-button {
  width: auto !important;
  min-width: 44px !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  justify-self: end !important;
}
#accountView #accountPhone {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
/* v20260704-account-name-fit-v2: robust profile name/edit layout */
#accountView .account-card {
  overflow: hidden !important;
}
#accountView .account-user {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
#accountView .account-user .avatar-upload {
  grid-column: 1 !important;
}
#accountView .account-user-main {
  grid-column: 2 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
#accountView .account-name-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) max-content !important;
  align-items: center !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
#accountView .account-name-row h2 {
  display: block !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 20px !important;
  line-height: 1.16 !important;
}
#accountView .profile-edit-button {
  position: static !important;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 26px !important;
  min-height: 26px !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  white-space: nowrap !important;
  font-size: 12px !important;
  line-height: 1 !important;
  justify-self: end !important;
}
#accountView #accountPhone {
  display: block !important;
  max-width: 100% !important;
  margin-top: 4px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
@media (max-width: 360px) {
  #accountView .account-user {
    grid-template-columns: 58px minmax(0, 1fr) !important;
    gap: 10px !important;
  }
  #accountView .account-name-row h2 {
    font-size: 18px !important;
  }
  #accountView .profile-edit-button {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
  }
}
/* v20260704-account-name-stack-v3: nickname never shares a row with edit button */
#accountView .account-user {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
#accountView .account-user-main {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 4px !important;
  justify-items: start !important;
}
#accountView .account-name-row {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
#accountView .account-name-row h2 {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 22px !important;
  line-height: 1.14 !important;
}
#accountView #accountPhone {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
#accountView .profile-edit-button {
  position: static !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 24px !important;
  min-height: 24px !important;
  margin-top: 2px !important;
  padding: 0 9px !important;
  display: inline-grid !important;
  place-items: center !important;
  justify-self: start !important;
  white-space: nowrap !important;
  font-size: 11px !important;
  line-height: 1 !important;
}
@media (max-width: 360px) {
  #accountView .account-user {
    grid-template-columns: 58px minmax(0, 1fr) !important;
    gap: 10px !important;
  }
  #accountView .account-name-row h2 {
    font-size: 20px !important;
  }
}
/* agent conversation cards v1 */
.auto-agent-directive-card {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(85, 167, 255, 0.22);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(85, 167, 255, 0.10), rgba(255, 255, 255, 0.94));
}
.auto-agent-directive-card.hidden {
  display: none;
}
.auto-agent-directive-card span {
  color: #2677d9;
  font-size: 11px;
  font-weight: 900;
}
.auto-agent-directive-card p {
  margin: 0;
  color: #142033;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-line;
}
.auto-agent-selected-assets-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(85, 167, 255, 0.20);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(244,248,255,0.96));
  box-shadow: 0 10px 24px rgba(48, 113, 203, 0.08);
}
.auto-agent-selected-assets-card > strong {
  color: #142033;
  font-size: 14px;
  font-weight: 900;
}
.auto-agent-selected-assets-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.auto-agent-selected-assets-card li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}
.auto-agent-selected-assets-card li strong {
  color: #2677d9;
  font-size: 12px;
  font-weight: 900;
}
.auto-agent-selected-assets-card li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #344054;
  font-size: 12px;
}
.auto-agent-selected-assets-card p {
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}
.auto-agent-msg.process p {
  color: #37506f;
}

/* agent answer card v1 */
.auto-agent-answer-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(85, 167, 255, 0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(242,247,255,0.96));
  box-shadow: 0 10px 26px rgba(48, 113, 203, 0.08);
}
.auto-agent-answer-card > strong {
  color: #142033;
  font-size: 14px;
  font-weight: 900;
}
.auto-agent-answer-card ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.auto-agent-answer-card li {
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border-radius: 12px;
  background: rgba(255,255,255,0.78);
}
.auto-agent-answer-card li b {
  color: #2677d9;
  font-size: 12px;
  font-weight: 900;
}
.auto-agent-answer-card li span {
  color: #344054;
  font-size: 12px;
  line-height: 1.45;
}
.auto-agent-prompt-editor > span {
  color: #2677d9;
  font-weight: 900;
}

/* agent chat layout v2 */
.studio-agent-inline .auto-agent-panel {
  background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
  gap: 10px;
}
.studio-agent-inline .auto-agent-head {
  padding: 2px 2px 0;
}
.studio-agent-inline .auto-agent-head strong {
  font-size: 14px;
  font-weight: 900;
}
.studio-agent-inline .auto-agent-log {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-height: 240px;
  padding: 12px 10px 16px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248,251,255,0.96), rgba(239,245,255,0.96));
  box-shadow: inset 0 0 0 1px rgba(203, 216, 235, 0.58);
}
.studio-agent-inline .auto-agent-directive-card {
  display: none !important;
}
.studio-agent-inline #autoCreateStatus {
  display: none !important;
}
.studio-agent-inline .auto-agent-msg {
  width: fit-content;
  max-width: 84%;
  display: grid;
  gap: 4px;
}
.studio-agent-inline .auto-agent-msg.agent {
  align-self: flex-start;
}
.studio-agent-inline .auto-agent-msg.user {
  align-self: flex-end;
  justify-self: auto;
}
.studio-agent-inline .auto-agent-msg > span {
  width: fit-content;
  padding: 0 2px;
  color: #7a8aa0;
  font-size: 10px;
  font-weight: 800;
}
.studio-agent-inline .auto-agent-msg.user > span {
  justify-self: end;
  color: #2677d9;
}
.studio-agent-inline .auto-agent-msg p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 16px 16px 16px 5px;
  background: #fff;
  color: #18283d;
  border: 1px solid rgba(214, 225, 240, 0.9);
  box-shadow: 0 8px 18px rgba(30, 64, 112, 0.06);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-line;
}
.studio-agent-inline .auto-agent-msg.user p {
  border-color: rgba(85, 167, 255, 0.28);
  border-radius: 16px 16px 5px 16px;
  background: linear-gradient(135deg, #55a7ff, #397ef0);
  color: #fff;
  box-shadow: 0 10px 22px rgba(57, 126, 240, 0.22);
}
.studio-agent-inline .auto-agent-msg.auto-agent-rich {
  width: min(94%, 390px);
  max-width: 94%;
}
.studio-agent-inline .auto-agent-msg.auto-agent-rich > span {
  color: #7a8aa0;
}
.studio-agent-inline .auto-agent-msg.auto-agent-rich article {
  border-radius: 16px;
}
.studio-agent-inline .auto-agent-msg.process p,
.studio-agent-inline .auto-agent-msg.working p {
  border-style: dashed;
  background: #f9fbff;
  color: #49637f;
  box-shadow: none;
}
.studio-agent-inline .auto-agent-msg.done p::after {
  content: "OK";
  width: auto;
  padding: 0 5px;
  font-size: 9px;
}
.studio-agent-inline .auto-agent-confirm {
  border: 1px solid rgba(85, 167, 255, 0.22);
  border-radius: 18px;
  background: rgba(255,255,255,0.90);
  box-shadow: 0 10px 24px rgba(31, 80, 140, 0.08);
}
.studio-agent-inline .auto-agent-confirm-head span::before {
  content: "Agent ";
}
.studio-agent-inline .auto-agent-prompt-editor textarea {
  max-height: 150px;
  border-radius: 14px;
}
.studio-agent-inline .auto-agent-input {
  border: 1px solid rgba(203, 216, 235, 0.82);
  border-radius: 18px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 -2px 16px rgba(31, 80, 140, 0.05);
}
.studio-agent-inline .auto-agent-input textarea {
  background: #f7faff;
  border-color: rgba(214, 225, 240, 0.9);
}

/* agent chat composer v1 */
.studio-agent-inline .auto-agent-text-confirm {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  height: 34px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #55a7ff;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.studio-agent-inline .auto-agent-text-confirm.hidden {
  display: inline-grid;
  opacity: 0.42;
  pointer-events: none;
}
.studio-agent-inline .auto-agent-text-confirm:disabled {
  opacity: 0.42;
}
.studio-agent-inline .auto-agent-input {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.studio-agent-inline .auto-agent-input textarea {
  min-height: 44px;
  max-height: 116px;
}
.studio-agent-inline .auto-agent-voice-btn {
  grid-column: 1 / -1;
  justify-self: center;
}
.studio-agent-inline .auto-agent-voice-hint {
  grid-column: 1 / -1;
  justify-self: center;
}

/* agent borderless chat v5 */
.studio-agent-inline {
  background: #f7faff;
}
.studio-agent-inline .auto-agent-panel {
  min-height: calc(100dvh - 126px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto auto;
  gap: 8px;
  padding: 0 10px 10px;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}
.studio-agent-inline .auto-agent-head {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 3;
  width: auto;
  padding: 0;
}
.studio-agent-inline .auto-agent-head > div {
  display: none !important;
}
.studio-agent-inline .auto-agent-head .auto-agent-manual-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  background: rgba(255,255,255,0.72);
  color: #667085;
  box-shadow: 0 6px 16px rgba(31, 80, 140, 0.08);
}
.studio-agent-inline .auto-agent-log {
  min-height: calc(100dvh - 274px);
  padding: 14px 0 12px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.studio-agent-inline .auto-agent-msg {
  max-width: 88%;
}
.studio-agent-inline .auto-agent-msg > span {
  display: none;
}
.studio-agent-inline .auto-agent-msg p {
  border: 0;
  box-shadow: none;
  background: #fff;
  border-radius: 17px 17px 17px 6px;
  color: #1d2939;
}
.studio-agent-inline .auto-agent-msg.user p {
  border: 0;
  border-radius: 17px 17px 6px 17px;
  background: #55a7ff;
  color: #fff;
  box-shadow: none;
}
.studio-agent-inline .auto-agent-msg.auto-agent-rich {
  width: min(92%, 380px);
  max-width: 92%;
}
.studio-agent-inline .auto-agent-msg.auto-agent-rich article,
.studio-agent-inline .auto-agent-answer-card,
.studio-agent-inline .auto-agent-selected-assets-card,
.studio-agent-inline .auto-agent-library-card,
.studio-agent-inline .auto-agent-preview-card,
.studio-agent-inline .auto-agent-video-progress,
.studio-agent-inline .auto-agent-video-result,
.studio-agent-inline .auto-agent-text-card,
.studio-agent-inline .auto-agent-intent-card {
  border: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  border-radius: 18px !important;
}
.studio-agent-inline .auto-agent-confirm {
  margin: 0;
  padding: 10px;
  border: 0 !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: none !important;
}
.studio-agent-inline .auto-agent-confirm-head {
  margin-bottom: 8px;
}
.studio-agent-inline .auto-agent-plan-meta {
  gap: 5px;
}
.studio-agent-inline .auto-agent-plan-meta span {
  background: #f3f7ff;
  border: 0;
}
.studio-agent-inline .auto-agent-prompt-editor textarea {
  border: 0 !important;
  background: #f6f8fc !important;
  box-shadow: none !important;
}
.studio-agent-inline .auto-agent-input {
  position: sticky;
  bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  z-index: 5;
  margin: 0;
  padding: 8px;
  border: 0 !important;
  border-radius: 22px;
  background: rgba(255,255,255,0.96) !important;
  box-shadow: 0 8px 26px rgba(31, 80, 140, 0.12) !important;
}
.studio-agent-inline .auto-agent-input textarea {
  min-height: 42px;
  border: 0 !important;
  border-radius: 16px;
  background: #f2f6fc !important;
  box-shadow: none !important;
}
.studio-agent-inline .auto-agent-text-confirm {
  background: #55a7ff;
  box-shadow: none;
}
.studio-agent-inline .auto-agent-voice-btn {
  margin-top: 2px;
  box-shadow: none !important;
}
.studio-agent-inline .auto-agent-voice-hint {
  margin-top: -2px;
  color: #98a2b3;
}
.studio-agent-inline .auto-agent-task-list {
  border: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}
.studio-agent-inline .auto-agent-inline-actions {
  margin-top: 0;
}

/* agent fixed composer follow v8 */
.studio-agent-inline .auto-agent-panel {
  min-height: calc(100dvh - 126px);
  padding: 0 10px calc(154px + env(safe-area-inset-bottom, 0px)) !important;
}
.studio-agent-inline .auto-agent-log {
  height: calc(100dvh - 286px);
  min-height: 280px;
  max-height: calc(100dvh - 238px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding-bottom: 18px !important;
}
.studio-agent-inline .auto-agent-input {
  position: fixed !important;
  left: 50%;
  right: auto;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  transform: translate3d(-50%, 0, 0);
  width: min(calc(100vw - 20px), calc(var(--app-width) - 20px));
  z-index: 82;
  margin: 0 !important;
  contain: layout paint;
  will-change: transform;
}
.studio-agent-inline .auto-agent-input,
.studio-agent-inline .auto-agent-input.pressing,
.studio-agent-inline .auto-agent-input.listening,
.studio-agent-inline .auto-agent-voice-btn,
.studio-agent-inline .auto-agent-voice-btn.pressing,
.studio-agent-inline .auto-agent-voice-btn.listening {
  transform-style: preserve-3d;
}
.studio-agent-inline .auto-agent-input textarea {
  resize: none;
}
.studio-agent-inline .auto-agent-msg.typing p::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 1.05em;
  margin-left: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.48;
  vertical-align: -2px;
  animation: agentTypingCaret 0.86s ease-in-out infinite;
}
.studio-agent-inline .auto-voice-wave-panel,
.auto-agent-panel .auto-voice-wave-panel {
  position: fixed;
  left: 50%;
  bottom: calc(202px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 83;
  width: min(210px, calc(100vw - 80px));
  pointer-events: none;
}
@keyframes agentTypingCaret {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.72; }
}

/* agent fixed composer alignment v9 */
#appPanel .studio-agent-inline .auto-agent-input {
  left: max(10px, calc((100vw - var(--app-width)) / 2 + 10px)) !important;
  right: max(10px, calc((100vw - var(--app-width)) / 2 + 10px)) !important;
  width: auto !important;
  max-width: calc(var(--app-width) - 20px) !important;
  transform: none !important;
  margin: 0 auto !important;
}

#appPanel .studio-agent-inline .auto-agent-input,
#appPanel .studio-agent-inline .auto-agent-input.pressing,
#appPanel .studio-agent-inline .auto-agent-input.listening {
  translate: none !important;
}

#appPanel .studio-agent-inline .auto-agent-input textarea {
  min-width: 0;
}

#appPanel .studio-agent-inline .auto-voice-wave-panel,
#appPanel .auto-agent-panel .auto-voice-wave-panel {
  left: max(40px, calc((100vw - var(--app-width)) / 2 + 110px)) !important;
  transform: none !important;
}

/* agent fixed composer alignment v10 */
#appPanel .studio-agent-inline .auto-agent-input {
  left: max(10px, calc((100vw - var(--app-width)) / 2 + 10px)) !important;
  right: auto !important;
  width: min(calc(100vw - 20px), calc(var(--app-width) - 20px)) !important;
  max-width: calc(var(--app-width) - 20px) !important;
  min-width: 0 !important;
  transform: none !important;
  translate: none !important;
  margin: 0 !important;
}

#appPanel .studio-agent-inline .auto-agent-input textarea {
  width: 100%;
  min-width: 0;
}

#appPanel .studio-agent-inline .auto-voice-wave-panel,
#appPanel .auto-agent-panel .auto-voice-wave-panel {
  left: calc(max(10px, calc((100vw - var(--app-width)) / 2 + 10px)) + 100px) !important;
  transform: none !important;
}

/* agent fixed composer container alignment v11 */
#appPanel .screen-body .studio-agent-inline .auto-agent-input {
  left: 10px !important;
  right: auto !important;
  width: calc(100% - 20px) !important;
  max-width: calc(var(--app-width) - 20px) !important;
  min-width: 0 !important;
  transform: none !important;
  translate: none !important;
  margin: 0 !important;
}

#appPanel .screen-body .studio-agent-inline .auto-voice-wave-panel,
#appPanel .screen-body .auto-agent-panel .auto-voice-wave-panel {
  left: 110px !important;
  transform: none !important;
}

/* agent fixed composer visible with draft v13 */
#appPanel #studioView .auto-agent-overlay.auto-agent-has-draft .auto-agent-input,
#appPanel .screen-body .studio-agent-inline.auto-agent-has-draft .auto-agent-input,
#appPanel .screen-body .studio-agent-inline .auto-agent-input {
  display: grid !important;
  position: fixed !important;
  left: 10px !important;
  right: auto !important;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  width: calc(100% - 20px) !important;
  max-width: calc(var(--app-width) - 20px) !important;
  min-width: 0 !important;
  transform: none !important;
  translate: none !important;
  margin: 0 !important;
  z-index: 84 !important;
}

#appPanel #studioView .auto-agent-overlay.auto-agent-has-draft .auto-agent-panel,
#appPanel .screen-body .studio-agent-inline.auto-agent-has-draft .auto-agent-panel {
  padding-bottom: calc(174px + env(safe-area-inset-bottom, 0px)) !important;
}

/* agent fixed composer viewport anchoring v14 */
#appPanel .screen-body {
  transform: none !important;
}
#appPanel .screen-body.is-pulling,
#appPanel .screen-body.pull-refresh-instant-reset,
#appPanel .screen-body.is-pull-settling,
#appPanel .screen-body.pull-refresh-unlocking {
  transform: translateY(var(--pull-offset, 0px)) !important;
}
#appPanel #studioView .auto-agent-overlay.auto-agent-has-draft .auto-agent-input,
#appPanel .screen-body .studio-agent-inline.auto-agent-has-draft .auto-agent-input,
#appPanel .screen-body .studio-agent-inline .auto-agent-input {
  display: grid !important;
  position: fixed !important;
  left: max(10px, calc((100vw - var(--app-width)) / 2 + 10px)) !important;
  right: auto !important;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  width: min(calc(100vw - 20px), calc(var(--app-width) - 20px)) !important;
  max-width: calc(var(--app-width) - 20px) !important;
  transform: none !important;
  translate: none !important;
  margin: 0 !important;
  z-index: 84 !important;
}
#appPanel .screen-body .studio-agent-inline .auto-voice-wave-panel,
#appPanel .screen-body .auto-agent-panel .auto-voice-wave-panel {
  left: calc(max(10px, calc((100vw - var(--app-width)) / 2 + 10px)) + 100px) !important;
  transform: none !important;
}

/* studio my works entry v17 */
.studio-my-works-entry {
  position: sticky;
  top: 0;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 0 0 8px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(85, 167, 255, 0.24);
  background: rgba(255, 255, 255, 0.94);
  color: #235b91;
  box-shadow: 0 10px 22px rgba(30, 94, 150, 0.1);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(12px);
}
.studio-my-works-entry:active {
  transform: translateY(1px);
}

/* works page my works relocation v18 */
#worksView #myWorksPanel {
  display: block;
}
#worksView #myWorksPanel.hidden {
  display: none;
}

/* agent log bottom clearance v19 */
#appPanel .screen-body .studio-agent-inline .auto-agent-panel {
  padding-bottom: calc(196px + env(safe-area-inset-bottom, 0px)) !important;
}
#appPanel .screen-body .studio-agent-inline .auto-agent-log {
  padding-bottom: calc(158px + env(safe-area-inset-bottom, 0px)) !important;
  scroll-padding-bottom: calc(158px + env(safe-area-inset-bottom, 0px)) !important;
}
#appPanel .screen-body .studio-agent-inline .auto-agent-log > :last-child {
  margin-bottom: calc(136px + env(safe-area-inset-bottom, 0px)) !important;
}
#appPanel .screen-body .studio-agent-inline.auto-agent-has-draft .auto-agent-log > :last-child {
  margin-bottom: calc(154px + env(safe-area-inset-bottom, 0px)) !important;
}

/* studio my works fixed entry v20 */
#appPanel #studioView {
  padding-top: 42px !important;
}
#appPanel #studioView .studio-my-works-entry {
  position: fixed !important;
  top: calc(12px + env(safe-area-inset-top, 0px)) !important;
  left: max(14px, calc((100vw - var(--app-width)) / 2 + 14px)) !important;
  z-index: 86 !important;
  margin: 0 !important;
}

/* studio task entry dialog corner v21 */
#appPanel #studioView {
  padding-top: 0 !important;
}
#appPanel #studioView .studio-my-works-entry {
  position: fixed !important;
  top: auto !important;
  left: auto !important;
  right: max(14px, calc((100vw - var(--app-width)) / 2 + 14px)) !important;
  bottom: calc(220px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 85 !important;
  margin: 0 !important;
}

/* auto agent task entry dialog corner v21 */
#appPanel #studioView {
  padding-top: 42px !important;
}
#appPanel #studioView .studio-my-works-entry {
  position: fixed !important;
  top: calc(12px + env(safe-area-inset-top, 0px)) !important;
  left: max(14px, calc((100vw - var(--app-width)) / 2 + 14px)) !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 86 !important;
  margin: 0 !important;
}
#appPanel .screen-body .studio-agent-inline .auto-agent-history-btn {
  position: fixed !important;
  right: max(18px, calc((100vw - var(--app-width)) / 2 + 18px)) !important;
  bottom: calc(208px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 87 !important;
  margin: 0 !important;
}
#appPanel .screen-body .studio-agent-inline #autoAgentTaskList:not(.hidden) {
  position: fixed !important;
  right: max(12px, calc((100vw - var(--app-width)) / 2 + 12px)) !important;
  bottom: calc(248px + env(safe-area-inset-bottom, 0px)) !important;
  width: min(320px, calc(100vw - 24px), calc(var(--app-width) - 24px)) !important;
  max-height: min(42vh, 360px) !important;
  z-index: 86 !important;
  overflow: auto !important;
  box-shadow: 0 20px 52px rgba(15, 23, 42, 0.2) !important;
}

/* auto agent task entry lower clearance v22 */
#appPanel .screen-body .studio-agent-inline .auto-agent-history-btn {
  right: max(16px, calc((100vw - var(--app-width)) / 2 + 16px)) !important;
  bottom: calc(154px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 88 !important;
}
#appPanel .screen-body .studio-agent-inline #autoAgentTaskList:not(.hidden) {
  right: max(12px, calc((100vw - var(--app-width)) / 2 + 12px)) !important;
  bottom: calc(194px + env(safe-area-inset-bottom, 0px)) !important;
  width: min(304px, calc(100vw - 24px), calc(var(--app-width) - 24px)) !important;
  max-height: min(34vh, 300px) !important;
  z-index: 87 !important;
}

/* manual create fixed top right v24 */
#appPanel .screen-body .studio-agent-inline .auto-agent-head {
  position: static !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}
#appPanel .screen-body .studio-agent-inline .auto-agent-head .auto-agent-manual-btn,
#appPanel #switchManualCreateBtn {
  position: fixed !important;
  top: calc(12px + env(safe-area-inset-top, 0px)) !important;
  right: max(14px, calc((100vw - var(--app-width)) / 2 + 14px)) !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 87 !important;
  width: auto !important;
  min-width: 82px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: #55a7ff !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(31, 80, 140, 0.16) !important;
}

/* works upload plus plain blue v26 */
#worksView .works-upload-plus {
  display: inline-grid !important;
  place-items: center !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #2388ff !important;
  box-shadow: none !important;
  font-size: 32px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
}
#worksView .works-upload-plus.busy {
  animation: none !important;
  opacity: 0.58 !important;
}

/* work upload sheet exit v27 */
.work-upload-sheet {
  position: fixed;
  inset: 0;
  z-index: 92;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 16px 12px calc(16px + env(safe-area-inset-bottom, 0px));
}
.work-upload-sheet.hidden {
  display: none;
}
.work-upload-mask {
  position: absolute;
  inset: 0;
  background: rgba(8, 13, 24, 0.38);
  backdrop-filter: blur(4px);
}
.work-upload-card {
  position: relative;
  z-index: 1;
  width: min(100%, calc(var(--app-width) - 24px));
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
}
.work-upload-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.work-upload-head div {
  display: grid;
  gap: 4px;
}
.work-upload-head strong {
  color: #101828;
  font-size: 17px;
  font-weight: 900 !important;
}
.work-upload-head small {
  color: #667085;
  font-size: 12px;
}
.work-upload-head button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  font-size: 22px;
  line-height: 1;
}
.work-upload-choose,
.work-upload-cancel {
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800 !important;
}
.work-upload-choose {
  background: #55a7ff;
  color: #fff;
}
.work-upload-cancel {
  background: #f2f4f7;
  color: #344054;
}

/* manual create white pen button v29 */
#appPanel .screen-body .studio-agent-inline .auto-agent-head .auto-agent-manual-btn,
#appPanel #switchManualCreateBtn {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(85, 167, 255, 0.26) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #2388ff !important;
  box-shadow: 0 10px 24px rgba(31, 80, 140, 0.12) !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}
#appPanel #switchManualCreateBtn:active {
  transform: scale(0.96) !important;
}

/* voice asset library v30 */
.voice-asset-strip .asset-chip {
  min-height: 88px;
}
.voice-asset-thumb,
.auto-agent-library-audio {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eef7ff, #ffffff) !important;
  color: #2388ff !important;
  border: 1px solid rgba(85, 167, 255, 0.22) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}
.asset-audio-name {
  display: block;
  max-width: 100%;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #475467;
  font-size: 11px;
}
.voice-record-action.recording,
.voice-record-action.busy {
  border-color: rgba(35, 136, 255, 0.42);
  background: #eef7ff;
}
.auto-agent-voice-asset-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
}
.auto-agent-voice-asset-card strong {
  color: #142033;
  font-size: 14px;
  font-weight: 900 !important;
}
.auto-agent-voice-asset-card p,
.auto-agent-voice-asset-card small {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}
.auto-agent-voice-asset-card button {
  min-height: 40px;
  border-radius: 999px;
  background: #55a7ff;
  color: #fff;
  font-weight: 900 !important;
}

/* voice asset playback v31 */
.voice-asset-audio {
  width: 100% !important;
  max-width: 100% !important;
  height: 32px !important;
  margin-top: 6px !important;
  display: block !important;
  grid-column: 1 / -1;
}
.auto-agent-library-item .voice-asset-audio {
  height: 30px !important;
  margin-top: 4px !important;
}
.voice-asset-strip .asset-chip {
  align-content: start;
}

/* image prompt compact draft v32 */
#appPanel .screen-body .studio-agent-inline .auto-agent-confirm.auto-agent-image-draft {
  gap: 8px !important;
  padding: 10px !important;
}
#appPanel .screen-body .studio-agent-inline .auto-agent-confirm.auto-agent-image-draft .auto-agent-plan-meta {
  grid-template-columns: 1fr 1fr !important;
}
#appPanel .screen-body .studio-agent-inline .auto-agent-confirm.auto-agent-image-draft .auto-agent-prompt-editor textarea {
  min-height: 86px !important;
  height: 104px !important;
  max-height: 118px !important;
  resize: none !important;
}
#appPanel .screen-body .studio-agent-inline .auto-agent-confirm.auto-agent-image-draft .auto-agent-prompt-editor span {
  font-size: 12px !important;
}

/* image asset role choice v33 */
#appPanel .screen-body .studio-agent-inline .auto-agent-confirm.auto-agent-image-draft .auto-agent-asset-choices {
  display: grid !important;
}
#appPanel .screen-body .studio-agent-inline .auto-agent-image-role-choice {
  border-color: rgba(35, 136, 255, 0.22) !important;
  background: #f3f8ff !important;
}
#appPanel .screen-body .studio-agent-inline .auto-agent-image-role-choice select {
  background: #fff !important;
  color: #155eef !important;
}

/* image draft compact prompt visibility v39 */
#appPanel .screen-body .studio-agent-inline .auto-agent-image-answer-card {
  gap: 6px !important;
  padding: 8px 10px !important;
}
#appPanel .screen-body .studio-agent-inline .auto-agent-image-answer-card > strong {
  font-size: 13px !important;
}
#appPanel .screen-body .studio-agent-inline .auto-agent-image-answer-card ol {
  gap: 5px !important;
}
#appPanel .screen-body .studio-agent-inline .auto-agent-image-answer-card li {
  padding: 6px 8px !important;
}
#appPanel .screen-body .studio-agent-inline .auto-agent-confirm.auto-agent-image-draft .auto-agent-prompt-editor textarea {
  padding: 9px 10px !important;
  min-height: 108px !important;
  height: 118px !important;
  max-height: 132px !important;
  resize: none !important;
}
#appPanel .screen-body .studio-agent-inline.auto-agent-has-image-draft .auto-agent-log {
  padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)) !important;
  scroll-padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)) !important;
}
#appPanel .screen-body .studio-agent-inline.auto-agent-has-image-draft .auto-agent-log > :last-child {
  margin-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
}
#appPanel .screen-body .studio-agent-inline.auto-agent-has-image-draft .auto-agent-confirm {
  margin-top: 6px !important;
}

/* voice reference format label v44 */
.voice-reference-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eef6ff;
  color: #155eef;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}
.auto-agent-library-item .voice-reference-label,
.asset-chip .voice-reference-label {
  margin: 2px auto 4px;
}

/* ad merchant avatar thumbnail v50 */
.ad-label-row small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ad-merchant-avatar {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9), 0 2px 8px rgba(15, 23, 42, 0.14);
}

/* video filter and style options v62 */
.video-look-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.video-look-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.video-look-header strong {
  color: #0f172a;
  font-size: 14px;
}

.video-look-header span {
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
}

.video-look-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.video-look-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.video-look-grid label > span {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.video-look-grid select {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  padding: 0 10px;
  outline: none;
}

.video-look-grid select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

@media (max-width: 430px) {
  .video-look-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .video-look-header span {
    text-align: left;
  }

  .video-look-grid {
    grid-template-columns: 1fr;
  }
}

/* video poster failure playable fallback v66 */
.video-frame.cover-failed {
  background:
    radial-gradient(circle at center, rgba(37, 99, 235, 0.28), transparent 44%),
    linear-gradient(135deg, #101827, #020617);
}

.video-frame.cover-failed .video-cover {
  opacity: 0;
  pointer-events: none;
}

.video-frame.cover-failed .video-play {
  display: grid;
  place-items: center;
  opacity: 1;
  pointer-events: auto;
  background: rgba(37, 99, 235, 0.92);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.36);
}

.video-frame.cover-failed .video-play::after {
  content: "封面暂不可用，点此播放";
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: max-content;
  max-width: 180px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

/* hot video replication v89 */
.auto-agent-head .auto-agent-hot-btn {
  width: auto;
  min-width: 82px;
  height: 30px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.studio-agent-inline .auto-agent-head .auto-agent-hot-btn {
  width: auto;
  min-width: 78px;
  height: 28px;
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.hot-replication-sheet.hidden {
  display: none !important;
}

.hot-replication-sheet {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 18px 12px calc(18px + env(safe-area-inset-bottom));
}

.hot-replication-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(8px);
}

.hot-replication-card {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  max-height: min(86dvh, 760px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 22px;
  background: #f8fafc;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.32);
}

.hot-replication-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  background: linear-gradient(135deg, #eef6ff, #ffffff);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.hot-replication-head div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hot-replication-head strong {
  color: #0f172a;
  font-size: 17px;
  font-weight: 950;
}

.hot-replication-head small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.hot-replication-head button {
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 20px;
  font-weight: 800;
}

.hot-replication-form {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.hot-replication-form label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}

.hot-replication-form input,
.hot-replication-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.45;
  outline: none;
}

.hot-replication-form input {
  height: 40px;
  padding: 0 12px;
}

.hot-replication-form textarea {
  min-height: 74px;
  max-height: 116px;
  resize: vertical;
  padding: 10px 12px;
}

.hot-replication-form input:focus,
.hot-replication-form textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.hot-replication-upload {
  padding: 12px;
  border: 1px dashed rgba(37, 99, 235, 0.34);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.86), rgba(255, 255, 255, 0.96));
}

.hot-replication-upload input {
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.hot-replication-upload small {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.hot-replication-form .primary {
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.hot-replication-status {
  min-height: 18px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.hot-replication-status.ok {
  color: #0f766e;
}

.hot-replication-status.error {
  color: #dc2626;
}

.hot-replication-status.loading {
  color: #2563eb;
}

.hot-replication-result {
  min-height: 0;
  overflow: auto;
  padding: 14px 16px 18px;
}

.hot-replication-result.hidden {
  display: none !important;
}

.hot-replication-summary {
  display: grid;
  gap: 12px;
}

.hot-replication-kv {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.hot-replication-kv span,
.hot-replication-kv em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.hot-replication-kv strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 950;
}

.hot-replication-frames {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hot-replication-frames img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  border-radius: 12px;
  background: #e2e8f0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.hot-replication-summary section {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: #fff;
}

.hot-replication-summary h4 {
  margin: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
}

.hot-replication-summary p,
.hot-replication-summary li {
  color: #475569;
  font-size: 12px;
  line-height: 1.55;
}

.hot-replication-summary ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.hot-replication-summary pre {
  max-height: 160px;
  overflow: auto;
  white-space: pre-wrap;
  margin: 0;
  padding: 10px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #1e293b;
  font-size: 12px;
  line-height: 1.55;
}

.hot-replication-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hot-replication-actions button {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 10px 8px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  text-align: left;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.hot-replication-actions button:active {
  transform: translateY(1px);
}

.hot-replication-actions strong {
  font-size: 12px;
  font-weight: 950;
}

.hot-replication-actions small {
  color: #64748b;
  font-size: 10px;
  line-height: 1.35;
}

.hot-replication-safe {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb !important;
  font-size: 12px;
  font-weight: 760;
}

@media (max-width: 390px) {
  .hot-replication-actions {
    grid-template-columns: 1fr;
  }

  .hot-replication-frames {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* agent entry strip above composer v90 */
.auto-agent-entry-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#appPanel .screen-body .studio-agent-inline .auto-agent-entry-strip {
  position: fixed !important;
  left: max(10px, calc((100vw - var(--app-width)) / 2 + 10px)) !important;
  right: auto !important;
  bottom: calc(204px + env(safe-area-inset-bottom, 0px)) !important;
  width: min(calc(100vw - 20px), calc(var(--app-width) - 20px)) !important;
  max-width: calc(var(--app-width) - 20px) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 2px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  z-index: 85 !important;
  transform: none !important;
  translate: none !important;
}

#appPanel .screen-body .studio-agent-inline .auto-agent-entry-strip::-webkit-scrollbar {
  display: none !important;
}

#appPanel .screen-body .studio-agent-inline .auto-agent-entry-strip .auto-agent-hot-btn,
#appPanel .screen-body .studio-agent-inline .auto-agent-hot-btn {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 86px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 13px !important;
  border: 1px solid rgba(37, 99, 235, 0.18) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22) !important;
}

#appPanel #studioView .auto-agent-overlay.auto-agent-has-draft .auto-agent-input,
#appPanel .screen-body .studio-agent-inline.auto-agent-has-draft .auto-agent-input,
#appPanel .screen-body .studio-agent-inline .auto-agent-input {
  bottom: calc(36px + env(safe-area-inset-bottom, 0px)) !important;
}

#appPanel #studioView .auto-agent-overlay.auto-agent-has-draft .auto-agent-panel,
#appPanel .screen-body .studio-agent-inline.auto-agent-has-draft .auto-agent-panel,
#appPanel .screen-body .studio-agent-inline .auto-agent-panel {
  padding-bottom: calc(214px + env(safe-area-inset-bottom, 0px)) !important;
}

#appPanel .screen-body .studio-agent-inline #autoAgentTaskList:not(.hidden) {
  bottom: calc(236px + env(safe-area-inset-bottom, 0px)) !important;
}

#appPanel .screen-body .studio-agent-inline .auto-agent-history-btn {
  bottom: calc(196px + env(safe-area-inset-bottom, 0px)) !important;
}

/* agent entry strip composer clearance v92 */
#appPanel .screen-body .studio-agent-inline .auto-agent-entry-strip {
  bottom: calc(276px + env(safe-area-inset-bottom, 0px)) !important;
  min-height: 34px !important;
  padding: 0 2px !important;
  background: transparent !important;
}

#appPanel #studioView .auto-agent-overlay.auto-agent-has-draft .auto-agent-input,
#appPanel .screen-body .studio-agent-inline.auto-agent-has-draft .auto-agent-input,
#appPanel .screen-body .studio-agent-inline .auto-agent-input {
  bottom: calc(36px + env(safe-area-inset-bottom, 0px)) !important;
}

#appPanel #studioView .auto-agent-overlay.auto-agent-has-draft .auto-agent-panel,
#appPanel .screen-body .studio-agent-inline.auto-agent-has-draft .auto-agent-panel,
#appPanel .screen-body .studio-agent-inline .auto-agent-panel {
  padding-bottom: calc(332px + env(safe-area-inset-bottom, 0px)) !important;
}

#appPanel .screen-body .studio-agent-inline .auto-agent-log {
  padding-bottom: calc(44px + env(safe-area-inset-bottom, 0px)) !important;
}

#appPanel .screen-body .studio-agent-inline #autoAgentTaskList:not(.hidden) {
  bottom: calc(316px + env(safe-area-inset-bottom, 0px)) !important;
}

#appPanel .screen-body .studio-agent-inline .auto-agent-history-btn {
  bottom: calc(276px + env(safe-area-inset-bottom, 0px)) !important;
}

/* manual model current light card v93 */
#studioView .model-current {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-height: 42px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(37, 99, 235, 0.16) !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #2563eb !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.06) !important;
}

#studioView .model-current span,
#studioView .model-current strong {
  color: #2563eb !important;
}

#studioView .model-current span {
  font-size: 12px !important;
  font-weight: 850 !important;
}

#studioView .model-current strong {
  font-size: 14px !important;
  font-weight: 950 !important;
}

/* manual prompt action pills v94 */
#studioView .prompt-field {
  display: grid !important;
  gap: 10px !important;
}

#studioView .prompt-field textarea {
  padding: 15px !important;
}

#studioView .manual-prompt-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 0 1px 2px !important;
  scrollbar-width: none !important;
}

#studioView .manual-prompt-actions::-webkit-scrollbar {
  display: none !important;
}

#studioView .manual-prompt-actions .ai-prompt-button,
#studioView .manual-prompt-actions .manual-prompt-voice,
#studioView .manual-prompt-actions .manual-hot-replication {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  min-width: 88px !important;
  width: auto !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(37, 99, 235, 0.16) !important;
  background: #ffffff !important;
  color: #2563eb !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.07) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  transform: none !important;
}

#studioView .manual-prompt-actions .ai-prompt-button {
  min-width: 104px !important;
}

#studioView .manual-prompt-actions .manual-hot-replication {
  background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

#studioView .manual-prompt-actions .manual-prompt-voice.pressing,
#studioView .manual-prompt-actions .manual-prompt-voice.listening {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

#studioView .manual-prompt-actions .manual-prompt-voice::before,
#studioView .manual-prompt-actions .manual-prompt-voice::after {
  inset: -6px !important;
}

@media (max-width: 390px) {
  #studioView .manual-prompt-actions {
    gap: 8px !important;
  }

  #studioView .manual-prompt-actions .ai-prompt-button,
  #studioView .manual-prompt-actions .manual-prompt-voice,
  #studioView .manual-prompt-actions .manual-hot-replication {
    min-width: 82px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 11px !important;
    font-size: 11px !important;
  }
}

/* manual prompt pills with my works v95 */
#studioView .manual-prompt-actions {
  gap: 9px !important;
  padding: 0 12px 2px !important;
  margin: 0 -2px !important;
  scroll-padding-left: 12px !important;
  scroll-padding-right: 12px !important;
}

#studioView .manual-prompt-actions .manual-my-works,
#studioView .manual-prompt-actions .ai-prompt-button,
#studioView .manual-prompt-actions .manual-prompt-voice,
#studioView .manual-prompt-actions .manual-hot-replication {
  min-width: 86px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
}

#studioView .manual-prompt-actions .manual-my-works {
  position: static !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(37, 99, 235, 0.16) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #2563eb !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.07) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.studio-manual-mode #studioMyWorksEntry {
  display: none !important;
}

@media (max-width: 390px) {
  #studioView .manual-prompt-actions {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  #studioView .manual-prompt-actions .manual-my-works,
  #studioView .manual-prompt-actions .ai-prompt-button,
  #studioView .manual-prompt-actions .manual-prompt-voice,
  #studioView .manual-prompt-actions .manual-hot-replication {
    min-width: 80px !important;
    padding: 0 10px !important;
  }
}

/* manual hot replication same pill style v96 */
#studioView .manual-prompt-actions .manual-hot-replication {
  border: 1px solid rgba(37, 99, 235, 0.16) !important;
  background: #ffffff !important;
  color: #2563eb !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.07) !important;
}

/* manual ai prompt inside editor v97 */
#studioView .manual-prompt-editor {
  position: relative !important;
  min-width: 0 !important;
}

#studioView .manual-prompt-editor textarea {
  width: 100% !important;
  padding: 15px 15px 58px !important;
}

#studioView .manual-prompt-editor .ai-prompt-button {
  position: absolute !important;
  right: 12px !important;
  bottom: 12px !important;
  z-index: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  width: auto !important;
  min-width: 104px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 13px !important;
  border: 1px solid rgba(37, 99, 235, 0.16) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #2563eb !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

#studioView .manual-prompt-actions .manual-prompt-voice,
#studioView .manual-prompt-actions .manual-hot-replication,
#studioView .manual-prompt-actions .manual-my-works {
  min-width: 88px !important;
}

@media (max-width: 390px) {
  #studioView .manual-prompt-editor .ai-prompt-button {
    right: 10px !important;
    bottom: 10px !important;
    min-width: 98px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 11px !important;
    font-size: 11px !important;
  }
}

/* manual hot replication unified pill v98 */
#studioView .manual-prompt-actions .manual-hot-replication,
#studioView .manual-prompt-actions button.manual-hot-replication.secondary {
  position: static !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  min-width: 88px !important;
  width: auto !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(37, 99, 235, 0.16) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #2563eb !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.07) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  transform: none !important;
}

#studioView .manual-prompt-actions .manual-hot-replication:hover,
#studioView .manual-prompt-actions .manual-hot-replication:active {
  background: #ffffff !important;
  background-image: none !important;
  color: #2563eb !important;
  border-color: rgba(37, 99, 235, 0.16) !important;
}

@media (max-width: 390px) {
  #studioView .manual-prompt-actions .manual-hot-replication,
  #studioView .manual-prompt-actions button.manual-hot-replication.secondary {
    min-width: 80px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
  }
}

/* agent entry row unified pills v99 */
#appPanel .screen-body .studio-agent-inline .auto-agent-entry-strip {
  gap: 9px !important;
  padding: 0 12px 2px !important;
  margin: 0 -2px !important;
  scroll-padding-left: 12px !important;
  scroll-padding-right: 12px !important;
}

#appPanel .screen-body .studio-agent-inline .auto-agent-entry-strip #studioMyWorksEntry,
#appPanel .screen-body .studio-agent-inline .auto-agent-entry-strip #autoAgentHistoryBtn,
#appPanel .screen-body .studio-agent-inline .auto-agent-entry-strip #switchManualCreateBtn,
#appPanel .screen-body .studio-agent-inline .auto-agent-entry-strip #hotReplicationBtn {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  min-width: 86px !important;
  width: auto !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(37, 99, 235, 0.16) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #2563eb !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.07) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  transform: none !important;
  z-index: auto !important;
}

#appPanel .screen-body .studio-agent-inline .auto-agent-entry-strip #autoAgentHistoryBtn.hidden {
  display: none !important;
}

#appPanel .screen-body .studio-agent-inline .auto-agent-entry-strip #autoAgentHistoryBtn strong {
  display: inline-grid !important;
  place-items: center !important;
  min-width: 16px !important;
  height: 16px !important;
  padding: 0 4px !important;
  border-radius: 999px !important;
  background: rgba(37, 99, 235, 0.12) !important;
  color: #2563eb !important;
  font-size: 10px !important;
  font-weight: 900 !important;
}

#appPanel .screen-body .studio-agent-inline .auto-agent-entry-strip #autoAgentHistoryBtn.active {
  border-color: rgba(37, 99, 235, 0.28) !important;
  background: #eff6ff !important;
}

#appPanel .screen-body .studio-agent-inline .auto-agent-head #switchManualCreateBtn {
  display: none !important;
}

@media (max-width: 390px) {
  #appPanel .screen-body .studio-agent-inline .auto-agent-entry-strip {
    gap: 8px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  #appPanel .screen-body .studio-agent-inline .auto-agent-entry-strip #studioMyWorksEntry,
  #appPanel .screen-body .studio-agent-inline .auto-agent-entry-strip #autoAgentHistoryBtn,
  #appPanel .screen-body .studio-agent-inline .auto-agent-entry-strip #switchManualCreateBtn,
  #appPanel .screen-body .studio-agent-inline .auto-agent-entry-strip #hotReplicationBtn {
    min-width: 80px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
  }
}

/* manual top current model white blue v100 */
#studioView .hero-block .studio-model-trigger,
#studioView button.hero-status-bar.studio-model-trigger {
  border: 1px solid rgba(37, 99, 235, 0.16) !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #2563eb !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.06) !important;
}

#studioView .hero-block .studio-model-trigger .studio-model-name,
#studioView .hero-block .studio-model-trigger .duration-badge,
#studioView .hero-block .studio-model-trigger span,
#studioView button.hero-status-bar.studio-model-trigger .studio-model-name,
#studioView button.hero-status-bar.studio-model-trigger .duration-badge,
#studioView button.hero-status-bar.studio-model-trigger span {
  color: #2563eb !important;
}

#studioView .hero-block .studio-model-trigger .status-dot,
#studioView button.hero-status-bar.studio-model-trigger .status-dot {
  background: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
}

#studioView .hero-block .studio-model-trigger .status-divider,
#studioView button.hero-status-bar.studio-model-trigger .status-divider {
  background: rgba(37, 99, 235, 0.16) !important;
}

#studioView .hero-block .studio-model-trigger .duration-badge,
#studioView button.hero-status-bar.studio-model-trigger .duration-badge {
  border: 1px solid rgba(37, 99, 235, 0.14) !important;
  background: #eff6ff !important;
  font-weight: 900 !important;
}

/* manual ai agent pill row v102 */
#studioView .studio-mode-bridge {
  grid-template-columns: 1fr !important;
}

#studioView .manual-prompt-actions .manual-agent-create,
#studioView .manual-prompt-actions button.manual-agent-create.secondary {
  position: static !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  min-width: 104px !important;
  width: auto !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(37, 99, 235, 0.16) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #2563eb !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.07) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  transform: none !important;
}

@media (max-width: 390px) {
  #studioView .manual-prompt-actions .manual-agent-create,
  #studioView .manual-prompt-actions button.manual-agent-create.secondary {
    min-width: 96px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
  }
}

/* manual current model top placement v103 */
#studioView #personForm.manual-create-panel {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

#studioView #personForm.manual-create-panel > .hero-block:first-child {
  margin-top: 0 !important;
}

/* creation pill normal font weight v104 */
#studioView .manual-prompt-actions .manual-my-works,
#studioView .manual-prompt-actions .manual-agent-create,
#studioView .manual-prompt-actions .manual-prompt-voice,
#studioView .manual-prompt-actions .manual-hot-replication,
#studioView .manual-prompt-editor .ai-prompt-button,
#appPanel .screen-body .studio-agent-inline .auto-agent-entry-strip #studioMyWorksEntry,
#appPanel .screen-body .studio-agent-inline .auto-agent-entry-strip #autoAgentHistoryBtn,
#appPanel .screen-body .studio-agent-inline .auto-agent-entry-strip #switchManualCreateBtn,
#appPanel .screen-body .studio-agent-inline .auto-agent-entry-strip #hotReplicationBtn {
  font-weight: 400 !important;
}

#appPanel .screen-body .studio-agent-inline .auto-agent-entry-strip #autoAgentHistoryBtn strong {
  font-weight: 400 !important;
}

/* manual ai and hot pill normal weight v105 */
#studioView .manual-prompt-actions #switchAgentCreateBtn.manual-agent-create,
#studioView .manual-prompt-actions #manualHotReplicationBtn.manual-hot-replication,
#studioView .manual-prompt-actions button#switchAgentCreateBtn,
#studioView .manual-prompt-actions button#manualHotReplicationBtn {
  font-weight: 400 !important;
}

/* manual fixed model and taller prompt v106 */
body.studio-manual-mode #studioView #personForm.manual-create-panel {
  padding-top: calc(62px + env(safe-area-inset-top, 0px)) !important;
}

body.studio-manual-mode #studioView #personForm.manual-create-panel > .hero-block:first-child {
  position: fixed !important;
  top: calc(8px + env(safe-area-inset-top, 0px)) !important;
  left: max(12px, calc((100vw - var(--app-width)) / 2 + 12px)) !important;
  right: auto !important;
  width: min(calc(100vw - 24px), calc(var(--app-width) - 24px)) !important;
  z-index: 91 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.studio-manual-mode #studioView .hero-block .studio-model-trigger,
body.studio-manual-mode #studioView button.hero-status-bar.studio-model-trigger {
  min-height: 48px !important;
}

body.studio-manual-mode #studioView .prompt-field textarea,
body.studio-manual-mode #studioView .manual-prompt-editor textarea {
  min-height: 228px !important;
}

@media (max-height: 720px) {
  body.studio-manual-mode #studioView .prompt-field textarea,
  body.studio-manual-mode #studioView .manual-prompt-editor textarea {
    min-height: 204px !important;
  }
}

/* agent task list pill normal weight v107 */
#appPanel .screen-body .studio-agent-inline .auto-agent-entry-strip #autoAgentHistoryBtn,
#appPanel .screen-body .studio-agent-inline .auto-agent-entry-strip #autoAgentHistoryBtn span,
#appPanel .screen-body .studio-agent-inline .auto-agent-entry-strip #autoAgentHistoryBtn strong,
#appPanel .screen-body .studio-agent-inline .auto-agent-history-btn,
#appPanel .screen-body .studio-agent-inline .auto-agent-history-btn span,
#appPanel .screen-body .studio-agent-inline .auto-agent-history-btn strong {
  font-weight: 400 !important;
}

/* my works four-grid layout v108 */
#worksView #myWorksPanel #myWorks.works-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: start !important;
}

#worksView #myWorksPanel #myWorks .work-card {
  min-width: 0 !important;
  display: grid !important;
  gap: 7px !important;
  padding: 8px !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 20px rgba(21, 37, 72, 0.07) !important;
}

#worksView #myWorksPanel #myWorks .work-title {
  gap: 6px !important;
}

#worksView #myWorksPanel #myWorks .work-author {
  min-width: 0 !important;
  gap: 6px !important;
}

#worksView #myWorksPanel #myWorks .work-author img,
#worksView #myWorksPanel #myWorks .work-author span {
  flex-basis: 24px !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  font-size: 11px !important;
}

#worksView #myWorksPanel #myWorks .work-author strong {
  max-width: 76px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 12px !important;
}

#worksView #myWorksPanel #myWorks .work-side-meta {
  align-items: flex-end !important;
  gap: 4px !important;
}

#worksView #myWorksPanel #myWorks .work-side-meta small {
  max-width: 72px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 9px !important;
}

#worksView #myWorksPanel #myWorks .model-badge {
  max-width: 88px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  padding: 3px 6px !important;
  font-size: 9px !important;
}

#worksView #myWorksPanel #myWorks .work-prompt summary,
#worksView #myWorksPanel #myWorks .work-summary-line {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}

#worksView #myWorksPanel #myWorks .work-prompt p,
#worksView #myWorksPanel #myWorks .work-full-prompt {
  max-height: 66px !important;
  overflow: auto !important;
  padding: 7px !important;
  font-size: 10px !important;
}

#worksView #myWorksPanel #myWorks .video-frame,
#worksView #myWorksPanel #myWorks .work-card > img,
#worksView #myWorksPanel #myWorks .work-card > video {
  width: 100% !important;
  max-height: none !important;
  aspect-ratio: 9 / 14 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1) !important;
}

#worksView #myWorksPanel #myWorks .video-frame img,
#worksView #myWorksPanel #myWorks .video-frame video,
#worksView #myWorksPanel #myWorks .work-card > img,
#worksView #myWorksPanel #myWorks .work-card > video {
  object-fit: cover !important;
}

#worksView #myWorksPanel #myWorks .video-play {
  width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  font-size: 11px !important;
}

#worksView #myWorksPanel #myWorks .social-bar {
  gap: 5px !important;
}

#worksView #myWorksPanel #myWorks .social-button,
#worksView #myWorksPanel #myWorks .social-stat {
  min-height: 28px !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
}

#worksView #myWorksPanel #myWorks .social-button span {
  max-width: 44px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#worksView #myWorksPanel #myWorks .comment-list,
#worksView #myWorksPanel #myWorks .comment-form {
  display: none !important;
}

#worksView #myWorksPanel #myWorks .works-load-more,
#worksView #myWorksPanel #myWorks .empty-state {
  grid-column: 1 / -1 !important;
}

@media (max-width: 340px) {
  #worksView #myWorksPanel #myWorks.works-list {
    grid-template-columns: 1fr !important;
  }
}

/* manual voice material text-only entry v110 */
#studioView .creator-pick.voice-text-pick {
  justify-content: center !important;
  align-content: center !important;
}
#studioView .creator-pick.voice-text-pick strong {
  color: #101828 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}
#studioView .creator-pick.voice-text-pick .pick-label:empty {
  display: none !important;
}

/* my works smooth grid cache and scroll stability v111 */
#worksView #myWorksPanel #myWorks.works-list {
  overflow-anchor: none !important;
  transform: translateZ(0) !important;
}
#worksView #myWorksPanel #myWorks .work-card {
  contain: layout paint !important;
  backface-visibility: hidden !important;
  transform: translateZ(0) !important;
}
#worksView #myWorksPanel #myWorks .video-frame,
#worksView #myWorksPanel #myWorks .work-card > img,
#worksView #myWorksPanel #myWorks .work-card > video {
  contain: layout paint !important;
  background: #f4f7fb !important;
  overflow: hidden !important;
  backface-visibility: hidden !important;
}
#worksView #myWorksPanel #myWorks .video-cover,
#worksView #myWorksPanel #myWorks .result-video {
  transform: translateZ(0) !important;
  backface-visibility: hidden !important;
}

/* my works clean visual grid v112 */
#worksView #myWorksPanel #myWorks .work-title,
#worksView #myWorksPanel #myWorks .work-prompt,
#worksView #myWorksPanel #myWorks .social-bar,
#worksView #myWorksPanel #myWorks .comment-list,
#worksView #myWorksPanel #myWorks .comment-form {
  display: none !important;
}
#worksView #myWorksPanel #myWorks .work-card {
  gap: 0 !important;
  padding: 6px !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
#worksView #myWorksPanel #myWorks .work-progress,
#worksView #myWorksPanel #myWorks .retry-panel,
#worksView #myWorksPanel #myWorks .error {
  margin-top: 6px !important;
}
#worksView #myWorksPanel #myWorks .video-frame,
#worksView #myWorksPanel #myWorks .work-card > img,
#worksView #myWorksPanel #myWorks .work-card > video {
  border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12) !important;
}

/* public works grid toggle and clean wall v113 */
#worksView .works-public-toggle {
  width: 100% !important;
  min-height: 44px !important;
  display: grid !important;
  justify-items: start !important;
  gap: 3px !important;
  padding: 6px 10px !important;
  border: 1px solid rgba(213, 224, 240, 0.72) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: inherit !important;
  text-align: left !important;
  box-shadow: 0 8px 22px rgba(21, 37, 72, 0.06) !important;
}
#worksView .works-public-toggle:active {
  transform: scale(0.99) !important;
}
#worksView.public-grid-mode #publicWorksPanel #publicWorks.works-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: start !important;
  overflow-anchor: none !important;
}
#worksView.public-grid-mode #publicWorksPanel #publicWorks .ad-card {
  display: none !important;
}
#worksView.public-grid-mode #publicWorksPanel #publicWorks .work-card {
  min-width: 0 !important;
  display: grid !important;
  gap: 0 !important;
  padding: 6px !important;
  border-color: transparent !important;
  border-radius: 14px !important;
  background: transparent !important;
  box-shadow: none !important;
  contain: layout paint !important;
  transform: translateZ(0) !important;
  backface-visibility: hidden !important;
}
#worksView.public-grid-mode #publicWorksPanel #publicWorks .work-card::before,
#worksView.public-grid-mode #publicWorksPanel #publicWorks .work-title,
#worksView.public-grid-mode #publicWorksPanel #publicWorks .work-prompt,
#worksView.public-grid-mode #publicWorksPanel #publicWorks .social-bar,
#worksView.public-grid-mode #publicWorksPanel #publicWorks .comment-list,
#worksView.public-grid-mode #publicWorksPanel #publicWorks .comment-form {
  display: none !important;
}
#worksView.public-grid-mode #publicWorksPanel #publicWorks .work-card > * {
  position: relative !important;
  z-index: 1 !important;
}
#worksView.public-grid-mode #publicWorksPanel #publicWorks .video-frame,
#worksView.public-grid-mode #publicWorksPanel #publicWorks .work-card > img,
#worksView.public-grid-mode #publicWorksPanel #publicWorks .work-card > video {
  width: 100% !important;
  aspect-ratio: 9 / 14 !important;
  max-height: none !important;
  border-radius: 14px !important;
  background: #f4f7fb !important;
  overflow: hidden !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12) !important;
  contain: layout paint !important;
  backface-visibility: hidden !important;
}
#worksView.public-grid-mode #publicWorksPanel #publicWorks .video-frame img,
#worksView.public-grid-mode #publicWorksPanel #publicWorks .video-frame video,
#worksView.public-grid-mode #publicWorksPanel #publicWorks .work-card > img,
#worksView.public-grid-mode #publicWorksPanel #publicWorks .work-card > video {
  object-fit: cover !important;
  transform: translateZ(0) !important;
  backface-visibility: hidden !important;
}
#worksView.public-grid-mode #publicWorksPanel #publicWorks .video-play {
  width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  font-size: 11px !important;
}
#worksView.public-grid-mode #publicWorksPanel #publicWorks .works-load-more,
#worksView.public-grid-mode #publicWorksPanel #publicWorks .empty-state {
  grid-column: 1 / -1 !important;
}
@media (max-width: 340px) {
  #worksView.public-grid-mode #publicWorksPanel #publicWorks.works-list {
    grid-template-columns: 1fr !important;
  }
}

/* both works pages grid toggle v114 */
#worksView.my-grid-mode #myWorksPanel #myWorks.works-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: start !important;
  overflow-anchor: none !important;
}
#worksView.my-grid-mode #myWorksPanel #myWorks .work-title,
#worksView.my-grid-mode #myWorksPanel #myWorks .work-prompt,
#worksView.my-grid-mode #myWorksPanel #myWorks .social-bar,
#worksView.my-grid-mode #myWorksPanel #myWorks .comment-list,
#worksView.my-grid-mode #myWorksPanel #myWorks .comment-form {
  display: none !important;
}
#worksView.my-grid-mode #myWorksPanel #myWorks .work-card {
  gap: 0 !important;
  padding: 6px !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  contain: layout paint !important;
  transform: translateZ(0) !important;
  backface-visibility: hidden !important;
}
#worksView.my-grid-mode #myWorksPanel #myWorks .video-frame,
#worksView.my-grid-mode #myWorksPanel #myWorks .work-card > img,
#worksView.my-grid-mode #myWorksPanel #myWorks .work-card > video {
  width: 100% !important;
  aspect-ratio: 9 / 14 !important;
  max-height: none !important;
  border-radius: 14px !important;
  background: #f4f7fb !important;
  overflow: hidden !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12) !important;
  contain: layout paint !important;
  backface-visibility: hidden !important;
}
#worksView.my-grid-mode #myWorksPanel #myWorks .video-frame img,
#worksView.my-grid-mode #myWorksPanel #myWorks .video-frame video,
#worksView.my-grid-mode #myWorksPanel #myWorks .work-card > img,
#worksView.my-grid-mode #myWorksPanel #myWorks .work-card > video {
  object-fit: cover !important;
  transform: translateZ(0) !important;
  backface-visibility: hidden !important;
}
#worksView.my-grid-mode #myWorksPanel #myWorks .works-load-more,
#worksView.my-grid-mode #myWorksPanel #myWorks .empty-state {
  grid-column: 1 / -1 !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks.works-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .work-card {
  gap: 9px !important;
  padding: 12px !important;
  border: 1px solid rgba(218, 226, 238, 0.72) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 12px 32px rgba(21, 37, 72, 0.07) !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .work-title {
  display: flex !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .work-prompt {
  display: block !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .social-bar {
  display: flex !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .comment-list,
#worksView.my-feed-mode #myWorksPanel #myWorks .comment-form {
  display: block !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .video-frame,
#worksView.my-feed-mode #myWorksPanel #myWorks .work-card > img,
#worksView.my-feed-mode #myWorksPanel #myWorks .work-card > video {
  aspect-ratio: auto !important;
  border-radius: 16px !important;
}
@media (max-width: 340px) {
  #worksView.my-grid-mode #myWorksPanel #myWorks.works-list {
    grid-template-columns: 1fr !important;
  }
}

/* works auto load on upward swipe v115 */
#worksView .works-load-more {
  display: none !important;
}

/* my works feed mode full restore v116 */
#worksView.my-feed-mode #myWorksPanel #myWorks.works-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
  align-items: stretch !important;
  transform: none !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .work-card {
  min-width: 0 !important;
  display: grid !important;
  gap: 9px !important;
  padding: 12px !important;
  border: 1px solid rgba(218, 226, 238, 0.72) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 12px 32px rgba(21, 37, 72, 0.07) !important;
  overflow: hidden !important;
  contain: none !important;
  transform: none !important;
  backface-visibility: visible !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .work-card::before {
  display: block !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .work-card > * {
  position: relative !important;
  z-index: 1 !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .work-title {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .work-author {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .work-author img,
#worksView.my-feed-mode #myWorksPanel #myWorks .work-author span {
  flex: 0 0 38px !important;
  flex-basis: 38px !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 999px !important;
  display: grid !important;
  place-items: center !important;
  object-fit: cover !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  box-shadow: 0 6px 16px rgba(85, 167, 255, 0.18) !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .work-author strong {
  max-width: none !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #101828 !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .work-side-meta {
  display: grid !important;
  justify-items: end !important;
  align-items: start !important;
  gap: 5px !important;
  flex: 0 0 auto !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .work-side-meta small {
  max-width: 116px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #98a2b3 !important;
  font-size: 11px !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .model-badge {
  max-width: 150px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  padding: 4px 9px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #eef4ff !important;
  color: #55a7ff !important;
  font-size: 11px !important;
  font-weight: 400 !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .work-prompt {
  display: grid !important;
  gap: 7px !important;
  margin: -1px 0 1px !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .work-prompt summary,
#worksView.my-feed-mode #myWorksPanel #myWorks .work-summary-line {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
  overflow: visible !important;
  white-space: normal !important;
  padding: 2px 1px !important;
  color: #344054 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .work-prompt summary span {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .work-prompt summary small {
  display: inline !important;
  min-width: 34px !important;
  color: #55a7ff !important;
  font-size: 0 !important;
  text-align: right !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .work-prompt p,
#worksView.my-feed-mode #myWorksPanel #myWorks .work-full-prompt {
  display: block !important;
  max-height: none !important;
  overflow: visible !important;
  margin-top: 6px !important;
  padding: 10px !important;
  border-radius: 12px !important;
  background: #f6f8fb !important;
  color: #667085 !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .video-frame,
#worksView.my-feed-mode #myWorksPanel #myWorks .work-card > img,
#worksView.my-feed-mode #myWorksPanel #myWorks .work-card > video {
  width: 100% !important;
  aspect-ratio: 9 / 16 !important;
  max-height: 500px !important;
  border-radius: 16px !important;
  background: #000 !important;
  overflow: hidden !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12) !important;
  contain: none !important;
  backface-visibility: visible !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .video-frame img,
#worksView.my-feed-mode #myWorksPanel #myWorks .video-frame video,
#worksView.my-feed-mode #myWorksPanel #myWorks .work-card > img,
#worksView.my-feed-mode #myWorksPanel #myWorks .work-card > video {
  object-fit: cover !important;
  transform: none !important;
  backface-visibility: visible !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .video-play {
  width: 54px !important;
  height: 54px !important;
  min-height: 54px !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .social-bar {
  display: flex !important;
  gap: 6px !important;
  padding-top: 2px !important;
  overflow-x: auto !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .social-share-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding-top: 4px !important;
  overflow: visible !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .social-action-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)) !important;
  gap: 6px !important;
  margin-top: 2px !important;
  overflow: visible !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .social-button,
#worksView.my-feed-mode #myWorksPanel #myWorks .social-stat {
  min-height: 32px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .social-button span {
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .comment-list {
  display: block !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .comment-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  padding-top: 2px !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .comment-form input {
  min-height: 38px !important;
  border: 1px solid rgba(218, 226, 238, 0.9) !important;
  border-radius: 999px !important;
  background: #f8fafc !important;
  font-size: 13px !important;
}
#worksView.my-feed-mode #myWorksPanel #myWorks .comment-form button {
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  background: #55a7ff !important;
  color: #fff !important;
  font-weight: 400 !important;
}

/* prompt library sheet v120 */
#studioView .manual-prompt-actions .manual-prompt-library,
#studioView .manual-prompt-actions button.manual-prompt-library.secondary {
  position: static !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 88px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(37, 99, 235, 0.16) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #2563eb !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.07) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  white-space: nowrap !important;
}

#studioView .manual-prompt-actions .manual-prompt-library:hover,
#studioView .manual-prompt-actions .manual-prompt-library:active {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: rgba(37, 99, 235, 0.24) !important;
}

.prompt-library-sheet.hidden {
  display: none !important;
}

.prompt-library-sheet {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px max(12px, calc((100vw - var(--app-width)) / 2 + 12px)) calc(14px + env(safe-area-inset-bottom, 0px));
}

.prompt-library-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(6px);
}

.prompt-library-card {
  position: relative;
  width: min(100%, var(--app-width));
  max-height: min(78vh, 680px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 22px 22px 18px 18px;
  background: #f8fafc;
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.22);
}

.prompt-library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 12px;
  background: #ffffff;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.prompt-library-head strong {
  display: block;
  color: #0f172a;
  font-size: 18px;
  font-weight: 600;
}

.prompt-library-head small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.prompt-library-head button {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 50%;
  background: #ffffff;
  color: #334155;
  font-size: 22px;
  line-height: 1;
}

.prompt-library-search {
  padding: 12px 14px 8px;
  background: #ffffff;
}

.prompt-library-search input {
  width: 100%;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  outline: none;
}

.prompt-library-search input:focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.prompt-library-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 14px 12px;
  background: #ffffff;
  scrollbar-width: none;
}

.prompt-library-tabs::-webkit-scrollbar {
  display: none;
}

.prompt-library-tabs button {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

.prompt-library-tabs button.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.prompt-library-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px 16px;
  display: grid;
  gap: 12px;
}

.prompt-library-item {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.prompt-library-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.prompt-library-item-head strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  font-weight: 500;
}

.prompt-library-item-head small {
  display: inline-flex;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
}

.prompt-library-item-head button {
  flex: 0 0 auto;
  min-width: 58px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 13px;
  font-weight: 400;
}

.prompt-library-item p {
  margin: 10px 0 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.7;
}

.prompt-library-empty {
  padding: 26px 16px;
  border-radius: 14px;
  background: #ffffff;
  color: #64748b;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 390px) {
  #studioView .manual-prompt-actions .manual-prompt-library,
  #studioView .manual-prompt-actions button.manual-prompt-library.secondary {
    min-width: 80px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 10px !important;
  }

  .prompt-library-card {
    max-height: 82vh;
    border-radius: 20px 20px 16px 16px;
  }

  .prompt-library-head {
    padding: 16px 16px 10px;
  }
}

/* prompt library scroll isolation v121 */
body.prompt-library-open .screen-body {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: none !important;
}

body.prompt-library-open .prompt-library-sheet {
  touch-action: none !important;
  overscroll-behavior: contain !important;
}

body.prompt-library-open .prompt-library-card {
  touch-action: pan-y !important;
  overscroll-behavior: contain !important;
}

body.prompt-library-open .prompt-library-list {
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  max-height: 100% !important;
}

body.prompt-library-open .prompt-library-tabs {
  overscroll-behavior-x: contain !important;
  touch-action: pan-x !important;
}

/* prompt library fixed tabs v122 */
.prompt-library-head,
.prompt-library-search,
.prompt-library-tabs {
  position: relative !important;
  z-index: 3 !important;
  flex: 0 0 auto !important;
}

.prompt-library-tabs {
  min-height: 44px !important;
  align-items: center !important;
  padding-top: 0 !important;
  padding-bottom: 12px !important;
  box-shadow: 0 10px 16px rgba(248, 250, 252, 0.92) !important;
}

.prompt-library-list {
  position: relative !important;
  z-index: 1 !important;
  flex: 1 1 auto !important;
  min-height: 180px !important;
  padding-top: 14px !important;
  margin-top: 0 !important;
  background: #f8fafc !important;
  align-content: start !important;
}

.prompt-library-list::before {
  content: "";
  position: sticky;
  top: -14px;
  z-index: 2;
  display: block;
  height: 1px;
  margin: -14px -14px 13px;
  background: #f8fafc;
}

.prompt-library-card {
  min-height: min(72vh, 560px) !important;
}

@media (max-width: 390px) {
  .prompt-library-tabs {
    min-height: 42px !important;
  }

  .prompt-library-list {
    min-height: 160px !important;
  }
}

/* android auto publish entry v124 */
.works-auto-publish {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 13px;
  font-weight: 400;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.works-auto-publish.hidden {
  display: none !important;
}

@media (max-width: 390px) {
  .works-auto-publish {
    height: 32px;
    padding: 0 11px;
    font-size: 12px;
  }
}

/* android auto publish always visible v125 */
#worksView .works-auto-publish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#worksView .works-auto-publish.hidden {
  display: none !important;
}

/* manual asset auto pick switch v146 */
.manual-asset-autopick {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(85, 167, 255, 0.16);
  border-radius: 10px;
  background: #fff;
  color: #1f3557;
}

.manual-asset-autopick input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  flex: 0 0 auto;
}

.manual-asset-autopick span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.manual-asset-autopick strong {
  color: var(--brand);
  font-size: 13px;
  font-weight: 400;
}

.manual-asset-autopick small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

/* manual generate image pill v147 */
#studioView .manual-prompt-actions .manual-generate-image,
#studioView .manual-prompt-actions button.manual-generate-image.secondary {
  position: static !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 96px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(37, 99, 235, 0.16) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #2563eb !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.07) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  white-space: nowrap !important;
}

#studioView .manual-prompt-actions .manual-generate-image:hover,
#studioView .manual-prompt-actions .manual-generate-image:active {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: rgba(37, 99, 235, 0.24) !important;
}

/* dark-ui-v170 */
html.theme-dark,
html.theme-dark body,
body.theme-dark {
  color-scheme: dark;
  --bg: #050814;
  --screen: #07111f;
  --surface: #0d1728;
  --surface-soft: #111d31;
  --line: rgba(148, 163, 184, 0.22);
  --text: #eef6ff;
  --muted: #91a4bd;
  --brand: #4da3ff;
  --brand-dark: #2f7dff;
  --ok: #35d399;
  --danger: #ff6b6b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --card-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  background: radial-gradient(circle at 50% -12%, rgba(77, 163, 255, 0.18), transparent 32%), #050814;
}

html.theme-dark .phone-app,
body.theme-dark .phone-app {
  background: linear-gradient(180deg, #081526 0%, #07101d 54%, #050814 100%);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.18), 0 28px 100px rgba(0, 0, 0, 0.52);
}

html.theme-dark .app-header,
html.theme-dark .tabbar,
html.theme-dark .auto-agent-input,
html.theme-dark .auto-agent-entry-strip,
html.theme-dark .manual-topbar,
html.theme-dark .studio-mode-pills,
html.theme-dark .creator-picks,
html.theme-dark .work-upload-card,
html.theme-dark .prompt-library-card,
html.theme-dark .hot-replication-card,
html.theme-dark .share-guide-card,
html.theme-dark .payment-card,
html.theme-dark .recharge-card,
html.theme-dark .membership-confirm-card,
html.theme-dark .gold-convert-card {
  background: rgba(10, 20, 34, 0.94) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  color: var(--text) !important;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.36) !important;
}

html.theme-dark .view,
html.theme-dark .screen-body,
html.theme-dark #worksView,
html.theme-dark #studioView,
html.theme-dark #accountView {
  background: transparent !important;
  color: var(--text) !important;
}

html.theme-dark .step-block,
html.theme-dark .account-card,
html.theme-dark .wallet-card,
html.theme-dark .work-card,
html.theme-dark .creator-panel,
html.theme-dark .auto-create-card,
html.theme-dark .agent-card,
html.theme-dark .invite-quick-card,
html.theme-dark .membership-plan,
html.theme-dark .ledger-row,
html.theme-dark .asset-chip,
html.theme-dark .model-option,
html.theme-dark .model-current,
html.theme-dark .theme-option,
html.theme-dark .ad-card,
html.theme-dark .account-ad-slot,
html.theme-dark .manual-prompt-box,
html.theme-dark .video-look-panel,
html.theme-dark .prompt-library-item,
html.theme-dark .hot-replication-result,
html.theme-dark .auto-agent-message,
html.theme-dark .auto-agent-task-card {
  background: linear-gradient(180deg, rgba(15, 28, 46, 0.96), rgba(10, 18, 31, 0.96)) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  color: var(--text) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.26) !important;
}

html.theme-dark .account-card-bg,
html.theme-dark .hero-glow,
html.theme-dark .auth-card::before {
  opacity: 0.28 !important;
}

html.theme-dark p,
html.theme-dark small,
html.theme-dark label,
html.theme-dark .muted,
html.theme-dark .section-title span,
html.theme-dark .title-hint,
html.theme-dark .work-card small,
html.theme-dark .account-card p,
html.theme-dark .prompt-library-item small,
html.theme-dark .model-option small,
html.theme-dark .theme-option small,
html.theme-dark .creator-pick small,
html.theme-dark .asset-chip small,
html.theme-dark .auto-agent-message small {
  color: var(--muted) !important;
}

html.theme-dark h1,
html.theme-dark h2,
html.theme-dark h3,
html.theme-dark strong,
html.theme-dark b,
html.theme-dark .work-card p,
html.theme-dark .auto-agent-message strong,
html.theme-dark .prompt-library-item strong,
html.theme-dark .model-option strong,
html.theme-dark .theme-option span {
  color: var(--text) !important;
}

html.theme-dark input,
html.theme-dark textarea,
html.theme-dark select,
html.theme-dark .auto-agent-field,
html.theme-dark #autoCreateInput,
html.theme-dark #promptLibrarySearch,
html.theme-dark .comment-form input {
  background: rgba(5, 12, 24, 0.88) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  color: var(--text) !important;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.16) !important;
}

html.theme-dark input::placeholder,
html.theme-dark textarea::placeholder {
  color: rgba(145, 164, 189, 0.74) !important;
}

html.theme-dark button.secondary,
html.theme-dark .manual-prompt-actions button,
html.theme-dark .auto-agent-entry-strip button,
html.theme-dark .studio-model-choice,
html.theme-dark .prompt-library-tab,
html.theme-dark .creator-pick,
html.theme-dark .works-layout-toggle,
html.theme-dark .seg,
html.theme-dark .theme-option {
  background: rgba(15, 28, 46, 0.92) !important;
  border-color: rgba(96, 165, 250, 0.22) !important;
  color: #cfe6ff !important;
}

html.theme-dark button.primary,
html.theme-dark .primary,
html.theme-dark .theme-option.active,
html.theme-dark .model-option:has(input:checked),
html.theme-dark .studio-model-choice.active,
html.theme-dark .prompt-library-tab.active,
html.theme-dark .seg.active,
html.theme-dark .tab-item.active {
  background: linear-gradient(135deg, #2563eb, #4da3ff) !important;
  border-color: rgba(96, 165, 250, 0.5) !important;
  color: #ffffff !important;
}

html.theme-dark .tab-item {
  color: rgba(207, 230, 255, 0.72) !important;
}

html.theme-dark .tab-icon,
html.theme-dark .social-icon,
html.theme-dark .fold-icon {
  filter: saturate(1.1) brightness(1.08);
}

html.theme-dark .video-frame,
html.theme-dark .work-card .video-frame,
html.theme-dark .my-work-grid-thumb,
html.theme-dark .public-grid-card {
  background: #020617 !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}

html.theme-dark .toast {
  background: rgba(5, 12, 24, 0.94) !important;
  color: var(--text) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
}

html.theme-dark .theme-options {
  display: grid;
  gap: 10px;
}

html.theme-dark .theme-option,
.theme-option {
  width: 100%;
  min-height: 58px;
  display: grid;
  gap: 4px;
  align-content: center;
  justify-items: start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  background: var(--surface-soft);
  color: var(--text);
}

.theme-option.active {
  border-color: rgba(85, 167, 255, 0.46);
  background: #eef5ff;
  color: #1d4ed8;
}

/* dark-ui-contrast-v171 */
html.theme-dark .phone-app {
  color: var(--text) !important;
}

html.theme-dark .phone-app :where(h1, h2, h3, h4, summary, li, dt, dd, th, td),
html.theme-dark .phone-app :where(.section-title, .fold-arrow, .work-title, .work-name, .card-title, .dialog-title, .modal-title, .asset-title, .prompt-title, .library-title),
html.theme-dark .phone-app :where(.account-fold summary h3, .account-fold summary span, .manual-prompt-box h3, .creator-panel h3, .prompt-library-card h3, .hot-replication-card h3) {
  color: var(--text) !important;
}

html.theme-dark .phone-app :where(p, small, label, .hint, .desc, .subtext, .help-text, .empty-text, .title-hint, .section-title span, .fold-content small, .work-meta, .asset-meta, .prompt-meta, .library-meta, .card-desc) {
  color: var(--muted) !important;
}

html.theme-dark .phone-app :where(.primary, button.primary, .danger-button, .theme-option.active, .model-option.active, .studio-model-choice.active, .prompt-library-tab.active, .seg.active, .tab-item.active) :where(span, small, strong, b) {
  color: #ffffff !important;
}

html.theme-dark .phone-app :where(button.secondary, .manual-prompt-actions button, .auto-agent-entry-strip button, .studio-model-choice, .prompt-library-tab, .creator-pick, .works-layout-toggle, .seg, .theme-option, .model-option) :where(span, strong, b) {
  color: #d9ecff !important;
}

html.theme-dark .phone-app :where(button.secondary, .manual-prompt-actions button, .auto-agent-entry-strip button, .studio-model-choice, .prompt-library-tab, .creator-pick, .works-layout-toggle, .seg, .theme-option, .model-option) :where(small, em) {
  color: #9db3cc !important;
}

html.theme-dark .phone-app :where(.auth-card, .modal, .dialog, .sheet, .popup, .share-panel, .share-guide-card, .payment-card, .recharge-card, .membership-confirm-card, .gold-convert-card, .upload-panel, .prompt-library-card, .hot-replication-card) {
  background: linear-gradient(180deg, rgba(15, 28, 46, 0.98), rgba(8, 16, 29, 0.98)) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  color: var(--text) !important;
}

html.theme-dark .phone-app :where(.public-grid-card, .my-work-grid-card, .work-card, .prompt-library-item, .asset-card, .asset-chip, .task-card, .auto-agent-task-card, .ad-card, .ledger-row, .invite-quick-card, .wallet-card) {
  background: linear-gradient(180deg, rgba(15, 28, 46, 0.96), rgba(9, 18, 32, 0.96)) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  color: var(--text) !important;
}

html.theme-dark .phone-app :where(input, textarea, select, .auto-agent-field, #autoCreateInput, #promptLibrarySearch, .comment-form input) {
  background: rgba(4, 10, 22, 0.94) !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
  color: #f3f8ff !important;
}

html.theme-dark .phone-app :where(input, textarea)::placeholder {
  color: rgba(157, 179, 204, 0.78) !important;
}

html.theme-dark .phone-app :where(.tag, .pill, .chip, .status, .badge, .filter-chip, .category-chip) {
  background: rgba(77, 163, 255, 0.13) !important;
  border-color: rgba(77, 163, 255, 0.26) !important;
  color: #cfe6ff !important;
}

html.theme-dark .phone-app :where(.ok, .success, .status-success) {
  color: #58e6ad !important;
}

html.theme-dark .phone-app :where(.danger, .error, .status-error) {
  color: #ff8585 !important;
}

html.theme-dark .phone-app :where(.tab-item span, .fold-icon, .tab-icon) {
  color: inherit !important;
}

/* dark-ui-readable-force-v171 */
html.theme-dark .phone-app.phone-app.phone-app h1,
html.theme-dark .phone-app.phone-app.phone-app h2,
html.theme-dark .phone-app.phone-app.phone-app h3,
html.theme-dark .phone-app.phone-app.phone-app h4,
html.theme-dark .phone-app.phone-app.phone-app summary,
html.theme-dark .phone-app.phone-app.phone-app summary span,
html.theme-dark .phone-app.phone-app.phone-app summary h3,
html.theme-dark .phone-app.phone-app.phone-app .section-title h3,
html.theme-dark .phone-app.phone-app.phone-app .work-card p,
html.theme-dark .phone-app.phone-app.phone-app .prompt-library-item strong,
html.theme-dark .phone-app.phone-app.phone-app .asset-chip strong,
html.theme-dark .phone-app.phone-app.phone-app .auto-agent-message strong,
html.theme-dark .phone-app.phone-app.phone-app .model-option strong,
html.theme-dark .phone-app.phone-app.phone-app .theme-option span,
html.theme-dark .phone-app.phone-app.phone-app .studio-model-choice span,
html.theme-dark .phone-app.phone-app.phone-app .creator-pick span,
html.theme-dark .phone-app.phone-app.phone-app .manual-prompt-actions button span,
html.theme-dark .phone-app.phone-app.phone-app .auto-agent-entry-strip button span,
html.theme-dark .phone-app.phone-app.phone-app .works-layout-toggle span,
html.theme-dark .phone-app.phone-app.phone-app .seg span,
html.theme-dark .phone-app.phone-app.phone-app .tab-item.active span {
  color: #eef6ff !important;
}

html.theme-dark .phone-app.phone-app.phone-app p,
html.theme-dark .phone-app.phone-app.phone-app small,
html.theme-dark .phone-app.phone-app.phone-app label,
html.theme-dark .phone-app.phone-app.phone-app .title-hint,
html.theme-dark .phone-app.phone-app.phone-app .section-title span,
html.theme-dark .phone-app.phone-app.phone-app .work-card small,
html.theme-dark .phone-app.phone-app.phone-app .prompt-library-item small,
html.theme-dark .phone-app.phone-app.phone-app .asset-chip small,
html.theme-dark .phone-app.phone-app.phone-app .auto-agent-message small,
html.theme-dark .phone-app.phone-app.phone-app .theme-option small,
html.theme-dark .phone-app.phone-app.phone-app .model-option small,
html.theme-dark .phone-app.phone-app.phone-app .creator-pick small,
html.theme-dark .phone-app.phone-app.phone-app .studio-model-choice small {
  color: #9db3cc !important;
}

html.theme-dark .phone-app.phone-app.phone-app .primary span,
html.theme-dark .phone-app.phone-app.phone-app button.primary span,
html.theme-dark .phone-app.phone-app.phone-app .danger-button span,
html.theme-dark .phone-app.phone-app.phone-app .theme-option.active span,
html.theme-dark .phone-app.phone-app.phone-app .theme-option.active small,
html.theme-dark .phone-app.phone-app.phone-app .model-option.active span,
html.theme-dark .phone-app.phone-app.phone-app .studio-model-choice.active span,
html.theme-dark .phone-app.phone-app.phone-app .prompt-library-tab.active,
html.theme-dark .phone-app.phone-app.phone-app .seg.active,
html.theme-dark .phone-app.phone-app.phone-app .tab-item.active span {
  color: #ffffff !important;
}

/* dark-ui-public-works-toggle-v172 */
html.theme-dark #worksView .works-public-toggle,
html.theme-dark #worksView #publicWorksLayoutToggle {
  background: rgba(15, 28, 46, 0.96) !important;
  border-color: rgba(96, 165, 250, 0.28) !important;
  color: #eef6ff !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28) !important;
}

html.theme-dark #worksView .works-public-toggle strong,
html.theme-dark #worksView .works-public-toggle span,
html.theme-dark #worksView #publicWorksLayoutToggle strong,
html.theme-dark #worksView #publicWorksLayoutToggle span {
  color: #eef6ff !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html.theme-dark #worksView .works-public-toggle span,
html.theme-dark #worksView #publicWorksLayoutToggle span {
  color: #9db3cc !important;
}

/* dark-ui-invite-readable-v173 */
html.theme-dark #accountView .invite-quick-card,
html.theme-dark #accountView .invite-bind-card,
html.theme-dark #accountView .invite-network-card,
html.theme-dark #accountView .invite-code-card {
  background: linear-gradient(180deg, rgba(15, 28, 46, 0.98), rgba(9, 18, 32, 0.98)) !important;
  border-color: rgba(96, 165, 250, 0.26) !important;
  color: #eef6ff !important;
}

html.theme-dark #accountView .invite-quick-card strong,
html.theme-dark #accountView .invite-quick-head strong,
html.theme-dark #accountView #inviteCodeLabel,
html.theme-dark #accountView .invite-code-card strong,
html.theme-dark #accountView .invite-network-card strong,
html.theme-dark #accountView .invite-network-compact strong,
html.theme-dark #accountView .invite-network-metrics strong {
  color: #eef6ff !important;
  opacity: 1 !important;
}

html.theme-dark #accountView .invite-quick-card span,
html.theme-dark #accountView .invite-quick-meta span,
html.theme-dark #accountView .invite-bind-card > span,
html.theme-dark #accountView .invite-network-card span,
html.theme-dark #accountView .invite-network-card small,
html.theme-dark #accountView .invite-network-head span,
html.theme-dark #accountView .invite-network-metrics em,
html.theme-dark #accountView .invite-code-card span {
  color: #9db3cc !important;
  opacity: 1 !important;
}

html.theme-dark #accountView .invite-level-list span {
  background: rgba(77, 163, 255, 0.14) !important;
  border-color: rgba(77, 163, 255, 0.28) !important;
  color: #cfe6ff !important;
}

html.theme-dark #accountView .invite-quick-action,
html.theme-dark #accountView #inviteBindBtn {
  background: linear-gradient(135deg, #2563eb, #4da3ff) !important;
  border-color: rgba(96, 165, 250, 0.48) !important;
  color: #ffffff !important;
}

html.theme-dark #accountView .invite-quick-action strong,
html.theme-dark #accountView .invite-quick-action small,
html.theme-dark #accountView #inviteBindBtn {
  color: #ffffff !important;
}

/* dark-ui-panel-unify-v177 */
html.theme-dark .phone-app :is(
  .step-block,
  .account-card,
  .wallet-card,
  .work-card,
  .auto-create-card,
  .agent-card,
  .creator-panel,
  .manual-prompt-box,
  .video-look-panel,
  .prompt-library-card,
  .prompt-library-item,
  .hot-replication-card,
  .hot-replication-form,
  .hot-replication-summary section,
  .hot-replication-kv,
  .hot-replication-result,
  .work-upload-card,
  .work-upload-sheet,
  .share-guide-card,
  .payment-card,
  .recharge-card,
  .membership-plan,
  .membership-confirm-card,
  .gold-convert-card,
  .ledger-row,
  .reward-task-card,
  .reward-wallet-card,
  .ad-card,
  .account-ad-slot,
  .invite-quick-card,
  .invite-bind-card,
  .invite-network-card,
  .asset-chip,
  .asset-card,
  .template,
  .model-option,
  .model-current,
  .theme-option,
  .creator-pick,
  .studio-model-choice,
  .auto-agent-message,
  .auto-agent-task-card,
  .auto-agent-confirm,
  .auto-agent-video-progress,
  .auto-agent-video-result,
  .auto-agent-asset-choice,
  .auto-agent-prompt-editor,
  .public-grid-card,
  .my-work-grid-card,
  .comment-form,
  .comment-list,
  .modal,
  .dialog,
  .sheet,
  .popup
) {
  background: linear-gradient(180deg, rgba(15, 28, 46, 0.98), rgba(9, 18, 32, 0.98)) !important;
  background-image: linear-gradient(180deg, rgba(15, 28, 46, 0.98), rgba(9, 18, 32, 0.98)) !important;
  border-color: rgba(96, 165, 250, 0.26) !important;
  color: #eef6ff !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26) !important;
}

html.theme-dark .phone-app :is(
  .works-public-toggle,
  .works-auto-publish,
  .works-layout-toggle,
  .manual-prompt-actions button,
  .auto-agent-entry-strip button,
  .prompt-library-tab,
  .seg,
  .tag,
  .pill,
  .chip,
  .badge,
  .filter-chip,
  .category-chip,
  .social-button,
  .recharge-plan,
  .reward-action,
  .reward-task-summary,
  .task-summary-grid span,
  .invite-level-list span
) {
  background: rgba(77, 163, 255, 0.14) !important;
  background-image: none !important;
  border-color: rgba(77, 163, 255, 0.28) !important;
  color: #cfe6ff !important;
  box-shadow: none !important;
}

html.theme-dark .phone-app :is(
  input,
  textarea,
  select,
  .auto-agent-field,
  #autoCreateInput,
  #promptLibrarySearch,
  .comment-form input,
  .invite-bind-card input
) {
  background: rgba(4, 12, 26, 0.9) !important;
  background-image: none !important;
  border-color: rgba(96, 165, 250, 0.28) !important;
  color: #f3f8ff !important;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.18) !important;
}

html.theme-dark .phone-app :is(
  .step-block,
  .account-card,
  .wallet-card,
  .work-card,
  .auto-create-card,
  .agent-card,
  .creator-panel,
  .manual-prompt-box,
  .video-look-panel,
  .prompt-library-card,
  .prompt-library-item,
  .hot-replication-card,
  .work-upload-card,
  .share-guide-card,
  .payment-card,
  .recharge-card,
  .membership-plan,
  .gold-convert-card,
  .ledger-row,
  .reward-task-card,
  .ad-card,
  .invite-quick-card,
  .invite-bind-card,
  .invite-network-card,
  .asset-chip,
  .asset-card,
  .model-option,
  .theme-option,
  .creator-pick,
  .studio-model-choice,
  .auto-agent-message,
  .auto-agent-task-card
) :is(h1, h2, h3, h4, strong, b, summary, .title, .work-title, .card-title) {
  color: #eef6ff !important;
  -webkit-text-fill-color: #eef6ff !important;
}

html.theme-dark .phone-app :is(
  .step-block,
  .account-card,
  .wallet-card,
  .work-card,
  .auto-create-card,
  .agent-card,
  .creator-panel,
  .manual-prompt-box,
  .video-look-panel,
  .prompt-library-card,
  .prompt-library-item,
  .hot-replication-card,
  .work-upload-card,
  .share-guide-card,
  .payment-card,
  .recharge-card,
  .membership-plan,
  .gold-convert-card,
  .ledger-row,
  .reward-task-card,
  .ad-card,
  .invite-quick-card,
  .invite-bind-card,
  .invite-network-card,
  .asset-chip,
  .asset-card,
  .model-option,
  .theme-option,
  .creator-pick,
  .studio-model-choice,
  .auto-agent-message,
  .auto-agent-task-card
) :is(p, small, span, label, em, .muted, .title-hint, .desc, .help-text, .work-meta, .asset-meta) {
  color: #9db3cc !important;
}

html.theme-dark .phone-app :is(
  .primary,
  button.primary,
  .danger-button,
  .theme-option.active,
  .model-option.active,
  .studio-model-choice.active,
  .prompt-library-tab.active,
  .seg.active,
  .tab-item.active,
  #inviteCodeLabel,
  .invite-quick-action,
  #inviteBindBtn
) {
  background: linear-gradient(135deg, #2563eb, #4da3ff) !important;
  background-image: linear-gradient(135deg, #2563eb, #4da3ff) !important;
  border-color: rgba(96, 165, 250, 0.5) !important;
  color: #ffffff !important;
}

html.theme-dark .phone-app :is(
  .primary,
  button.primary,
  .danger-button,
  .theme-option.active,
  .model-option.active,
  .studio-model-choice.active,
  .prompt-library-tab.active,
  .seg.active,
  .tab-item.active,
  #inviteCodeLabel,
  .invite-quick-action,
  #inviteBindBtn
) :is(span, strong, small, b) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html.theme-dark .phone-app :is(.video-frame, .work-card video, .work-card img, .asset-thumb, .my-work-grid-thumb) {
  background: #020617 !important;
  background-image: none !important;
}

/* dark-studio-panel-unify-v178 */
html.theme-dark #studioView,
html.theme-dark body.studio-manual-mode #studioView {
  background: transparent !important;
  color: #eef6ff !important;
}

html.theme-dark #studioView .hero-block,
html.theme-dark #studioView .prompt-block,
html.theme-dark #studioView .creator-picks,
html.theme-dark #studioView .creator-panel,
html.theme-dark #studioView .compact-settings label,
html.theme-dark #studioView .manual-asset-autopick,
html.theme-dark #studioView .studio-model-panel,
html.theme-dark #studioView .auto-agent-panel,
html.theme-dark #studioView .auto-agent-log,
html.theme-dark #studioView .auto-agent-task-list,
html.theme-dark #studioView .auto-agent-confirm,
html.theme-dark #studioView .auto-agent-video-progress,
html.theme-dark #studioView .auto-agent-video-result,
html.theme-dark #studioView .auto-agent-asset-choice,
html.theme-dark #studioView .auto-agent-prompt-editor,
html.theme-dark #studioView .prompt-library-card,
html.theme-dark #studioView .prompt-library-head,
html.theme-dark #studioView .prompt-library-search,
html.theme-dark #studioView .prompt-library-tabs,
html.theme-dark #studioView .prompt-library-list,
html.theme-dark #studioView .prompt-library-item,
html.theme-dark #studioView .hot-replication-card,
html.theme-dark #studioView .hot-replication-form,
html.theme-dark #studioView .hot-replication-summary section,
html.theme-dark #studioView .hot-replication-kv,
html.theme-dark #studioView .hot-replication-result {
  background: linear-gradient(180deg, rgba(15, 28, 46, 0.98), rgba(9, 18, 32, 0.98)) !important;
  background-image: linear-gradient(180deg, rgba(15, 28, 46, 0.98), rgba(9, 18, 32, 0.98)) !important;
  border-color: rgba(96, 165, 250, 0.26) !important;
  color: #eef6ff !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26) !important;
}

html.theme-dark #studioView .studio-model-trigger,
html.theme-dark #studioView button.hero-status-bar.studio-model-trigger,
html.theme-dark #studioView .studio-model-name,
html.theme-dark #studioView .duration-badge,
html.theme-dark #studioView .creator-pick,
html.theme-dark #studioView .creator-pick.voice-text-pick,
html.theme-dark #studioView .asset-chip,
html.theme-dark #studioView .template,
html.theme-dark #studioView .upload-action,
html.theme-dark #studioView .manual-prompt-actions button,
html.theme-dark #studioView .manual-prompt-actions .manual-prompt-library,
html.theme-dark #studioView .manual-prompt-actions .manual-generate-image,
html.theme-dark #studioView .manual-prompt-actions .manual-hot-replication,
html.theme-dark #studioView .manual-prompt-actions .manual-agent-create,
html.theme-dark #studioView .manual-prompt-actions .manual-my-works,
html.theme-dark #studioView .manual-prompt-actions .manual-prompt-voice,
html.theme-dark #studioView .auto-agent-entry-strip button,
html.theme-dark #studioView .studio-my-works-entry,
html.theme-dark #studioView .auto-agent-manual-btn,
html.theme-dark #studioView .auto-agent-hot-btn,
html.theme-dark #studioView .studio-model-choice,
html.theme-dark #studioView .prompt-library-tabs button,
html.theme-dark #studioView .prompt-library-item-head button,
html.theme-dark #studioView .auto-agent-inline-actions button,
html.theme-dark #studioView .auto-agent-text-confirm,
html.theme-dark #studioView .voice-input-button,
html.theme-dark #studioView .auto-agent-voice-btn {
  background: rgba(77, 163, 255, 0.14) !important;
  background-image: none !important;
  border-color: rgba(77, 163, 255, 0.28) !important;
  color: #cfe6ff !important;
  box-shadow: none !important;
}

html.theme-dark #studioView .studio-model-choice.active,
html.theme-dark #studioView .creator-pick.active,
html.theme-dark #studioView .template.active,
html.theme-dark #studioView .prompt-library-tabs button.active,
html.theme-dark #studioView .manual-prompt-actions button.primary,
html.theme-dark #studioView .main-create-button,
html.theme-dark #studioView #autoAgentConfirmBtn,
html.theme-dark #studioView #autoTextConfirmBtn:not(.hidden),
html.theme-dark #studioView .voice-input-button.listening,
html.theme-dark #studioView .auto-agent-voice-btn.listening {
  background: linear-gradient(135deg, #2563eb, #4da3ff) !important;
  background-image: linear-gradient(135deg, #2563eb, #4da3ff) !important;
  border-color: rgba(96, 165, 250, 0.5) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24) !important;
}

html.theme-dark #studioView textarea,
html.theme-dark #studioView input,
html.theme-dark #studioView select,
html.theme-dark #studioView .prompt-field textarea,
html.theme-dark #studioView .manual-prompt-editor textarea,
html.theme-dark #studioView #autoCreateInput,
html.theme-dark #studioView #autoAgentPromptEditor,
html.theme-dark #studioView #promptLibrarySearch {
  background: rgba(4, 12, 26, 0.92) !important;
  background-image: none !important;
  border-color: rgba(96, 165, 250, 0.28) !important;
  color: #f3f8ff !important;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.18) !important;
  -webkit-text-fill-color: #f3f8ff !important;
}

html.theme-dark #studioView textarea::placeholder,
html.theme-dark #studioView input::placeholder {
  color: rgba(157, 179, 204, 0.78) !important;
  -webkit-text-fill-color: rgba(157, 179, 204, 0.78) !important;
}

html.theme-dark #studioView h1,
html.theme-dark #studioView h2,
html.theme-dark #studioView h3,
html.theme-dark #studioView h4,
html.theme-dark #studioView strong,
html.theme-dark #studioView b,
html.theme-dark #studioView .studio-mode-bridge strong,
html.theme-dark #studioView .prompt-block .section-title h3,
html.theme-dark #studioView .creator-pick strong,
html.theme-dark #studioView .creator-pick.voice-text-pick strong,
html.theme-dark #studioView .creator-panel .section-title h3,
html.theme-dark #studioView .studio-model-choice strong,
html.theme-dark #studioView .studio-model-choice em,
html.theme-dark #studioView .manual-asset-autopick strong,
html.theme-dark #studioView .prompt-library-head strong,
html.theme-dark #studioView .prompt-library-item-head strong,
html.theme-dark #studioView .upload-action strong,
html.theme-dark #studioView .auto-agent-confirm-head strong,
html.theme-dark #studioView .auto-agent-message strong {
  color: #eef6ff !important;
  -webkit-text-fill-color: #eef6ff !important;
}

html.theme-dark #studioView p,
html.theme-dark #studioView small,
html.theme-dark #studioView span,
html.theme-dark #studioView label,
html.theme-dark #studioView em,
html.theme-dark #studioView .studio-mode-bridge span,
html.theme-dark #studioView .title-hint,
html.theme-dark #studioView .compact-settings label span,
html.theme-dark #studioView .studio-model-choice small,
html.theme-dark #studioView .studio-model-choice em,
html.theme-dark #studioView .pick-label,
html.theme-dark #studioView .manual-asset-autopick small,
html.theme-dark #studioView .prompt-library-head small,
html.theme-dark #studioView .prompt-library-item-head small,
html.theme-dark #studioView .prompt-library-item p,
html.theme-dark #studioView .upload-action small,
html.theme-dark #studioView .auto-agent-voice-hint,
html.theme-dark #studioView .status-line {
  color: #9db3cc !important;
  -webkit-text-fill-color: #9db3cc !important;
}

html.theme-dark #studioView .studio-model-trigger :is(span, strong, small, em),
html.theme-dark #studioView .manual-prompt-actions button :is(span, strong, small),
html.theme-dark #studioView .auto-agent-entry-strip button :is(span, strong, small),
html.theme-dark #studioView .creator-pick :is(span, strong, small),
html.theme-dark #studioView .upload-action :is(span, strong, small),
html.theme-dark #studioView .prompt-library-tabs button,
html.theme-dark #studioView .voice-input-button :is(span, strong, small) {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

html.theme-dark #studioView .asset-thumb,
html.theme-dark #studioView .asset-chip img,
html.theme-dark #studioView .asset-chip video,
html.theme-dark #studioView .video-frame,
html.theme-dark #studioView .work-card img,
html.theme-dark #studioView .work-card video {
  background: #020617 !important;
  background-image: none !important;
}

/* dark-studio-autopick-voice-icon-v179 */
html.theme-dark #studioView .manual-asset-autopick input[type="checkbox"],
html.theme-dark #studioView #manualAutoPickAssets {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 1.5px solid rgba(96, 165, 250, 0.62) !important;
  border-radius: 5px !important;
  background: rgba(4, 12, 26, 0.92) !important;
  background-image: none !important;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.2) !important;
  position: relative !important;
  margin-top: 2px !important;
  accent-color: #4da3ff !important;
}

html.theme-dark #studioView .manual-asset-autopick input[type="checkbox"]:checked,
html.theme-dark #studioView #manualAutoPickAssets:checked {
  background: linear-gradient(135deg, #2563eb, #4da3ff) !important;
  border-color: rgba(96, 165, 250, 0.9) !important;
}

html.theme-dark #studioView .manual-asset-autopick input[type="checkbox"]:checked::after,
html.theme-dark #studioView #manualAutoPickAssets:checked::after {
  content: "" !important;
  position: absolute !important;
  left: 5px !important;
  top: 2px !important;
  width: 5px !important;
  height: 9px !important;
  border: solid #ffffff !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
}

#studioView .creator-pick.voice-text-pick .pick-icon {
  display: grid !important;
  place-items: center !important;
}

#studioView .creator-pick.voice-text-pick {
  justify-content: stretch !important;
  align-content: center !important;
  justify-items: center !important;
  gap: 7px !important;
}

html.theme-dark #studioView .creator-pick.voice-text-pick .pick-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
  background: rgba(77, 163, 255, 0.16) !important;
  border: 1px solid rgba(77, 163, 255, 0.24) !important;
  color: #cfe6ff !important;
  -webkit-text-fill-color: #cfe6ff !important;
  font-size: 20px !important;
}

/* dark-studio-current-model-text-v179 */
html.theme-dark #studioView .hero-status-bar.studio-model-trigger,
html.theme-dark #studioView button.hero-status-bar.studio-model-trigger,
html.theme-dark #studioView .studio-model-trigger {
  color: #eef6ff !important;
}

html.theme-dark #studioView .hero-status-bar.studio-model-trigger :is(span, strong, small, em),
html.theme-dark #studioView button.hero-status-bar.studio-model-trigger :is(span, strong, small, em),
html.theme-dark #studioView .studio-model-trigger :is(span, strong, small, em),
html.theme-dark #studioView .studio-model-name,
html.theme-dark #studioView .model-badge,
html.theme-dark #studioView .duration-badge {
  color: #eef6ff !important;
  -webkit-text-fill-color: #eef6ff !important;
  opacity: 1 !important;
}

/* dark-studio-ai-prompt-pill-v180 */
html.theme-dark #studioView .manual-prompt-editor .ai-prompt-button,
html.theme-dark #studioView #aiPromptBtn.ai-prompt-button,
html.theme-dark #studioView button#aiPromptBtn.secondary.ai-prompt-button {
  height: 34px !important;
  min-width: 104px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(77, 163, 255, 0.28) !important;
  background: rgba(77, 163, 255, 0.14) !important;
  background-image: none !important;
  color: #cfe6ff !important;
  -webkit-text-fill-color: #cfe6ff !important;
  box-shadow: none !important;
  font-weight: 400 !important;
}

html.theme-dark #studioView .manual-prompt-editor .ai-prompt-button:hover,
html.theme-dark #studioView .manual-prompt-editor .ai-prompt-button:active,
html.theme-dark #studioView #aiPromptBtn.ai-prompt-button:hover,
html.theme-dark #studioView #aiPromptBtn.ai-prompt-button:active {
  background: rgba(77, 163, 255, 0.2) !important;
  background-image: none !important;
  border-color: rgba(77, 163, 255, 0.38) !important;
  color: #eef6ff !important;
  -webkit-text-fill-color: #eef6ff !important;
}

html.theme-dark #studioView .manual-prompt-editor .ai-prompt-button span,
html.theme-dark #studioView .manual-prompt-editor .ai-prompt-button .ai-icon,
html.theme-dark #studioView #aiPromptBtn.ai-prompt-button span,
html.theme-dark #studioView #aiPromptBtn.ai-prompt-button .ai-icon {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

/* dark-studio-duration-pill-v180 */
html.theme-dark #studioView .duration-badge,
html.theme-dark #studioView .hero-status-bar .duration-badge,
html.theme-dark #studioView .studio-model-trigger .duration-badge {
  min-height: 28px !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(77, 163, 255, 0.28) !important;
  background: rgba(77, 163, 255, 0.14) !important;
  background-image: none !important;
  color: #cfe6ff !important;
  -webkit-text-fill-color: #cfe6ff !important;
  box-shadow: none !important;
  font-weight: 400 !important;
}

/* dark-studio-model-inner-clean-v181 */
html.theme-dark #studioView .hero-status-bar.studio-model-trigger .studio-model-name,
html.theme-dark #studioView button.hero-status-bar.studio-model-trigger .studio-model-name,
html.theme-dark #studioView .studio-model-trigger .studio-model-name,
html.theme-dark #studioView #studioModelName.studio-model-name {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #eef6ff !important;
  -webkit-text-fill-color: #eef6ff !important;
}

html.theme-dark #studioView .hero-status-bar.studio-model-trigger,
html.theme-dark #studioView button.hero-status-bar.studio-model-trigger,
html.theme-dark #studioView .studio-model-trigger {
  overflow: hidden !important;
}

/* dark works progress status v183 */
html.theme-dark #worksView #myWorksPanel .work-card,
html.theme-dark #worksView #publicWorksPanel .work-card {
  background: linear-gradient(180deg, rgba(15, 28, 46, 0.98), rgba(9, 18, 32, 0.98)) !important;
  border-color: rgba(96, 165, 250, 0.26) !important;
  color: #eef6ff !important;
}

html.theme-dark #worksView .work-progress {
  margin: 10px 0 6px !important;
  padding: 10px 11px !important;
  border: 1px solid rgba(96, 165, 250, 0.24) !important;
  border-radius: 10px !important;
  background: rgba(8, 20, 36, 0.82) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

html.theme-dark #worksView .work-progress-track {
  height: 6px !important;
  background: rgba(96, 165, 250, 0.18) !important;
  border: 1px solid rgba(147, 197, 253, 0.14) !important;
}

html.theme-dark #worksView .work-progress-track span {
  background: linear-gradient(90deg, #38bdf8, #2563eb) !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.45) !important;
}

html.theme-dark #worksView .work-progress-label,
html.theme-dark #worksView .work-progress-label span {
  color: #b9d7ff !important;
  font-weight: 400 !important;
}

html.theme-dark #worksView .work-progress-label span:last-child {
  color: #eaf4ff !important;
}

html.theme-dark #worksView .work-card .error {
  background: rgba(127, 29, 29, 0.28) !important;
  border-color: rgba(248, 113, 113, 0.32) !important;
  color: #fecaca !important;
}

html.theme-dark #worksView .retry-panel {
  background: rgba(120, 76, 12, 0.22) !important;
  border-color: rgba(251, 191, 36, 0.30) !important;
  color: #fde68a !important;
}

html.theme-dark #worksView .retry-panel small {
  color: #f8d98b !important;
}

html.theme-dark #worksView .retry-submit-button {
  background: rgba(37, 99, 235, 0.92) !important;
  border-color: rgba(147, 197, 253, 0.38) !important;
  color: #ffffff !important;
}

/* dark works full surface unify v186 */
.app-version {
  padding: 6px 0 18px;
  color: rgba(100, 116, 139, 0.82);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

html.theme-dark #accountView .app-version {
  color: #7ea6d8 !important;
}

html.theme-dark #worksView .works-topbar {
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.98), rgba(7, 17, 31, 0.88)) !important;
  border-color: rgba(96, 165, 250, 0.18) !important;
}

html.theme-dark #worksView .works-topbar::before {
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.98), rgba(7, 17, 31, 0.82)) !important;
}

html.theme-dark #worksView .works-public-toggle,
html.theme-dark #worksView #publicWorksLayoutToggle,
html.theme-dark #worksView .works-auto-publish,
html.theme-dark #worksView .works-upload-plus {
  background: rgba(15, 28, 46, 0.92) !important;
  background-image: linear-gradient(180deg, rgba(18, 35, 58, 0.96), rgba(9, 20, 36, 0.96)) !important;
  border: 1px solid rgba(96, 165, 250, 0.30) !important;
  color: #eaf4ff !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26) !important;
}

html.theme-dark #worksView .works-upload-plus,
html.theme-dark #worksView .works-upload-plus:not(.busy) {
  color: #60a5fa !important;
  font-weight: 500 !important;
}

html.theme-dark #worksView .works-public-toggle span,
html.theme-dark #worksView #publicWorksLayoutToggle span,
html.theme-dark #worksView .works-public-toggle strong,
html.theme-dark #worksView #publicWorksLayoutToggle strong {
  color: #eaf4ff !important;
  font-weight: 400 !important;
}

html.theme-dark #worksView .works-public-toggle:hover,
html.theme-dark #worksView .works-auto-publish:hover,
html.theme-dark #worksView .works-upload-plus:hover,
html.theme-dark #worksView .social-button:hover,
html.theme-dark #worksView .comment-form button:hover {
  background: rgba(37, 99, 235, 0.24) !important;
  border-color: rgba(96, 165, 250, 0.48) !important;
}

html.theme-dark #worksView .work-card,
html.theme-dark #worksView #publicWorksPanel .work-card,
html.theme-dark #worksView #myWorksPanel .work-card,
html.theme-dark #worksView.my-feed-mode #myWorksPanel #myWorks .work-card,
html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks .work-card,
html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks .work-card {
  background: linear-gradient(180deg, rgba(15, 28, 46, 0.98), rgba(9, 18, 32, 0.98)) !important;
  border: 1px solid rgba(96, 165, 250, 0.24) !important;
  color: #eef6ff !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28) !important;
}

html.theme-dark #worksView .work-card::before,
html.theme-dark #worksView.my-feed-mode #myWorksPanel #myWorks .work-card::before {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(37, 99, 235, 0.04)) !important;
}

html.theme-dark #worksView .work-title,
html.theme-dark #worksView .work-author,
html.theme-dark #worksView .work-author strong,
html.theme-dark #worksView .work-prompt summary span,
html.theme-dark #worksView .work-prompt p,
html.theme-dark #worksView .work-full-prompt,
html.theme-dark #worksView .work-summary-line {
  color: #eef6ff !important;
}

html.theme-dark #worksView .work-side-meta small,
html.theme-dark #worksView .work-meta-row small,
html.theme-dark #worksView .work-card small,
html.theme-dark #worksView .work-prompt summary small,
html.theme-dark #worksView .comment-list p,
html.theme-dark #worksView .empty-state,
html.theme-dark #worksView .works-load-more {
  color: #a8c7ef !important;
}

html.theme-dark #worksView .model-badge,
html.theme-dark #worksView .work-side-meta .model-badge,
html.theme-dark #worksView #myWorksPanel #myWorks .model-badge,
html.theme-dark #worksView.my-feed-mode #myWorksPanel #myWorks .model-badge {
  background: rgba(37, 99, 235, 0.18) !important;
  border: 1px solid rgba(96, 165, 250, 0.34) !important;
  color: #bfdbfe !important;
  font-weight: 400 !important;
}

html.theme-dark #worksView .work-prompt,
html.theme-dark #worksView.my-feed-mode #myWorksPanel #myWorks .work-prompt {
  background: rgba(8, 20, 36, 0.68) !important;
  border: 1px solid rgba(96, 165, 250, 0.20) !important;
  color: #eaf4ff !important;
}

html.theme-dark #worksView .work-prompt summary,
html.theme-dark #worksView.my-feed-mode #myWorksPanel #myWorks .work-prompt summary {
  background: transparent !important;
  color: #eaf4ff !important;
}

html.theme-dark #worksView .work-prompt p,
html.theme-dark #worksView.my-feed-mode #myWorksPanel #myWorks .work-prompt p {
  background: transparent !important;
  color: #cfe3ff !important;
}

html.theme-dark #worksView .social-bar,
html.theme-dark #worksView .social-share-row,
html.theme-dark #worksView .social-action-row,
html.theme-dark #worksView.my-feed-mode #myWorksPanel #myWorks .social-bar,
html.theme-dark #worksView.my-feed-mode #myWorksPanel #myWorks .social-share-row,
html.theme-dark #worksView.my-feed-mode #myWorksPanel #myWorks .social-action-row {
  background: transparent !important;
}

html.theme-dark #worksView .social-button,
html.theme-dark #worksView .social-stat,
html.theme-dark #worksView .social-action-row .social-button,
html.theme-dark #worksView .social-action-row .social-stat,
html.theme-dark #worksView .social-share-row .social-button,
html.theme-dark #worksView #myWorksPanel #myWorks .social-button,
html.theme-dark #worksView.my-feed-mode #myWorksPanel #myWorks .social-button,
html.theme-dark #worksView.my-feed-mode #myWorksPanel #myWorks .social-stat {
  background: rgba(15, 28, 46, 0.86) !important;
  background-image: none !important;
  border: 1px solid rgba(96, 165, 250, 0.26) !important;
  color: #dbeafe !important;
  box-shadow: none !important;
  font-weight: 400 !important;
}

html.theme-dark #worksView .social-button span,
html.theme-dark #worksView .social-button b,
html.theme-dark #worksView .social-button svg,
html.theme-dark #worksView .social-stat span,
html.theme-dark #worksView .social-stat b,
html.theme-dark #worksView #myWorksPanel #myWorks .social-button span,
html.theme-dark #worksView.my-feed-mode #myWorksPanel #myWorks .social-button span {
  color: #dbeafe !important;
  fill: none !important;
  stroke: currentColor !important;
  font-weight: 400 !important;
}

html.theme-dark #worksView .social-button.active,
html.theme-dark #worksView .download-social,
html.theme-dark #worksView .wechat-social,
html.theme-dark #worksView .timeline-social {
  background: rgba(37, 99, 235, 0.22) !important;
  border-color: rgba(96, 165, 250, 0.38) !important;
  color: #bfdbfe !important;
}

html.theme-dark #worksView .social-button.danger {
  background: rgba(127, 29, 29, 0.22) !important;
  border-color: rgba(248, 113, 113, 0.32) !important;
  color: #fecaca !important;
}

html.theme-dark #worksView .comment-form,
html.theme-dark #worksView.my-feed-mode #myWorksPanel #myWorks .comment-form {
  background: rgba(8, 20, 36, 0.68) !important;
  border: 1px solid rgba(96, 165, 250, 0.20) !important;
  box-shadow: none !important;
}

html.theme-dark #worksView .comment-form input,
html.theme-dark #worksView.my-feed-mode #myWorksPanel #myWorks .comment-form input {
  background: rgba(2, 8, 23, 0.72) !important;
  border: 1px solid rgba(96, 165, 250, 0.24) !important;
  color: #eef6ff !important;
}

html.theme-dark #worksView .comment-form input::placeholder {
  color: #7ea6d8 !important;
}

html.theme-dark #worksView .comment-form button,
html.theme-dark #worksView.my-feed-mode #myWorksPanel #myWorks .comment-form button {
  background: rgba(37, 99, 235, 0.92) !important;
  border: 1px solid rgba(147, 197, 253, 0.34) !important;
  color: #ffffff !important;
  font-weight: 400 !important;
}

html.theme-dark #worksView .works-load-more,
html.theme-dark #worksView .empty-state {
  background: rgba(15, 28, 46, 0.76) !important;
  border: 1px solid rgba(96, 165, 250, 0.22) !important;
  border-radius: 10px !important;
}

/* image prompt dialog roomy v187 */
.image-prompt-dialog {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top, 0px)) 18px max(18px, env(safe-area-inset-bottom, 0px));
}

.image-prompt-dialog-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(8px);
}

.image-prompt-dialog-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(560px, 100%);
  max-height: min(82vh, 720px);
  padding: 18px;
  border: 1px solid rgba(85, 167, 255, 0.20);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.image-prompt-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.image-prompt-dialog-head strong {
  display: block;
  color: #0f172a;
  font-size: 17px;
  font-weight: 700;
}

.image-prompt-dialog-head small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.image-prompt-dialog-head button {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: #f8fafc;
  color: #64748b;
  font-size: 22px;
  line-height: 30px;
}

.image-prompt-dialog textarea {
  width: 100%;
  min-height: 260px;
  max-height: 52vh;
  resize: vertical;
  padding: 14px 15px;
  border: 1px solid rgba(148, 163, 184, 0.30);
  border-radius: 14px;
  background: #f8fbff;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.7;
}

.image-prompt-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
}

.image-prompt-dialog-actions button {
  min-height: 44px;
  border-radius: 13px;
  font-weight: 500;
}

html.theme-dark .image-prompt-dialog-card {
  background: linear-gradient(180deg, rgba(15, 28, 46, 0.98), rgba(9, 18, 32, 0.98)) !important;
  border-color: rgba(96, 165, 250, 0.28) !important;
  color: #eef6ff !important;
}

html.theme-dark .image-prompt-dialog-head strong {
  color: #eef6ff !important;
}

html.theme-dark .image-prompt-dialog-head small {
  color: #9db3cc !important;
}

html.theme-dark .image-prompt-dialog-head button,
html.theme-dark .image-prompt-dialog-actions .secondary {
  background: rgba(15, 28, 46, 0.86) !important;
  border-color: rgba(96, 165, 250, 0.28) !important;
  color: #dbeafe !important;
}

html.theme-dark .image-prompt-dialog textarea {
  background: rgba(2, 8, 23, 0.72) !important;
  border-color: rgba(96, 165, 250, 0.28) !important;
  color: #eef6ff !important;
}

html.theme-dark .image-prompt-dialog-actions .primary {
  background: rgba(37, 99, 235, 0.94) !important;
  color: #fff !important;
}

#appPanel .screen-body .studio-agent-inline .auto-agent-confirm.auto-agent-image-draft {
  gap: 12px !important;
  padding: 14px !important;
  border-radius: 18px !important;
}

#appPanel .screen-body .studio-agent-inline .auto-agent-confirm.auto-agent-image-draft .auto-agent-confirm-head span::before {
  content: "" !important;
}

#appPanel .screen-body .studio-agent-inline .auto-agent-confirm.auto-agent-image-draft .auto-agent-plan-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

#appPanel .screen-body .studio-agent-inline .auto-agent-confirm.auto-agent-image-draft .auto-agent-prompt-editor textarea {
  min-height: 220px !important;
  height: 260px !important;
  max-height: 42vh !important;
  resize: vertical !important;
  padding: 13px 14px !important;
  font-size: 14px !important;
  line-height: 1.68 !important;
}

#appPanel .screen-body .studio-agent-inline.auto-agent-has-image-draft .auto-agent-log {
  padding-bottom: calc(260px + env(safe-area-inset-bottom, 0px)) !important;
  scroll-padding-bottom: calc(260px + env(safe-area-inset-bottom, 0px)) !important;
}

#appPanel .screen-body .studio-agent-inline.auto-agent-has-image-draft .auto-agent-log > :last-child {
  margin-bottom: calc(230px + env(safe-area-inset-bottom, 0px)) !important;
}

@media (max-width: 480px) {
  .image-prompt-dialog {
    align-items: end;
    padding: 12px;
  }
  .image-prompt-dialog-card {
    width: 100%;
    max-height: 88vh;
    padding: 15px;
    border-radius: 18px;
  }
  .image-prompt-dialog textarea {
    min-height: 240px;
    max-height: 56vh;
  }
  #appPanel .screen-body .studio-agent-inline .auto-agent-confirm.auto-agent-image-draft .auto-agent-prompt-editor textarea {
    min-height: 190px !important;
    height: 220px !important;
  }
}

/* prompt library visual upgrade v189 */
.prompt-library-sheet {
  z-index: 5200 !important;
  align-items: end !important;
  padding: 12px !important;
}

.prompt-library-mask {
  background: rgba(15, 23, 42, 0.48) !important;
  backdrop-filter: blur(10px) !important;
}

.prompt-library-card {
  width: min(720px, 100%) !important;
  height: min(86dvh, 820px) !important;
  max-height: min(86dvh, 820px) !important;
  display: grid !important;
  grid-template-rows: auto auto auto minmax(0, 1fr) !important;
  overflow: hidden !important;
  border: 1px solid rgba(37, 99, 235, 0.16) !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%) !important;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.32) !important;
}

.prompt-library-head {
  position: sticky !important;
  top: 0 !important;
  z-index: 4 !important;
  padding: 18px 18px 12px !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(37, 99, 235, 0.16), transparent 38%),
    linear-gradient(135deg, #ffffff, #eef6ff) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
}

.prompt-library-head strong {
  color: #0f172a !important;
  font-size: 20px !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
}

.prompt-library-head small {
  display: inline-flex !important;
  width: fit-content !important;
  margin-top: 7px !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  background: rgba(37, 99, 235, 0.08) !important;
  color: #2563eb !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

.prompt-library-head button {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  color: #475569 !important;
  font-size: 24px !important;
  font-weight: 300 !important;
}

.prompt-library-search {
  position: sticky !important;
  top: 0 !important;
  z-index: 3 !important;
  padding: 12px 18px 10px !important;
  background: rgba(248, 251, 255, 0.96) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
}

.prompt-library-search input {
  height: 46px !important;
  padding: 0 15px !important;
  border: 1px solid rgba(37, 99, 235, 0.18) !important;
  border-radius: 15px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 14px !important;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.08) !important;
}

.prompt-library-search input:focus {
  border-color: rgba(37, 99, 235, 0.52) !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
}

.prompt-library-tabs {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  display: flex !important;
  gap: 8px !important;
  padding: 10px 18px 12px !important;
  overflow-x: auto !important;
  background: rgba(248, 251, 255, 0.96) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
}

.prompt-library-tabs button {
  flex: 0 0 auto !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(37, 99, 235, 0.16) !important;
  background: rgba(255, 255, 255, 0.88) !important;
  color: #31516f !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05) !important;
}

.prompt-library-tabs button.active {
  background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24) !important;
}

.prompt-library-list {
  min-height: 0 !important;
  padding: 14px 18px 18px !important;
  overflow-y: auto !important;
  background: linear-gradient(180deg, rgba(238, 245, 255, 0.42), rgba(248, 251, 255, 0.96)) !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

.prompt-library-empty {
  margin-bottom: 12px !important;
  padding: 11px 12px !important;
  border: 1px solid rgba(37, 99, 235, 0.14) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  color: #56708f !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.prompt-library-item {
  position: relative !important;
  margin-bottom: 12px !important;
  padding: 14px !important;
  border: 1px solid rgba(37, 99, 235, 0.13) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08) !important;
}

.prompt-library-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 18px 0 0 18px;
  background: linear-gradient(180deg, #2563eb, #0ea5e9);
  opacity: 0.72;
}

.prompt-library-item-head {
  gap: 10px !important;
  align-items: flex-start !important;
}

.prompt-library-item-head strong {
  color: #0f172a !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

.prompt-library-item-head small {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin-top: 5px !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  background: rgba(37, 99, 235, 0.08) !important;
  color: #2563eb !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  white-space: normal !important;
}

.prompt-library-item-head button {
  min-width: 58px !important;
  min-height: 34px !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: #2563eb !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22) !important;
}

.prompt-library-item p {
  margin-top: 10px !important;
  padding: 11px 12px !important;
  border-radius: 14px !important;
  background: #f8fbff !important;
  color: #334155 !important;
  font-size: 12.5px !important;
  line-height: 1.7 !important;
}

html.theme-dark .prompt-library-card,
html.theme-dark #studioView .prompt-library-card {
  background: linear-gradient(180deg, rgba(15, 28, 46, 0.98), rgba(7, 17, 31, 0.98)) !important;
  border-color: rgba(96, 165, 250, 0.28) !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45) !important;
}

html.theme-dark .prompt-library-head,
html.theme-dark .prompt-library-search,
html.theme-dark .prompt-library-tabs,
html.theme-dark #studioView .prompt-library-head,
html.theme-dark #studioView .prompt-library-search,
html.theme-dark #studioView .prompt-library-tabs {
  background: rgba(8, 20, 36, 0.96) !important;
  border-color: rgba(96, 165, 250, 0.18) !important;
}

html.theme-dark .prompt-library-head strong,
html.theme-dark #studioView .prompt-library-head strong {
  color: #eef6ff !important;
}

html.theme-dark .prompt-library-head small,
html.theme-dark #studioView .prompt-library-head small {
  background: rgba(37, 99, 235, 0.20) !important;
  color: #bfdbfe !important;
}

html.theme-dark .prompt-library-head button,
html.theme-dark #studioView .prompt-library-head button {
  background: rgba(15, 28, 46, 0.86) !important;
  border-color: rgba(96, 165, 250, 0.28) !important;
  color: #dbeafe !important;
}

html.theme-dark .prompt-library-search input,
html.theme-dark #studioView #promptLibrarySearch {
  background: rgba(2, 8, 23, 0.72) !important;
  border-color: rgba(96, 165, 250, 0.28) !important;
  color: #eef6ff !important;
  box-shadow: none !important;
}

html.theme-dark .prompt-library-tabs button,
html.theme-dark #studioView .prompt-library-tabs button {
  background: rgba(15, 28, 46, 0.86) !important;
  border-color: rgba(96, 165, 250, 0.24) !important;
  color: #dbeafe !important;
  box-shadow: none !important;
}

html.theme-dark .prompt-library-tabs button.active,
html.theme-dark #studioView .prompt-library-tabs button.active {
  background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

html.theme-dark .prompt-library-list,
html.theme-dark #studioView .prompt-library-list {
  background: linear-gradient(180deg, rgba(8, 20, 36, 0.72), rgba(7, 17, 31, 0.98)) !important;
}

html.theme-dark .prompt-library-empty,
html.theme-dark .prompt-library-item,
html.theme-dark #studioView .prompt-library-empty,
html.theme-dark #studioView .prompt-library-item {
  background: rgba(15, 28, 46, 0.92) !important;
  border-color: rgba(96, 165, 250, 0.24) !important;
  color: #dbeafe !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28) !important;
}

html.theme-dark .prompt-library-item-head strong,
html.theme-dark #studioView .prompt-library-item-head strong {
  color: #eef6ff !important;
}

html.theme-dark .prompt-library-item-head small,
html.theme-dark #studioView .prompt-library-item-head small {
  background: rgba(37, 99, 235, 0.22) !important;
  color: #bfdbfe !important;
}

html.theme-dark .prompt-library-item p,
html.theme-dark #studioView .prompt-library-item p {
  background: rgba(2, 8, 23, 0.46) !important;
  color: #cfe3ff !important;
}

@media (min-width: 720px) {
  .prompt-library-sheet {
    place-items: center !important;
  }
  .prompt-library-card {
    border-radius: 26px !important;
  }
  .prompt-library-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-content: start !important;
    gap: 12px !important;
  }
  .prompt-library-empty {
    grid-column: 1 / -1 !important;
  }
  .prompt-library-item {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 480px) {
  .prompt-library-sheet {
    padding: 8px !important;
  }
  .prompt-library-card {
    height: min(90dvh, 760px) !important;
    max-height: min(90dvh, 760px) !important;
    border-radius: 22px 22px 18px 18px !important;
  }
  .prompt-library-head,
  .prompt-library-search,
  .prompt-library-tabs,
  .prompt-library-list {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* account dark fold content unify v190 */
html.theme-dark #accountView .account-fold {
  border-color: rgba(96, 165, 250, 0.2) !important;
  background: linear-gradient(180deg, rgba(13, 26, 45, 0.92), rgba(7, 16, 30, 0.92)) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28) !important;
}

html.theme-dark #accountView .account-fold summary {
  background: linear-gradient(180deg, rgba(15, 30, 52, 0.98), rgba(9, 20, 36, 0.98)) !important;
  border-color: rgba(96, 165, 250, 0.2) !important;
  color: #eef6ff !important;
}

html.theme-dark #accountView .account-fold[open] summary {
  border-bottom: 1px solid rgba(96, 165, 250, 0.16) !important;
}

html.theme-dark #accountView .fold-content,
html.theme-dark #accountView .membership-card,
html.theme-dark #accountView .reward-panel,
html.theme-dark #accountView .earnings-report,
html.theme-dark #accountView .model-options,
html.theme-dark #accountView .theme-options,
html.theme-dark #accountView .ledger-panel {
  background: linear-gradient(180deg, rgba(12, 25, 44, 0.96), rgba(7, 16, 30, 0.96)) !important;
  border-color: rgba(96, 165, 250, 0.22) !important;
  color: #eef6ff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 36px rgba(0, 0, 0, 0.24) !important;
}

html.theme-dark #accountView .membership-card::after {
  background: radial-gradient(circle, rgba(77, 163, 255, 0.2), transparent 68%) !important;
  opacity: 0.9 !important;
}

html.theme-dark #accountView .membership-card-head,
html.theme-dark #accountView .membership-daily,
html.theme-dark #accountView .membership-plan,
html.theme-dark #accountView .reward-task-summary,
html.theme-dark #accountView .reward-task-card,
html.theme-dark #accountView .reward-action,
html.theme-dark #accountView .earnings-report-grid article,
html.theme-dark #accountView .model-option,
html.theme-dark #accountView .theme-option,
html.theme-dark #accountView .ledger-item,
html.theme-dark #accountView .gold-balance-line,
html.theme-dark #accountView .task-summary-grid span,
html.theme-dark #accountView .pricing-list > *,
html.theme-dark #accountView .empty-state,
html.theme-dark #accountView .invite-network-card,
html.theme-dark #accountView .invite-bind-card,
html.theme-dark #accountView .recharge-plan,
html.theme-dark #accountView .payment-box {
  background: linear-gradient(180deg, rgba(17, 33, 56, 0.9), rgba(10, 21, 38, 0.9)) !important;
  border-color: rgba(125, 183, 255, 0.22) !important;
  color: #eef6ff !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2) !important;
}

html.theme-dark #accountView .membership-plan.current,
html.theme-dark #accountView .theme-option.active,
html.theme-dark #accountView .model-option:has(input:checked),
html.theme-dark #accountView .ledger-filters button.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(14, 165, 233, 0.9)) !important;
  border-color: rgba(147, 197, 253, 0.55) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28) !important;
}

html.theme-dark #accountView .membership-kicker,
html.theme-dark #accountView .membership-plan span:first-child,
html.theme-dark #accountView .reward-task-tags span,
html.theme-dark #accountView .membership-plan-tags span,
html.theme-dark #accountView .membership-badge,
html.theme-dark #accountView .reward-action-icon {
  background: rgba(77, 163, 255, 0.14) !important;
  border-color: rgba(77, 163, 255, 0.24) !important;
  color: #bfdbfe !important;
}

html.theme-dark #accountView .membership-badge.active {
  background: linear-gradient(135deg, #2563eb, #38bdf8) !important;
  color: #ffffff !important;
}

html.theme-dark #accountView .membership-card h3,
html.theme-dark #accountView .membership-daily strong,
html.theme-dark #accountView .membership-plan strong,
html.theme-dark #accountView .reward-task-summary strong,
html.theme-dark #accountView .reward-task-top strong,
html.theme-dark #accountView .earnings-report-grid strong,
html.theme-dark #accountView .ledger-item strong,
html.theme-dark #accountView .gold-balance-line strong,
html.theme-dark #accountView .task-summary-grid b,
html.theme-dark #accountView .theme-option span,
html.theme-dark #accountView .model-option strong {
  color: #f3f8ff !important;
}

html.theme-dark #accountView .membership-card p,
html.theme-dark #accountView .membership-daily span,
html.theme-dark #accountView .membership-daily small,
html.theme-dark #accountView .membership-plan small,
html.theme-dark #accountView .membership-plan-tags span,
html.theme-dark #accountView .reward-task-summary p,
html.theme-dark #accountView .reward-task-top small,
html.theme-dark #accountView .reward-task-bottom small,
html.theme-dark #accountView .earnings-report-grid span,
html.theme-dark #accountView .earnings-report p,
html.theme-dark #accountView .ledger-item small,
html.theme-dark #accountView .gold-balance-line span,
html.theme-dark #accountView .theme-option small,
html.theme-dark #accountView .model-option small {
  color: #9db3cc !important;
}

html.theme-dark #accountView .ledger-filters button,
html.theme-dark #accountView .membership-daily button,
html.theme-dark #accountView .membership-plan button,
html.theme-dark #accountView .reward-task-bottom button,
html.theme-dark #accountView .reward-action,
html.theme-dark #accountView .convert-gold-button {
  border: 1px solid rgba(96, 165, 250, 0.26) !important;
  background: rgba(15, 28, 46, 0.95) !important;
  color: #cfe6ff !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18) !important;
}

html.theme-dark #accountView .membership-daily button:not(:disabled),
html.theme-dark #accountView .membership-plan button:not(:disabled),
html.theme-dark #accountView .reward-task-bottom button:not(:disabled),
html.theme-dark #accountView .convert-gold-button:not(:disabled) {
  background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
  color: #ffffff !important;
  border-color: rgba(147, 197, 253, 0.52) !important;
}

html.theme-dark #accountView .membership-daily button:disabled,
html.theme-dark #accountView .membership-plan button:disabled,
html.theme-dark #accountView .reward-task-bottom button:disabled,
html.theme-dark #accountView .reward-task-card.done,
html.theme-dark #accountView .reward-task-card.locked {
  background: rgba(71, 85, 105, 0.34) !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
  color: #91a4bd !important;
}

html.theme-dark #accountView .task-meter {
  background: rgba(148, 163, 184, 0.18) !important;
}

html.theme-dark #accountView .ledger-amount.income strong,
html.theme-dark #accountView .reward-task-tags em {
  color: #58e6ad !important;
}

html.theme-dark #accountView .ledger-amount.expense strong {
  color: #ff8585 !important;
}

/* apk auth shell hard guard v295 */
html.mahua-apk-webview.mahua-apk-auth-entered #authPanel,
body.mahua-apk-webview.mahua-apk-auth-entered #authPanel {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
html.mahua-apk-webview.mahua-apk-auth-entered #appPanel,
body.mahua-apk-webview.mahua-apk-auth-entered #appPanel {
  display: grid !important;
  visibility: visible !important;
  min-height: 100vh !important;
}

/* mini program phone binding dialog v306 */
.mini-phone-bind-dialog {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.mini-phone-bind-dialog.hidden { display: none !important; }
.mini-phone-bind-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(8px);
}
.mini-phone-bind-card {
  position: relative;
  width: min(390px, 100%);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.24);
  border: 1px solid rgba(148, 163, 184, 0.28);
  padding: 26px 22px 20px;
  color: #172033;
  text-align: left;
}
.mini-phone-bind-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.16);
  color: #64748b;
  font-size: 22px;
  line-height: 1;
}
.mini-phone-bind-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #4f8df7, #60c2ff);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(79, 141, 247, 0.28);
  margin-bottom: 14px;
}
.mini-phone-bind-card > small {
  display: block;
  color: #4f8df7;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.mini-phone-bind-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}
.mini-phone-bind-card p {
  margin: 10px 0 18px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}
.mini-phone-bind-form label {
  display: block;
}
.mini-phone-bind-form label span {
  display: block;
  margin-bottom: 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}
.mini-phone-bind-form input {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.48);
  background: #fff;
  padding: 0 14px;
  font-size: 17px;
  color: #172033;
  outline: none;
  box-sizing: border-box;
}
.mini-phone-bind-form input:focus {
  border-color: #4f8df7;
  box-shadow: 0 0 0 4px rgba(79, 141, 247, 0.14);
}
.mini-phone-bind-actions {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 10px;
  margin-top: 18px;
}
.mini-phone-bind-actions button {
  height: 46px;
  border-radius: 14px;
  border: 0;
  font-size: 15px;
  font-weight: 800;
}
.mini-phone-bind-actions .secondary {
  background: #eef2f7;
  color: #64748b;
}
.mini-phone-bind-actions .primary {
  background: linear-gradient(135deg, #4f8df7, #2f7df5);
  color: #fff;
  box-shadow: 0 10px 22px rgba(79, 141, 247, 0.28);
}
html.theme-dark .mini-phone-bind-card {
  background: linear-gradient(180deg, #202537 0%, #171c2b 100%);
  border-color: rgba(226, 181, 91, 0.24);
  color: #f8fafc;
}
html.theme-dark .mini-phone-bind-card p,
html.theme-dark .mini-phone-bind-form label span { color: #b9c2d2; }
html.theme-dark .mini-phone-bind-form input {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.28);
  color: #f8fafc;
}
html.theme-dark .mini-phone-bind-actions .secondary {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

/* red packet center prototype v348 */
.red-packet-center-open {
  overflow: hidden;
}

.red-packet-center {
  position: fixed;
  inset: 0;
  z-index: 4070;
  display: grid;
  align-items: end;
  background: rgba(18, 5, 8, 0.5);
}

.red-packet-center.hidden {
  display: none;
}

.red-packet-center-mask {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
}

.red-packet-center-card {
  position: relative;
  width: min(100%, 520px);
  max-height: min(88vh, 760px);
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto auto minmax(180px, 1fr) auto;
  gap: 12px;
  padding: 18px 16px max(18px, env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0;
  background: radial-gradient(circle at 12% 0%, rgba(255, 228, 126, 0.34), transparent 28%), linear-gradient(180deg, #c71928 0%, #8d101b 42%, #35070b 100%);
  color: #fff8df;
  box-shadow: 0 -22px 58px rgba(88, 4, 12, 0.36);
  overflow: hidden;
}

.red-packet-center-head,
.red-packet-center-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.red-packet-center-head small {
  display: block;
  color: rgba(255, 239, 192, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.red-packet-center-head strong {
  display: block;
  margin-top: 3px;
  color: #fff9e8;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

.red-packet-center-head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff8df;
  font-size: 22px;
  line-height: 1;
}

.red-packet-center-summary {
  padding: 10px 12px;
  border: 1px solid rgba(255, 231, 145, 0.22);
  border-radius: 16px;
  background: rgba(67, 7, 12, 0.32);
  font-size: 13px;
  font-weight: 850;
}

.red-packet-center-summary strong {
  color: #ffe58c;
}

.red-packet-center-list {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 2px 0 4px;
}

.red-packet-card {
  min-height: 132px;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(255, 232, 150, 0.24);
  border-radius: 18px;
  background: radial-gradient(circle at 50% 18%, rgba(255, 224, 118, 0.86) 0 13px, transparent 14px), linear-gradient(180deg, #ff5548 0%, #cf192a 100%);
  color: #fff8df;
  text-align: left;
  box-shadow: inset 0 -8px 0 rgba(111, 5, 14, 0.16);
}

.red-packet-card.active {
  outline: 2px solid #ffe58c;
  outline-offset: 1px;
}

.red-packet-card.disabled {
  opacity: 0.58;
}

.red-packet-card-seal {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffe58c;
  color: #9b1019;
  font-size: 14px;
  font-weight: 950;
}

.red-packet-card small,
.red-packet-card em {
  color: rgba(255, 247, 216, 0.84);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.red-packet-card strong {
  color: #fffaf0;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: 0;
}

.red-packet-card em {
  margin-top: auto;
  color: #ffe58c;
}

.red-packet-center-detail {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #fff8eb;
  color: #271416;
}

.red-packet-center-detail.hidden {
  display: none;
}

.red-packet-detail-media {
  width: 88px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 16px;
  overflow: hidden;
  background: #f0dfbc;
}

.red-packet-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.red-packet-detail-media span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #151515;
  color: #ffe58c;
  font-weight: 950;
}

.red-packet-detail-copy {
  min-width: 0;
}

.red-packet-detail-copy small {
  display: block;
  color: #9b1019;
  font-size: 11px;
  font-weight: 900;
}

.red-packet-detail-copy strong {
  display: block;
  margin-top: 3px;
  color: #221114;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: 0;
}

.red-packet-detail-copy p {
  margin: 5px 0 0;
  color: #756164;
  font-size: 12px;
  line-height: 1.35;
}

.red-packet-open-button {
  grid-column: 1 / -1;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #171717, #3a1b1d);
  color: #ffe58c;
  font-size: 15px;
  font-weight: 950;
}

.red-packet-open-button:disabled {
  opacity: 0.62;
}

/* red packet center reward fx v349 */
.red-packet-center-reward-fx {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  background: radial-gradient(circle at 50% 36%, rgba(255, 230, 128, 0.36), rgba(138, 13, 25, 0.72) 44%, rgba(40, 4, 8, 0.88) 100%);
  color: #fff8df;
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.red-packet-center-reward-fx.show {
  opacity: 1;
  transform: scale(1);
}

.red-packet-fx-shine {
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 232, 132, 0.42), transparent 22%, rgba(255, 255, 255, 0.22), transparent 45%);
  animation: redPacketFxSpin 1.7s linear infinite;
}

.red-packet-fx-envelope {
  position: relative;
  width: 92px;
  height: 112px;
  border-radius: 14px 14px 18px 18px;
  background: linear-gradient(180deg, #ff5c4c, #c91427);
  box-shadow: 0 18px 36px rgba(78, 5, 10, 0.28), inset 0 -10px 0 rgba(118, 5, 15, 0.18);
  animation: redPacketFxPop 0.72s cubic-bezier(.2, 1.35, .3, 1) both;
}

.red-packet-fx-envelope::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 46px;
  border-radius: 14px 14px 50% 50%;
  background: #ffcf66;
  transform-origin: top center;
  animation: redPacketFxOpen 0.72s 0.18s ease both;
}

.red-packet-fx-envelope i {
  position: absolute;
  left: 50%;
  top: 42px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #ffe58c;
  box-shadow: inset 0 -5px 0 rgba(145, 75, 0, 0.16);
}

.red-packet-fx-envelope b {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 48px;
  height: 8px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(255, 238, 170, 0.7);
}

.red-packet-center-reward-fx strong {
  position: relative;
  z-index: 1;
  color: #ffe58c;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 6px 18px rgba(80, 5, 10, 0.42);
  animation: redPacketFxText 0.54s 0.24s ease both;
}

.red-packet-center-reward-fx p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 248, 223, 0.92);
  font-size: 14px;
  font-weight: 850;
  animation: redPacketFxText 0.54s 0.32s ease both;
}

.red-packet-fx-coins span {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff5bd, #ffd452 62%, #d89100 100%);
  box-shadow: inset 0 -2px 0 rgba(122, 68, 0, 0.22);
  animation: redPacketFxCoin 1.05s ease-out both;
}

.red-packet-fx-coins span:nth-child(1) { --dx: -108px; --dy: -118px; animation-delay: 0.08s; }
.red-packet-fx-coins span:nth-child(2) { --dx: -64px; --dy: -150px; animation-delay: 0.16s; }
.red-packet-fx-coins span:nth-child(3) { --dx: 72px; --dy: -142px; animation-delay: 0.12s; }
.red-packet-fx-coins span:nth-child(4) { --dx: 112px; --dy: -82px; animation-delay: 0.2s; }
.red-packet-fx-coins span:nth-child(5) { --dx: -126px; --dy: -38px; animation-delay: 0.24s; }
.red-packet-fx-coins span:nth-child(6) { --dx: 118px; --dy: -24px; animation-delay: 0.28s; }

@keyframes redPacketFxSpin {
  to { transform: rotate(360deg); }
}

@keyframes redPacketFxPop {
  0% { opacity: 0; transform: translateY(26px) scale(0.7); }
  70% { opacity: 1; transform: translateY(-4px) scale(1.08); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes redPacketFxOpen {
  0% { transform: rotateX(0deg); }
  100% { transform: rotateX(64deg) translateY(-16px); }
}

@keyframes redPacketFxCoin {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1); }
}

@keyframes redPacketFxText {
  0% { opacity: 0; transform: translateY(12px) scale(0.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* start works view no studio flash v351 */
html.mahua-initial-works-view #studioView:not(.active) {
  display: none !important;
}
html.mahua-initial-works-view #worksView.active {
  display: block;
}

/* red packet one-by-one opening v367 */
.red-packet-center-card {
  grid-template-rows: auto auto minmax(180px, 1fr) !important;
}

.red-packet-center-list {
  align-content: start;
}

.red-packet-card {
  min-height: 116px;
  padding: 0;
  overflow: hidden;
}

.red-packet-card.active,
.red-packet-card.opening,
.red-packet-card.opened {
  grid-column: 1 / -1;
}

.red-packet-card.opened {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 229, 140, 0.72) 0 13px, transparent 14px),
    linear-gradient(180deg, #a32a2f 0%, #621018 100%);
  opacity: 0.86;
}

.red-packet-card-main {
  width: 100%;
  min-height: 112px;
  border: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 13px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.red-packet-card-main:disabled {
  opacity: 1;
}

.red-packet-card-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.red-packet-card-copy small,
.red-packet-card-copy em {
  color: rgba(255, 247, 216, 0.84);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.red-packet-card-copy strong {
  color: #fffaf0;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: 0;
}

.red-packet-card-copy em {
  color: #ffe58c;
}

.red-packet-card.opened .red-packet-card-seal {
  background: #151515;
  color: #ffe58c;
}

.red-packet-card.opening .red-packet-card-seal {
  animation: redPacketFxSpin 1.1s linear infinite;
}

.red-packet-card-ad {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  margin: 0 10px 10px;
  padding: 10px;
  border-radius: 16px;
  background: #fff8eb;
  color: #271416;
  box-shadow: inset 0 0 0 1px rgba(96, 31, 18, 0.06);
}

.red-packet-card-ad .red-packet-detail-media {
  width: 82px;
  border-radius: 14px;
}

.red-packet-card-ad .red-packet-open-button {
  grid-column: 1 / -1;
}

/* share task picker v370 */
.share-task-picker {
  position: fixed;
  inset: 0;
  z-index: 4080;
  display: grid;
  place-items: end center;
  padding: 14px;
}

.share-task-picker.hidden {
  display: none;
}

body.share-task-open .video-fullscreen-overlay {
  pointer-events: none;
}

.share-task-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.share-task-card {
  position: relative;
  width: min(100%, 430px);
  max-height: min(78vh, 640px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px 24px 18px 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.24);
  color: #101828;
}

.share-task-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 16px 10px;
}

.share-task-head div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.share-task-head small {
  color: #667085;
  font-size: 12px;
}

.share-task-head strong {
  color: #101828;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.share-task-head button {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f2f4f7;
  color: #667085;
  font-size: 22px;
  line-height: 1;
}

#shareTaskHint {
  margin: 0;
  padding: 0 16px 12px;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.share-task-list {
  display: grid;
  gap: 10px;
  padding: 0 12px 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.share-task-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid #eef2f6;
  border-radius: 16px;
  background: #fff;
}

.share-task-thumb {
  position: relative;
  width: 72px;
  height: 92px;
  min-height: 92px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #eef2f7;
}

.share-task-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.share-task-thumb span {
  position: absolute;
  left: 6px;
  top: 6px;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 20px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.78);
  color: #fff;
  font-size: 11px;
}

.share-task-copy {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.share-task-copy strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #101828;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}

.share-task-copy small {
  color: #98a2b3;
  font-size: 12px;
}

.share-task-action {
  width: 86px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: #d7ff36;
  color: #101828;
  font-size: 12px;
  font-weight: 600;
  white-space: normal;
  line-height: 1.2;
}

.share-task-action:disabled {
  opacity: 0.72;
}

.share-task-empty {
  display: grid;
  place-items: center;
  min-height: 150px;
  border-radius: 16px;
  background: #f6f8fb;
  color: #667085;
  font-size: 14px;
  text-align: center;
  padding: 22px;
}

html.theme-dark .share-task-card {
  background: rgba(21, 24, 32, 0.98);
  color: #f7f8fb;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

html.theme-dark .share-task-head strong,
html.theme-dark .share-task-copy strong {
  color: #f7f8fb;
}

html.theme-dark .share-task-head small,
html.theme-dark #shareTaskHint,
html.theme-dark .share-task-copy small {
  color: rgba(247, 248, 251, 0.68);
}

html.theme-dark .share-task-head button {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 248, 251, 0.82);
}

html.theme-dark .share-task-item {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

html.theme-dark .share-task-empty {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(247, 248, 251, 0.72);
}

@media (max-width: 380px) {
  .share-task-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .share-task-thumb {
    width: 64px;
    height: 84px;
    min-height: 84px;
  }

  .share-task-action {
    grid-column: 2;
    width: 100%;
  }
}

/* brand creation task picker v371 */
.brand-task-picker {
  position: fixed;
  inset: 0;
  z-index: 4090;
  display: grid;
  place-items: end center;
  padding: 14px;
}

.brand-task-picker.hidden {
  display: none;
}

.brand-task-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.brand-task-card {
  position: relative;
  width: min(100%, 440px);
  max-height: min(82vh, 680px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px 24px 18px 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 64px rgba(15, 23, 42, 0.25);
  color: #101828;
}

.brand-task-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 16px 10px;
}

.brand-task-head div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.brand-task-head small {
  color: #667085;
  font-size: 12px;
}

.brand-task-head strong {
  color: #101828;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.brand-task-head button {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f2f4f7;
  color: #667085;
  font-size: 22px;
  line-height: 1;
}

#brandTaskHint {
  margin: 0;
  padding: 0 16px 12px;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.brand-task-list {
  display: grid;
  gap: 12px;
  padding: 0 12px 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.brand-task-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #eef2f6;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.brand-task-main {
  display: grid;
  gap: 8px;
}

.brand-task-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand-task-brand span {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #101828;
  color: #fff;
  font-size: 12px;
}

.brand-task-brand em {
  font-style: normal;
  color: #5c6f00;
  font-size: 12px;
  font-weight: 700;
}

.brand-task-main > strong {
  color: #101828;
  font-size: 16px;
  line-height: 1.3;
}

.brand-task-main p {
  margin: 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.5;
}

.brand-task-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.brand-task-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #027a48;
  font-size: 11px;
}

.brand-task-main ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.brand-task-item > button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: #d7ff36;
  color: #101828;
  font-weight: 700;
}

.brand-task-item > button:disabled {
  opacity: 0.72;
}

html.theme-dark .brand-task-card {
  background: rgba(21, 24, 32, 0.98);
  color: #f7f8fb;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

html.theme-dark .brand-task-head strong,
html.theme-dark .brand-task-main > strong {
  color: #f7f8fb;
}

html.theme-dark .brand-task-head small,
html.theme-dark #brandTaskHint,
html.theme-dark .brand-task-main p,
html.theme-dark .brand-task-main ul {
  color: rgba(247, 248, 251, 0.7);
}

html.theme-dark .brand-task-head button {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 248, 251, 0.82);
}

html.theme-dark .brand-task-item {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.04) 100%);
}

html.theme-dark .brand-task-brand span {
  background: #000;
}

html.theme-dark .brand-task-brand em {
  color: #d7ff36;
}

/* apk dark tab smooth v372 */
html.mahua-apk-webview.theme-dark .tabbar,
body.mahua-apk-webview.theme-dark .tabbar {
  background: #0a1422 !important;
  border-top-color: rgba(226, 181, 91, 0.16) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  contain: layout paint style !important;
  transform: translate3d(-50%, 0, 0) !important;
  will-change: auto !important;
}

html.mahua-apk-webview.theme-dark .tab-item,
body.mahua-apk-webview.theme-dark .tab-item {
  transition: none !important;
  transform: translateZ(0) !important;
  box-shadow: none !important;
  filter: none !important;
  background-image: none !important;
}

html.mahua-apk-webview.theme-dark .tab-item.active,
body.mahua-apk-webview.theme-dark .tab-item.active,
html.mahua-apk-webview.theme-dark .phone-app .tabbar button.tab-item.active,
body.mahua-apk-webview.theme-dark .phone-app .tabbar button.tab-item.active {
  background: #5a401d !important;
  background-color: #5a401d !important;
  background-image: none !important;
  border-color: rgba(226, 181, 91, 0.28) !important;
  color: #f1d69d !important;
  box-shadow: none !important;
  outline: 0 !important;
}

html.mahua-apk-webview.theme-dark .tab-icon,
body.mahua-apk-webview.theme-dark .tab-icon,
html.mahua-apk-webview.theme-dark .tab-logo-icon,
body.mahua-apk-webview.theme-dark .tab-logo-icon,
html.mahua-apk-webview.theme-dark .tab-graphic-icon,
body.mahua-apk-webview.theme-dark .tab-graphic-icon {
  transition: none !important;
  transform: none !important;
  filter: none !important;
  box-shadow: none !important;
  will-change: auto !important;
}

html.mahua-apk-webview.theme-dark .tab-item.active .tab-icon,
body.mahua-apk-webview.theme-dark .tab-item.active .tab-icon,
html.mahua-apk-webview.theme-dark .tab-item:active .tab-icon,
body.mahua-apk-webview.theme-dark .tab-item:active .tab-icon {
  transform: none !important;
}

html.mahua-apk-webview.theme-dark #toast,
body.mahua-apk-webview.theme-dark #toast {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}




/* sms code auth v430 */
.sms-code-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}
.sms-code-field.hidden {
  display: none !important;
}
.sms-code-button {
  min-width: 88px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.sms-code-button:disabled {
  opacity: 0.58;
}
html.theme-dark .sms-code-button {
  background: #b7ef18;
  color: #111827;
}

/* share task confirm reward v448 */
.share-task-item.pending {
  border-color: rgba(215, 255, 54, 0.9) !important;
  background: linear-gradient(145deg, #fbffe8, #ffffff) !important;
  box-shadow: 0 10px 24px rgba(166, 196, 29, 0.12) !important;
}

.share-task-action.confirm {
  background: #111827 !important;
  color: #fff !important;
}

html.theme-dark .share-task-item.pending {
  border-color: rgba(215, 255, 54, 0.70) !important;
  background: rgba(215, 255, 54, 0.08) !important;
  box-shadow: none !important;
}

html.theme-dark .share-task-action.confirm {
  background: #d7ff36 !important;
  color: #101828 !important;
}

/* mini program phone bind sms code v452 */
.mini-phone-bind-form .mini-phone-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.mini-phone-bind-form .mini-phone-code-row input {
  min-width: 0;
}
.mini-phone-bind-form .mini-phone-code-row .sms-code-button {
  height: 42px;
  min-width: 92px;
  padding: 0 10px;
  border-radius: 10px;
  white-space: nowrap;
}

/* forgot password inline sms v453 */
.forgot-password-panel {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(117, 138, 164, 0.18);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  display: grid;
  gap: 10px;
}
.forgot-password-panel.hidden {
  display: none !important;
}
.forgot-password-panel p {
  margin: 0;
  color: #596579;
  font-size: 13px;
  line-height: 1.45;
}
.forgot-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.forgot-code-row input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid rgba(140, 153, 174, 0.32);
  border-radius: 12px;
  padding: 0 12px;
  font-size: 15px;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.86);
  box-sizing: border-box;
}
.forgot-code-row .sms-code-button {
  height: 42px;
  min-width: 94px;
  padding: 0 10px;
  border-radius: 12px;
  white-space: nowrap;
}
.forgot-reset-button {
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #4aa3ff, #3578ff);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.forgot-reset-button:disabled,
.forgot-code-row .sms-code-button:disabled {
  opacity: 0.62;
}
body.theme-dark .forgot-password-panel {
  border-color: rgba(195, 255, 34, 0.22);
  background: rgba(15, 19, 28, 0.78);
}
body.theme-dark .forgot-password-panel p {
  color: rgba(238, 242, 248, 0.82);
}
body.theme-dark .forgot-code-row input {
  border-color: rgba(195, 255, 34, 0.24);
  color: #f7f9ff;
  background: rgba(255, 255, 255, 0.08);
}

/* mini program change phone verify flow v454 */
.mini-phone-bind-old {
  display: grid;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(140, 153, 174, 0.18);
}
.mini-phone-bind-old.hidden {
  display: none !important;
}
.mini-phone-bind-form input[readonly] {
  color: #667085;
  background: rgba(244, 247, 251, 0.88);
}
html.theme-dark .mini-phone-bind-old {
  border-bottom-color: rgba(195, 255, 34, 0.16);
}
html.theme-dark .mini-phone-bind-form input[readonly] {
  color: rgba(238, 242, 248, 0.72);
  background: rgba(255, 255, 255, 0.06);
}

/* account change password dialog v458 */
.change-password-dialog {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: grid;
  place-items: end center;
}
.change-password-dialog.hidden {
  display: none !important;
}
.change-password-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}
.change-password-card {
  position: relative;
  width: min(100%, 420px);
  max-height: 86vh;
  overflow: auto;
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-shadow: 0 -18px 48px rgba(15, 23, 42, 0.18);
}
.change-password-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 10px;
}
.change-password-head div { display: grid; gap: 3px; }
.change-password-head small { color: #8390a5; font-size: 11px; font-weight: 750; }
.change-password-head strong { color: #1f2937; font-size: 19px; font-weight: 820; }
.change-password-head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 18px;
}
.change-password-form {
  display: grid;
  gap: 12px;
  padding: 8px 18px 20px;
}
.change-password-form label { display: grid; gap: 6px; }
.change-password-form label span { color: #475569; font-size: 13px; font-weight: 760; }
.change-password-form input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 13px;
  padding: 0 12px;
  background: #f8fafc;
  color: #111827;
  font-size: 15px;
  box-sizing: border-box;
}
.change-password-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  padding-top: 4px;
}
.change-password-actions button {
  height: 42px;
  border: 0;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 780;
}
.change-password-actions .secondary { background: #eef2f7; color: #475569; }
.change-password-actions .primary { background: linear-gradient(135deg, #4aa3ff, #3578ff); color: #fff; }
.change-password-actions button:disabled { opacity: 0.62; }
html.theme-dark .change-password-card { background: #111419; box-shadow: 0 -18px 54px rgba(0, 0, 0, 0.52); }
html.theme-dark .change-password-head strong { color: #f0eadf; }
html.theme-dark .change-password-head small,
html.theme-dark .change-password-form label span { color: #a9a394; }
html.theme-dark .change-password-head button,
html.theme-dark .change-password-form input,
html.theme-dark .change-password-actions .secondary { border-color: rgba(217, 169, 87, 0.18); background: rgba(255, 255, 255, 0.07); color: #f0eadf; }

/* Mini program virtual payment recharge entry v460 */
.recharge-plan-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

.recharge-sheet .recharge-plan-virtual,
#accountView .recharge-sheet .recharge-plan-virtual {
  border-color: rgba(182, 232, 24, 0.55);
  background: linear-gradient(180deg, #f3ff8f, #bee91b);
  box-shadow: 0 10px 22px rgba(182, 232, 24, 0.2);
}

.recharge-sheet .recharge-plan-virtual strong,
#accountView .recharge-sheet .recharge-plan-virtual strong,
.recharge-sheet .recharge-plan-virtual small,
#accountView .recharge-sheet .recharge-plan-virtual small {
  color: #121212;
}

/* Recharge visible entry v462 */
#accountView .account-recharge-zone {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#accountView #accountRechargeShortcut {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#accountView .recharge-center-entry .account-hub-icon {
  background: linear-gradient(180deg, #f3ff8f, #bee91b) !important;
  color: #151515 !important;
}

/* Recharge sheet click fallback v463 */
.recharge-open #rechargeSheet,
#rechargeSheet:not(.hidden) {
  display: grid !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 10020 !important;
  pointer-events: auto !important;
}

#rechargeSheet:not(.hidden) .recharge-sheet-card,
#rechargeSheet:not(.hidden) .recharge-sheet-mask {
  pointer-events: auto !important;
}

/* Recharge action observable status v465 */
.recharge-action-status {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(85, 167, 255, 0.10);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}
.recharge-action-status.hidden {
  display: none !important;
}
.recharge-action-status.ok {
  background: rgba(182, 232, 24, 0.24);
  color: #365314;
}
.recharge-action-status.error {
  background: rgba(255, 77, 79, 0.10);
  color: #b42318;
}

/* Recharge link fallback v466 */
#accountView a.recharge-shortcut,
#accountView a.account-hub-card {
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}
#accountView a.account-hub-card {
  cursor: pointer;
}

/* apk works pull refresh tactile v505 */
html.mahua-apk-webview .screen-body.is-pulling,
body.mahua-apk-webview .screen-body.is-pulling {
  will-change: transform;
}

html.mahua-apk-webview .screen-body.is-pull-settling,
body.mahua-apk-webview .screen-body.is-pull-settling {
  transition-property: transform;
}

html.mahua-apk-webview .pull-refresh-indicator,
body.mahua-apk-webview .pull-refresh-indicator {
  z-index: 92;
}
