:root {
  --cream: #faf6ef;
  --paper: #fffdf9;
  --ink: #171514;
  --muted: #746d66;
  --line: #eadfd2;
  --gold: #b87935;
  --gold-dark: #965e25;
  --soft: #f5ede3;
  --shadow: 0 18px 48px rgba(84, 61, 35, 0.11);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[v-cloak] {
  display: none;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #efe9df;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  outline: none;
  padding: 0 16px;
}

textarea {
  min-height: 110px;
  padding: 14px 16px;
  resize: vertical;
}

label {
  position: relative;
  display: grid;
  gap: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

label .field-icon {
  position: absolute;
  left: 18px;
  bottom: 15px;
  color: #a68c6b;
}

label .field-icon + input {
  padding-left: 48px;
}

.phone-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), var(--shadow);
}

.ios-status {
  display: none;
}

.toast {
  position: fixed;
  z-index: 40;
  top: 54px;
  left: 50%;
  width: min(360px, calc(100vw - 40px));
  transform: translateX(-50%);
  border-radius: 8px;
  background: #edf6ef;
  color: #184c38;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-size: 13px;
}

.toast.error {
  background: #fae9e4;
  color: #9f3527;
}

.logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  letter-spacing: 8px;
  color: #111;
}

.tagline {
  margin: 3px 0 0;
  font-size: 13px;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 7px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.message {
  border-radius: 8px;
  background: #edf6f0;
  color: #184c38;
  padding: 12px 14px;
  font-size: 13px;
}

.message.error {
  background: #fae9e4;
  color: #9f3527;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-weight: 760;
}

.btn.wide {
  width: 100%;
}

.btn.secondary {
  background: #fff;
  color: var(--gold-dark);
  border: 1px solid var(--line);
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
}

.auth-page {
  min-height: 100vh;
  padding-bottom: 22px;
  background: linear-gradient(180deg, #f7efe6, #fffaf5);
}

.auth-hero {
  position: relative;
  min-height: 560px;
  padding: 76px 24px 0;
  overflow: hidden;
}

.auth-page.register .auth-hero {
  min-height: 500px;
}

.auth-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.auth-page.register .auth-hero img {
  object-position: center center;
}

.auth-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(250, 246, 239, 0.92), rgba(250, 246, 239, 0.5), rgba(250, 246, 239, 0.08)),
    linear-gradient(180deg, rgba(250, 246, 239, 0.05), rgba(250, 246, 239, 0.98));
}

.auth-copy {
  position: relative;
  z-index: 2;
}

.auth-copy h1 {
  margin: 68px 0 12px;
  max-width: 300px;
  font-size: 29px;
  line-height: 1.35;
  font-weight: 780;
}

.auth-page.register .auth-copy h1 {
  margin-top: 74px;
}

.auth-copy > p {
  max-width: 280px;
  color: #4f4a45;
  font-size: 16px;
  line-height: 1.7;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 58px;
  max-width: 330px;
}

.feature-row div,
.feature-list div {
  display: grid;
  gap: 6px;
}

.feature-row span,
.feature-list span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  color: var(--gold);
  font-size: 22px;
}

.feature-row strong,
.feature-list strong {
  font-size: 15px;
}

.feature-row small,
.feature-list small {
  color: #675f57;
  font-size: 12px;
}

.feature-list {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.feature-list div {
  grid-template-columns: 48px 1fr;
  align-items: center;
}

.feature-list p {
  margin: 0;
}

.auth-panel {
  position: relative;
  z-index: 3;
  margin: -62px 16px 0;
  padding: 28px 24px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 50px rgba(74, 52, 32, 0.12);
}

.auth-panel.register {
  border-radius: 8px;
  margin-top: -28px;
}

.field-stack {
  display: grid;
  gap: 18px;
}

.founder-note,
.security-note,
.tip-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
  padding: 17px;
  background: #f8f1e8;
}

.founder-note span,
.security-note span,
.tip-card span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #b39163;
  color: var(--gold);
}

.founder-note p,
.security-note p,
.tip-card p {
  margin: 0;
  color: #675f57;
  line-height: 1.7;
}

.auth-options,
.auth-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5e5852;
  font-weight: 500;
}

.check-line input {
  width: 18px;
  min-height: 18px;
}

.link-btn,
.auth-switch button {
  background: transparent;
  color: var(--gold-dark);
}

.primary-action,
.gold-action {
  width: 100%;
  min-height: 56px;
  border-radius: 8px;
  background: #0f0f0f;
  color: #fff;
  font-size: 18px;
  font-weight: 760;
}

.gold-action {
  background: linear-gradient(180deg, #c68945, #a66527);
  box-shadow: 0 10px 24px rgba(166, 101, 39, 0.22);
}

.gold-action.small {
  width: auto;
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.outline-action,
.outline-gold,
.soft-action {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #2b2927;
  font-weight: 700;
}

.outline-action {
  width: 100%;
  margin-top: 18px;
}

.app-page {
  min-height: 100vh;
  padding-bottom: 92px;
  background: #fffaf5;
}

.app-hero {
  position: relative;
  min-height: 320px;
  padding: 68px 20px 0;
  overflow: hidden;
}

.app-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.app-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 250, 245, 0.96), rgba(255, 250, 245, 0.36), rgba(255, 250, 245, 0.03)), linear-gradient(180deg, rgba(255, 250, 245, 0), #fffaf5);
}

.app-top,
.welcome-copy {
  position: relative;
  z-index: 2;
}

.app-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.round-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(55, 39, 25, 0.1);
}

.welcome-copy h1 {
  margin: 56px 0 8px;
  font-size: 28px;
}

.welcome-copy p {
  margin: 0;
  color: #6b635c;
  font-size: 15px;
}

.content-card {
  position: relative;
  z-index: 3;
  margin: -24px 16px 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  padding: 26px 18px;
}

.empty-illustration {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin: 8px auto 18px;
  border-radius: 18px;
  background: #f4e4d3;
  color: var(--gold);
  font-size: 34px;
}

.home-card h2,
.home-card > p {
  text-align: center;
}

.home-card > p {
  color: var(--muted);
}

.start-steps {
  margin-top: 28px;
  text-align: center;
}

.step-grid,
.flow-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.step-grid div,
.flow-icons div {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #4c4742;
}

.step-grid span,
.flow-icons span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f5eadf;
  color: var(--gold);
  font-size: 22px;
}

.step-grid small,
.flow-icons strong {
  color: var(--muted);
  font-size: 11px;
}

.active-pet-card,
.cycle-card,
.task-card,
.flow-card,
.pet-list-card,
.scan-card,
.profile-card,
.report-card {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(66, 43, 22, 0.08);
  padding: 16px;
  margin-bottom: 16px;
}

.active-pet-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
}

.active-pet-card img,
.pet-list-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.active-pet-card h2,
.active-pet-card p {
  margin: 0;
}

.active-pet-card p {
  color: var(--muted);
}

.active-pet-card button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.progress-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
  text-align: center;
}

.progress-line div {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.progress-line strong {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px dashed #cdbca8;
  color: #26211d;
}

.progress-line .done strong {
  background: var(--gold);
  color: #fff;
  border: 0;
}

.progress-line span {
  font-weight: 700;
}

.progress-line small {
  color: var(--muted);
}

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

.task-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.plain-page,
.wizard-page {
  padding: 74px 18px 92px;
  min-height: 100vh;
  background: #fffaf5;
}

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

.page-head h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

.page-head p {
  margin: 0;
  color: var(--muted);
}

.tip-card {
  margin: 22px 0;
}

.list-title {
  margin-top: 30px;
}

.pet-list-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
}

.pet-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pet-line h3 {
  margin: 0;
  font-size: 23px;
}

.pet-line span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f5eadf;
}

.pet-line em {
  margin-left: auto;
  color: var(--gold-dark);
  font-style: normal;
  font-size: 13px;
}

.mini-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 16px 0 8px;
}

.mini-progress div {
  height: 10px;
  border-radius: 999px;
  background: #eee8de;
}

.mini-progress .done,
.mini-progress .active {
  background: var(--gold);
}

.mini-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: #4d4741;
  font-size: 12px;
  text-align: center;
}

.add-dashed {
  width: 100%;
  min-height: 76px;
  border: 1px dashed #d7c6b3;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--gold-dark);
  font-size: 18px;
  font-weight: 760;
}

.wizard-top {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  text-align: center;
}

.wizard-top button {
  background: transparent;
  font-size: 32px;
}

.wizard-top h1 {
  font-size: 18px;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 18px 0 30px;
}

.wizard-steps div {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.wizard-steps strong {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eee7dd;
}

.wizard-steps .active strong,
.wizard-steps .done strong {
  background: var(--gold);
  color: #fff;
}

.wizard-card {
  display: grid;
  gap: 18px;
}

.choice-grid,
.seg-row,
.chip-row,
.body-score {
  display: grid;
  gap: 10px;
}

.choice-grid {
  grid-template-columns: 1fr 1fr;
}

.seg-row {
  grid-template-columns: repeat(2, 1fr);
}

.chip-row,
.body-score {
  grid-template-columns: repeat(3, 1fr);
}

.choice-grid button,
.seg-row button,
.chip-row button,
.body-score button {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: #312b26;
}

.choice-grid button {
  min-height: 112px;
  display: grid;
  place-items: center;
  font-size: 28px;
}

.choice-grid strong {
  display: block;
  font-size: 14px;
}

.choice-grid .selected,
.seg-row .selected,
.chip-row .selected,
.body-score .selected {
  border-color: var(--gold);
  background: #fff8ef;
  color: var(--gold-dark);
}

.photo-grid {
  display: grid;
  gap: 16px;
}

.photo-grid div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
}

.photo-grid button {
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--gold);
}

.photo-grid small {
  display: block;
  color: var(--muted);
}

.photo-grid img {
  width: 100%;
  height: 126px;
  border-radius: 8px;
  object-fit: cover;
}

.photo-grid span {
  grid-column: 2;
  text-align: center;
  color: var(--muted);
  margin-top: -8px;
}

.photo-tips {
  padding: 16px;
  background: #f8f1e8;
  color: #6a625a;
}

.done-card {
  min-height: 360px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.party {
  font-size: 46px;
}

.wizard-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px 0 0;
  background: linear-gradient(180deg, rgba(255, 250, 245, 0), #fffaf5 28%);
}

.wizard-actions .gold-action:only-child {
  grid-column: 1 / -1;
}

.scan-card {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.scan-box {
  height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed #d6c2ad;
  border-radius: 8px;
  background: #fff;
  color: var(--gold);
  font-size: 52px;
}

.report-card span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f4eadf;
  color: var(--gold-dark);
}

.report-card .score {
  margin: 16px 0;
  color: var(--gold-dark);
  font-size: 48px;
  font-weight: 800;
}

.report-card .score small {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.profile-card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
}

.avatar {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f0dfcc;
  color: var(--gold-dark);
  font-size: 30px;
  font-weight: 800;
}

.setting-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.setting-list button {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  background: #fff;
  padding: 0 16px;
  color: #26211d;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 15;
  width: min(100%, 430px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  min-height: 72px;
  padding: 8px 10px 10px;
  border-top: 1px solid rgba(214, 198, 179, 0.72);
  background: rgba(255, 252, 247, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 -12px 28px rgba(69, 45, 24, 0.08);
}

.bottom-nav button {
  min-width: 0;
  min-height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 8px;
  background: transparent;
  color: #56504a;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}

.bottom-nav span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #26211d;
  font-size: 19px;
  line-height: 1;
  background: transparent;
}

.bottom-nav button.active {
  color: var(--gold-dark);
  background: #f6eee4;
}

.bottom-nav button.active span {
  color: #fff;
  background: linear-gradient(180deg, #bd8143, #9d6329);
  box-shadow: 0 6px 14px rgba(157, 99, 41, 0.18);
}

.bottom-nav .scan-nav {
  transform: none;
  min-height: 54px;
  border-radius: 8px;
  background: transparent;
}

.admin-body {
  min-height: 100vh;
  background: #f1f3ef;
}

.admin-login,
.panel,
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.admin-login {
  max-width: 430px;
  margin: 76px auto;
  padding: 26px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: #111918;
  color: #fff;
  padding: 26px 18px;
}

.sidebar .brand {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 7px;
}

.sidebar button {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
  padding: 0 12px;
}

.sidebar button.active {
  background: #fff;
  color: #111918;
}

.admin-main {
  padding: 28px;
}

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

.metric strong {
  display: block;
  margin-top: 8px;
  color: var(--gold-dark);
  font-size: 34px;
}

.toolbar,
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.stack {
  display: grid;
  gap: 12px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
}

th {
  color: var(--muted);
  background: #faf8f3;
}

@media (max-width: 760px) {
  .admin-layout,
  .metric-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .auth-copy h1 {
    font-size: 26px;
  }

  .feature-row {
    gap: 8px;
  }

  .pet-line {
    flex-wrap: wrap;
  }
}

/* Mobile fit pass: keep first-screen content readable on real phone viewports. */
.auth-hero {
  min-height: 390px;
  padding: 30px 16px 14px;
  background: #f3e5d4;
}

.auth-page.register .auth-hero {
  min-height: 410px;
}

.auth-hero img {
  inset: auto 0 0 auto;
  width: 165%;
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: right bottom;
  transform: translateX(8%) scale(0.94);
  transform-origin: right bottom;
}

.auth-page.register .auth-hero img {
  width: 148%;
  transform: translateX(16%) scale(0.9);
  transform-origin: right bottom;
}

.auth-page.login .auth-shade {
  background: none;
}

.auth-page.register .auth-shade {
  background: none;
}

.logo {
  font-size: 24px;
  letter-spacing: 5px;
  line-height: 1;
}

.tagline {
  margin-top: 5px;
  font-size: 11px;
}

.auth-copy h1 {
  margin: 30px 0 9px;
  max-width: 232px;
  font-size: 22px;
  line-height: 1.24;
}

.auth-page.register .auth-copy h1 {
  margin-top: 30px;
}

.auth-copy > p {
  max-width: 224px;
  font-size: 12px;
  line-height: 1.45;
}

.feature-row {
  gap: 7px;
  margin-top: 22px;
  max-width: 222px;
}

.feature-row span,
.feature-list span {
  width: 32px;
  height: 32px;
  font-size: 15px;
}

.feature-row strong,
.feature-list strong {
  font-size: 11.5px;
}

.feature-row small,
.feature-list small {
  font-size: 10px;
  line-height: 1.3;
}

.feature-list {
  gap: 8px;
  margin-top: 14px;
}

.feature-list div {
  grid-template-columns: 34px 1fr;
}

.auth-panel {
  margin: -36px 14px 0;
  padding: 18px 16px;
  border-radius: 26px;
}

.auth-panel.register {
  margin-top: -28px;
}

.field-stack {
  gap: 10px;
}

input,
select,
textarea {
  min-height: 44px;
}

.primary-action,
.gold-action {
  min-height: 48px;
  font-size: 16px;
}

.outline-action {
  margin-top: 10px;
}

.app-hero {
  min-height: 250px;
  padding-top: 58px;
}

.welcome-copy h1 {
  margin-top: 40px;
  font-size: 24px;
}

.content-card {
  margin-top: -18px;
  padding: 22px 16px;
}

.plain-page,
.wizard-page {
  padding-top: 62px;
}

.auth-page.login .logo {
  font-size: 21px;
  letter-spacing: 4.2px;
}

.auth-page.login .tagline {
  font-size: 10px;
}

.auth-page.login .auth-copy h1 {
  margin-top: 24px;
  max-width: 210px;
  font-size: 20px;
  line-height: 1.22;
}

.auth-page.login .auth-copy > p {
  max-width: 202px;
  font-size: 11.5px;
  line-height: 1.4;
}

.auth-page.login .feature-list {
  gap: 8px;
  margin-top: 12px;
}

.auth-page.login .feature-list div {
  grid-template-columns: 30px 1fr;
}

.auth-page.login .feature-list span {
  width: 30px;
  height: 30px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.28);
}

.auth-page.login .feature-list strong {
  font-size: 11px;
}

.auth-page.login .feature-list small {
  font-size: 9.8px;
  line-height: 1.3;
}

@media (max-width: 390px) {
  .auth-hero {
    min-height: 360px;
    padding: 28px 14px 12px;
  }

  .auth-page.register .auth-hero {
    min-height: 390px;
  }

  .auth-hero img {
    width: 176%;
    transform: translateX(11%) scale(0.92);
  }

  .auth-page.register .auth-hero img {
    width: 158%;
    transform: translateX(18%) scale(0.88);
  }

  .auth-copy h1 {
    margin-top: 22px;
    max-width: 198px;
    font-size: 19px;
  }

  .auth-page.register .auth-copy h1 {
    margin-top: 22px;
  }

  .auth-copy > p {
    max-width: 190px;
    font-size: 11px;
    line-height: 1.4;
  }

  .feature-list {
    gap: 6px;
    margin-top: 9px;
  }

  .feature-row {
    gap: 6px;
    margin-top: 18px;
    max-width: 198px;
  }

  .auth-panel {
    margin-left: 12px;
    margin-right: 12px;
    margin-top: -10px;
    padding: 16px 14px;
  }

  label {
    font-size: 12px;
  }

  .auth-page.login .logo {
    font-size: 19px;
    letter-spacing: 3.8px;
  }

  .auth-page.login .tagline {
    font-size: 9.5px;
  }

  .auth-page.login .auth-copy h1 {
    margin-top: 18px;
    max-width: 188px;
    font-size: 18px;
  }

  .auth-page.login .auth-copy > p {
    max-width: 180px;
    font-size: 10.5px;
  }

  .auth-page.login .feature-list {
    gap: 7px;
    margin-top: 9px;
  }

  .auth-page.login .feature-list div {
    grid-template-columns: 28px 1fr;
  }

  .auth-page.login .feature-list span {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
}

/* Member H5 polish pass: consistent rhythm for logged-in mobile pages. */
.app-page {
  padding-bottom: 86px;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.94) 0%, rgba(250, 246, 239, 0.96) 46%, #f5eee5 100%);
}

.app-hero {
  min-height: 238px;
  padding: 28px 18px 0;
}

.app-hero img {
  object-position: 73% center;
}

.app-hero::after {
  background:
    linear-gradient(90deg, rgba(255, 250, 245, 0.94) 0%, rgba(255, 250, 245, 0.58) 42%, rgba(255, 250, 245, 0.08) 100%),
    linear-gradient(180deg, rgba(255, 250, 245, 0) 55%, #fffaf5 100%);
}

.app-top .logo {
  font-size: 21px;
  letter-spacing: 4.8px;
}

.app-top .tagline {
  margin-top: 4px;
  font-size: 10.5px;
}

.round-icon {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(214, 198, 179, 0.7);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 18px rgba(55, 39, 25, 0.08);
  color: #2d2925;
  font-size: 16px;
}

.welcome-copy h1 {
  margin: 34px 0 7px;
  max-width: 210px;
  font-size: 23px;
  line-height: 1.24;
  letter-spacing: 0;
}

.welcome-copy p {
  max-width: 214px;
  font-size: 13px;
  line-height: 1.5;
}

.content-card {
  margin: -14px 14px 0;
  padding: 18px 16px;
  border: 1px solid rgba(226, 214, 199, 0.84);
  background: rgba(255, 254, 251, 0.96);
  box-shadow: 0 12px 34px rgba(74, 50, 28, 0.08);
}

.content-card h2,
.plain-page h1,
.wizard-page h1,
.wizard-card h2 {
  letter-spacing: 0;
}

.home-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.28;
}

.home-card > p {
  max-width: 260px;
  margin: 8px auto 0;
  color: #69615a;
  font-size: 13px;
  line-height: 1.55;
}

.empty-illustration {
  width: 66px;
  height: 66px;
  margin: 0 auto 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f5e8db, #efe0cf);
  font-size: 26px;
}

.home-card .gold-action {
  margin-top: 18px;
}

.start-steps {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(234, 223, 210, 0.92);
}

.start-steps h3 {
  margin: 0;
  color: #2d2824;
  font-size: 14px;
}

.step-grid {
  gap: 8px;
  margin-top: 14px;
}

.step-grid div {
  gap: 6px;
}

.step-grid span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 16px;
}

.step-grid strong {
  min-height: 30px;
  display: grid;
  align-items: end;
  color: #2d2925;
  font-size: 12px;
  line-height: 1.25;
}

.step-grid small {
  min-height: 28px;
  font-size: 10px;
  line-height: 1.35;
}

.plain-page,
.wizard-page {
  padding: 30px 16px 90px;
  background:
    radial-gradient(circle at 82% 0%, rgba(244, 232, 218, 0.68), transparent 34%),
    linear-gradient(180deg, #fffbf6 0%, #f7f0e8 100%);
}

.page-head {
  align-items: center;
  min-height: 44px;
  margin-bottom: 16px;
}

.page-head h1 {
  margin-bottom: 6px;
  font-size: 25px;
  line-height: 1.16;
}

.page-head p {
  font-size: 13px;
  line-height: 1.5;
}

.outline-gold {
  min-height: 38px;
  padding: 0 12px;
  border-color: #d9c8b5;
  background: rgba(255, 255, 255, 0.76);
  color: var(--gold-dark);
  font-size: 13px;
  white-space: nowrap;
}

.tip-card,
.empty-list-card,
.active-pet-card,
.cycle-card,
.task-card,
.flow-card,
.pet-list-card,
.scan-card,
.profile-card,
.report-card,
.wizard-card {
  border: 1px solid rgba(226, 214, 199, 0.86);
  border-radius: 8px;
  background: rgba(255, 254, 251, 0.94);
  box-shadow: 0 10px 28px rgba(74, 50, 28, 0.07);
}

.tip-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  margin: 16px 0 20px;
  padding: 14px;
}

.tip-card span,
.empty-list-card > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f4eadf;
  color: var(--gold-dark);
  font-weight: 800;
}

.tip-card p,
.empty-list-card p {
  margin: 4px 0 0;
  color: #6c655e;
  font-size: 13px;
  line-height: 1.55;
}

.tip-card strong,
.empty-list-card strong {
  color: #2f2a25;
  font-size: 15px;
}

.empty-list-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  margin: 12px 0 14px;
  padding: 16px;
}

.list-title {
  margin: 18px 0 12px;
  font-size: 18px;
  line-height: 1.25;
}

.list-title small {
  color: #8b8178;
  font-size: 14px;
  font-weight: 500;
}

.pet-list-card {
  grid-template-columns: 62px 1fr;
  gap: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.active-pet-card {
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  padding: 14px;
}

.active-pet-card img,
.pet-list-card img {
  width: 58px;
  height: 58px;
}

.active-pet-card h2,
.pet-line h3 {
  font-size: 19px;
  line-height: 1.18;
}

.active-pet-card p,
.pet-list-main > p {
  margin-top: 5px;
  color: #6c655e;
  font-size: 13px;
}

.active-pet-card button {
  min-height: 34px;
  padding: 0 10px;
  color: var(--gold-dark);
  font-size: 12px;
}

.pet-line {
  gap: 6px;
}

.pet-line span {
  padding: 3px 7px;
  color: #6f563d;
  font-size: 12px;
}

.pet-line em {
  font-size: 12px;
  white-space: nowrap;
}

.mini-progress {
  gap: 7px;
  margin: 13px 0 7px;
}

.mini-progress div {
  height: 7px;
}

.mini-labels {
  color: #5e5750;
  font-size: 10.5px;
  line-height: 1.25;
}

.add-dashed {
  min-height: 64px;
  margin-top: 6px;
  border-color: #d7c5b0;
  background: rgba(255, 255, 255, 0.62);
  font-size: 15px;
}

.cycle-card,
.task-card,
.flow-card {
  padding: 14px;
  margin-bottom: 12px;
}

.section-title h3,
.task-card h3,
.flow-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.progress-line {
  margin-top: 16px;
}

.progress-line strong {
  width: 38px;
  height: 38px;
  font-size: 13px;
}

.progress-line span {
  font-size: 12px;
}

.progress-line small {
  font-size: 11px;
}

.task-card {
  gap: 12px;
}

.task-card p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
}

.gold-action.small {
  min-width: 74px;
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

.flow-icons {
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 14px;
}

.flow-icons span {
  width: 34px;
  height: 34px;
  font-size: 14px;
}

.flow-icons strong {
  font-size: 10px;
  line-height: 1.3;
}

.wizard-top {
  min-height: 42px;
}

.wizard-top button {
  font-size: 24px;
}

.wizard-top h1 {
  margin: 0;
  font-size: 17px;
}

.wizard-steps {
  margin: 16px 0 18px;
  gap: 6px;
}

.wizard-steps div {
  gap: 6px;
  font-size: 11px;
}

.wizard-card {
  gap: 14px;
  padding: 16px;
}

.wizard-card h2 {
  margin: 0;
  font-size: 18px;
}

.wizard-card > p {
  margin: 0;
  color: #6c655e;
  font-size: 13px;
  line-height: 1.55;
}

.choice-grid button {
  min-height: 92px;
}

.seg-row button,
.chip-row button,
.body-score button {
  min-height: 42px;
  padding: 0 8px;
  font-size: 13px;
}

.photo-grid {
  gap: 12px;
}

.photo-grid div {
  gap: 10px;
}

.photo-grid button,
.photo-grid img {
  min-height: 110px;
  height: 110px;
}

.photo-tips {
  border-radius: 8px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.55;
}

.done-card {
  min-height: 300px;
}

.wizard-actions {
  gap: 10px;
  padding: 14px 0 0;
}

.wizard-actions .soft-action,
.wizard-actions .gold-action {
  min-height: 46px;
}

.scan-card {
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
}

.scan-box {
  height: 120px;
  border-color: #d8c4ad;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 240, 230, 0.8));
  font-size: 38px;
}

.report-card {
  padding: 16px;
  margin-top: 14px;
}

.report-card h2 {
  margin: 12px 0 0;
  font-size: 18px;
}

.report-card .score {
  margin: 12px 0;
  font-size: 40px;
}

.report-card p {
  margin: 0;
  color: #6c655e;
  font-size: 13px;
  line-height: 1.6;
}

.profile-card {
  gap: 7px;
  padding: 22px 16px;
}

.profile-card h1 {
  margin: 4px 0 0;
  font-size: 21px;
}

.profile-card p {
  margin: 0;
  color: #6c655e;
  font-size: 13px;
}

.profile-card strong {
  margin-top: 4px;
  color: var(--gold-dark);
  font-size: 14px;
}

.avatar {
  width: 62px;
  height: 62px;
  font-size: 25px;
}

.setting-list {
  gap: 9px;
  margin-top: 14px;
}

.setting-list button {
  min-height: 50px;
  border: 1px solid rgba(226, 214, 199, 0.86);
  background: rgba(255, 254, 251, 0.9);
  box-shadow: 0 8px 22px rgba(74, 50, 28, 0.05);
  font-size: 14px;
}

.bottom-nav {
  min-height: 68px;
  padding: 7px 8px 9px;
  border-top-color: rgba(214, 198, 179, 0.82);
  background: rgba(255, 252, 247, 0.97);
}

.bottom-nav button,
.bottom-nav .scan-nav {
  min-height: 50px;
  gap: 3px;
  border-radius: 8px;
  font-size: 10.5px;
  letter-spacing: 0;
}

.bottom-nav span {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 17px;
}

.bottom-nav button.active {
  background: #f3e8dc;
  box-shadow: inset 0 0 0 1px rgba(198, 174, 149, 0.26);
}

@media (max-width: 374px) {
  .content-card {
    margin-left: 12px;
    margin-right: 12px;
  }

  .page-head {
    align-items: flex-start;
  }

  .page-head h1 {
    font-size: 23px;
  }

  .outline-gold {
    padding: 0 10px;
    font-size: 12px;
  }

  .pet-list-card {
    grid-template-columns: 54px 1fr;
  }

  .active-pet-card {
    grid-template-columns: 54px 1fr;
  }

  .active-pet-card button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .flow-icons strong {
    font-size: 9.5px;
  }
}

/* Platform visual upgrade: premium member H5 + PC console polish. */
.platform-visual {
  position: relative;
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid rgba(226, 214, 199, 0.92);
  border-radius: 8px;
  background: #f6eee4;
  box-shadow: 0 12px 28px rgba(74, 50, 28, 0.08);
}

.platform-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.platform-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(180deg, rgba(255, 250, 245, 0), rgba(255, 250, 245, 0.92));
  pointer-events: none;
}

.platform-visual-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  display: inline-grid;
  gap: 2px;
  min-width: 96px;
  border: 1px solid rgba(214, 198, 179, 0.74);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.86);
  padding: 8px 10px;
  backdrop-filter: blur(10px);
}

.platform-visual-label span,
.home-platform-grid small {
  color: #7b7066;
  font-size: 10px;
  line-height: 1;
}

.platform-visual-label strong,
.home-platform-grid strong {
  color: #2c2722;
  font-size: 15px;
  line-height: 1.15;
}

.home-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(234, 223, 210, 0.92);
}

.home-platform-grid div {
  min-width: 0;
  display: grid;
  gap: 6px;
  align-content: center;
  min-height: 58px;
  border: 1px solid rgba(226, 214, 199, 0.82);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf9, #f7efe5);
  padding: 10px 9px;
  text-align: center;
}

.home-platform-grid strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-list-card--visual {
  align-items: start;
  overflow: hidden;
  padding: 12px;
}

.empty-list-card--visual img {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  margin-bottom: 2px;
}

.empty-list-card--visual > span {
  margin-top: 2px;
}

.gold-action,
.primary-action,
.btn {
  box-shadow: 0 10px 20px rgba(139, 83, 34, 0.12);
}

.outline-gold,
.soft-action,
.setting-list button,
.active-pet-card button {
  box-shadow: 0 6px 16px rgba(74, 50, 28, 0.04);
}

.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 6%, rgba(221, 205, 184, 0.55), transparent 34%),
    linear-gradient(135deg, #f8f4ee 0%, #eee6da 100%);
  color: #181512;
}

.admin-login {
  width: min(940px, calc(100% - 36px));
  max-width: 940px;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 16px;
  align-items: stretch;
  margin: 42px auto;
  padding: 14px;
  border-color: rgba(226, 214, 199, 0.88);
  background: rgba(255, 253, 249, 0.88);
  box-shadow: 0 24px 60px rgba(74, 50, 28, 0.12);
}

.admin-login-copy {
  display: grid;
  align-content: center;
  padding: 30px 24px;
}

.admin-login-copy .brand,
.sidebar .brand {
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
}

.admin-login-copy h2 {
  margin: 16px 0 8px;
  font-size: 30px;
  line-height: 1.12;
}

.admin-login-sub {
  margin: 0 0 22px;
  color: #6e665f;
  line-height: 1.7;
}

.admin-login-visual {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border-radius: 8px;
  background: #f4eadf;
}

.admin-login-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.admin-layout {
  grid-template-columns: 260px minmax(0, 1fr);
  background: transparent;
}

.sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(29, 24, 21, 0.96), rgba(50, 36, 26, 0.98)),
    #1e1814;
  padding: 28px 18px;
}

.sidebar .meta {
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 22px;
}

.sidebar button {
  min-height: 44px;
  margin-top: 7px;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.sidebar button.active {
  background: rgba(255, 253, 249, 0.94);
  color: #211a15;
}

.sidebar button:not(.active):hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.admin-main {
  padding: 28px 30px 42px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
  border: 1px solid rgba(226, 214, 199, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 253, 249, 0.96), rgba(248, 239, 228, 0.88)),
    #fffdf9;
  box-shadow: 0 14px 36px rgba(74, 50, 28, 0.07);
  padding: 22px;
}

.admin-topbar h1 {
  margin: 4px 0 8px;
  font-size: 28px;
  line-height: 1.15;
}

.admin-topbar p {
  margin: 0;
  color: #6e665f;
}

.admin-topbar-card {
  min-width: 126px;
  display: grid;
  justify-items: end;
  gap: 6px;
  border-left: 1px solid rgba(214, 198, 179, 0.86);
  padding-left: 22px;
}

.admin-topbar-card span {
  color: #7b7066;
  font-size: 12px;
}

.admin-topbar-card strong {
  color: var(--gold-dark);
  font-size: 26px;
}

.panel,
.card {
  border-color: rgba(226, 214, 199, 0.88);
  background: rgba(255, 253, 249, 0.94);
  box-shadow: 0 12px 32px rgba(74, 50, 28, 0.07);
}

.panel {
  padding: 22px;
  overflow: auto;
}

.panel h2,
.panel h3 {
  margin-top: 0;
}

.metric-grid {
  gap: 12px;
}

.metric {
  min-height: 118px;
  display: grid;
  align-content: space-between;
}

.metric strong {
  font-size: 36px;
  line-height: 1;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 8px;
  background: #f3e8dc;
  color: var(--gold-dark);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

table {
  min-width: 780px;
}

th {
  font-size: 12px;
  font-weight: 700;
}

td {
  color: #342e28;
}

.table-empty,
.admin-empty {
  color: #706861;
  text-align: center;
}

.admin-empty {
  border: 1px dashed #d9c8b5;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  padding: 26px;
}

.admin-empty strong {
  display: block;
  color: #2f2a25;
  font-size: 18px;
}

.admin-empty p {
  margin: 8px 0 0;
}

@media (max-width: 860px) {
  .admin-login,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-login {
    min-height: 0;
  }

  .admin-login-visual {
    min-height: 260px;
  }

  .sidebar {
    position: relative;
    min-height: auto;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-topbar-card {
    justify-items: start;
    border-left: 0;
    border-top: 1px solid rgba(214, 198, 179, 0.86);
    width: 100%;
    padding: 14px 0 0;
  }
}

/* Design draft alignment: restore the member H5 to the supplied mobile mockups. */
.app-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 90% 6%, rgba(255, 255, 255, 0.9), rgba(255, 250, 245, 0) 28%),
    linear-gradient(180deg, #fffaf6 0%, #f8f2ec 100%);
  padding-bottom: 102px;
}

.app-hero {
  min-height: 316px;
  padding: 32px 20px 0;
  border-radius: 0;
}

.app-hero img {
  height: 100%;
  object-position: 68% bottom;
}

.app-hero::after {
  background:
    linear-gradient(90deg, rgba(255, 250, 245, 0.98) 0%, rgba(255, 250, 245, 0.82) 36%, rgba(255, 250, 245, 0.18) 66%, rgba(255, 250, 245, 0) 100%),
    linear-gradient(180deg, rgba(255, 250, 245, 0) 66%, #fffaf6 100%);
}

.app-top {
  align-items: flex-start;
}

.app-top .logo {
  color: #111;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 6px;
  line-height: 1;
}

.app-top .tagline {
  margin-top: 5px;
  color: #171514;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.round-icon {
  width: 38px;
  height: 38px;
  border: 0;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 20px rgba(63, 43, 26, 0.1);
  color: #141210;
}

.welcome-copy h1 {
  margin-top: 54px;
  max-width: 170px;
  color: #161310;
  font-size: 24px;
  font-weight: 760;
  line-height: 1.22;
}

.welcome-copy h1 span {
  color: #be8b5a;
  font-size: 20px;
}

.welcome-copy p {
  max-width: 190px;
  color: #6d635b;
  font-size: 14px;
  line-height: 1.5;
}

.content-card.home-card {
  margin: -30px 16px 0;
  padding: 26px 18px 20px;
  border: 1px solid rgba(238, 226, 214, 0.9);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 44px rgba(88, 61, 36, 0.08);
  text-align: center;
}

.draft-folder-icon {
  position: relative;
  width: 108px;
  height: 74px;
  margin: 4px auto 18px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f2dfca, #e7c9ab);
  box-shadow: 0 14px 22px rgba(160, 112, 68, 0.12);
}

.draft-folder-icon::before {
  content: "";
  position: absolute;
  left: 16px;
  top: -12px;
  width: 45px;
  height: 18px;
  border-radius: 8px 8px 0 0;
  background: #efd8bf;
}

.draft-folder-icon::after {
  content: "";
  position: absolute;
  inset: -22px -26px;
  background:
    radial-gradient(circle at 18% 46%, rgba(190, 139, 90, 0.16) 0 6px, transparent 7px),
    radial-gradient(circle at 82% 22%, rgba(190, 139, 90, 0.14) 0 5px, transparent 6px),
    radial-gradient(circle at 78% 70%, rgba(190, 139, 90, 0.11) 0 4px, transparent 5px);
  pointer-events: none;
}

.draft-folder-icon span {
  position: relative;
  z-index: 1;
  display: grid;
  height: 100%;
  place-items: center;
  color: #a46b33;
  font-size: 28px;
  line-height: 1;
}

.home-card h2 {
  margin: 0;
  color: #15120f;
  font-size: 21px;
  font-weight: 760;
  line-height: 1.25;
}

.home-card > p {
  max-width: 290px;
  margin: 10px auto 0;
  color: #706861;
  font-size: 14px;
  line-height: 1.55;
}

.home-card .gold-action {
  width: min(100%, 248px);
  min-height: 48px;
  margin-top: 20px;
  border-radius: 8px;
  background: linear-gradient(180deg, #c88645, #a86628);
  box-shadow: 0 12px 26px rgba(166, 102, 40, 0.2);
  font-size: 16px;
  font-weight: 760;
}

.home-card .start-steps {
  margin: 26px -18px -20px;
  padding: 24px 16px 20px;
  border-top: 12px solid #fffaf6;
  text-align: center;
}

.start-steps h3 {
  display: inline-grid;
  grid-template-columns: 28px auto 28px;
  gap: 10px;
  align-items: center;
  color: #1e1a16;
  font-size: 16px;
  font-weight: 760;
}

.start-steps h3::before,
.start-steps h3::after {
  content: "";
  height: 1px;
  background: #d7b994;
}

.step-grid {
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.step-grid::before {
  content: "";
  position: absolute;
  left: 19%;
  right: 19%;
  top: 27px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d2b28b 12%, #d2b28b 88%, transparent);
}

.step-grid div {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.step-grid span {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(210, 178, 139, 0.34);
  background: #f6ede5;
  color: #ac7137;
  box-shadow: 0 8px 18px rgba(110, 70, 32, 0.06);
}

.step-grid strong {
  min-height: 0;
  color: #191511;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
}

.step-grid small {
  color: #756c65;
  font-size: 11.5px;
  line-height: 1.45;
}

.active-pet-card,
.cycle-card,
.task-card,
.flow-card,
.tip-card,
.empty-list-card,
.pet-list-card,
.wizard-card,
.scan-card,
.profile-card,
.report-card {
  border: 1px solid rgba(240, 229, 218, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(83, 58, 34, 0.07);
}

.active-pet-card {
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  padding: 16px;
  text-align: left;
}

.active-pet-card img,
.pet-list-card img {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(235, 223, 211, 0.9);
  box-shadow: 0 8px 18px rgba(65, 44, 25, 0.06);
}

.active-pet-card h2,
.pet-line h3 {
  color: #12100e;
  font-size: 22px;
  font-weight: 760;
}

.active-pet-card p,
.pet-list-main > p {
  color: #68605a;
  font-size: 14px;
}

.active-pet-card button {
  min-height: 36px;
  border: 1px solid rgba(218, 200, 181, 0.9);
  border-radius: 8px;
  background: #fffdf9;
  color: #171310;
  font-size: 12px;
  font-weight: 760;
}

.cycle-card,
.task-card,
.flow-card {
  margin-top: 14px;
  margin-bottom: 0;
  padding: 18px 16px;
  text-align: left;
}

.section-title {
  align-items: start;
}

.section-title h3,
.task-card h3,
.flow-card h3 {
  color: #171310;
  font-size: 17px;
  font-weight: 760;
}

.section-title small {
  color: #655d57;
  font-size: 13px;
}

.progress-line {
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 22px;
}

.progress-line::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 20px;
  border-top: 1px dashed #d2b28b;
}

.progress-line div {
  position: relative;
  z-index: 1;
}

.progress-line strong {
  width: 42px;
  height: 42px;
  border: 1px dashed #d2b28b;
  background: #fffdfa;
  color: #181512;
  font-size: 15px;
}

.progress-line .done strong {
  border: 0;
  background: linear-gradient(180deg, #c88645, #a86628);
  color: #fff;
  box-shadow: 0 8px 18px rgba(166, 102, 40, 0.16);
}

.progress-line span {
  margin-top: 9px;
  color: #191511;
  font-size: 12px;
  font-weight: 650;
}

.progress-line small {
  color: #7a716a;
  font-size: 11px;
}

.task-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.task-card p {
  color: #736a62;
}

.task-card p strong {
  color: #171310;
  font-size: 15px;
}

.gold-action.small {
  min-width: 82px;
  min-height: 40px;
}

.flow-icons {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.flow-icons span {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(214, 198, 179, 0.45);
  box-shadow: 0 8px 18px rgba(83, 58, 34, 0.06);
  font-size: 14px;
}

.flow-icons div:nth-child(1) span {
  background: #eaf8ef;
  color: #259754;
}

.flow-icons div:nth-child(2) span {
  background: #eef9ee;
  color: #2a9b58;
}

.flow-icons div:nth-child(3) span {
  background: #fff3e7;
  color: #b56c2d;
}

.flow-icons div:nth-child(4) span {
  background: #edf5ff;
  color: #2676d2;
}

.flow-icons div:nth-child(5) span {
  background: #f4efff;
  color: #8350bb;
}

.flow-icons strong {
  color: #171310;
  font-size: 11px;
  font-weight: 730;
}

.plain-page,
.wizard-page {
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 16px 104px;
  background:
    radial-gradient(circle at 92% 4%, rgba(255, 255, 255, 0.96), rgba(255, 250, 245, 0) 30%),
    linear-gradient(180deg, #fffaf6 0%, #f8f2ec 100%);
}

.page-head {
  align-items: flex-start;
  margin-bottom: 20px;
}

.page-head h1 {
  margin: 0 0 7px;
  color: #111;
  font-size: 30px;
  font-weight: 780;
  line-height: 1.15;
}

.page-head p {
  margin: 0;
  color: #6d645c;
  font-size: 15px;
}

.outline-gold {
  min-height: 42px;
  border: 1px solid #d7b994;
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.78);
  color: #9f642a;
  font-size: 15px;
  font-weight: 750;
}

.tip-card {
  grid-template-columns: 56px 1fr auto;
  margin: 0 0 24px;
  padding: 16px;
  background: linear-gradient(90deg, #fff6ed, #fffaf6);
}

.tip-card span,
.empty-list-card > span {
  width: 56px;
  height: 56px;
  background: #f2e4d4;
  color: #b07135;
  font-size: 23px;
}

.tip-card strong,
.empty-list-card strong {
  color: #181512;
  font-size: 17px;
}

.tip-card p,
.empty-list-card p {
  color: #5f5852;
  font-size: 14px;
}

.empty-list-card--visual {
  grid-template-columns: 56px 1fr;
  padding: 16px;
  align-items: center;
}

.list-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  color: #12100e;
  font-size: 21px;
  font-weight: 760;
}

.pet-list-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  margin-bottom: 10px;
  padding: 16px;
}

.pet-list-card img {
  width: 64px;
  height: 64px;
}

.pet-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.pet-line span {
  justify-self: start;
  border-radius: 8px;
  background: #f4eadf;
  color: #6f563d;
  font-size: 12px;
}

.pet-line em {
  color: #9d6329;
  font-style: normal;
  font-size: 14px;
  font-weight: 650;
}

.mini-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 18px 0 8px;
}

.mini-progress::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 10px;
  height: 1px;
  background: linear-gradient(90deg, #c88645 0 42%, #dfd4c9 42% 100%);
}

.mini-progress div {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 22px;
  height: 22px;
  border: 1px solid #ddd2c8;
  border-radius: 50%;
  background: #fffdf9;
}

.mini-progress div.done,
.mini-progress div.active {
  border-color: #a86628;
  background: linear-gradient(180deg, #c88645, #a86628);
}

.mini-progress div.done::after {
  content: "✓";
  display: grid;
  height: 100%;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.mini-progress div.active::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin: 7px auto 0;
  border-radius: 50%;
  background: #fff;
}

.mini-labels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  color: #1f1a16;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}

.add-dashed {
  min-height: 72px;
  border: 1px dashed #d7b994;
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.72);
  color: #9f642a;
  font-size: 16px;
  font-weight: 760;
}

.wizard-top {
  grid-template-columns: 44px 1fr 44px;
  min-height: 44px;
  margin-bottom: 14px;
}

.wizard-top button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: transparent;
  color: #111;
  font-size: 28px;
}

.wizard-top h1 {
  color: #111;
  font-size: 18px;
  font-weight: 760;
}

.wizard-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 10px 0 18px;
}

.wizard-steps::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 13px;
  height: 1px;
  background: #eadfd2;
}

.wizard-steps div {
  position: relative;
  z-index: 1;
  color: #7b7168;
  font-size: 11px;
  font-weight: 650;
}

.wizard-steps strong {
  border: 1px solid rgba(214, 198, 179, 0.55);
  background: #f7efe7;
  color: #4a413a;
}

.wizard-steps .active strong,
.wizard-steps .done strong {
  border-color: #a86628;
  background: linear-gradient(180deg, #c88645, #a86628);
  color: #fff;
}

.wizard-steps .active span {
  color: #171310;
}

.wizard-card {
  gap: 16px;
  padding: 18px 16px;
}

.wizard-card h2 {
  color: #171310;
  font-size: 18px;
  font-weight: 760;
}

.wizard-card > p {
  color: #746a62;
  font-size: 13px;
  line-height: 1.55;
}

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

.choice-grid button {
  min-height: 110px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fbf6f0;
  color: #1b1713;
  box-shadow: inset 0 0 0 1px rgba(235, 223, 211, 0.5);
}

.choice-grid button.selected,
.seg-row button.selected,
.chip-row button.selected,
.body-score button.selected {
  border-color: #b87935;
  background: #fffaf5;
  color: #9d6329;
  box-shadow: inset 0 0 0 1px rgba(184, 121, 53, 0.06);
}

.wizard-card label {
  color: #181512;
  font-size: 14px;
  font-weight: 760;
}

.wizard-card input,
.wizard-card textarea,
.wizard-card select {
  border-color: rgba(232, 219, 206, 0.94);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.seg-row,
.body-score {
  gap: 12px;
}

.seg-row button,
.chip-row button,
.body-score button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #faf5ef;
  color: #2a2520;
  font-weight: 650;
}

.chip-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.body-score {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.photo-grid {
  gap: 12px;
}

.photo-grid div {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.photo-grid button,
.photo-grid img {
  min-height: 116px;
  height: 116px;
  border-radius: 8px;
}

.photo-grid button {
  border: 1px solid #eadfd2;
  background: #fffaf5;
  color: #b87935;
}

.photo-tips {
  border: 0;
  background: linear-gradient(90deg, #fff6ed, #fffaf6);
  color: #6a625b;
}

.done-card {
  min-height: 260px;
  justify-items: center;
  text-align: center;
}

.wizard-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px -16px -104px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(248, 242, 236, 0), rgba(248, 242, 236, 0.98) 34%);
}

.wizard-actions .gold-action,
.wizard-actions .soft-action {
  min-height: 48px;
  border-radius: 8px;
  font-weight: 760;
}

.wizard-actions .soft-action {
  background: #f2e8dd;
  color: #9d6329;
}

.bottom-nav {
  bottom: max(8px, env(safe-area-inset-bottom));
  width: min(calc(100% - 24px), 406px);
  min-height: 70px;
  padding: 8px 10px;
  border: 1px solid rgba(235, 223, 211, 0.92);
  border-radius: 8px;
  background: rgba(255, 254, 251, 0.94);
  box-shadow: 0 -8px 28px rgba(83, 58, 34, 0.08);
}

.bottom-nav button {
  min-height: 54px;
  border-radius: 8px;
  background: transparent;
  color: #1c1815;
  font-size: 11px;
  font-weight: 720;
}

.bottom-nav span {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #12100e;
  font-size: 19px;
  background: transparent;
}

.bottom-nav button.active {
  background: #f6ede5;
  color: #9d6329;
}

.bottom-nav button.active span {
  background: transparent;
  color: #9d6329;
  box-shadow: none;
}

.bottom-nav .scan-nav {
  min-height: 64px;
  transform: translateY(-16px);
  border-radius: 999px;
  background: linear-gradient(180deg, #f8efe6, #efe0d0);
  box-shadow: 0 10px 28px rgba(99, 67, 38, 0.14);
}

.bottom-nav .scan-nav span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fffaf6;
  color: #171310;
  box-shadow: inset 0 0 0 1px rgba(214, 198, 179, 0.66);
}

@media (max-width: 374px) {
  .app-hero {
    min-height: 296px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .app-top .logo {
    font-size: 24px;
    letter-spacing: 5px;
  }

  .welcome-copy h1 {
    margin-top: 46px;
    font-size: 22px;
  }

  .plain-page,
  .wizard-page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .pet-list-card {
    grid-template-columns: 60px 1fr;
    gap: 10px;
    padding: 14px;
  }

  .pet-list-card img {
    width: 56px;
    height: 56px;
  }

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

  .pet-line span {
    grid-row: 2;
  }

  .pet-line em {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 12px;
  }

  .bottom-nav {
    width: calc(100% - 16px);
    padding-left: 6px;
    padding-right: 6px;
  }
}

.home-card:has(.active-pet-card) {
  margin: -18px 16px 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.wizard-actions .gold-action:only-child {
  grid-column: 1 / -1;
}

.coat-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pet-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 5px;
}

.pet-list-meta p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #68605a;
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pet-list-meta button {
  flex: 0 0 auto;
  min-height: 28px;
  border: 1px solid rgba(215, 185, 148, 0.72);
  border-radius: 8px;
  background: #fffaf5;
  color: #9d6329;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 720;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-items: end;
  background: rgba(27, 20, 14, 0.28);
  padding: 18px 12px calc(18px + env(safe-area-inset-bottom));
}

.age-modal {
  width: min(100%, 406px);
  margin: 0 auto;
  display: grid;
  gap: 16px;
  border: 1px solid rgba(240, 229, 218, 0.94);
  border-radius: 8px;
  background: rgba(255, 254, 251, 0.98);
  box-shadow: 0 -18px 46px rgba(40, 27, 15, 0.18);
  padding: 18px 16px 16px;
}

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

.modal-head h2 {
  margin: 0;
  color: #171310;
  font-size: 20px;
  line-height: 1.2;
}

.modal-head p {
  margin: 6px 0 0;
  color: #766d65;
  font-size: 13px;
}

.modal-head button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: #f7efe7;
  color: #3c332b;
  font-size: 22px;
  line-height: 1;
}

.age-modal label {
  color: #171310;
  font-size: 14px;
  font-weight: 760;
}

.age-modal input:disabled {
  background: #f5efe8;
  color: #9b9188;
}

.modal-note {
  margin: -4px 0 0;
  color: #776e66;
  font-size: 12px;
  line-height: 1.55;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal-actions .soft-action,
.modal-actions .gold-action {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 760;
}

@media (max-width: 374px) {
  .pet-list-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}
