:root {
  --pet-bg: #fff9f2;
  --pet-bg-strong: #ffe7bd;
  --pet-paper: #ffffff;
  --pet-paper-soft: #fff4e3;
  --pet-ink: #30241c;
  --pet-title: #30241c;
  --pet-muted: #6f6259;
  --pet-line: #eaded1;
  --pet-rose: #f5a524;
  --pet-rose-deep: #a94808;
  --pet-teal: #a94808;
  --pet-teal-soft: #fff1d8;
  --pet-sage: #a56c2a;
  --pet-gold: #f6b73c;
  --pet-gold-soft: #fff2dc;
  --pet-success: #26724f;
  --pet-success-soft: #edf8f1;
  --pet-shadow: 0 18px 46px rgba(85, 57, 32, 0.13);
  --pet-shadow-soft: 0 8px 24px rgba(85, 57, 32, 0.09);
  --pet-action-safe-space: 88px;
  --pet-font-ui: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", system-ui, sans-serif;
  --pet-font-display: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", system-ui, sans-serif;
  --pet-font-number: "Bahnschrift", "DIN Alternate", "Aptos", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

.pet-mobile-body [hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  background: #f4d8cf;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: none;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--pet-ink);
  font: 500 15px/1.58 var(--pet-font-ui);
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.96) 0%, rgba(255, 242, 235, 0.96) 48%, rgba(252, 246, 241, 0.98) 100%),
    #fff8f4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

button,
select,
textarea {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(169, 72, 8, 0.24);
  outline-offset: 2px;
}

button {
  min-height: 44px;
  color: var(--pet-ink);
  font-weight: 750;
  background: var(--pet-paper);
  border: 1px solid var(--pet-line);
  border-radius: 12px;
  box-shadow: var(--pet-shadow-soft);
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    filter 160ms ease;
  user-select: none;
}

button:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: none;
}

.pet-mobile-body {
  padding-bottom: calc(106px + env(safe-area-inset-bottom));
}

.pet-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  min-height: 44px;
  padding: 10px 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  background: var(--pet-teal);
  border-radius: 8px;
  transform: translateY(-140%);
}

.pet-skip-link:focus {
  transform: translateY(0);
}

.pet-app {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 10px 12px 0;
}

.pet-hero {
  display: grid;
  gap: 12px;
  padding-top: env(safe-area-inset-top);
}

.pet-member-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 7px 8px 7px 13px;
  color: #644d45;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.84), rgba(255, 239, 227, 0.78)),
    var(--pet-gold-soft);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(95, 58, 50, 0.09);
  backdrop-filter: blur(16px);
}

.pet-member-strip span {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pet-member-strip button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 13px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, #c78a5c, #9d6742);
  border-color: rgba(169, 72, 8, 0.35);
  box-shadow: 0 9px 16px rgba(157, 103, 66, 0.18);
}

.pet-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 2px;
}

.pet-brand,
.pet-topbar > span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--pet-title);
  font-weight: 800;
  text-decoration: none;
}

.pet-brand {
  gap: 8px;
  font-family: var(--pet-font-display);
  font-size: 21px;
  letter-spacing: 0;
}

.pet-brand img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.pet-topbar > span {
  padding: 0 10px;
  color: var(--pet-teal);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(169, 72, 8, 0.18);
  border-radius: 8px;
  box-shadow: 0 9px 18px rgba(95, 58, 50, 0.06);
}

.pet-hero-card {
  position: relative;
  isolation: isolate;
  min-height: 346px;
  overflow: hidden;
  padding: 22px 16px 22px 20px;
  background:
    linear-gradient(107deg, rgba(255, 254, 251, 0.99) 0%, rgba(255, 247, 241, 0.96) 42%, rgba(248, 220, 214, 0.72) 70%, rgba(228, 241, 236, 0.82) 100%),
    var(--pet-paper);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  box-shadow: 0 26px 58px rgba(95, 58, 50, 0.17);
}

.pet-hero-card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 254, 251, 0.98) 0%, rgba(255, 249, 245, 0.9) 38%, rgba(255, 248, 244, 0.25) 62%, transparent 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 42%, rgba(166, 93, 80, 0.1) 100%);
  content: "";
  pointer-events: none;
  z-index: 1;
}

.pet-hero-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(255, 244, 238, 0.76));
  content: "";
  pointer-events: none;
  z-index: 1;
}

.pet-hero-copy {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: center;
  gap: 12px;
  width: 64%;
  min-width: 0;
  min-height: 302px;
}

.pet-hero-copy p,
.pet-panel-head span,
.pet-section-title span,
.pet-learn-card span {
  margin: 0;
  color: var(--pet-rose-deep);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pet-hero-copy h1,
.pet-panel-head h2,
.pet-section-title h2,
.pet-learn-card h2 {
  margin: 0;
  color: var(--pet-title);
  letter-spacing: 0;
}

.pet-hero-copy h1 {
  font-family: var(--pet-font-display);
  font-size: 29px;
  font-weight: 700;
  line-height: 1.16;
}

.pet-hero-copy > span {
  max-width: 13.7em;
  color: #6f5d5a;
  font-size: 13.5px;
  line-height: 1.58;
}

.pet-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 188px;
}

.pet-hero-proof span {
  min-height: 26px;
  padding: 5px 8px 6px;
  color: var(--pet-teal);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(169, 72, 8, 0.16);
  border-radius: 8px;
  box-shadow: 0 7px 14px rgba(95, 58, 50, 0.06);
}

.pet-hero-copy .pet-primary {
  width: fit-content;
  min-height: 44px;
  padding: 0 19px;
  box-shadow: 0 16px 24px rgba(192, 81, 91, 0.24);
}

.pet-hero-photo {
  position: absolute;
  z-index: 2;
  top: 24px;
  right: 0;
  bottom: 0;
  width: 58%;
  margin: 0;
}

.pet-hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 43%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 20px 22px rgba(95, 58, 50, 0.17));
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 18%, #000 34%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 18%, #000 34%, #000 100%);
}

.pet-hero-photo figcaption {
  position: absolute;
  right: 42px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 4px 7px;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  background: rgba(63, 45, 45, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.pet-shortcuts {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: -22px;
  padding: 12px 4px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(95, 58, 50, 0.13);
  backdrop-filter: blur(18px);
}

.pet-shortcuts :is(button, a) {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 98px;
  padding: 8px 5px 9px;
  text-align: center;
  background: transparent;
  border: 0;
  border-right: 1px solid #efe1dc;
  border-radius: 0;
  box-shadow: none;
}

.pet-shortcuts :is(button, a):last-child {
  border-right: 0;
}

.pet-shortcuts img {
  display: block;
  width: 36px;
  height: 30px;
  object-fit: contain;
  filter: saturate(1.1) contrast(1.02);
}

.pet-shortcuts strong {
  overflow-wrap: anywhere;
  color: var(--pet-title);
  font-size: 12.5px;
  font-weight: 850;
  line-height: 1.25;
}

.pet-shortcuts span {
  color: var(--pet-muted);
  font-size: 10.5px;
  line-height: 1.25;
}

.pet-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: -2px;
}

.pet-trust-strip div {
  display: grid;
  gap: 2px;
  min-height: 62px;
  align-content: center;
  justify-items: center;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(95, 58, 50, 0.08);
  backdrop-filter: blur(12px);
}

.pet-trust-strip strong {
  color: var(--pet-teal);
  font-family: var(--pet-font-number);
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
}

.pet-trust-strip span {
  color: var(--pet-muted);
  font-size: 11px;
}

.pet-showcase,
.pet-learn-card,
.pet-panel,
.pet-commercial-section,
.pet-workflow,
.pet-review-card,
.pet-member-card,
.pet-faq {
  margin-top: 15px;
}

.pet-section-title {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin: 7px 0 12px;
  text-align: center;
}

.pet-section-title h2 {
  font-family: var(--pet-font-display);
  font-size: 22px;
  font-weight: 760;
  line-height: 1.24;
}

.pet-section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pet-section-row span,
.pet-member-card span {
  display: block;
  margin: 0 0 2px;
  color: var(--pet-rose-deep);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pet-section-row h2,
.pet-member-card h2 {
  margin: 0;
  color: var(--pet-title);
  font-family: var(--pet-font-display);
  font-size: 21px;
  font-weight: 760;
  line-height: 1.24;
}

.pet-section-row :is(button, a) {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 13px;
  color: var(--pet-teal);
  font-size: 12px;
  background: var(--pet-teal-soft);
  border-color: rgba(169, 72, 8, 0.18);
  box-shadow: none;
}

.pet-sample-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pet-sample-grid button {
  display: grid;
  gap: 7px;
  min-height: 0;
  padding: 0;
  color: var(--pet-ink);
  text-align: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.pet-sample-grid button[data-active] img {
  border-color: rgba(216, 95, 106, 0.82);
  box-shadow: 0 0 0 3px rgba(216, 95, 106, 0.13), 0 12px 22px rgba(85, 54, 49, 0.16);
}

.pet-sample-grid button[data-active] span {
  color: var(--pet-rose-deep);
}

.pet-sample-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border: 1px solid #eadbd6;
  border-radius: 8px;
  box-shadow: 0 12px 22px rgba(95, 58, 50, 0.13);
}

.pet-sample-grid span {
  overflow: hidden;
  color: #5f5757;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pet-learn-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  align-items: center;
  min-height: 122px;
  overflow: hidden;
  padding: 14px;
  background:
    linear-gradient(102deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 241, 0.72) 47%, rgba(228, 241, 236, 0.68)),
    var(--pet-paper);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 15px 32px rgba(95, 58, 50, 0.11);
}

.pet-learn-card div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.pet-learn-card h2 {
  font-size: 20px;
  font-weight: 760;
  line-height: 1.24;
}

.pet-learn-card p {
  margin: 0;
  color: var(--pet-muted);
  font-size: 12px;
}

.pet-learn-card :is(button, a) {
  width: fit-content;
  min-height: 44px;
  margin-top: 5px;
  padding: 0 15px;
  color: #fff;
  font-size: 12px;
  background: linear-gradient(135deg, var(--pet-rose-deep), #7f3f0d);
  border-color: rgba(169, 72, 8, 0.35);
}

.pet-learn-card img {
  display: block;
  width: 128px;
  height: 96px;
  object-fit: cover;
  object-position: 54% 42%;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(95, 58, 50, 0.1);
}

.pet-commercial-section,
.pet-workflow,
.pet-panel,
.pet-review-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 15px 32px rgba(95, 58, 50, 0.1);
  backdrop-filter: blur(12px);
}

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

.pet-tool-grid :is(button, a) {
  display: grid;
  gap: 5px;
  min-height: 102px;
  align-content: center;
  padding: 10px 8px;
  text-align: left;
  background: rgba(255, 253, 251, 0.9);
  border-color: rgba(234, 216, 207, 0.86);
}

.pet-tool-grid strong {
  color: var(--pet-title);
  font-size: 13px;
  line-height: 1.25;
}

.pet-tool-grid span {
  color: var(--pet-muted);
  font-size: 11px;
  line-height: 1.35;
}

.pet-workflow {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 246, 241, 0.84)),
    var(--pet-paper-soft);
}

.pet-workflow ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pet-step;
}

.pet-workflow li {
  position: relative;
  display: grid;
  gap: 2px;
  min-height: 58px;
  align-content: center;
  padding: 10px 10px 10px 50px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(234, 216, 207, 0.9);
  border-radius: 8px;
  counter-increment: pet-step;
}

.pet-workflow li::before {
  position: absolute;
  top: 50%;
  left: 12px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  font-family: var(--pet-font-number);
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pet-rose), var(--pet-teal));
  border-radius: 8px;
  content: counter(pet-step);
  transform: translateY(-50%);
}

.pet-workflow strong {
  color: var(--pet-title);
  font-size: 14px;
  font-weight: 850;
}

.pet-workflow span {
  color: var(--pet-muted);
  font-size: 12px;
}

.pet-panel {
  scroll-margin-top: 12px;
}

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

.pet-panel-head h2 {
  margin-top: 2px;
  font-size: 20px;
  font-weight: 760;
  line-height: 1.25;
}

.pet-panel-head strong {
  flex: 0 0 auto;
  max-width: 44%;
  overflow: hidden;
  color: var(--pet-teal);
  font-size: 12px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--pet-teal-soft);
  border: 1px solid rgba(169, 72, 8, 0.18);
  border-radius: 8px;
  padding: 4px 9px;
}

.pet-panel-head strong[data-tone="success"] {
  color: var(--pet-success);
  background: var(--pet-success-soft);
  border-color: rgba(38, 114, 79, 0.22);
}

.pet-panel-head strong[data-tone="warning"] {
  color: #934a50;
  background: #fff0f1;
  border-color: #edc5ca;
}

.pet-panel-head button {
  min-height: 44px;
  padding: 0 12px;
  color: var(--pet-muted);
  font-size: 13px;
  background: #fffaf7;
  box-shadow: none;
}

.pet-generate-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 244, 0.92)),
    var(--pet-paper);
  border-color: rgba(234, 219, 214, 0.85);
}

#petPromptOutput {
  width: 100%;
  min-height: 236px;
  padding: 14px;
  color: #433b3c;
  line-height: 1.62;
  resize: vertical;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 245, 0.92)),
    #fffefd;
  border: 1px solid #e5d1cb;
  border-radius: 12px;
  outline: none;
  box-shadow:
    inset 0 2px 8px rgba(95, 58, 50, 0.05),
    0 10px 20px rgba(95, 58, 50, 0.05);
}

#petPromptOutput:focus,
select:focus {
  border-color: rgba(169, 72, 8, 0.62);
  box-shadow: 0 0 0 3px rgba(169, 72, 8, 0.14);
}

.pet-output-actions,
.pet-toggle-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 8px;
}

.pet-primary {
  color: #3a250f;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pet-rose), #e8a732);
  border-color: rgba(232, 169, 75, 0.72);
  box-shadow: 0 13px 24px rgba(207, 132, 12, 0.2);
}

.pet-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pet-filter-groups {
  display: grid;
  gap: 12px;
}

.pet-creation-panel {
  padding-bottom: calc(14px + var(--pet-action-safe-space));
}

.pet-filter-group {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid rgba(232, 218, 203, 0.9);
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(82, 54, 29, 0.055);
  scroll-margin-bottom: calc(var(--pet-action-safe-space) + env(safe-area-inset-bottom));
}

.pet-filter-group[hidden],
.pet-advanced-fields[hidden],
.pet-action-bar button[hidden] {
  display: none !important;
}

.pet-filter-group-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pet-filter-group-head > div {
  min-width: 0;
}

.pet-filter-group-head h3,
.pet-filter-group-head p {
  margin: 0;
}

.pet-filter-group-head h3 {
  color: var(--pet-title);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
  text-wrap: balance;
}

.pet-filter-group-head p {
  margin-top: 3px;
  color: var(--pet-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.pet-filter-group-head > span {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 4px 8px;
  color: var(--pet-rose-deep);
  background: var(--pet-gold-soft);
  border: 1px solid rgba(246, 183, 60, 0.28);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.pet-advanced-fields {
  padding-top: 12px;
  border-top: 1px solid rgba(232, 218, 203, 0.82);
}

.pet-advanced-toggle {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px 9px 14px;
  color: var(--pet-title);
  background: linear-gradient(135deg, #fff8e9, #fff1d7);
  border: 1px solid rgba(229, 191, 115, 0.58);
  border-radius: 16px;
  box-shadow: 0 7px 18px rgba(103, 67, 30, 0.075);
  text-align: left;
}

.pet-advanced-toggle-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.pet-advanced-toggle-copy strong {
  color: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.pet-advanced-toggle-copy small {
  overflow: hidden;
  color: var(--pet-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pet-advanced-toggle-state {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 30px;
  align-items: center;
  padding-inline: 10px;
  color: var(--pet-rose-deep);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(226, 177, 91, 0.42);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.pet-advanced-toggle[aria-expanded="true"] {
  background: #fff5e2;
  border-color: rgba(212, 143, 38, 0.5);
}

label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--pet-muted);
  font-size: 12px;
  font-weight: 700;
}

select {
  width: 100%;
  min-height: 46px;
  padding: 0 30px 0 11px;
  overflow: hidden;
  color: var(--pet-ink);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  background:
    linear-gradient(45deg, transparent 50%, var(--pet-rose-deep) 50%) calc(100% - 17px) 19px / 7px 7px no-repeat,
    linear-gradient(135deg, var(--pet-rose-deep) 50%, transparent 50%) calc(100% - 12px) 19px / 7px 7px no-repeat,
    #fffefd;
  border: 1px solid #e5d1cb;
  border-radius: 12px;
  outline: none;
  appearance: none;
}

select option {
  color: #2f333f;
  background: #fff;
}

.pet-toggle-row {
  grid-template-columns: 1fr 1fr;
}

.pet-toggle-row button {
  min-height: 46px;
  color: var(--pet-rose-deep);
  background: var(--pet-gold-soft);
  border-color: rgba(169, 72, 8, 0.18);
}

.pet-toggle-row button[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(135deg, var(--pet-rose-deep), var(--pet-rose));
  border-color: rgba(169, 72, 8, 0.42);
  box-shadow: 0 9px 18px rgba(169, 72, 8, 0.18);
}

.pet-breakdown {
  display: grid;
  gap: 8px;
  margin: 0;
}

.pet-breakdown div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  background: #fffaf7;
  border: 1px solid #eadbd6;
  border-radius: 8px;
}

.pet-breakdown dt {
  color: var(--pet-rose-deep);
  font-size: 12px;
  font-weight: 800;
}

.pet-breakdown dd {
  min-width: 0;
  margin: 0;
  color: #565052;
  font-size: 13px;
}

.pet-history {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pet-history:empty::before {
  display: block;
  padding: 12px;
  color: var(--pet-muted);
  background: #fffaf7;
  border: 1px dashed #e5d1cb;
  border-radius: 8px;
  content: "还没有收藏记录。";
}

.pet-history button {
  display: grid;
  width: 100%;
  gap: 3px;
  min-height: 58px;
  padding: 10px;
  text-align: left;
  background: #fffefd;
}

.pet-history strong {
  color: var(--pet-title);
  font-size: 13px;
}

.pet-history span {
  color: var(--pet-muted);
  font-size: 12px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.pet-review-card article {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #fffaf7;
  border: 1px solid #eadbd6;
  border-radius: 8px;
}

.pet-review-card img {
  display: block;
  width: 64px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.pet-review-card strong {
  display: block;
  color: var(--pet-title);
  font-size: 13px;
}

.pet-review-card p,
.pet-member-card p,
.pet-faq p {
  margin: 0;
  color: var(--pet-muted);
  font-size: 12px;
  line-height: 1.55;
}

.pet-member-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 116px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(63, 45, 45, 0.95), rgba(112, 55, 15, 0.92)),
    #2a2734;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(42, 39, 52, 0.22);
}

.pet-member-card span,
.pet-member-card h2,
.pet-member-card p {
  color: #fff;
}

.pet-member-card span {
  opacity: 0.74;
}

.pet-member-card p {
  opacity: 0.8;
}

.pet-member-card h2 {
  font-size: 23px;
}

.pet-member-card :is(button, a) {
  min-height: 44px;
  padding: 0 16px;
  white-space: nowrap;
}

.pet-faq {
  display: grid;
  gap: 8px;
}

.pet-faq details {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #eadbd6;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(85, 54, 49, 0.06);
}

.pet-faq summary {
  min-height: 48px;
  padding: 13px 14px;
  color: var(--pet-title);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.pet-faq summary::-webkit-details-marker {
  display: none;
}

.pet-faq p {
  padding: 0 14px 13px;
}

.pet-action-bar {
  position: fixed;
  right: auto;
  bottom: calc(8px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: min(calc(100% - 20px), 410px);
  margin: 0 auto;
  padding: 8px;
  background: rgba(255, 254, 252, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  box-shadow: 0 -10px 34px rgba(95, 58, 50, 0.18);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.pet-mobile-body.has-pet-output .pet-action-bar {
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.86fr) minmax(0, 0.86fr);
}

.pet-action-bar button {
  min-height: 50px;
  font-size: 13px;
}

.pet-action-bar button:not(.pet-primary) {
  color: var(--pet-rose-deep);
  background: rgba(255, 242, 220, 0.94);
  border-color: rgba(169, 72, 8, 0.16);
  box-shadow: none;
}

@media (hover: hover) {
  button:hover {
    transform: translateY(-1px);
  }

  .pet-primary:hover {
    filter: saturate(1.05) brightness(1.02);
    box-shadow: 0 17px 28px rgba(189, 83, 96, 0.27);
  }

  .pet-shortcuts :is(button, a):hover,
  .pet-sample-grid button:hover {
    transform: translateY(-2px);
  }

  .pet-action-bar button:not(.pet-primary):hover,
  .pet-toggle-row button:hover,
  .pet-section-row :is(button, a):hover {
    border-color: rgba(169, 72, 8, 0.26);
    background: rgba(255, 242, 220, 1);
  }
}

@media (max-width: 380px) {
  .pet-app {
    padding-right: 10px;
    padding-left: 10px;
  }

  .pet-hero-card {
    min-height: 326px;
    padding: 18px 10px 18px 15px;
  }

  .pet-hero-copy {
    width: 65%;
    min-height: 288px;
  }

  .pet-hero-copy h1 {
    font-size: 26px;
  }

  .pet-hero-copy > span {
    font-size: 12.5px;
    max-width: 12.4em;
  }

  .pet-hero-proof {
    max-width: 158px;
  }

  .pet-hero-proof span {
    font-size: 10px;
  }

  .pet-hero-photo {
    top: 24px;
    right: 0;
    width: 59%;
  }

  .pet-brand {
    font-size: 18px;
  }

  .pet-shortcuts strong {
    font-size: 11px;
  }

  .pet-shortcuts span {
    font-size: 10px;
  }

  .pet-tool-grid {
    grid-template-columns: 1fr;
  }

  .pet-learn-card {
    grid-template-columns: 1fr;
  }

  .pet-learn-card img {
    width: 100%;
    height: 104px;
    margin-top: 10px;
  }

  .pet-form-grid,
  .pet-output-actions {
    grid-template-columns: 1fr;
  }

  .pet-member-card {
    grid-template-columns: 1fr;
  }

  .pet-action-bar {
    width: min(calc(100% - 16px), 372px);
  }
}

/* v36 refinement: one app bar, one primary action, and a native-feeling result surface. */
.pet-app-bar {
  min-height: 56px;
  padding: 6px 7px 6px 12px;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(231, 173, 78, 0.3);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(96, 65, 38, 0.1);
  backdrop-filter: blur(18px) saturate(1.08);
}

.pet-app-bar .pet-brand {
  gap: 8px;
}

.pet-app-bar .pet-brand > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.pet-app-bar .pet-brand strong {
  color: #593716;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.pet-app-bar .pet-brand small {
  color: #94704f;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.2;
}

.pet-app-bar .pet-member-button {
  min-height: 44px;
  padding-inline: 14px;
  color: #7c4a18;
  background: linear-gradient(180deg, #fffdf8, #fff4df);
  border: 1px solid rgba(222, 160, 61, 0.36);
  border-radius: 999px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 800;
}

#petPromptOutput {
  resize: none;
  scrollbar-color: rgba(157, 111, 66, 0.52) transparent;
  scrollbar-width: thin;
}

#petPromptOutput::-webkit-scrollbar {
  width: 5px;
}

#petPromptOutput::-webkit-scrollbar-track {
  background: transparent;
}

#petPromptOutput::-webkit-scrollbar-thumb {
  background: rgba(157, 111, 66, 0.48);
  border-radius: 999px;
}

.pet-generate-card:not(.is-empty) + .pet-shortcuts,
.pet-generate-card:not(.is-empty) ~ .pet-trust-strip {
  display: none;
}

/* Branded destructive confirmation keeps data actions inside the product UI. */
.pet-confirm-dialog {
  width: min(356px, calc(100% - 28px));
  max-width: 100%;
  margin: auto;
  padding: 0;
  overflow: visible;
  color: var(--pet-title);
  background: transparent;
  border: 0;
}

.pet-confirm-dialog::backdrop {
  background: rgba(51, 35, 25, 0.38);
  backdrop-filter: blur(5px);
}

.pet-confirm-dialog form {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 194, 91, 0.2), transparent 33%),
    #fffdf9;
  border: 1px solid rgba(222, 173, 102, 0.42);
  border-radius: 24px;
  box-shadow: 0 28px 72px rgba(68, 43, 25, 0.26), inset 0 1px 0 #fff;
}

.pet-confirm-dialog form > img {
  width: 48px;
  height: 48px;
  padding: 7px;
  object-fit: contain;
  background: #fff2d6;
  border: 1px solid rgba(225, 171, 86, 0.34);
  border-radius: 15px;
}

.pet-confirm-dialog form > div:not(.pet-confirm-actions) {
  min-width: 0;
}

.pet-confirm-dialog span {
  color: #a85d20;
  font-size: 12px;
  font-weight: 850;
}

.pet-confirm-dialog h2 {
  margin: 4px 0 7px;
  font-family: var(--pet-font-display);
  font-size: 21px;
  line-height: 1.2;
}

.pet-confirm-dialog p {
  margin: 0;
  color: var(--pet-muted);
  font-size: 13px;
  line-height: 1.55;
}

.pet-confirm-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pet-confirm-actions button {
  min-height: 46px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 850;
}

.pet-confirm-actions button:first-child {
  color: #5f5148;
  background: #fff;
  border-color: rgba(129, 96, 70, 0.2);
}

.pet-confirm-actions .pet-confirm-danger {
  color: #fff;
  background: linear-gradient(135deg, #d85f37, #ba3f2d);
  border-color: rgba(167, 52, 37, 0.45);
  box-shadow: 0 10px 22px rgba(177, 60, 40, 0.2);
}

@media (max-width: 340px) {
  .pet-confirm-dialog form {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    padding: 17px;
    border-radius: 21px;
  }

  .pet-confirm-dialog form > img {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Commercial polish v21: align the legacy generator with the 萌宠创作 app shell. */
:root {
  --pet-bg: #fff7f0;
  --pet-bg-strong: #fde8d6;
  --pet-paper: #ffffff;
  --pet-paper-soft: #fff8ef;
  --pet-ink: #30241c;
  --pet-title: #30241c;
  --pet-muted: #6f6259;
  --pet-rose: #f5a524;
  --pet-rose-deep: #a94808;
  --pet-teal: #a94808;
  --pet-teal-soft: #fff1d8;
  --pet-gold: #f6b73c;
  --pet-line: rgba(229, 216, 202, 0.76);
  --pet-shadow: 0 18px 46px rgba(85, 57, 32, 0.13);
}

body {
  background:
    radial-gradient(circle at 8% 8%, rgba(246, 183, 60, 0.15), transparent 24%),
    radial-gradient(circle at 94% 22%, rgba(255, 214, 116, 0.15), transparent 25%),
    linear-gradient(180deg, #fffdf9 0%, var(--pet-bg) 44%, #fffaf5 100%);
}

.pet-mobile-body {
  height: 100vh;
  height: 100dvh;
  padding-bottom: 0;
  overflow: hidden;
}

html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

.pet-app {
  height: calc(100vh - 86px - env(safe-area-inset-bottom));
  height: calc(100dvh - 86px - env(safe-area-inset-bottom));
  padding-bottom: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-padding-block: 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.pet-app::-webkit-scrollbar {
  display: none;
}

.pet-app {
  padding-right: max(14px, env(safe-area-inset-right));
  padding-left: max(14px, env(safe-area-inset-left));
}

.pet-member-strip {
  min-height: 44px;
  padding: 6px 7px 6px 14px;
  color: #72431d;
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(232, 178, 91, 0.32);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(96, 65, 38, 0.1);
}

.pet-member-strip span {
  color: #8c571f;
  font-size: 12.5px;
  font-weight: 900;
}

.pet-member-strip button {
  min-height: 44px;
  padding: 0 13px;
  color: #8b4d16;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 232, 0.92));
  border: 1px solid rgba(231, 173, 78, 0.34);
  border-radius: 999px;
  box-shadow: none;
}

.pet-topbar {
  padding-inline: 2px;
}

.pet-brand {
  gap: 7px;
}

.pet-brand img {
  width: 28px;
  height: 28px;
}

.pet-brand span {
  color: var(--pet-title);
  font-size: 20px;
  font-weight: 950;
}

.pet-topbar > span {
  color: #7a5128;
  background: rgba(255, 251, 246, 0.92);
  border-color: rgba(231, 173, 78, 0.28);
}

.pet-hero-card {
  min-height: 326px;
  padding: 18px 16px 18px 19px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 247, 239, 0.68)),
    linear-gradient(135deg, rgba(255, 237, 215, 0.86), rgba(255, 247, 226, 0.78));
  border-color: rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  box-shadow: var(--pet-shadow);
}

.pet-hero-card::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 249, 242, 0.76) 43%, rgba(255, 255, 255, 0.22) 68%, transparent 100%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.9), transparent 24%);
}

.pet-hero-copy {
  width: 58%;
  min-height: 290px;
  gap: 8px;
}

.pet-hero-copy p,
.pet-panel-head span,
.pet-section-title span,
.pet-learn-card span {
  color: #bd6a23;
}

.pet-hero-copy h1 {
  font-family: var(--pet-font-display);
  font-size: 28px;
  font-weight: 950;
  line-height: 1.12;
}

.pet-hero-copy > span {
  max-width: 13em;
  color: #61564f;
  font-size: 13.5px;
}

.pet-hero-proof span {
  color: var(--pet-rose-deep);
  background: rgba(255, 246, 226, 0.94);
  border-color: rgba(226, 164, 65, 0.25);
}

.pet-hero-photo {
  top: 0;
  right: 0;
  width: 58%;
  overflow: hidden;
  border-radius: 0 28px 28px 0;
  pointer-events: none;
}

.pet-hero-photo img {
  object-position: 52% 43%;
}

.pet-hero-photo figcaption {
  right: 12px;
  color: #8c5a21;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(231, 173, 78, 0.28);
}

.pet-primary,
.pet-hero-copy .pet-primary {
  color: #3a250f;
  background: linear-gradient(135deg, #f59c18, #f6bd45);
  border-color: rgba(232, 169, 75, 0.62);
  box-shadow: 0 14px 26px rgba(225, 132, 40, 0.22);
}

.pet-shortcuts,
.pet-trust-strip,
.pet-learn-card,
.pet-panel,
.pet-commercial-section,
.pet-workflow,
.pet-review-card,
.pet-member-card,
.pet-faq {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(255, 255, 255, 0.78);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(84, 58, 34, 0.09);
  backdrop-filter: blur(16px);
}

.pet-shortcuts {
  margin-top: 15px;
  border-radius: 22px;
}

.pet-trust-strip {
  margin-top: 10px;
}

.pet-shortcuts strong,
.pet-panel-head h2,
.pet-section-title h2,
.pet-learn-card h2 {
  color: var(--pet-title);
  font-weight: 900;
}

.pet-sample-grid {
  gap: 9px;
}

.pet-sample-grid img {
  border-color: rgba(255, 255, 255, 0.82);
  border-radius: 17px;
  box-shadow: 0 10px 22px rgba(60, 44, 30, 0.1);
}

.pet-sample-grid button[data-active] img {
  border-color: rgba(255, 139, 47, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 139, 47, 0.13), 0 12px 24px rgba(86, 56, 33, 0.15);
}

.pet-sample-grid button[data-active] span {
  color: #9e5d1d;
}

#petPromptOutput,
select {
  background: rgba(255, 253, 250, 0.92);
  border-color: rgba(229, 216, 202, 0.78);
}

#petPromptOutput:focus,
select:focus {
  border-color: rgba(255, 139, 47, 0.62);
  box-shadow: 0 0 0 3px rgba(255, 139, 47, 0.14);
}

.pet-toggle-row button[aria-pressed="true"] {
  color: #8c4e18;
  background: #fff2df;
  border-color: rgba(231, 173, 78, 0.38);
}

.pet-action-bar {
  right: max(12px, env(safe-area-inset-right));
  left: max(12px, env(safe-area-inset-left));
  width: auto;
  max-width: 406px;
  padding: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 242, 0.92));
  border: 1px solid rgba(229, 216, 202, 0.82);
  border-radius: 24px;
  box-shadow:
    0 18px 46px rgba(66, 46, 28, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: none;
}

.pet-action-bar button {
  min-height: 52px;
  border-radius: 17px;
  font-size: 14px;
  font-weight: 900;
}

.pet-action-bar button:not(.pet-primary) {
  color: var(--pet-rose-deep);
  background: rgba(255, 242, 220, 0.94);
  border-color: rgba(169, 72, 8, 0.18);
}

@media (max-width: 380px) {
  .pet-hero-card {
    min-height: 312px;
  }

  .pet-hero-copy {
    width: 61%;
    min-height: 276px;
  }

  .pet-hero-copy h1 {
    font-size: 26px;
  }

  .pet-hero-photo {
    top: 0;
    right: 0;
    width: 57%;
  }

  .pet-action-bar {
    right: max(9px, env(safe-area-inset-right));
    left: max(9px, env(safe-area-inset-left));
    width: auto;
    max-width: 372px;
  }
}

/* Mobile QA v23: keep generator hero art inside the viewport on phone widths. */
.pet-hero-photo {
  right: 0;
  width: min(58%, 212px);
}

@media (max-width: 380px) {
  .pet-hero-photo {
    right: 0;
    width: min(58%, 194px);
  }
}

@media (max-width: 340px) {
  .pet-hero-photo {
    right: 0;
    width: min(56%, 174px);
  }

  .pet-hero-photo figcaption {
    display: none;
  }
}

/* Product workspace polish: configure first, reveal the result only after generation. */
#petFilterSection,
#petGeneratorSection {
  scroll-margin-top: 16px;
}

#petFilterSection {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 240, 0.92)),
    #fffaf3;
  border-color: rgba(231, 173, 78, 0.25);
}

.pet-panel-head > div {
  min-width: 0;
}

.pet-generate-card.is-empty {
  gap: 9px;
  min-height: 116px;
  padding-block: 18px;
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 190, 74, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 242, 0.94));
}

.pet-generate-card.is-empty .pet-field-help {
  max-width: 31em;
  margin-bottom: 0;
}

#petPromptOutput[hidden],
.pet-output-actions[hidden] {
  display: none !important;
}

#petPromptOutput:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(255, 139, 47, 0.18);
  outline-offset: 1px;
}

/* Accessibility floor: readable actions, notch-safe landscape spacing, and full footer hit targets. */
.pet-hero {
  gap: 10px;
}

.pet-mobile-body button {
  font-size: 14px;
}

.pet-hero-copy p,
.pet-hero-proof span,
.pet-hero-photo figcaption,
.pet-shortcuts span,
.pet-trust-strip span,
.pet-section-row span,
.pet-member-card span,
.pet-panel-head span,
.pet-section-title span,
.pet-learn-card > div > span,
.pet-tool-grid span {
  font-size: 12px;
}

.pet-shortcuts strong,
.pet-sample-grid span,
.pet-tool-grid strong,
.pet-history strong {
  font-size: 14px;
}

.pet-mobile-body .site-compliance-footer a,
.pet-mobile-body .site-compliance-footer button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
  font-size: 12px;
  touch-action: manipulation;
}

.pet-mobile-body .site-compliance-preview-status {
  font-size: 12px;
}

.pet-mobile-body a,
.pet-mobile-body button,
.pet-mobile-body select,
.pet-mobile-body summary {
  -webkit-tap-highlight-color: rgba(255, 139, 47, 0.16);
}

@media (max-width: 380px) {
  .pet-panel-head {
    gap: 8px;
  }

  .pet-panel-head h2 {
    font-size: 22px;
  }

  .pet-panel-head strong {
    max-width: 46%;
    padding-inline: 8px;
    font-size: 12px;
  }

  .pet-generate-card.is-empty {
    min-height: 112px;
    padding-block: 16px;
  }

  .pet-output-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pet-output-actions > .pet-primary {
    grid-column: 1 / -1;
  }
}

/* v152 final interaction lock: native navigation links, readable form controls. */
.pet-mobile-body a[data-pet-jump] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  color: var(--pet-ink);
  font: inherit;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid var(--pet-line);
  border-radius: 12px;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    filter 160ms ease;
  user-select: none;
}

.pet-mobile-body a[data-pet-jump]:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: none;
}

.pet-mobile-body .pet-shortcuts a[data-pet-jump],
.pet-mobile-body .pet-tool-grid a[data-pet-jump] {
  display: grid;
}

.pet-mobile-body .pet-shortcuts a[data-pet-jump] {
  border: 0;
  border-right: 1px solid #efe1dc;
  border-radius: 0;
}

.pet-mobile-body .pet-shortcuts a[data-pet-jump]:last-child {
  border-right: 0;
}

.pet-mobile-body .pet-section-row a[data-pet-jump] {
  color: var(--pet-teal);
  background: var(--pet-teal-soft);
  border-color: rgba(169, 72, 8, 0.18);
}

.pet-mobile-body .pet-learn-card a[data-pet-jump] {
  color: #fff;
  background: linear-gradient(135deg, var(--pet-rose-deep), #7f3f0d);
  border-color: rgba(169, 72, 8, 0.35);
}

.pet-mobile-body .pet-member-card a[data-pet-jump],
.pet-mobile-body .pet-primary[href] {
  color: #3a250f;
  background: linear-gradient(135deg, #f59c18, #f6bd45);
  border-color: rgba(232, 169, 75, 0.62);
  box-shadow: 0 14px 26px rgba(225, 132, 40, 0.22);
}

.pet-mobile-body .pet-app-bar .pet-member-button {
  color: #7c4a18;
  background: linear-gradient(180deg, #fffdf8, #fff4df);
  border-color: rgba(222, 160, 61, 0.36);
  box-shadow: 0 8px 18px rgba(111, 67, 25, 0.08);
}

.pet-mobile-body select,
#petPromptOutput {
  font-size: 16px;
}

/* v40 low-end polish: opaque-enough surfaces do not need large live backdrop filters. */
.pet-shortcuts,
.pet-trust-strip,
.pet-learn-card,
.pet-panel,
.pet-commercial-section,
.pet-workflow,
.pet-review-card,
.pet-member-card,
.pet-faq {
  background-color: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.pet-action-bar {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: opacity 180ms ease, transform 220ms ease, visibility 180ms ease;
}

.pet-mobile-body.pet-hero-in-view .pet-action-bar {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(calc(100% + 28px));
}

.pet-manual-copy-dialog form {
  grid-template-columns: 52px minmax(0, 1fr);
}

.pet-manual-copy-dialog textarea {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 220px;
  padding: 13px 14px;
  color: var(--pet-title);
  background: #fffdf9;
  border: 1px solid rgba(229, 216, 202, 0.94);
  border-radius: 16px;
  font: 500 16px/1.65 var(--pet-font-ui);
  resize: vertical;
}

.pet-manual-copy-dialog .pet-confirm-actions {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 280px) {
  .pet-hero-card {
    min-height: 0;
    padding-bottom: 14px;
  }

  .pet-hero-copy {
    width: 100%;
    min-height: 0;
    padding-right: 0;
  }

  .pet-hero-photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: 168px;
    margin-top: 12px;
  }

  .pet-advanced-toggle {
    min-height: 0;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .pet-advanced-toggle-copy small {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
}

/* Keep the premium member surface distinct from the shared light-card treatment. */
.pet-member-card {
  background:
    radial-gradient(circle at 90% 12%, rgba(246, 189, 69, 0.2), transparent 34%),
    linear-gradient(135deg, #2a2734 0%, #463128 58%, #704013 100%);
  background-color: #2a2734;
  border-color: rgba(255, 236, 202, 0.22);
  box-shadow: 0 16px 34px rgba(42, 39, 52, 0.22);
}

.pet-member-card span,
.pet-member-card h2,
.pet-member-card p {
  color: #fff;
}

#petHeroPromptStatus [data-pet-status="ready"] {
  display: none;
}

.pet-mobile-body.has-pet-output #petHeroPromptStatus [data-pet-status="idle"] {
  display: none;
}

.pet-mobile-body.has-pet-output #petHeroPromptStatus [data-pet-status="ready"] {
  display: inline;
}

/* Respect operating-system requests for solid, non-translucent surfaces. */
@media (prefers-reduced-transparency: reduce) {
  .pet-app-bar,
  .pet-shortcuts,
  .pet-trust-strip,
  .pet-learn-card,
  .pet-panel,
  .pet-commercial-section,
  .pet-workflow,
  .pet-review-card,
  .pet-faq,
  .pet-action-bar,
  .pet-hero-photo figcaption {
    background-color: #fffdf9;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .pet-member-card {
    background-color: #2a2734;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .pet-confirm-dialog::backdrop {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* v45 unified creation workbench */
.pet-mobile-body {
  background: linear-gradient(180deg, #fffaf4 0%, #fff6ed 54%, #f7ece1 100%);
}

.pet-app {
  padding-inline: 16px;
}

.pet-app-bar {
  min-height: 58px;
  padding: 4px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.pet-app-bar .pet-brand {
  gap: 10px;
}

.pet-app-bar .pet-brand > b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #5f4c3d;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(220, 199, 177, 0.72);
  border-radius: 50%;
  box-shadow: 0 7px 18px rgba(78, 52, 31, 0.07);
}

.pet-app-bar .pet-brand > b img {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%);
  opacity: 0.7;
  transform: rotate(180deg);
}

.pet-app-bar .pet-brand > span {
  display: grid;
  gap: 1px;
}

.pet-app-bar .pet-brand small {
  order: 0;
  color: #9a5a22;
  font-size: 10.5px;
  font-weight: 720;
  line-height: 1.2;
}

.pet-app-bar .pet-brand strong {
  order: 1;
  color: #352b24;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.pet-mobile-body .pet-app-bar .pet-member-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 44px;
  padding-inline: 14px;
  color: #785230;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(220, 195, 168, 0.7);
  border-radius: 999px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.pet-hero {
  gap: 10px;
}

.pet-hero-card {
  min-height: 172px;
  padding: 16px 14px 15px 17px;
  background:
    linear-gradient(90deg, rgba(255, 252, 247, 0.96) 0%, rgba(255, 248, 239, 0.88) 51%, rgba(255, 236, 211, 0.46) 100%),
    #fff4e5;
  border: 1px solid rgba(236, 209, 175, 0.62);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(80, 53, 31, 0.09);
}

.pet-hero-card::before {
  background: linear-gradient(90deg, rgba(255, 253, 249, 0.96), rgba(255, 249, 241, 0.68) 53%, transparent 78%);
}

.pet-hero-card::after {
  display: none;
}

.pet-hero-copy {
  width: 66%;
  min-height: 140px;
  gap: 6px;
  align-content: center;
}

.pet-hero-copy p {
  color: #aa5a1d;
  font-size: 10.5px;
  font-weight: 760;
}

.pet-hero-copy h1 {
  margin: 0;
  color: #332922;
  font-size: 23px;
  font-weight: 880;
  letter-spacing: -0.025em;
  line-height: 1.14;
}

.pet-hero-copy > span {
  max-width: 16em;
  color: #74685f;
  font-size: 11.5px;
  line-height: 1.45;
}

.pet-hero-proof {
  display: flex;
  gap: 5px;
  margin-top: 2px;
}

.pet-hero-proof span {
  min-height: 28px;
  padding: 6px 8px;
  color: #875022;
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid rgba(222, 183, 132, 0.48);
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 720;
  white-space: nowrap;
}

.pet-hero-photo {
  top: 0;
  right: 0;
  width: 43%;
  height: 100%;
  overflow: hidden;
  border-radius: 0 24px 24px 0;
}

.pet-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 42%;
}

.pet-hero-photo figcaption {
  right: 9px;
  bottom: 9px;
  min-height: 28px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 9.5px;
}

.pet-creation-panel {
  margin-top: 12px;
  padding: 18px 16px;
  border-radius: 24px;
}

.pet-panel-head h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.pet-creation-intro {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.48;
}

.pet-workbench-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 13px 0 15px;
  padding: 4px;
  background: #fff6ea;
  border: 1px solid rgba(226, 200, 169, 0.62);
  border-radius: 999px;
  list-style: none;
}

.pet-workbench-steps li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 38px;
  color: #745f4e;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.pet-workbench-steps li:first-child {
  color: #fffaf4;
  background: #3d3027;
}

.pet-workbench-steps b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: inherit;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  font-size: 9px;
}

.pet-filter-groups {
  gap: 10px;
}

.pet-filter-group {
  padding: 15px;
  background: #fffdf9;
  border-color: rgba(224, 206, 187, 0.72);
  border-radius: 18px;
  box-shadow: 0 5px 18px rgba(72, 49, 31, 0.06);
}

.pet-filter-group-head {
  align-items: center;
}

.pet-filter-group-head h3 {
  color: #3a3028;
  font-size: 15px;
  font-weight: 800;
}

.pet-filter-group-head p {
  margin-top: 2px;
  color: #887b70;
  font-size: 10.5px;
}

.pet-generate-card .pet-panel-head > div > span {
  letter-spacing: 0.02em;
}

@media (max-width: 340px) {
  .pet-app {
    padding-inline: 12px;
  }

  .pet-hero-card {
    min-height: 180px;
    padding-left: 15px;
  }

  .pet-hero-copy {
    width: 70%;
    min-height: 150px;
  }

  .pet-hero-copy h1 {
    font-size: 21px;
  }

  .pet-hero-copy > span {
    max-width: 14em;
  }

  .pet-hero-proof span {
    padding-inline: 6px;
    font-size: 9px;
  }

  .pet-hero-photo {
    width: 39%;
  }

  .pet-workbench-steps li {
    gap: 3px;
    font-size: 9.5px;
  }
}

/* v165: keep creation as the primary task; supporting content stays optional. */
.pet-explore-panel {
  margin-top: 15px;
  overflow: clip;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(224, 200, 174, 0.72);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(79, 53, 32, 0.075);
}

.pet-explore-panel > summary {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.pet-explore-panel > summary::-webkit-details-marker {
  display: none;
}

.pet-explore-panel > summary > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.pet-explore-panel > summary small {
  color: #a85a20;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.pet-explore-panel > summary strong {
  overflow: hidden;
  color: #3a3028;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pet-explore-panel > summary b {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 48px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  color: #80512b;
  background: #fff4df;
  border: 1px solid rgba(219, 175, 112, 0.44);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.pet-explore-panel[open] > summary {
  border-bottom: 1px solid rgba(224, 200, 174, 0.56);
}

.pet-explore-panel[open] > summary b {
  font-size: 0;
}

.pet-explore-panel[open] > summary b::after {
  content: "收起";
  font-size: 11px;
}

.pet-explore-content {
  padding: 0 14px 16px;
}

.pet-explore-content > :first-child {
  margin-top: 14px;
}

.pet-result-detail,
.pet-history-panel {
  scroll-margin-top: 12px;
}

.pet-output-stale .pet-generate-card {
  border-color: rgba(219, 151, 56, 0.62);
}

@media (max-width: 340px) {
  .pet-explore-content {
    padding-inline: 10px;
  }

  .pet-explore-panel > summary {
    padding-inline: 13px;
  }
}
