.sprite-sheet {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

:root {
  --app-font-sans: "PingFang SC", "SF Pro SC", "Noto Sans SC", "Helvetica Neue", sans-serif;
  --app-text-base: clamp(14px, 3.55vw, 15px);
  --app-text-sm: clamp(12px, 3vw, 13px);
  --app-text-xs: clamp(11px, 2.7vw, 12px);
  --app-title-lg: clamp(24px, 6.8vw, 30px);
  --app-title-md: clamp(19px, 5.2vw, 22px);
  --app-title-sm: clamp(16px, 4.3vw, 18px);
  --xingse-green: #1f7a4f;
  --xingse-green-strong: #0f5f3b;
  --xingse-mint: #e8f6ed;
  --xingse-cream: #fffaf1;
}

body {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  font-family: var(--app-font-sans);
  font-size: var(--app-text-base);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  background:
    radial-gradient(circle at 18% 0%, rgba(141, 207, 164, 0.34), transparent 28%),
    radial-gradient(circle at 100% 24%, rgba(255, 221, 173, 0.34), transparent 24%),
    linear-gradient(180deg, #f3fbf5 0%, #fffaf2 48%, #f7f3ec 100%);
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

.app-phone {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  overflow: visible;
}

.app-phone::before {
  content: none;
  display: none;
}

.app-screen {
  width: min(100%, 430px);
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: clamp(60px, 14vw, 66px) clamp(14px, 4vw, 18px) calc(156px + env(safe-area-inset-bottom, 0px));
}

.app-main {
  display: block;
}

.status-bar {
  display: none;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.app-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 900;
  transform: translateX(-50%);
  width: min(100%, 430px);
  height: 50px;
  margin: 0;
  padding: 8px clamp(14px, 4vw, 18px) 6px;
  background: rgba(243, 251, 245, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(47, 97, 67, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
}

.app-header .brand {
  min-width: 0;
}

.app-header .brand strong {
  font-size: clamp(15px, 3.9vw, 17px);
  line-height: 1.1;
  font-family: var(--app-font-sans);
  font-weight: 600;
}

.app-header .brand span {
  font-size: var(--app-text-xs);
  margin-top: 1px;
}

.app-header .logo,
.app-header .icon-link {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  border: none;
  background: transparent;
}

.app-header .logo {
  color: #fff;
  background: linear-gradient(145deg, var(--xingse-green), #68bb7b);
  box-shadow: 0 10px 22px rgba(31, 122, 79, 0.22);
}

.app-home-shell {
  display: grid;
  gap: 14px;
}

.page-hero,
.card,
.panel,
.cta-box,
.result-hero,
.score-total,
.profile-card,
.history-card,
.upload-box,
.summary-box {
  padding: 16px;
}

.section {
  margin-top: 18px;
}

.section-head {
  margin-bottom: 10px;
}

.app-header-leading,
.app-header-action,
.app-chip-button,
.app-card-button,
.app-list-button,
.app-link-button,
.bottom-nav .nav-item {
  border: none;
  background: transparent;
  padding: 0;
}

.app-link-button {
  display: inline-flex;
  align-items: center;
  font: inherit;
}

.app-header-leading-hidden {
  display: none !important;
}

.app-header-action-text {
  width: auto;
  min-width: 58px;
  height: 32px;
  padding: 0 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
  font-size: var(--app-text-xs);
  font-weight: 600;
  color: var(--text-soft);
}

.app-header .app-header-action.app-header-action-text {
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.app-header-action-hidden {
  display: none !important;
}

.serif {
  font-family: var(--app-font-sans);
  letter-spacing: -0.015em;
  font-weight: 600;
}

.app-info-row,
.app-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.app-head-actions {
  margin-left: auto;
}

.app-inline-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
}

.app-inline-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  font-size: 13px;
}

.app-inline-note strong {
  color: var(--text-muted);
  font-size: 12px;
  flex: 0 0 auto;
}

.home-tab-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
}

.home-tab-button {
  border: none;
  border-radius: 14px;
  background: transparent;
  color: var(--text-muted);
  padding: 10px 12px;
  font: inherit;
  font-weight: 600;
}

.home-tab-button.active {
  background: var(--surface);
  color: var(--text-strong);
  box-shadow: 0 8px 18px rgba(31, 29, 26, 0.08);
}

.home-tab-panel {
  display: none;
}

.home-tab-panel.active {
  display: block;
}

.app-inline-panel strong {
  font-size: 13px;
  color: var(--text-soft);
}

.app-info-row-center {
  justify-content: center;
}

.help-trigger {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  flex: 0 0 auto;
}

.help-tooltip {
  position: fixed;
  z-index: 1000;
  max-width: min(280px, calc(100vw - 32px));
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(31, 29, 26, 0.94);
  color: #fff;
  font-size: 12px;
  line-height: 1.55;
  box-shadow: 0 12px 28px rgba(31, 29, 26, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease;
}

.help-tooltip.active {
  opacity: 1;
  transform: translateY(0);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 1200;
  max-width: min(calc(100vw - 32px), 320px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(31, 29, 26, 0.94);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 14px 30px rgba(31, 29, 26, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .18s ease, transform .18s ease;
}

.toast.active {
  opacity: 1;
  transform: translate(-50%, 0);
}

.app-help-source {
  display: none;
}

.app-card-button,
.app-list-button {
  width: 100%;
  text-align: left;
  color: inherit;
}

.app-chip-button {
  font: inherit;
  cursor: pointer;
}

.bottom-nav .nav-item {
  width: 100%;
  color: var(--text-muted);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 950;
  transform: translateX(-50%);
  width: min(calc(100vw - 24px), 430px);
  box-sizing: border-box;
  padding: 8px 8px 7px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(230, 223, 210, 0.92);
  box-shadow: 0 14px 34px rgba(31, 29, 26, 0.14);
  display: flex;
  gap: 4px;
}

.bottom-nav .nav-item.active {
  color: var(--accent);
}

.bottom-nav.hidden {
  display: none;
}

.bottom-nav .nav-item {
  flex: 1 1 0;
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: var(--app-text-xs);
}

.bottom-nav .nav-item[hidden],
.bottom-nav .nav-item-hidden {
  display: none !important;
}

.bottom-nav .nav-item .dot {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: transparent;
}

.bottom-nav .nav-item.active .dot {
  background: rgba(201, 100, 66, 0.12);
}

.icon-svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.icon-large {
  width: 24px;
  height: 24px;
}

.logo .icon-svg {
  width: 20px;
  height: 20px;
}

.app-hero-title,
.app-section-title {
  font-size: var(--app-title-lg);
  line-height: 1.16;
  margin: 10px 0;
}

.app-title-tight {
  margin: 0 0 6px;
  font-size: clamp(22px, 6.1vw, 26px);
  line-height: 1.18;
}

.app-list-gap {
  margin-top: 12px;
}

.app-list-gap-sm {
  display: block;
}

.app-primary-stack {
  margin-top: 14px;
}

.app-primary-stack .btn {
  width: 100%;
}

.app-inner-head {
  margin: 16px 0 10px;
}

.app-form {
  padding: 16px;
}

.app-textarea-wrap {
  position: relative;
}

.home-corner-actions {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 8px;
}

.home-corner-actions .app-corner-help {
  position: static;
}

.app-scenario-textarea {
  min-height: 172px;
  font-size: 16px;
  line-height: 1.7;
}

.app-corner-help {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(247, 243, 236, 0.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.app-upload-state {
  color: var(--text-muted);
}

.app-upload-preview {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 18px;
  background: #faf8f4;
  border: 1px solid var(--line-strong);
}

.app-upload-preview[hidden] {
  display: none;
}

.app-upload-preview-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  background: #f0ece5;
}

.app-upload-preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ai-assistant-card {
  width: min(100%, 430px);
  padding: 16px;
}

.ai-assistant-head {
  margin-bottom: 12px;
}

.ai-assistant-head span {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: var(--app-text-sm);
}

.ai-assistant-actions {
  display: grid;
  gap: 10px;
}

.ai-assistant-action {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  text-align: left;
  color: inherit;
}

.ai-assistant-action[disabled] {
  opacity: 0.45;
}

.ai-assistant-action-copy {
  display: grid;
  gap: 4px;
}

.ai-assistant-action-copy strong {
  font-size: var(--app-text-base);
}

.ai-assistant-action-copy span {
  color: var(--text-soft);
  font-size: var(--app-text-sm);
  line-height: 1.5;
}

.ai-assistant-note {
  margin: 12px 2px 0;
  color: var(--text-soft);
  font-size: var(--app-text-sm);
  line-height: 1.6;
}

.auth-shell {
  box-shadow: none;
}

.auth-panel {
  margin-top: 0;
  width: 100%;
}

.auth-panel .section-head {
  margin-bottom: 16px;
}

.auth-form .field,
.auth-field-wrap {
  margin-bottom: 12px;
}

.auth-field-wrap,
.password-field-wrap {
  position: relative;
}

.auth-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: rgba(107, 93, 77, 0.62);
  pointer-events: none;
  transform: translateY(-50%);
}

.auth-field-icon .icon-svg {
  width: 18px;
  height: 18px;
}

.auth-icon-field {
  padding-left: 46px;
}

.password-field-wrap {
  margin-bottom: 12px;
}

.password-field-wrap .field {
  margin-bottom: 0;
}

.password-field-input {
  padding-right: 54px;
}

.password-toggle-button {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(201, 100, 66, 0.08);
  color: var(--accent);
  font-size: var(--app-text-sm);
  font-weight: 600;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.password-toggle-button .icon-svg {
  width: 18px;
  height: 18px;
}

.app-header-action-icon-text {
  gap: 5px;
  padding-inline: 9px;
}

.app-header-action-icon-text .icon-svg {
  width: 15px;
  height: 15px;
}

.password-toggle-button:focus-visible {
  outline: 2px solid rgba(201, 100, 66, 0.28);
  outline-offset: 2px;
  border-radius: 8px;
}

.auth-captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 122px;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.auth-captcha-input {
  min-width: 0;
  margin-bottom: 0;
}

.auth-captcha-field-wrap {
  min-width: 0;
  margin-bottom: 0;
}

.auth-captcha-button {
  min-height: 46px;
  padding-inline: 12px;
  white-space: nowrap;
}

.style-reason-card {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbf8f2, #f5efe6);
  border: 1px solid var(--line-strong);
}

.style-reason-label {
  margin-bottom: 8px;
  color: var(--text-muted);
}

.style-reason-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
}

.publish-upload-preview {
  margin-bottom: 14px;
}

.publish-textarea {
  min-height: 168px;
  padding-right: 62px;
  padding-bottom: 58px;
}

.publish-upload-trigger {
  right: 18px;
  bottom: 24px;
  width: 38px;
  height: 38px;
  color: var(--text-soft);
  background: rgba(247, 243, 236, 0.98);
}

.publish-upload-trigger .icon-svg {
  width: 18px;
  height: 18px;
}

.publish-upload-state {
  margin: 8px 0 2px;
}

.publish-history-block {
  margin-bottom: 14px;
  position: relative;
  z-index: 3;
}

.publish-history-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.publish-history-head .app-field-label {
  margin-bottom: 0;
}

.publish-history-list {
  display: grid;
  gap: 10px;
}

.publish-history-dropdown {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  overflow: visible;
}

.publish-history-dropdown[open] {
  background: var(--surface);
}

.publish-history-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  background: var(--surface);
}

.publish-history-summary::-webkit-details-marker {
  display: none;
}

.publish-history-summary span[aria-hidden="true"] {
  color: var(--text-soft);
  transition: transform 180ms ease;
}

.publish-history-dropdown[open] .publish-history-summary span[aria-hidden="true"] {
  transform: rotate(180deg);
}

.publish-history-dropdown .publish-history-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  padding: 6px 0;
  max-height: min(280px, calc(100vh - 360px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(31, 29, 26, 0.12);
  z-index: 5;
}

.publish-history-item {
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.publish-history-item + .publish-history-item {
  border-top: 1px solid var(--line-soft);
}

.publish-history-item:hover {
  background: rgba(201, 100, 66, 0.06);
}

.publish-history-item strong,
.publish-history-item span {
  display: block;
}

.publish-history-item strong {
  margin-bottom: 4px;
  color: var(--text);
}

.publish-history-item span {
  color: var(--text-soft);
  line-height: 1.55;
}

.view[data-view="publish"] .page-hero,
.view[data-view="publish"] .summary-box {
  overflow: visible;
}

.runtime-h5-auth-entry .view[data-view="login"].active,
.runtime-h5-auth-entry .view[data-view="register"].active {
  min-height: calc(100vh - 148px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-switch {
  justify-content: center;
}

.auth-consent {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: var(--app-text-sm);
  color: var(--text-soft);
}

.auth-consent input {
  margin: 0;
}

.auth-terms {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
}

.auth-terms summary {
  cursor: pointer;
  color: var(--accent);
  font-size: var(--app-text-sm);
  font-weight: 600;
}

.auth-terms p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: var(--app-text-sm);
  line-height: 1.6;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(31, 29, 26, 0.42);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px 14px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-card {
  width: min(100%, 430px);
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  border-radius: 24px 24px 18px 18px;
  background: #f8f4ed;
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px rgba(31, 29, 26, 0.2);
  padding: 14px;
}

.auth-modal-card {
  padding: 16px;
}

.auth-modal-head span {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: var(--app-text-xs);
}

.auth-modal-panel[hidden] {
  display: none;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-head strong {
  display: block;
  font-size: var(--app-title-md);
  line-height: 1.2;
}

.modal-close {
  flex: 0 0 auto;
}

.score-modal-section {
  margin-top: 10px;
}

.history-pull-indicator {
  margin: 0 0 10px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.history-pull-indicator.ready {
  color: var(--accent);
}

.history-chart,
.stats-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 156px;
}

.chart-bar {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.chart-bar-fill {
  width: 100%;
  min-height: 28px;
  border-radius: 14px 14px 8px 8px;
  background: linear-gradient(180deg, rgba(201, 100, 66, 0.82), rgba(201, 100, 66, 0.26));
}

.chart-bar strong {
  font-size: 12px;
  color: var(--text);
}

.chart-bar span {
  font-size: 11px;
  color: var(--text-muted);
}

.community-tabs {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.community-segment {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 4px;
  border-radius: 18px;
  background: #f7f3ec;
  border: 1px solid var(--line-strong);
  margin: 0 auto;
}

.community-tabs .help-trigger {
  position: absolute;
  right: 0;
}

.community-tab {
  min-width: 72px;
  min-height: 36px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-weight: 600;
}

.community-tab.active {
  background: #fff;
  color: var(--text);
}

.community-composer {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
}

.community-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #efe6da;
  color: var(--accent);
  font-weight: 700;
}

.community-feed {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.community-post {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: #fff;
  box-shadow: none;
}

.community-post-head {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
}

.community-post-meta strong,
.community-post-meta span {
  display: block;
}

.community-post-meta span {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
}

.community-post-text {
  margin: 12px 0;
  color: var(--text);
  line-height: 1.65;
}

.community-post-media {
  width: 100%;
  aspect-ratio: 1.4 / 1;
  border-radius: 16px;
  margin-bottom: 12px;
}

.community-post-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: var(--app-text-xs);
}

.app-field-label {
  display: block;
  margin: 0 0 8px;
  font-size: var(--app-text-sm);
  color: var(--text-muted);
}

.app-form .field,
.app-form .textarea,
.app-form .app-select {
  margin-bottom: 12px;
}

.app-form .textarea {
  min-height: 132px;
}

.app-select {
  appearance: none;
}

.app-style-button {
  width: 100%;
  padding: 0;
  text-align: left;
  color: inherit;
  background: transparent;
  border: none;
}

.style-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.style-card {
  position: relative;
}

.style-thumb {
  position: relative;
  min-height: 236px;
  height: auto;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  background-size: cover;
  background-position: center;
}

.style-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 29, 26, 0.04), rgba(31, 29, 26, 0.42));
}

.style-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 252, 246, 0.86);
  backdrop-filter: blur(6px);
}

.style-copy h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.style-copy p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.style-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: rgba(201, 100, 66, 0.14);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.app-single-history {
  grid-template-columns: 1fr;
}

.app-result-art {
  position: relative;
  min-height: 240px;
  height: auto;
  aspect-ratio: 4 / 3;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: #faf7f1;
}

.result-generated-image,
.app-result-art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.result-generated-image {
  display: block;
  object-fit: contain;
  border-radius: 0;
  z-index: 2;
  background: #f6f1e8;
}

.result-generated-image[hidden] {
  display: none;
}

.app-result-art svg {
  opacity: 0.92;
  z-index: 1;
  pointer-events: none;
}

.app-result-art.has-generated-image svg {
  display: none;
}

#resultGeneratedFallback[hidden] {
  display: none;
}

.view[data-view="generating"] .loading-wrap {
  min-height: calc(100vh - 150px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 28px 22px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 10%, rgba(201, 100, 66, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 245, 238, 0.96));
  border-radius: 28px;
}

.view[data-view="generating"] .loading-ring {
  margin: 0;
}

.view[data-view="generating"] .app-section-title {
  margin: 0;
  max-width: 12em;
  font-size: clamp(28px, 8.2vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.view[data-view="generating"] .progress-bar {
  width: min(100%, 320px);
  margin: 0;
}

.loading-stage-row {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
}

.loading-stage-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(230, 223, 210, 0.96);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}

.result-image-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.result-refine-trigger {
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 600;
}

.result-image-preview-card {
  width: min(100%, 430px);
  padding: 14px;
}

.result-image-preview-full {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 18px;
  background: #f4efe8;
}

.result-refine-card {
  width: min(100%, 430px);
}

.result-refine-card .textarea {
  min-height: 120px;
}

.app-rating-row {
  margin: 10px 0 14px;
}

.app-rating-row label {
  color: var(--text-muted);
}

#resultFlowers .result-item,
#resultFlowers li {
  list-style: none;
}

#resultFlowers .result-item {
  margin-bottom: 10px;
}

.result-tabs-shell {
  padding: 12px;
}

.result-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border-radius: 18px;
  background: #f5f0e8;
  border: 1px solid var(--line-strong);
}

.result-tab {
  min-height: 38px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-weight: 600;
}

.result-tab.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 8px 20px rgba(108, 92, 72, 0.08);
}

.result-tab-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.result-tab-panel[hidden] {
  display: none;
}

.result-tab-panel .result-section {
  margin: 0;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line-strong);
}

.result-color-palette-row span {
  width: 100%;
}

.result-palette-list {
  display: grid;
  gap: 8px;
}

.result-palette-chip {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.result-palette-swatch {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(34, 42, 34, 0.14);
}

.result-palette-text {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text-soft);
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.result-analysis-source {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(201, 100, 66, 0.08);
  color: var(--accent);
  font-size: 12px;
  line-height: 1.45;
}

.result-analysis-source.is-ai {
  background: rgba(31, 122, 79, 0.1);
  color: var(--xingse-green, #1f7a4f);
}

.result-flower-grid {
  display: grid;
  gap: 10px;
}

.flower-card {
  display: grid;
  gap: 10px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 243, 236, 0.96));
  border: 1px solid rgba(224, 215, 203, 0.96);
  box-shadow: 0 10px 24px rgba(124, 101, 78, 0.06);
}

.flower-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1.7 / 1;
  overflow: hidden;
  border-radius: 16px;
  background: #efe8dd;
}

.flower-card-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.28);
}

.flower-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.flower-card-head strong,
.flower-card-head span {
  display: block;
}

.flower-card-head span {
  color: var(--text-muted);
}

.flower-card-aside {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.flower-card-price {
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  color: var(--accent);
}

.flower-card-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(201, 100, 66, 0.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.flower-card-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  color: var(--text-soft);
  font-size: 13px;
}

.flower-card-details {
  display: grid;
  gap: 8px;
}

.flower-card-detail {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(246, 240, 231, 0.9);
  border: 1px solid rgba(226, 217, 205, 0.92);
}

.flower-card-detail strong {
  color: var(--text-muted);
}

.flower-card-detail span {
  min-width: 0;
}

.flower-card-note {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.history-list button.history-card {
  border: none;
}

.app-history-layout {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: start;
}

.app-case-art {
  width: 110px;
  min-height: 118px;
}

.app-score-total {
  text-align: center;
  padding: 4px 0 0;
}

.app-score-number {
  font-size: clamp(44px, 12vw, 52px);
  line-height: 1;
  font-weight: 500;
}

.app-score-caption {
  margin-top: 8px;
}

.app-score-badges {
  justify-content: center;
  margin-top: 8px;
}

.app-empty {
  padding: 16px;
  border-radius: 18px;
  background: rgba(232, 230, 220, 0.58);
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
}

.hero-metrics,
.kpi {
  gap: 8px;
  margin-top: 14px;
}

.mini-stat,
.kpi .info-item {
  padding: 10px 12px;
}

.history-list {
  display: grid;
  gap: 12px;
}

.view[data-view="home"] .section {
  margin-top: 16px;
}

.view[data-view="home"] .app-home-shell {
  gap: 12px;
  border-radius: 22px;
  border-color: rgba(230, 223, 210, 0.92);
  box-shadow: none;
}

.view[data-view="home"] .app-info-row {
  width: 100%;
  justify-content: space-between;
}

.view[data-view="home"] .eyebrow {
  min-height: auto;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--text-muted);
}

.view[data-view="home"] .eyebrow::before {
  display: none;
}

.view[data-view="home"] .app-hero-title {
  margin: -2px 0 0;
  font-size: clamp(24px, 6.5vw, 28px);
  line-height: 1.18;
}

.view[data-view="home"] .home-tab-switch {
  gap: 6px;
  padding: 5px;
  border-radius: 22px;
  background: #f7f3ec;
  box-shadow: none;
}

.view[data-view="home"] .home-tab-button {
  min-height: 44px;
  border-radius: 18px;
  color: var(--text-soft);
  font-size: var(--app-text-base);
  font-weight: 600;
}

.view[data-view="home"] .home-tab-button.active {
  color: var(--text);
  box-shadow: none;
}

.view[data-view="home"] .section-head {
  align-items: center;
  margin-bottom: 12px;
}

.view[data-view="home"] .section-head h2 {
  font-size: var(--app-title-sm);
  line-height: 1.2;
}

.view[data-view="home"] .quick-grid {
  gap: 10px;
}

.view[data-view="home"] .card {
  padding: 14px;
  border-radius: 18px;
  box-shadow: none;
}

.view[data-view="home"] .icon-box {
  margin-bottom: 10px;
}

.view[data-view="home"] .card h3,
.view[data-view="home"] .history-card h3 {
  margin-bottom: 4px;
}

.view[data-view="home"] .card p,
.view[data-view="home"] .history-card p {
  line-height: 1.55;
}

.view[data-view="home"] .history-card {
  padding: 14px;
  border-radius: 18px;
  box-shadow: none;
}

.view[data-view="home"] .app-single-history .chips {
  gap: 6px;
}

.view[data-view="home"] .textarea,
.view[data-view="home"] .upload-box {
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}

.view[data-view="home"] .app-scenario-textarea {
  min-height: 168px;
  padding: 18px 72px 72px 18px;
  font-size: 16px;
  line-height: 1.65;
}

.view[data-view="home"] .app-upload-state {
  margin-top: 8px;
}

.view[data-view="home"] .app-upload-preview {
  margin-top: 12px;
}

.view[data-view="home"] .chip {
  min-height: auto;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--text-soft);
  font-size: 13px;
}

.view[data-view="home"] .chip.active {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(201, 100, 66, 0.08);
  background: rgba(201, 100, 66, 0.12);
  color: var(--accent);
}

.view[data-view="home"] .app-corner-help {
  width: 38px;
  height: 38px;
  border-color: rgba(230, 223, 210, 0.96);
  color: var(--text-soft);
  background: rgba(250, 247, 242, 0.98);
}

.view[data-view="home"] .home-corner-actions {
  right: 14px;
  bottom: 14px;
}

.view[data-view="home"] .home-corner-action--magic {
  color: var(--accent);
}

.view[data-view="home"] .app-corner-help .icon-svg {
  width: 20px;
  height: 20px;
}

.view[data-view="home"] .app-sample-entry {
  display: grid;
  gap: 12px;
}

.view[data-view="home"] .app-sample-entry-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  background: #f7f3ec;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.view[data-view="home"] .app-home-workbench {
  padding: 18px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at top right, rgba(201, 100, 66, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 246, 239, 0.98));
}

.view[data-view="home"] .app-home-lead {
  margin: 8px 0 2px;
  color: var(--text-soft);
  line-height: 1.7;
}

.view[data-view="home"] .home-composer-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.view[data-view="home"] .home-composer-editor {
  margin-bottom: 0;
}

.view[data-view="home"] .home-composer-shell {
  border: 1px solid rgba(230, 223, 210, 0.96);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  overflow: hidden;
}

.view[data-view="home"] .home-composer-textarea {
  min-height: 168px;
  margin-bottom: 0;
  padding: 18px 18px 12px;
  border: none;
  border-radius: 0;
  background: transparent;
  line-height: 1.7;
  resize: none;
}

.view[data-view="home"] .home-corner-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 18px 18px;
}

.view[data-view="home"] .home-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: stretch;
  gap: 10px;
}

.view[data-view="home"] .home-style-pill {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 52px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(230, 223, 210, 0.96);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.view[data-view="home"] .home-style-pill[hidden] {
  display: none !important;
}

.view[data-view="home"] .home-style-pill-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(201, 100, 66, 0.1);
}

.view[data-view="home"] .home-style-pill-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.view[data-view="home"] .home-style-pill-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: rgba(107, 93, 77, 0.72);
}

.view[data-view="home"] .home-style-pill-field {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
}

.view[data-view="home"] .home-style-select {
  width: 100%;
  display: block;
  min-width: 0;
  min-height: 20px;
  padding: 0;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  color: #2f261f;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  text-overflow: ellipsis;
}

.view[data-view="home"] .home-style-select:focus {
  outline: none;
  box-shadow: none;
}

.view[data-view="home"] .home-style-pill-arrow {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(107, 93, 77, 0.52);
  transform: rotate(90deg);
  pointer-events: none;
}

.view[data-view="home"] .home-icon-tool {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  padding: 0;
  border: none;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
}

.view[data-view="home"] .home-icon-tool-core {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(201, 100, 66, 0.1);
}

.view[data-view="home"] .home-icon-tool--accent .home-icon-tool-core {
  background: rgba(201, 100, 66, 0.14);
}

.view[data-view="home"] .home-color-strip {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.view[data-view="home"] .home-color-strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.view[data-view="home"] .home-color-strip-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.view[data-view="home"] .home-color-strip-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.view[data-view="home"] .home-color-strip-value {
  min-width: 0;
  color: var(--text-muted);
  font-size: 12px;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
}

.view[data-view="home"] .home-color-native-select {
  display: none;
}

.view[data-view="home"] .home-color-refresh {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(230, 223, 210, 0.96);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-soft);
  font-size: 12px;
}

.view[data-view="home"] .home-color-refresh.is-busy {
  opacity: 0.7;
}

.view[data-view="home"] .home-color-options {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 2px;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.view[data-view="home"] .home-color-options::-webkit-scrollbar {
  display: none;
}

.view[data-view="home"] .home-color-chip {
  flex: 0 0 auto;
  min-width: 160px;
  padding: 9px 10px;
  border: 1px solid rgba(230, 223, 210, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  display: grid;
  gap: 8px;
  text-align: left;
  color: inherit;
}

.view[data-view="home"] .home-color-chip.active {
  border-color: rgba(201, 100, 66, 0.4);
  background: rgba(255, 250, 246, 0.96);
}

.view[data-view="home"] .home-color-chip--ai {
  min-width: 140px;
}

.view[data-view="home"] .home-color-chip-swatches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.view[data-view="home"] .home-color-chip-tone {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  grid-template-areas:
    "swatch name"
    "swatch hex";
  align-items: center;
  column-gap: 6px;
  min-width: 0;
}

.view[data-view="home"] .home-color-chip-swatch {
  grid-area: swatch;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(34, 42, 34, 0.12);
}

.view[data-view="home"] .home-color-chip-swatch-name,
.view[data-view="home"] .home-color-chip-swatch-hex,
.view[data-view="home"] .home-color-chip-hexline {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.view[data-view="home"] .home-color-chip-swatch-name {
  grid-area: name;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.view[data-view="home"] .home-color-chip-swatch-hex {
  grid-area: hex;
  color: var(--text-muted);
  font-size: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.view[data-view="home"] .home-color-chip-copy {
  display: grid;
  gap: 3px;
}

.view[data-view="home"] .home-color-chip-hexline {
  color: var(--text-muted);
  font-size: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Xingse-inspired app polish: photo-first, clean recognition workflow */
.view[data-view="home"] .app-home-workbench {
  position: relative;
  overflow: hidden;
  padding: 0 0 20px;
  margin: 0 0 20px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.view[data-view="home"] .app-home-workbench::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 260px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.55), transparent 18%),
    linear-gradient(145deg, #bfe8c8 0%, #5fb879 46%, #1f7a4f 100%);
  pointer-events: none;
}

.xingse-hero-visual,
.xingse-home-copy,
.view[data-view="home"] .home-composer-form {
  position: relative;
  z-index: 1;
}

.xingse-hero-visual {
  min-height: 238px;
  display: grid;
  place-items: center;
  padding: 18px 18px 0;
}

.xingse-hero-photo {
  position: relative;
  width: min(78vw, 300px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.96) 0 13%, transparent 14%),
    radial-gradient(ellipse at 50% 22%, #fff8d8 0 11%, transparent 12%),
    radial-gradient(ellipse at 80% 38%, #ffd3d0 0 13%, transparent 14%),
    radial-gradient(ellipse at 70% 78%, #f7a9a9 0 15%, transparent 16%),
    radial-gradient(ellipse at 28% 76%, #ffe0aa 0 14%, transparent 15%),
    radial-gradient(ellipse at 18% 36%, #fff2c4 0 12%, transparent 13%),
    radial-gradient(circle at 50% 50%, #f5be5f 0 18%, transparent 19%),
    linear-gradient(145deg, rgba(232, 246, 237, 0.92), rgba(255, 250, 241, 0.96));
  box-shadow:
    inset 0 0 0 10px rgba(255, 255, 255, 0.55),
    0 26px 52px rgba(17, 86, 52, 0.22);
}

.xingse-hero-photo::before,
.xingse-hero-photo::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  filter: blur(1px);
}

.xingse-hero-photo::before {
  width: 74px;
  height: 18px;
  left: 34px;
  top: 58px;
  transform: rotate(-18deg);
}

.xingse-hero-photo::after {
  width: 52px;
  height: 14px;
  right: 44px;
  bottom: 72px;
  transform: rotate(24deg);
}

.xingse-petal {
  position: absolute;
  border-radius: 999px 999px 999px 24px;
  box-shadow: 0 16px 30px rgba(78, 102, 65, 0.12);
}

.xingse-petal-a {
  width: 72px;
  height: 118px;
  left: 50%;
  top: 16px;
  background: linear-gradient(180deg, #fff9d8, #ffc66f);
  transform: translateX(-50%) rotate(2deg);
}

.xingse-petal-b {
  width: 76px;
  height: 112px;
  right: 38px;
  top: 62px;
  background: linear-gradient(180deg, #ffd4d3, #ef777d);
  transform: rotate(48deg);
}

.xingse-petal-c {
  width: 78px;
  height: 118px;
  left: 40px;
  top: 68px;
  background: linear-gradient(180deg, #fff4c2, #f4a84b);
  transform: rotate(-48deg);
}

.xingse-petal-d {
  width: 90px;
  height: 120px;
  left: 50%;
  bottom: 20px;
  background: linear-gradient(180deg, #ffe1e3, #d85f6e);
  transform: translateX(-50%) rotate(178deg);
}

.xingse-camera-ring {
  position: absolute;
  left: 50%;
  bottom: -16px;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(145deg, var(--xingse-green), var(--xingse-green-strong));
  border: 6px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 36px rgba(15, 95, 59, 0.28);
  transform: translateX(-50%);
}

.xingse-ai-card {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 2px;
  min-width: 128px;
  padding: 12px 14px;
  border-radius: 20px;
  color: #163d29;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 34px rgba(28, 89, 57, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.xingse-ai-card span {
  font-size: 11px;
  color: rgba(22, 61, 41, 0.62);
}

.xingse-ai-card strong {
  font-size: 15px;
  line-height: 1.2;
}

.xingse-home-copy {
  padding: 10px 22px 0;
}

.xingse-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  color: #17633f;
  background: rgba(232, 246, 237, 0.92);
  font-size: 12px;
  font-weight: 700;
}

.xingse-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3fc978;
  box-shadow: 0 0 0 4px rgba(63, 201, 120, 0.14);
}

.view[data-view="home"] .app-hero-title {
  margin: 12px 0 0;
  color: #17251c;
  font-size: clamp(30px, 8.6vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.view[data-view="home"] .app-home-lead {
  margin: 10px 0 0;
  color: rgba(23, 37, 28, 0.66);
  font-size: 14px;
  line-height: 1.65;
}

.view[data-view="home"] .home-composer-form {
  margin: 18px 0 0;
  gap: 14px;
}

.view[data-view="home"] .home-composer-shell {
  border: none;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.view[data-view="home"] .home-composer-textarea {
  min-height: 124px;
  padding: 18px 18px 10px;
  color: #1d2c23;
  font-size: 15px;
}

.view[data-view="home"] .home-corner-actions {
  padding: 0 16px 16px;
}

.view[data-view="home"] .home-icon-tool {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  background: #f4faf5;
}

.view[data-view="home"] .home-icon-tool-core {
  width: 38px;
  height: 38px;
  border-radius: 15px;
  color: var(--xingse-green);
  background: rgba(31, 122, 79, 0.1);
}

.view[data-view="home"] .home-icon-tool--accent {
  background: #fff5e6;
}

.view[data-view="home"] .home-icon-tool--accent .home-icon-tool-core {
  color: #d16d2f;
  background: rgba(244, 164, 96, 0.14);
}

.view[data-view="home"] .home-color-strip {
  padding: 4px 0 0;
  border-radius: 0;
  background: transparent;
  border: none;
}

.view[data-view="home"] .home-color-strip-label {
  color: #17251c;
  font-size: 15px;
}

.view[data-view="home"] .home-color-refresh {
  flex: 0 0 auto;
  white-space: nowrap;
  border-color: rgba(31, 122, 79, 0.14);
  color: var(--xingse-green);
  background: rgba(232, 246, 237, 0.8);
  font-weight: 700;
}

.view[data-view="home"] .home-color-chip {
  border-color: rgba(232, 238, 228, 0.94);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(41, 78, 55, 0.06);
}

.view[data-view="home"] .home-color-chip.active {
  border-color: rgba(31, 122, 79, 0.36);
  background: rgba(244, 250, 245, 0.98);
}

.view[data-view="home"] .home-status-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.view[data-view="home"] .home-status-chip {
  min-width: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 16px;
  color: rgba(23, 37, 28, 0.68);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(232, 238, 228, 0.88);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
}

.xingse-primary-action {
  min-height: 56px;
  gap: 9px;
  margin-top: 2px;
  border-radius: 22px;
  background: linear-gradient(135deg, #2ba464, var(--xingse-green-strong));
  box-shadow: 0 18px 34px rgba(31, 122, 79, 0.26);
}

.xingse-primary-action .icon-svg {
  width: 19px;
  height: 19px;
}

.bottom-nav {
  width: min(calc(100% - 28px), 402px);
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 950;
  box-sizing: border-box;
  padding: 8px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 44px rgba(41, 78, 55, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.view[data-view="home"] .app-home-workbench {
  padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
}

.view[data-view="home"] .home-composer-submit {
  margin-bottom: 0;
}

.bottom-nav .nav-item.active {
  color: var(--xingse-green);
}

.bottom-nav .nav-item.active .dot {
  background: rgba(31, 122, 79, 0.12);
}

.flower-card-thumb.has-bbox {
  background: #111;
}

.flower-card-thumb.no-bbox img {
  filter: saturate(0.85) contrast(0.92);
  opacity: 0.72;
}

.flower-card-bbox {
  position: absolute;
  z-index: 2;
  display: block;
  border: 3px solid #22c55e;
  border-radius: 12px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.18), 0 0 0 2px rgba(255, 255, 255, 0.88);
  pointer-events: none;
}

.flower-card-marker {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(31, 29, 26, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
