:root {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #57453d;
  background: #fff7ed;
  --accent-mist-blue: #dcecf0;
  --accent-mint: #e2eee6;
  --accent-apricot: #f8ead7;
  --accent-peach: #f4ded8;
  --accent-sage: #c6d0b4;
  --accent-olive: #657166;
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 20%, #ffe5d0 0 8%, transparent 9%),
    radial-gradient(circle at 85% 80%, #f9dcc4 0 10%, transparent 11%),
    #fff7ed;
}

.card {
  width: min(100%, 620px);
  padding: 64px 32px;
  text-align: center;
  background: rgb(255 255 255 / 88%);
  border: 1px solid #f3d8c2;
  border-radius: 28px;
  box-shadow: 0 18px 50px rgb(126 83 57 / 12%);
}

.pet-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  font-size: 52px;
  background: #fff0df;
  border-radius: 50%;
}

h1 {
  margin: 0;
  color: #704c3d;
  font-size: clamp(30px, 7vw, 48px);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

p {
  margin: 18px 0 36px;
  color: #8a6b5d;
  font-size: clamp(17px, 3vw, 20px);
}

.main-button,
button {
  width: min(100%, 320px);
  min-height: 58px;
  padding: 15px 24px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: #df8467;
  box-shadow: 0 9px 20px rgb(223 132 103 / 30%);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.main-button {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.main-button:hover,
button:hover {
  background: #d57558;
  transform: translateY(-2px);
}

.main-button:active,
button:active {
  transform: translateY(1px);
}

.main-button:focus-visible,
button:focus-visible {
  outline: 4px solid #f6c9b8;
  outline-offset: 4px;
}

.choice-list {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.home-body { display: block; padding: 84px 24px 40px; }
.home-shell { width: min(100%, 880px); margin: auto; }
.brand-hero { text-align: center; }
.brand-logo { display: block; width: min(100%, 390px); height: auto; max-height: 390px; margin: 0 auto; object-fit: contain; }
.brand-hero p { margin: 14px 0 34px; font-size: clamp(16px, 2.5vw, 19px); }
.home-functions { padding: clamp(24px, 4vw, 38px); background: rgb(255 255 255 / 88%); border: 1px solid #f3d8c2; border-radius: 24px; }
.home-functions h2 { margin: 0 0 22px; color: #704c3d; text-align: center; font-size: clamp(24px, 4vw, 32px); }
.function-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.function-card { min-height: 175px; display: flex; flex-direction: column; align-items: flex-start; padding: 22px; color: inherit; text-align: left; text-decoration: none; background: #fffaf5; border: 1px solid #f2ddce; border-radius: 18px; }
.function-card:hover { border-color: #dfaa92; }
.function-card h3 { margin: 0; color: #704c3d; font-size: 21px; }
.function-card h3 small { color: #b7664e; font-size: 12px; }
.function-card p { margin: 10px 0 18px; font-size: 15px; line-height: 1.55; }
.function-card span { margin-top: auto; color: #b7664e; font-weight: 800; }
.placeholder-card button:disabled { cursor: not-allowed; opacity: 0.55; transform: none; }

.quiz-card {
  max-width: 720px;
  padding-top: 42px;
}

.progress-area {
  margin-bottom: 34px;
  text-align: left;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: #9a7565;
  font-size: 14px;
  font-weight: 700;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  background: #f8e6d8;
  border-radius: 999px;
}

.progress-fill {
  height: 100%;
  background: #df8467;
  border-radius: inherit;
  transition: width 240ms ease;
}

.step-label {
  margin: 0 0 10px;
  color: #d57558;
  font-size: 15px;
  font-weight: 800;
}

.quiz-card h1 {
  font-size: clamp(25px, 5vw, 38px);
}

.help {
  width: min(100%, 560px);
  margin: 18px auto 28px;
  color: #8a6b5d;
  text-align: left;
}

.help summary {
  width: max-content;
  margin: auto;
  color: #b7664e;
  font-weight: 700;
  cursor: pointer;
}

.help p {
  margin: 12px 0 0;
  padding: 14px 18px;
  background: #fff5ea;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.7;
}

.quiz-options {
  display: grid;
  gap: 14px;
  margin: 28px auto 0;
}

.option-button {
  width: 100%;
  min-height: 66px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.option-button small {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  opacity: 0.9;
}

.quiz-actions,
.result-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.text-button,
.text-link {
  width: auto;
  min-height: auto;
  padding: 8px;
  color: #9a6553;
  background: transparent;
  box-shadow: none;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.text-button:hover,
.text-link:hover {
  color: #c25f44;
  background: transparent;
  transform: none;
}

.page-back {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  min-height: 44px;
  margin: -6px 0 14px -8px;
  padding: 8px;
  color: #7a655d;
  background: transparent;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  font: 700 14px/1.4 inherit;
  text-decoration: none;
}

.page-back:hover,
.page-back:focus-visible {
  color: #5f744f;
  background: rgb(198 208 180 / 28%);
  transform: none;
}

.legal-processor {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--my-border);
  color: var(--my-text-muted);
  font-size: 12px !important;
}

.result-note {
  margin-bottom: 28px;
  padding: 14px 18px;
  background: #fff4e8;
  border-radius: 14px;
  font-size: 16px;
  line-height: 1.65;
}

.result-list {
  display: grid;
  gap: 16px;
  text-align: left;
}

.result-card {
  padding: 22px;
  background: #fffaf5;
  border: 1px solid #f2ddce;
  border-radius: 20px;
}

.result-card.top-result {
  background: #fff1e4;
  border-color: #e9b69f;
}

.result-heading {
  display: flex;
  justify-content: space-between;
  color: #c66d52;
  font-weight: 800;
}

.result-card h2 {
  margin: 10px 0 0;
  color: #704c3d;
  font-size: 24px;
}

.result-card h2 small {
  display: block;
  margin-top: 4px;
  color: #957164;
  font-size: 15px;
  font-weight: 600;
}

.result-card p {
  margin: 12px 0;
  font-size: 15px;
  line-height: 1.6;
}

.breed-reference {
  margin: 18px 0;
}

.breed-reference .reference-label {
  margin-bottom: 9px;
  color: #76584c;
}

.breed-reference img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #efd8ca;
  border-radius: 14px;
}

.breed-reference .reference-fallback {
  padding: 28px 16px;
  text-align: center;
  color: #957164;
  background: #fff;
  border: 1px dashed #dfc5b6;
  border-radius: 14px;
}

.comparison-guide {
  margin: 18px 0;
}

.comparison-guide h3 {
  margin: 0;
  color: #704c3d;
  font-size: 17px;
}

.comparison-guide ul {
  margin: 8px 0 14px;
  padding-left: 21px;
  color: #76584c;
  font-size: 14px;
  line-height: 1.7;
}

.comparison-guide .focus-areas {
  padding: 10px 12px;
  background: #f8eee5;
  border-radius: 10px;
}

.matched {
  display: grid;
  gap: 5px;
  color: #76584c;
  font-size: 14px;
}

.matched b {
  margin-bottom: 3px;
}

.confused {
  padding-top: 10px;
  border-top: 1px solid #efd8ca;
}

.pattern-result,
.safety-note {
  margin-top: 20px;
  padding: 18px;
  text-align: left;
  line-height: 1.65;
  border-radius: 16px;
}

.pattern-result {
  background: #f8eee5;
}

.pattern-result p {
  margin: 6px 0 0;
  font-size: 15px;
}

.safety-note {
  color: #735c52;
  background: #f4eee9;
  font-size: 14px;
}

@media (max-width: 480px) {
  .quiz-card {
    padding-top: 32px;
  }

  .quiz-actions,
  .result-actions {
    flex-direction: column;
    gap: 8px;
  }
}

.site-header { position: fixed; z-index: 5; inset: 0 0 auto; min-height: 60px; padding: 12px clamp(18px, 4vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 18px; background: rgb(255 247 237 / 92%); border-bottom: 1px solid #f3d8c2; backdrop-filter: blur(10px); }
.brand-link, .nav-link { color: #704c3d; font-weight: 800; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.nav-link { position: relative; padding: 8px 12px; border-radius: 10px; font-size: 15px; white-space: nowrap; }
.nav-link:hover, .nav-link[aria-current="page"] { color: #b7664e; background: #fff0df; }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; right: 12px; bottom: 4px; left: 12px; height: 2px; background: #df8467; border-radius: 999px; }
.with-site-header:not(.home-body):not(.profile-body) { padding-top: 84px; }
.profile-body { display: block; padding: 92px 24px 40px; }
.profile-shell { width: min(100%, 920px); margin: auto; display: grid; gap: 24px; }
.profile-panel { padding: clamp(24px, 5vw, 42px); background: rgb(255 255 255 / 90%); border: 1px solid #f3d8c2; border-radius: 24px; box-shadow: 0 14px 38px rgb(126 83 57 / 10%); }
.profile-summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; }
.profile-summary h1, .form-panel h1, .pet-detail h1 { font-size: clamp(26px, 5vw, 38px); }
.profile-summary p, .pet-card p, .detail-hero p, .empty-state p { margin: 6px 0; font-size: 16px; }
.eyebrow { margin: 0 0 6px !important; color: #d57558 !important; font-size: 14px !important; font-weight: 800; }
.profile-avatar, .pet-avatar, .pet-form-avatar, .detail-avatar { display: grid; place-items: center; object-fit: cover; background: #fff0df; border-radius: 50%; }
.profile-avatar { width: 86px; height: 86px; font-size: 40px; }.pet-avatar { width: 72px; height: 72px; font-size: 32px; }.pet-form-avatar { width: 110px; height: 110px; font-size: 48px; }.detail-avatar { width: 150px; height: 150px; font-size: 64px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }.section-heading h2 { margin: 0; color: #704c3d; font-size: 28px; }
.compact-button { width: auto; min-height: 46px; padding: 10px 18px; font-size: 15px; }
.pet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 16px; }
.pet-card { display: flex; align-items: center; gap: 16px; padding: 18px; color: inherit; text-align: left; text-decoration: none; background: #fffaf5; border: 1px solid #f2ddce; border-radius: 18px; }.pet-card:hover { border-color: #dfaa92; transform: translateY(-1px); }.pet-card h3 { margin: 0 0 4px; color: #704c3d; }
.empty-state { padding: 36px 18px; text-align: center; background: #fffaf5; border-radius: 18px; }.empty-state a { color: #b7664e; font-weight: 800; }
.form-panel form, .form-panel label { display: grid; gap: 8px; }.form-panel form { gap: 20px; }.form-panel label, .form-panel legend { color: #704c3d; font-weight: 700; }
.form-panel input:not([type="radio"]):not([type="checkbox"]), .form-panel select, .form-panel textarea, .save-result-dialog select { width: 100%; padding: 13px 14px; color: #57453d; background: #fffdfb; border: 1px solid #dfc5b6; border-radius: 12px; font: inherit; }.form-panel textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.check-label { display: flex !important; align-items: center; align-self: end; grid-template-columns: auto 1fr; padding-bottom: 14px; }
.form-panel fieldset { margin: 0; padding: 18px; border: 1px solid #efd8ca; border-radius: 16px; }.sex-options, .breed-actions { display: flex; gap: 12px; margin: 10px 0; }.sex-options input { position: absolute; opacity: 0; }.sex-options span { width: 52px; height: 52px; display: grid; place-items: center; color: #704c3d; background: #fff5ea; border: 2px solid transparent; border-radius: 50%; font-size: 24px; cursor: pointer; }.sex-options input:checked + span { border-color: #df8467; background: #ffe8d6; }
.met-date-field { grid-column: 1 / -1; }
.image-picker { display: flex; align-items: center; gap: 18px; }.file-button { width: max-content; padding: 9px 13px; color: #9a6553 !important; background: #fff5ea; border-radius: 10px; cursor: pointer; }.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.field-hint, .form-panel small { color: #957164; font-weight: 400; }.form-actions, .detail-actions, .dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.detail-hero { display: flex; align-items: center; gap: 28px; margin: 18px 0 30px; }.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }.detail-field { padding: 16px 0; border-top: 1px solid #f2ddce; }.detail-field dt { color: #957164; font-size: 14px; font-weight: 700; }.detail-field dd { margin: 6px 0 0; white-space: pre-wrap; line-height: 1.6; }.snapshot { margin: 24px 0; padding: 16px; background: #fffaf5; border-radius: 14px; }.snapshot summary { color: #b7664e; font-weight: 800; cursor: pointer; }.snapshot [data-snapshot] { margin-top: 14px; padding: 14px; overflow: auto; white-space: pre-wrap; background: #fff; border-radius: 10px; font: 12px/1.6 ui-monospace, monospace; }
.danger-button { width: auto; min-height: auto; padding: 10px; color: #a54141; background: transparent; box-shadow: none; font-size: 15px; }.danger-button:hover { color: #8b2222; background: #fff0f0; transform: none; }
.secondary-action { background: #bd765f; }.save-result-dialog { width: min(92vw, 520px); padding: 28px; color: #57453d; border: 1px solid #f3d8c2; border-radius: 20px; }.save-result-dialog::backdrop { background: rgb(87 69 61 / 35%); }.save-result-dialog form { display: grid; gap: 18px; }.save-result-dialog h2, .save-result-dialog p { margin: 0; }.save-result-dialog label { display: grid; gap: 8px; font-weight: 700; }
.cloud-account-notice { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; color: #704c3d; background: #fff3e5; border: 1px solid #efd8ca; border-radius: 18px; }
.cloud-account-notice p { margin: 4px 0 0; color: #8d6b5e; font-size: 14px; }
.account-panel { width: min(100%, 620px); margin: auto; }
.account-links, .verification-row { display: flex; align-items: end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.verification-row label { flex: 1 1 230px; }
.verification-row button { width: auto; margin-bottom: 2px; }
.consent-label { display: grid !important; grid-template-columns: auto 1fr; align-items: start; font-weight: 400 !important; line-height: 1.6; }
.consent-label input { margin-top: 6px; }
.consent-label a, .legal-page a { color: #a95d47; }
.form-message { min-height: 24px; margin: 0; color: #51734c; }
.error-message { color: #a54141; }
.legal-page { line-height: 1.75; }
.legal-page h1 { color: #704c3d; }
.legal-page h2 { margin-top: 28px; color: #704c3d; font-size: 21px; }
.profile-body .legal-page h1 { margin-bottom: 22px; }
.profile-body .legal-page h2 { margin-bottom: 8px; color: var(--my-text); }
.profile-body .legal-page p { color: var(--my-text-muted); font-size: 15px; line-height: 1.85; }
.profile-body .legal-page ul { padding-left: 22px; color: var(--my-text-muted); line-height: 1.85; }
.profile-body .legal-page a { color: var(--my-olive-dark); font-weight: 700; }
.profile-body .legal-note { margin-top: 24px; padding: 14px 16px; background: var(--my-cream); border-radius: 16px; }
.profile-body .legal-meta { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--my-border); font-size: 13px; }
.profile-body .legal-contact { margin-top: 24px; padding-top: 2px; border-top: 1px solid var(--my-border); }
.daily-record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.daily-record-card { display: flex; align-items: center; gap: 15px; padding: 20px; color: inherit; text-decoration: none; background: #fffaf5; border: 1px solid #f2ddce; border-radius: 18px; }
.daily-record-card:hover { border-color: #dfaa92; transform: translateY(-1px); }
.daily-record-card > span { font-size: 30px; }.daily-record-card h3 { margin: 0 0 5px; color: #704c3d; }.daily-record-card p { margin: 0; color: #8d6b5e; }
.latest-metric { display: grid; gap: 6px; margin: 20px 0; padding: 22px; background: #fff7ed; border-radius: 18px; }
.latest-metric span, .latest-metric small { color: #8d6b5e; }.latest-metric strong { color: #704c3d; font-size: clamp(30px, 7vw, 48px); }.latest-metric em { color: #a65e48; font-style: normal; font-weight: 700; }
.record-list { display: grid; gap: 12px; }.record-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 0; border-bottom: 1px solid #f2ddce; }.record-row:last-child { border-bottom: 0; }.record-row > div:first-child { display: grid; gap: 5px; }.record-row time, .record-row small { color: #957164; font-size: 13px; }.record-row strong { color: #704c3d; font-size: 22px; }.record-row p { margin: 0; color: #76584c; }.record-actions { display: flex; align-items: center; gap: 8px; }
.record-date-nav { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 20px 0; }.record-date-nav label { display: grid; gap: 6px; color: #704c3d; font-weight: 700; }.record-date-nav input { padding: 10px 12px; border: 1px solid #dfc5b6; border-radius: 10px; font: inherit; }
.record-dialog, .picker-dialog { width: min(92vw, 620px); max-height: 90vh; padding: 28px; overflow: auto; color: #57453d; border: 1px solid #f3d8c2; border-radius: 22px; }.record-dialog::backdrop, .picker-dialog::backdrop { background: rgb(87 69 61 / 38%); }.record-dialog form, .picker-dialog form, .record-dialog label { display: grid; gap: 10px; }.record-dialog form { gap: 18px; }.record-dialog h2, .picker-dialog h2 { margin: 0; color: #704c3d; }.record-dialog input, .record-dialog select, .record-dialog textarea { width: 100%; padding: 12px 13px; border: 1px solid #dfc5b6; border-radius: 11px; font: inherit; }.record-dialog textarea { resize: vertical; }.dialog-title { overflow-wrap: anywhere; }.dialog-sticky-actions { position: sticky; z-index: 3; bottom: -28px; margin: 0 -28px -28px; padding: 14px 28px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to top, #fff 82%, rgb(255 255 255 / 94%)); border-radius: 0 0 22px 22px; }
.weight-display { width: 100%; padding: 18px; color: #704c3d; background: #fff5ea; box-shadow: none; border: 1px solid #efd8ca; }.weight-display:hover { transform: none; }.weight-display strong { font-size: 38px; }.manual-weight { grid-template-columns: 1fr 90px; }.manual-weight[hidden] { display: none; }
.weight-wheels { position: relative; display: grid; grid-template-columns: minmax(100px, 1fr) auto minmax(90px, .7fr) minmax(70px, .5fr); align-items: center; gap: 8px; margin: 20px 0; padding: 12px; background: linear-gradient(to bottom, transparent 38%, #fff1df 38% 62%, transparent 62%); border-radius: 16px; }.weight-wheels select { min-height: 210px; padding: 0 8px; color: #76584c; background: transparent; border: 0; outline: 0; font: 700 24px/1.4 inherit; text-align: center; scroll-snap-type: y mandatory; overscroll-behavior: contain; touch-action: pan-y; }.weight-wheels option { padding: 8px; scroll-snap-align: center; }.weight-wheels b { font-size: 30px; }
.session-photo { display: grid; gap: 10px; }.session-photo img { width: min(100%, 320px); max-height: 220px; object-fit: contain; border: 1px solid #efd8ca; border-radius: 14px; }.session-photo small { color: #957164; }
.chart-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }.chart-heading h2 { margin: 0; color: #704c3d; }.range-switch { display: flex; padding: 3px; background: #fff3e5; border-radius: 11px; }.range-switch button { width: auto; min-height: auto; padding: 7px 11px; color: #8d6b5e; background: transparent; box-shadow: none; font-size: 13px; }.range-switch button:hover, .range-switch button[aria-pressed="true"] { color: #9d503d; background: white; transform: none; }
.weight-chart-wrap { position: relative; width: 100%; overflow: visible; }.weight-chart { display: block; width: 100%; height: auto; overflow: visible; }.chart-grid { stroke: #edddd1; stroke-width: 1; }.chart-line { fill: none; stroke: #c96f55; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }.chart-point { fill: #fffaf5; stroke: #b85e47; stroke-width: 3; cursor: pointer; }.chart-point:hover, .chart-point:focus { fill: #ffe0cc; outline: none; stroke-width: 5; }.chart-y-label, .chart-x-label { fill: #8d6b5e; font: 12px system-ui, sans-serif; }.chart-y-label { text-anchor: end; }.chart-x-label { text-anchor: middle; }.chart-tooltip { position: absolute; z-index: 2; display: grid; gap: 3px; width: max-content; max-width: 152px; padding: 9px 11px; color: #704c3d; background: white; border: 1px solid #dfc5b6; border-radius: 10px; box-shadow: 0 7px 20px rgb(87 69 61 / 16%); transform: translate(-50%, -100%); pointer-events: none; }.chart-tooltip[hidden] { display: none; }.chart-tooltip span { font-weight: 800; }.chart-tooltip small { color: #9a6553; }.chart-empty { padding: 28px 15px; text-align: center; background: #fffaf5; border-radius: 14px; }.chart-empty p, .chart-hint { margin: 0 0 5px; color: #704c3d; }.chart-empty small, .chart-hint { color: #957164; }.chart-hint { margin-top: 10px; text-align: center; font-size: 13px; }.record-create-panel { padding-block: 20px; }
.ingredient-shell { width: min(100%, 900px); }.ingredient-shell h1 { color: #704c3d; font-size: clamp(28px, 5vw, 42px); }.package-upload { position: relative; display: grid; place-items: center; gap: 14px; min-height: 220px; margin: 24px 0 14px; padding: 20px; text-align: center; background: #fffaf5; border: 2px dashed #dfc5b6; border-radius: 20px; }.package-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }.package-upload label { display: grid; gap: 7px; color: #704c3d; cursor: pointer; }.package-upload label strong { font-size: 19px; }.package-upload label span, .privacy-hint { color: #957164; font-size: 13px; }.package-upload img { width: min(100%, 520px); max-height: 430px; object-fit: contain; border-radius: 14px; }.ingredient-actions { margin-top: 18px; }.vision-product { display: grid; gap: 18px; padding: 22px 0; border-top: 1px solid #efd8ca; }.vision-product:first-of-type { border-top: 0; }.vision-product h3, .vision-product h4 { margin: 0; color: #704c3d; }.vision-product section { display: grid; gap: 10px; }.vision-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 0; }.vision-field { padding: 12px; background: #fffaf5; border-radius: 12px; }.vision-field dt { color: #957164; font-size: 13px; font-weight: 700; }.vision-field dd { display: grid; gap: 4px; margin: 5px 0 0; color: #57453d; font-weight: 700; }.vision-status { width: max-content; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; }.status-recognized { color: #51734c; background: #edf5e9; }.status-not_visible { color: #806b62; background: #f1ece8; }.status-uncertain { color: #996733; background: #fff0d8; }.nutrition-table { display: grid; overflow: hidden; border: 1px solid #efd8ca; border-radius: 12px; }.nutrition-table > div { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(100px, .7fr) minmax(150px, 1.5fr); gap: 12px; padding: 11px 13px; border-bottom: 1px solid #f2ddce; }.nutrition-table > div:last-child { border-bottom: 0; }.nutrition-table span { color: #76584c; }.nutrition-table small { color: #957164; }.vision-product pre { margin: 0; padding: 15px; overflow: auto; white-space: pre-wrap; color: #57453d; background: #fffaf5; border-radius: 12px; font: inherit; line-height: 1.7; }.vision-warning, .vision-notice { padding: 12px 14px; border-radius: 11px; line-height: 1.6; }.vision-warning { color: #865b2c; background: #fff1dd; }.vision-notice { color: #76584c; background: #f6eee8; }.vision-muted { color: #957164; }
.source-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }.source-actions button { width: auto; }.source-actions input { position: absolute; width: 1px; height: 1px; opacity: 0; }.package-upload span { color: #957164; font-size: 13px; }.package-preview { position: relative; display: grid; place-items: center; min-height: 220px; margin: 20px 0 14px; padding: 14px; background: #fffaf5; border: 1px solid #efd8ca; border-radius: 20px; }.package-preview img { width: min(100%, 520px); max-height: 430px; object-fit: contain; border-radius: 14px; }.preview-remove { position: absolute; top: 9px; right: 9px; width: 36px; min-height: 36px; padding: 0; color: #86463b; background: rgb(255 255 255 / 92%); border: 1px solid #e2bbae; border-radius: 50%; box-shadow: 0 3px 12px rgb(87 69 61 / 14%); font-size: 23px; line-height: 1; }.preview-remove:hover { transform: none; background: #fff0eb; }.vision-debug { margin-top: 12px; padding: 10px 12px; color: #76584c; background: #f6f1ed; border-radius: 10px; font-size: 12px; }.vision-debug summary { cursor: pointer; font-weight: 700; }.vision-debug pre { margin: 8px 0 0; overflow: auto; white-space: pre-wrap; }.camera-dialog { width: min(94vw, 720px); padding: 18px; color: #57453d; background: #fffaf5; border: 1px solid #efd8ca; border-radius: 22px; }.camera-dialog::backdrop { background: rgb(40 30 26 / 72%); }.camera-stage { display: grid; place-items: center; min-height: 280px; overflow: hidden; background: #201d1b; border-radius: 15px; }.camera-stage video, .camera-stage canvas { display: block; width: 100%; max-height: 70vh; object-fit: contain; }.camera-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; flex-wrap: wrap; }.camera-actions button { width: auto; }
.food-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }.food-card { display: grid; gap: 13px; min-width: 0; padding: 20px; background: #fffaf5; border: 1px solid #f2ddce; border-radius: 18px; }.food-card h2, .food-card p { margin: 0; }.food-card h2 { overflow-wrap: anywhere; color: #704c3d; font-size: 21px; }.food-card details { color: #76584c; }.food-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; min-width: 0; }.food-card-heading > div { min-width: 0; }.favorite-button { flex: 0 0 42px; width: 42px; min-height: 42px; padding: 0; color: #bd765f; background: #fff3e5; box-shadow: none; font-size: 25px; }.favorite-button:hover { transform: none; }.tag-list, .tag-picker { display: flex; gap: 8px; flex-wrap: wrap; }.tag-list span, .tag-picker span { display: inline-flex; padding: 7px 11px; color: #8e5f4d; background: #ffead8; border-radius: 999px; font-size: 13px; font-weight: 800; }.tag-picker input { position: absolute; width: 1px !important; height: 1px; padding: 0 !important; opacity: 0; }.tag-picker label { cursor: pointer; }.tag-picker input:checked + span { color: white; background: #bd765f; }.pet-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }.pet-choice { display: flex !important; align-items: center; min-width: 0; gap: 10px !important; padding: 12px; overflow: hidden; background: #fffaf5; border: 1px solid #efd8ca; border-radius: 12px; cursor: pointer; }.record-dialog .pet-choice input { flex: 0 0 22px; width: 22px; height: 22px; margin: 0; padding: 0; accent-color: #bd765f; }.pet-choice-copy { display: grid; min-width: 0; gap: 2px; }.pet-choice-copy strong { display: -webkit-box; overflow: hidden; overflow-wrap: anywhere; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }.pet-choice-copy small { overflow: hidden; color: #957164; text-overflow: ellipsis; white-space: nowrap; }
.food-nutrient-list { display: grid; gap: 8px; margin-top: 12px; }.food-nutrient-row { display: grid; grid-template-columns: minmax(72px, 1fr) auto auto; align-items: center; gap: 6px 10px; padding: 10px 11px; background: #fff; border-radius: 10px; }.food-nutrient-row > span { min-width: 0; overflow-wrap: anywhere; }.food-nutrient-row > strong { color: #704c3d; text-align: right; }.relation-tag { width: max-content; padding: 3px 7px; color: #805c4e; background: #f4e5d9; border-radius: 999px; font-size: 11px; font-weight: 800; }.relation-tag.relation-range { color: #56704a; background: #e8f0df; }.relation-tag.relation-minimum, .relation-tag.relation-maximum { color: #855f2d; background: #fff0d7; }.nutrient-unavailable { grid-column: 2 / -1; color: #957164; text-align: right; }
.diet-range { width: max-content; margin-top: 18px; }.month-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }.month-heading label { display: grid; gap: 6px; color: #704c3d; font-weight: 800; }.month-heading input { padding: 10px 12px; border: 1px solid #dfc5b6; border-radius: 10px; font: inherit; }.calendar-shortcuts { display: flex; flex-wrap: wrap; gap: 5px; margin: 5px 0 10px; }.calendar-shortcuts button { min-height: 38px; padding: 7px 10px; font-size: 13px; }.calendar-hint { margin: 0 0 14px; color: #8d6b5e; font-size: 13px; }.calendar-week, .month-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }.calendar-week { margin-bottom: 7px; color: #957164; text-align: center; font-size: 13px; }.month-calendar { touch-action: none; user-select: none; -webkit-user-select: none; }.calendar-day { display: grid; place-items: center; gap: 3px; aspect-ratio: 1; min-height: 48px; padding: 5px; color: #704c3d; background: #fffaf5; border: 1px solid #efd8ca; box-shadow: none; }.calendar-day:hover { transform: none; border-color: #cf8d73; }.calendar-day[aria-pressed="true"] { color: white; background: #bd765f; border-color: #bd765f; }.calendar-day small { color: inherit; font-size: 10px; }.calendar-day b { font-size: 15px; }.batch-panel { scroll-margin-top: 82px; }.batch-save-actions { position: sticky; z-index: 2; bottom: 0; padding: 10px 0 calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(to top, #fff 78%, rgb(255 255 255 / 90%)); }.month-record-panel details > summary { color: #704c3d; font-size: 18px; font-weight: 800; cursor: pointer; }.month-record-panel .record-list { margin-top: 16px; }.quantity-picker { display: grid; gap: 10px; padding: 15px; background: #fff8f0; border-radius: 15px; }.quantity-picker > label { text-align: center; }.quantity-picker select[size] { min-height: 165px; padding: 0; text-align: center; font-size: 22px; font-weight: 800; scroll-snap-type: y mandatory; }.quantity-picker option { padding: 7px; scroll-snap-align: center; }.unit-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: #f6e8dc; border-radius: 11px; }.unit-tabs button { min-height: 40px; padding: 7px; color: #8d6b5e; background: transparent; box-shadow: none; }.unit-tabs button[aria-pressed="true"] { color: #8a4e3d; background: white; }.exact-quantity { text-align: left !important; }.calculation-note { color: #996733 !important; }.feeding-chart-scroll { overflow-x: auto; }.feeding-chart { display: block; width: 100%; min-width: 420px; height: auto; }.feeding-bar { fill: #cc8065; }.feeding-bar.unit-piece { fill: #8eaa72; }.feeding-value { fill: #76584c; font: 11px system-ui, sans-serif; text-anchor: middle; }.feeding-chart-section + .feeding-chart-section { margin-top: 22px; }.feeding-chart-section h3, .nutrition-summary h3 { color: #704c3d; }.feeding-total-row { display: flex; flex-wrap: wrap; gap: 10px; }.feeding-total-row > div { display: grid; min-width: 120px; gap: 3px; padding: 12px 15px; background: #fff8f0; border-radius: 13px; }.feeding-total-row span { color: #8d6b5e; font-size: 12px; }.feeding-total-row strong { color: #704c3d; font-size: 20px; }.nutrition-summary { margin-top: 25px; padding-top: 18px; border-top: 1px solid #efd8ca; }.nutrition-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }.nutrition-heading p, .nutrition-heading h3 { margin: 0; }.pet-nutrition-map { position: relative; min-height: 330px; overflow: hidden; background: linear-gradient(145deg, #fff9f2, #fff 68%); border: 1px solid #f0d8c7; border-radius: 24px; }.pet-nutrition-map.is-empty { display: grid; place-items: center; }.pet-nutrition-map.is-empty p { z-index: 2; align-self: end; margin-bottom: 26px; padding: 8px 12px; color: #76584c; background: rgb(255 255 255 / 84%); border-radius: 999px; }.pet-nutrition-silhouette { position: absolute; inset: 34px 50%; width: min(78%, 390px); height: calc(100% - 52px); color: #9b6d5b; transform: translateX(-50%); }.pet-nutrition-silhouette g { fill: rgb(255 244 234 / 68%); stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }.nutrition-map-points { position: absolute; inset: 0; }.nutrition-point { position: absolute; display: grid; width: 118px; min-height: 68px; gap: 1px; padding: 8px 10px; color: #765044; background: rgb(255 255 255 / 94%); border: 1px solid #e8cab6; border-radius: 14px; box-shadow: 0 5px 15px rgb(113 75 58 / 10%); text-align: left; transform: none; }.nutrition-point:hover { transform: none; }.nutrition-point[aria-expanded="true"] { border-color: #bd765f; box-shadow: 0 0 0 2px rgb(189 118 95 / 14%); }.nutrition-point span { overflow: hidden; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }.nutrition-point strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.nutrition-point .relation-tag { margin-top: 2px; }.nutrition-point.position-1 { top: 18px; left: 18px; }.nutrition-point.position-2 { top: 18px; right: 18px; }.nutrition-point.position-3 { top: 126px; left: 12px; }.nutrition-point.position-4 { top: 126px; right: 12px; }.nutrition-point.position-5 { bottom: 18px; left: 30px; }.nutrition-point.position-6 { right: 30px; bottom: 18px; }.nutrition-popover { display: grid; grid-template-columns: minmax(110px, .7fr) 1.3fr; gap: 16px; margin-top: 10px; padding: 15px; background: #fff6ec; border-radius: 14px; }.nutrition-popover[hidden] { display: none; }.nutrition-popover > div { display: grid; align-content: start; gap: 4px; }.nutrition-popover > div > span { color: #8d6b5e; }.nutrition-popover > div > strong { color: #704c3d; font-size: 18px; }.nutrition-popover dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }.nutrition-popover dl > div { min-width: 0; }.nutrition-popover dt { color: #957164; font-size: 11px; }.nutrition-popover dd { margin: 3px 0 0; overflow-wrap: anywhere; color: #704c3d; font-size: 13px; font-weight: 700; }.nutrition-detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }.nutrition-detail-list[hidden] { display: none; }.nutrition-detail-list article { display: grid; grid-template-columns: minmax(70px, 1fr) auto auto; align-items: center; gap: 7px; padding: 11px; background: #fff8f0; border-radius: 11px; }.nutrition-detail-list strong { color: #704c3d; text-align: right; }.nutrition-disclaimer { margin: 15px 0 0; color: #957164; font-size: 12px; }
.nutrient-range { position: relative; height: 8px; margin: 5px 3px; background: #e8ddd4; border-radius: 999px; }.nutrient-range::before, .nutrient-range::after { position: absolute; top: 50%; width: 12px; height: 12px; content: ""; background: #718b5c; border: 2px solid white; border-radius: 50%; transform: translateY(-50%); }.nutrient-range::before { left: 0; }.nutrient-range::after { right: 0; }.nutrient-range i { position: absolute; inset: 2px 5px; background: #91aa78; }.nutrient-range b { display: none; }.feeding-chart-section h3 small { color: #957164; font-size: 13px; font-weight: 500; }
.food-hub h1 { margin-bottom: 8px; color: #704c3d; font-size: clamp(28px, 5vw, 40px); }.food-hub > p:not(.eyebrow) { color: #76584c; }.food-hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }.food-hub-card { display: grid; gap: 8px; min-height: 132px; padding: 22px; align-content: center; color: inherit; text-decoration: none; background: #fff8f0; border: 1px solid #efd8ca; border-radius: 18px; }.food-hub-card:hover { border-color: #d99b80; transform: translateY(-1px); }.food-hub-card strong { color: #a85c47; font-size: 20px; }.food-hub-card span { color: #8d6b5e; line-height: 1.55; }
.page-loading { overflow: hidden; }.page-loading span { display: block; width: 100%; height: 16px; margin: 9px 0; background: linear-gradient(90deg, #f5e8dc 20%, #fff7ef 50%, #f5e8dc 80%); background-size: 220% 100%; border-radius: 999px; animation: loading-sheen 1.2s ease-in-out infinite; }.page-loading span:nth-child(2) { width: 74%; }.page-loading span:nth-child(3) { width: 48%; }.page-loading p { margin: 18px 0 0; color: #8d6b5e; }
@keyframes loading-sheen { to { background-position: -220% 0; } }
[hidden] { display: none !important; }

@media (max-width: 640px) { .profile-body { padding: 78px 14px calc(30px + env(safe-area-inset-bottom)); }.profile-summary { grid-template-columns: auto 1fr; }.profile-summary > button { grid-column: 1 / -1; }.section-heading, .detail-hero, .cloud-account-notice, .record-date-nav, .chart-heading, .month-heading { align-items: flex-start; flex-direction: column; }.form-grid, .detail-list, .daily-record-grid, .vision-fields, .food-grid, .nutrition-cards, .food-hub-grid { grid-template-columns: 1fr; }.profile-panel { padding: 24px 18px; }.detail-avatar { width: 112px; height: 112px; }.result-actions .main-button, .cloud-account-notice .main-button, .ingredient-actions button, .source-actions button { width: 100%; }.record-row { align-items: flex-start; flex-direction: column; }.record-actions { width: 100%; justify-content: flex-end; }.record-dialog, .picker-dialog { max-height: calc(88vh - env(safe-area-inset-bottom)); padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); }.weight-wheels { grid-template-columns: minmax(80px, 1fr) auto minmax(72px, .8fr) 62px; gap: 3px; }.weight-wheels select { min-height: 200px; padding: 0; font-size: 21px; }.weight-chart-wrap { overflow: hidden; }.chart-y-label, .chart-x-label { font-size: 13px; }.nutrition-table > div { grid-template-columns: 1fr 1fr; }.nutrition-table small { grid-column: 1 / -1; }.camera-dialog { max-height: calc(92vh - env(safe-area-inset-bottom)); padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }.camera-stage { min-height: 220px; }.camera-actions button { flex: 1 1 42%; }.pet-choice-grid { grid-template-columns: 1fr; }.calendar-week, .month-calendar { gap: 4px; }.calendar-day { min-height: 43px; border-radius: 10px; }.calendar-day small { font-size: 9px; }.ingredient-actions { position: sticky; z-index: 2; bottom: 0; margin-inline: -8px; padding: 12px 8px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, #fff 74%, rgb(255 255 255 / 88%)); border-radius: 16px; }.food-hub-card { min-height: 108px; } }
@media (max-width: 640px) {
  .dialog-sticky-actions { bottom: calc(-22px - env(safe-area-inset-bottom)); margin: 0 -16px calc(-22px - env(safe-area-inset-bottom)); padding-inline: 16px; }
  .record-dialog fieldset { min-width: 0; padding-inline: 12px; }
  .food-nutrient-row { grid-template-columns: minmax(64px, 1fr) auto; }
  .food-nutrient-row .relation-tag { grid-column: 1; }
  .nutrient-unavailable { grid-column: 2; }
  .month-picker-panel { padding-inline: 14px; }
  .month-heading { gap: 8px; }
  .month-heading input { min-height: 44px; }
  .calendar-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .calendar-shortcuts button { padding-inline: 3px; font-size: 12px; }
  .calendar-hint { line-height: 1.55; }
  .calendar-day { min-height: 41px; padding: 3px; font-size: 14px; }
  .calendar-day b { font-size: 13px; }
  .nutrition-heading { align-items: flex-start; flex-direction: column; }
  .nutrition-heading button { align-self: flex-end; }
  .pet-nutrition-map { min-height: 370px; margin-inline: -5px; }
  .pet-nutrition-silhouette { inset: 58px 50% 42px; width: 88%; height: calc(100% - 90px); opacity: .9; }
  .nutrition-point { width: 104px; min-height: 64px; padding: 7px 8px; }
  .nutrition-point.position-1 { top: 12px; left: 10px; }
  .nutrition-point.position-2 { top: 12px; right: 10px; }
  .nutrition-point.position-3 { top: 137px; left: 7px; }
  .nutrition-point.position-4 { top: 137px; right: 7px; }
  .nutrition-point.position-5 { bottom: 12px; left: 16px; }
  .nutrition-point.position-6 { right: 16px; bottom: 12px; }
  .nutrition-popover { grid-template-columns: 1fr; }
  .nutrition-popover dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nutrition-detail-list { grid-template-columns: 1fr; }
  .nutrition-detail-list article { grid-template-columns: minmax(66px, 1fr) auto auto; }
}

@media (max-width: 480px) {
  .home-body { padding: 76px 14px 22px; }
  .site-header { min-height: 56px; padding: 9px 12px; gap: 8px; }
  .brand-link { max-width: 38vw; overflow: hidden; font-size: 0; white-space: nowrap; }
  .brand-link::after { content: "板牙宇宙"; font-size: 15px; }
  .site-nav { gap: 2px; }
  .nav-link { padding: 8px 7px; font-size: 14px; }
  .brand-logo { width: min(100%, 300px); }
  .function-grid { grid-template-columns: 1fr; }
  .function-card { min-height: 150px; }

  .card {
    padding: 48px 22px;
    border-radius: 24px;
  }

  .pet-icon {
    width: 76px;
    height: 76px;
    font-size: 44px;
  }
}

/* Nutrition overview: the current pet silhouette is the chart container. */
.profile-panel { min-width: 0; }
.pet-nutrition-map { position: relative; display: grid; min-height: 0; place-items: center; overflow: hidden; padding: 12px 12px 38px; background: linear-gradient(145deg, #fff9f2, #fff 68%); border: 1px solid #f0d8c7; border-radius: 24px; }
.pet-nutrition-map.is-empty { display: grid; place-items: center; }
.pet-nutrition-map.is-empty p { position: absolute; z-index: 2; bottom: 12px; align-self: auto; margin: 0; padding: 7px 12px; color: #76584c; background: rgb(255 255 255 / 88%); border-radius: 999px; }
.pet-nutrition-chart { display: block; width: min(100%, 540px); height: auto; min-height: 260px; overflow: visible; }
.nutrition-region { cursor: pointer; stroke: rgb(255 255 255 / 90%); stroke-width: 3; stroke-linejoin: round; transition: opacity 140ms ease, filter 140ms ease, stroke-width 140ms ease; vector-effect: non-scaling-stroke; }
.nutrition-region:hover, .nutrition-region:focus { opacity: .9; filter: brightness(1.04); outline: none; stroke: #704c3d; stroke-width: 5; }
.nutrition-region[aria-expanded="true"] { filter: brightness(.98); stroke: #704c3d; stroke-width: 6; }
.pet-chart-outline { fill: none; stroke: #76564a; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; vector-effect: non-scaling-stroke; }
.pet-chart-source-line { pointer-events: none; }
.nutrition-region-labels { pointer-events: none; }
.nutrition-region-label { fill: #513f38; font: 800 12px/1.2 system-ui, sans-serif; paint-order: stroke; stroke: rgb(255 255 255 / 88%); stroke-linejoin: round; stroke-width: 3px; }
.nutrition-region-value { font-size: 10px; font-weight: 700; }
.nutrition-chart-hint { position: absolute; bottom: 10px; margin: 0; color: #8d6b5e; font-size: 12px; }
.nutrition-popover dl { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 640px) {
  .pet-nutrition-map { min-height: 0; margin-inline: -5px; padding: 7px 4px 34px; }
  .pet-nutrition-chart { position: static; inset: auto; width: 100%; height: auto; min-height: 230px; color: inherit; transform: none; opacity: 1; }
  .nutrition-region-label { font-size: 11px; }
  .nutrition-region-value { font-size: 9px; }
  .nutrition-popover dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Symptom check V1 */
.symptom-shell { max-width: 820px; }
.symptom-panel h1 { margin: 8px 0 12px; color: #704c3d; font-size: clamp(28px, 5vw, 42px); }
.symptom-panel h2 { margin: 0 0 8px; color: #704c3d; font-size: 20px; }
.symptom-intro, .symptom-help { color: #76584c; line-height: 1.7; }
.symptom-help { padding: 12px 14px; background: #fff7ed; border-radius: 12px; }
.symptom-pet-strip { position: sticky; z-index: 4; top: 10px; display: flex; min-width: 0; gap: 10px; align-items: center; justify-content: space-between; margin: -10px 0 14px; padding: 9px 12px; background: rgb(255 250 245 / 96%); border: 1px solid #efd8ca; border-radius: 14px; box-shadow: 0 6px 18px rgb(126 83 57 / 8%); backdrop-filter: blur(8px); }
.symptom-pet-strip > div { display: flex; min-width: 0; flex-wrap: wrap; gap: 6px; }
.symptom-pet-strip span { padding-right: 7px; color: #704c3d; border-right: 1px solid #e7cec0; font-size: 13px; font-weight: 800; }
.symptom-pet-strip span:last-child { padding-right: 0; border-right: 0; }
.symptom-context-note { padding: 10px 12px; color: #76584c; background: #fff7ed; border-radius: 10px; }
.symptom-warning { padding: 12px 14px; color: #8b4a39; background: #fff0e8; border-radius: 12px; }
.symptom-choice-grid, .symptom-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.symptom-choice { width: 100%; min-height: 74px; padding: 16px; color: #704c3d; text-align: left; background: #fff8f0; border: 1px solid #efd8ca; box-shadow: none; }
.symptom-choice:hover { background: #fff0df; border-color: #d99b80; transform: translateY(-1px); }
.symptom-choice strong, .symptom-choice span { display: block; }
.symptom-choice span { margin-top: 4px; color: #8d6b5e; font-size: 14px; }
.symptom-option { position: relative; display: block; }
.symptom-option input { position: absolute; opacity: 0; }
.symptom-option span { display: grid; min-height: 62px; padding: 14px 16px; align-items: center; color: #704c3d; background: #fff8f0; border: 2px solid transparent; border-radius: 14px; cursor: pointer; }
.symptom-option input:focus-visible + span, .symptom-option input:checked + span { border-color: #d57558; background: #ffe9d8; }
#symptom-answer-form { display: grid; gap: 18px; margin-top: 20px; }
.symptom-text-label textarea { width: 100%; padding: 14px; color: #57453d; background: #fffdfb; border: 1px solid #dfc5b6; border-radius: 12px; font: inherit; resize: vertical; }
.symptom-result { display: grid; gap: 18px; }
.symptom-result > section { padding: 18px; background: #fffaf5; border: 1px solid #f2ddce; border-radius: 16px; }
.risk-badge { width: max-content; margin: 0; padding: 6px 10px; color: #704c3d; background: #ffe9d8; border-radius: 999px; font-weight: 800; }
.symptom-summary { display: grid; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.symptom-summary li { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid #f2ddce; }
.symptom-summary span { color: #76584c; }
.coming-soon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.coming-soon-grid article { padding: 14px; background: #f8eee5; border-radius: 12px; }
.coming-soon-grid h3 { margin: 0 0 5px; color: #704c3d; font-size: 16px; }
.coming-soon-grid p { margin: 0; color: #8d6b5e; font-size: 14px; }
@media (max-width: 640px) { .symptom-choice-grid, .symptom-category-grid, .coming-soon-grid { grid-template-columns: 1fr; } }
.symptom-answer-summary { display: grid; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.symptom-answer-summary li { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid #f2ddce; }
.symptom-answer-summary span { color: #76584c; }
.symptom-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.symptom-summary div { padding: 12px; background: #fffaf5; border-radius: 12px; }
.symptom-summary dt { color: #957164; font-size: 13px; font-weight: 700; }
.symptom-summary dd { margin: 5px 0 0; color: #704c3d; font-weight: 800; }
.future-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.future-feature-grid article { padding: 14px; background: #f8eee5; border-radius: 12px; }
.future-feature-grid h3 { margin: 0 0 5px; color: #704c3d; font-size: 16px; }
.future-feature-grid p { margin: 0; color: #8d6b5e; font-size: 14px; }
.symptom-preview-notice { margin: 0 0 16px; padding: 10px 13px; color: #8a4e3d; background: #fff0d8; border: 1px solid #edcda6; border-radius: 12px; font-weight: 800; }
.symptom-source-list { margin-top: 14px; color: #76584c; }
.symptom-source-list summary { color: #a95d47; cursor: pointer; font-weight: 800; }
.symptom-source-list ul { display: grid; gap: 8px; margin: 10px 0 0; padding-left: 20px; }
.symptom-source-list li span { display: block; color: #957164; font-size: 13px; }
.symptom-safety-question { margin: 16px 0; padding: 16px; border: 1px solid #efd8ca; border-radius: 16px; background: #fffaf5; }
.symptom-safety-question legend { padding: 0 6px; color: #704c3d; font-weight: 800; }
.symptom-safety-question .symptom-choice-grid { margin-top: 12px; }
.symptom-revise-button { width: max-content; }
.symptom-edit-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.symptom-edit-mode .is-selected { border-color: #d57558; background: #ffe9d8; }
.symptom-correction form { display: grid; gap: 18px; }
.symptom-select-label { display: grid; gap: 8px; color: #704c3d; font-weight: 800; }
.symptom-select-label select { width: 100%; padding: 12px; color: #57453d; background: #fffdfb; border: 1px solid #dfc5b6; border-radius: 12px; font: inherit; }
.symptom-current-answer { margin: 0; padding: 12px 14px; color: #76584c; background: #fff7ed; border-radius: 12px; }
.symptom-history-list { display: grid; gap: 12px; margin-top: 20px; }
.symptom-vet-summary { display: grid; min-width: 0; gap: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.symptom-vet-summary .section-heading { align-items: center; margin-bottom: 0; }
.symptom-vet-summary h3 { margin: 0 0 6px; color: #704c3d; font-size: 16px; }
.symptom-vet-summary p, .symptom-vet-summary ul { margin-block: 0; }
@media (max-width: 640px) { .symptom-summary, .future-feature-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .symptom-edit-mode { grid-template-columns: 1fr; } }

/* Homepage UI — scoped tokens and components. */
:root {
  --home-page: #fff;
  --home-card: #fff;
  --home-machine: #eef1e7;
  --home-machine-light: #fbfcf8;
  --home-sage: #c6d0b4;
  --home-olive: #7a8b64;
  --home-text: #3b352f;
  --home-text-secondary: #807c74;
  --home-warm: #d4ad7c;
  --home-green: #7a8b64;
  --home-border: #e5e7e2;
  --home-shadow: 0 14px 34px rgb(59 53 47 / 8%);
  --home-machine-shadow: 0 26px 38px rgb(71 80 61 / 16%);
  --home-radius-large: 34px;
  --home-radius-card: 24px;
  --home-radius-button: 999px;
  --home-space: 16px;
  --home-icon-size: 28px;
  --home-title-size: clamp(31px, 9.4vw, 40px);
}

html.home-html,
body.home-body {
  background: #fff;
}

body.home-body {
  min-height: 100svh;
  display: block;
  overflow-x: hidden;
  padding: 0;
  color: var(--home-text);
}

.home-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  padding: max(24px, env(safe-area-inset-top)) 18px calc(26px + env(safe-area-inset-bottom));
  background: #fff;
  box-shadow: 0 0 54px rgb(73 58 47 / 12%);
}

.home-status-notice {
  position: relative;
  z-index: 13;
  width: max-content;
  max-width: calc(100% - 96px);
  margin: 0 auto 10px;
  padding: 9px 14px;
  color: var(--home-text);
  background: #f1f4ec;
  border: 1px solid var(--home-border);
  border-radius: 999px;
  font-size: 14px;
  text-align: center;
}

.home-intro {
  position: relative;
  z-index: 6;
  display: flex;
  min-height: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-greeting { padding-top: 18px; }
.home-greeting h1 {
  margin: 0;
  color: var(--home-text);
  font-size: var(--home-title-size);
  font-weight: 780;
  line-height: 1.22;
  letter-spacing: -.045em;
}
.home-brand {
  width: 126px;
  display: grid;
  justify-items: center;
}
.home-brand-logo {
  width: 114px;
  height: 114px;
  display: block;
  object-fit: contain;
  background: transparent;
  filter: contrast(1.04);
}
.pet-console-scene {
  position: relative;
  height: 520px;
  margin: -8px -18px 2px;
  isolation: isolate;
}
.pet-console-scene::after {
  position: absolute;
  z-index: -1;
  right: 11%;
  bottom: calc(8px - var(--home-scene-trim, 0px));
  left: 11%;
  height: 42px;
  content: "";
  background: radial-gradient(ellipse, rgb(71 80 61 / 20%), transparent 70%);
  filter: blur(7px);
}

.pet-console {
  --console-action-edge-bottom: 11%;
  --console-action-inner-bottom: 6.5%;
  position: absolute;
  z-index: 2;
  top: 33px;
  left: 50%;
  width: min(86.5vw, 358px);
  aspect-ratio: .79;
  overflow: visible;
  transform: translateX(-50%);
}
.console-shell-svg {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 25px 19px rgb(71 80 61 / 16%));
  pointer-events: none;
}
.console-shell-base { fill: url(#console-shell-gradient); stroke: rgb(255 255 255 / 78%); stroke-width: 1.2; }
.console-shell-light { fill: url(#console-shell-light); stroke: rgb(255 255 255 / 56%); stroke-width: 1; }
#console-shell-gradient stop:nth-child(1) { stop-color: var(--home-machine-light); }
#console-shell-gradient stop:nth-child(2) { stop-color: var(--home-machine); }
#console-shell-gradient stop:nth-child(3) { stop-color: #dfe6d7; }
#console-shell-light stop:nth-child(3) { stop-color: #64705a; }

.console-brand-arc {
  position: absolute;
  z-index: 3;
  top: 47px;
  left: 50%;
  width: 242px;
  transform: translateX(-50%);
}
.console-brand-arc text {
  fill: #6f7568;
  font: 600 13px/1 system-ui, sans-serif;
  letter-spacing: .01em;
}

.pet-screen-shell {
  position: absolute;
  z-index: 2;
  top: 92px;
  left: 50%;
  width: 232px;
  height: 232px;
  padding: 12px;
  border-radius: 50%;
  background: linear-gradient(145deg, #d4dccd, #fbfcf8 42%, #d2dacb);
  box-shadow:
    0 5px 9px rgb(64 73 55 / 20%),
    inset 4px 4px 7px rgb(255 255 255 / 82%),
    inset -4px -4px 8px rgb(86 107 66 / 14%);
  transform: translateX(-50%);
}
.pet-screen-shell::before {
  position: absolute;
  inset: 8px;
  content: "";
  border: 1px solid rgb(86 107 66 / 30%);
  border-radius: 50%;
}
.pet-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 3px solid #282521;
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 28%, rgb(255 255 255 / 84%), transparent 34%),
    linear-gradient(#ecf2f9 0 62%, #dbe5f0 62% 100%);
  box-shadow: inset 0 0 18px rgb(72 86 108 / 22%);
}
.screen-floor {
  position: absolute;
  right: -15%;
  bottom: -2%;
  left: -15%;
  height: 40%;
  background:
    repeating-linear-gradient(90deg, transparent 0 24px, rgb(101 125 161 / 38%) 25px 27px),
    repeating-linear-gradient(0deg, transparent 0 20px, rgb(101 125 161 / 38%) 21px 23px);
  transform: perspective(150px) rotateX(48deg) scaleX(1.16);
  transform-origin: bottom;
}
.screen-floor::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  background: rgb(96 120 156 / 44%);
}
.screen-stars i {
  position: absolute;
  z-index: 1;
  width: 11px;
  height: 11px;
  background: #9eacc3;
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
}
.screen-stars i::before { display: none; }
.screen-stars i:nth-child(1) { top: 40px; left: 43px; transform: scale(1.12); }
.screen-stars i:nth-child(2) { top: 24px; right: 60px; transform: scale(1.28); }
.screen-stars i:nth-child(3) { top: 68px; right: 34px; transform: scale(.88); }
.screen-stars i:nth-child(4) { top: 82px; left: 23px; transform: scale(.68); }
.screen-stars i:nth-child(5) { top: 50px; left: 88px; transform: scale(.48); }

.home-pet-sprite {
  position: absolute;
  z-index: 3;
  top: 48%;
  left: 50%;
  width: 78%;
  height: 78%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 5px 1px rgb(50 63 82 / 25%));
  transform: translate(-50%, -43%);
}
.pixel-heart {
  position: absolute;
  z-index: 4;
  top: 46%;
  right: 19%;
  color: #f16f78;
  font-size: 23px;
  text-shadow: 2px 2px 0 #fff, -1px -1px 0 #cc4f5a;
}
.home-body [data-home-character="fancy-rat"] .pixel-heart { top: 45%; right: 6%; }

.pet-switcher {
  position: absolute;
  z-index: 4;
  top: 41.5%;
  right: 8%;
  display: grid;
  gap: 7px;
}
.home-body .pet-switcher button {
  width: 24px;
  min-height: 24px;
  display: grid;
  padding: 0;
  place-items: center;
  color: var(--home-olive);
  border: 1px solid rgb(122 139 100 / 34%);
  border-radius: var(--home-radius-button);
  background: linear-gradient(145deg, #fff, #e3e9dc);
  box-shadow:
    1px 2px 4px rgb(71 80 61 / 15%),
    inset 1px 1px 3px rgb(255 255 255 / 90%),
    inset -1px -1px 3px rgb(86 107 66 / 10%);
  font-size: 8px;
}
.home-body .pet-switcher button:hover { background: linear-gradient(145deg, #fff, #dce4d2); transform: translateY(-1px); }
.home-body .pet-switcher button:active { transform: translateY(1px); box-shadow: inset 2px 2px 5px rgb(86 107 66 / 18%); }
.home-body .pet-switcher button:focus-visible { outline: 2px solid rgb(122 139 100 / 48%); outline-offset: 2px; }
.console-actions { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.console-action {
  position: absolute;
  width: 82px;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--home-text);
  text-decoration: none;
  pointer-events: auto;
  transform: translateX(-50%);
}
.console-action h3,
.action-doctor > span:last-child {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.action-identify { bottom: var(--console-action-edge-bottom); left: 24%; }
.action-pets { bottom: var(--console-action-inner-bottom); left: 41.333%; }
.action-food { bottom: var(--console-action-inner-bottom); left: 58.667%; }
.action-doctor { bottom: var(--console-action-edge-bottom); left: 76%; }
.console-action-button {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--home-olive);
  border: 1px solid rgb(122 139 100 / 34%);
  border-radius: var(--home-radius-button);
  background:
    radial-gradient(circle at 33% 27%, #fff 0 7%, transparent 8%),
    linear-gradient(145deg, #fff, #e3e9dc);
  box-shadow:
    3px 4px 8px rgb(71 80 61 / 18%),
    inset 3px 3px 5px rgb(255 255 255 / 92%),
    inset -3px -3px 5px rgb(86 107 66 / 10%);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.action-pets .console-action-button,
.action-food .console-action-button { width: 50px; height: 50px; }
.console-action:hover .console-action-button { transform: translateY(-2px); box-shadow: 4px 6px 10px rgb(71 80 61 / 20%), inset 3px 3px 5px rgb(255 255 255 / 92%); }
.console-action:active .console-action-button { transform: translateY(1px); box-shadow: inset 2px 2px 6px rgb(86 107 66 / 18%); }
.console-action:focus-visible { outline: 3px solid rgb(122 139 100 / 45%); outline-offset: 5px; border-radius: 16px; }
.console-action svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.console-action svg .icon-fill { fill: currentColor; stroke: none; }
.console-action svg .icon-cutout { fill: #eef1e7; stroke: none; }
.action-food .food-icon-heart { fill: currentColor; stroke: none; }
.action-doctor svg path:first-child { fill: currentColor; stroke: none; }
.console-action-label { color: var(--home-text); font-size: 12.5px; font-weight: 700; white-space: nowrap; }

.screen-orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  pointer-events: none;
}
.screen-orbit .orbit-ellipse { stroke: rgb(183 139 88 / 68%); stroke-width: 1.35; vector-effect: non-scaling-stroke; }
.screen-orbit > circle { fill: #c6a77f; filter: drop-shadow(0 2px 3px rgb(114 78 43 / 22%)); }
.screen-orbit-back { z-index: -1; }
.screen-orbit-front { z-index: 3; }
.space-planet {
  position: absolute;
  z-index: 0;
  top: 62px;
  left: 20px;
  width: 48px;
  height: 48px;
  opacity: .75;
}
.space-planet .planet-sphere {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  border-radius: 50%;
  background: linear-gradient(145deg, #d8d3eb, #9fa9d4);
  box-shadow: inset 9px 7px 13px rgb(255 255 255 / 48%);
}
.space-planet .planet-ring-back,
.space-planet .planet-ring-front {
  position: absolute;
  top: 14px;
  left: -15px;
  width: 78px;
  height: 17px;
  border-radius: 50%;
  transform: rotate(-27deg);
}
.space-planet .planet-ring-back {
  z-index: 1;
  border: 4px solid #d8bdcd;
}
.space-planet .planet-ring-front {
  z-index: 3;
  display: block;
  border: 4px solid transparent;
  border-bottom-color: #d8bdcd;
  clip-path: inset(0 15px);
}
.space-moon {
  position: absolute;
  z-index: 0;
  top: 40px;
  right: -23px;
  width: 69px;
  height: 69px;
  border-radius: 50%;
  background: #eadfe0;
  box-shadow: inset 12px 8px 18px rgb(255 255 255 / 45%);
  opacity: .58;
}
.space-moon i,
.space-moon b,
.space-moon em { position: absolute; border-radius: 50%; background: rgb(201 180 184 / 30%); }
.space-moon i { top: 14px; left: 14px; width: 18px; height: 18px; }
.space-moon b { right: 9px; bottom: 15px; width: 16px; height: 16px; }
.space-moon em { bottom: 9px; left: 17px; width: 11px; height: 11px; }
.space-star { position: absolute; z-index: 0; color: #edb66f; font-size: 29px; text-shadow: 0 1px 0 #fff; }
.star-one { top: 18px; left: 43%; font-size: 21px; }
.star-two { top: 81px; right: 91px; }
.star-three { top: 302px; right: 21px; font-size: 23px; }
.star-four { bottom: calc(88px - var(--home-scene-trim, 0px)); left: 16px; font-size: 32px; }

.home-cards { position: relative; z-index: 6; display: grid; gap: 10px; }
.home-info-card {
  width: 100%;
  min-width: 0;
  min-height: 88px;
  color: inherit;
  background: var(--home-card);
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-card);
  box-shadow: var(--home-shadow), inset 0 1px 0 #fff;
}
.pet-summary-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  text-decoration: none;
}
.pet-summary-avatar {
  width: 58px;
  height: 62px;
  display: grid;
  overflow: hidden;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(145deg, #f1f3eb, #fff);
}
.pet-summary-avatar img {
  width: 92%;
  height: 92%;
  object-fit: cover;
}
.pet-summary-avatar img.is-pixel-avatar {
  object-fit: contain;
  image-rendering: pixelated;
}
.pet-summary-copy { min-width: 0; display: grid; gap: 6px; }
.pet-summary-copy strong,
.tip-copy strong { color: var(--home-text); font-size: 18px; line-height: 1.15; }
.pet-summary-copy strong i { margin-left: 6px; color: var(--home-text); font-size: 27px; font-style: normal; font-weight: 400; vertical-align: -2px; }
.pet-summary-copy small,
.tip-copy small { color: var(--home-text-secondary); font-size: 13px; line-height: 1.35; }
.pet-days {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  color: var(--home-text);
  background: rgb(198 208 180 / 34%);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.pet-days svg { width: 25px; height: 25px; fill: none; stroke: var(--home-olive); stroke-width: 2; }
.pet-days i { color: var(--home-text-secondary); font-size: 24px; font-style: normal; font-weight: 400; }

.tip-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 16px 16px 16px 13px;
}
.tip-leaf {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: transparent;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, var(--home-sage), var(--home-olive));
  transform: rotate(-10deg) scale(.75);
}
.tip-leaf::after {
  width: 2px;
  height: 52px;
  content: "";
  background: #f7f1e5;
  transform: rotate(45deg);
}
.tip-copy { min-width: 0; display: grid; gap: 7px; }
.card-chevron { color: #737a7e; font-size: 31px; font-weight: 300; }

.home-slogan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 23px 0 4px;
  color: #cbc3bb;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .15em;
  white-space: nowrap;
}
.home-slogan span { width: 25px; height: 1px; background: #d6cec7; }

/* Move the complete scene upward on phones; preserve the disc, sprite and controls. */
@media (max-width: 699px) {
  .home-shell { padding-top: max(16px, env(safe-area-inset-top)); }
  .home-greeting { padding-top: 8px; }
  .pet-console-scene {
    --home-scene-trim: 16px;
    height: calc(520px - var(--home-scene-trim));
    margin-top: -20px;
  }
}

@media (max-width: 360px) {
  .home-shell { padding-inline: 12px; }
  .home-greeting h1 { font-size: 29px; }
  .home-brand { width: 112px; }
  .home-brand-logo { width: 103px; height: 103px; }
  .pet-console-scene { height: calc(465px - var(--home-scene-trim)); margin-inline: -12px; }
  .pet-console { width: min(89vw, 318px); }
  .console-brand-arc { top: 39px; width: 210px; }
  .console-brand-arc text { font-size: 12px; }
  .pet-screen-shell { top: 80px; width: 202px; height: 202px; padding: 11px; }
  .pet-switcher { right: 7%; gap: 6px; }
  .home-body .pet-switcher button { width: 20px; min-height: 20px; font-size: 7px; }
  .console-action { width: 76px; }
  .console-action-button { width: 48px; height: 48px; }
  .action-pets .console-action-button, .action-food .console-action-button { width: 45px; height: 45px; }
  .console-action svg { width: 24px; height: 24px; }
  .console-action-label { font-size: 12px; }
  .pet-summary-card { grid-template-columns: 54px minmax(0, 1fr) auto; gap: 8px; padding-inline: 10px; }
  .pet-summary-avatar { width: 54px; height: 58px; }
  .pet-summary-copy strong, .tip-copy strong { font-size: 16px; }
  .pet-summary-copy small, .tip-copy small { font-size: 12px; }
  .pet-days { gap: 4px; padding-inline: 7px; font-size: 12px; }
  .pet-days svg { width: 21px; height: 21px; }
  .tip-card { grid-template-columns: 52px minmax(0, 1fr) auto; }
}

@media (min-width: 700px) {
  .home-shell { margin-block: 20px; min-height: auto; border-radius: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .console-action-button { transition: none; }
}
