:root {
  --green: #245c46;
  --green-dark: #163e30;
  --green-pale: #eaf1e9;
  --ink: #24372f;
  --muted: #69786f;
  --bg: #f7f8f3;
  --line: #e2e7df;
  --orange: #a5501f;
  --red: #a13636;
  --radius: 18px;
  --shadow: 0 12px 40px #163e3010;
  color-scheme: light;
}
.nutrition-item {border:1px solid var(--line);border-radius:12px;margin:18px 0;padding:16px;min-width:0;}
.nutrition-item legend {padding:0 8px;font-weight:650;}
.nutrition-preparation {display:block;color:var(--muted);font-weight:400;margin-top:5px;}
.nutrition-sources {margin-top:18px;}
@media print {
  #care-root button, #care-root .actions {display:none!important;}
  #nutrition-summary {break-inside:auto;}
  #care-root .table-scroll {overflow:visible;}
  #care-root thead {display:table-header-group;}
  #care-root tr {break-inside:avoid;}
}
#care-root details {margin:16px 0;}
#care-root summary {cursor:pointer;font-weight:650;}
#care-root .care-facts dd {overflow-wrap:anywhere;}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #d0a858;
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #7fa68b;
  outline-offset: 1px;
}
::selection {
  background: #d3e5cd;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #fff;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  padding: 34px 20px 24px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--green-dark);
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.7px;
  margin: 0 8px 42px;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--green);
  display: grid;
  place-items: center;
  font-size: 21px;
}
.brand small {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-top: 3px;
  color: var(--muted);
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #788579;
  padding: 0 14px;
  margin-bottom: 16px;
  font-weight: 650;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 5px;
  color: #626f65;
  font-weight: 550;
}
.nav-item:hover {
  background: #f3f6ef;
  text-decoration: none;
}
.nav-item.active {
  background: var(--green-pale);
  color: var(--green);
  font-weight: 700;
}
.nav-item > span {
  font-size: 21px;
  line-height: 1;
  width: 20px;
  text-align: center;
}
.sidebar-foot {
  margin-top: auto;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcf8;
  font-size: 11px;
}
.sidebar-foot p {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0 10px;
}
.sidebar-foot strong {
  font-weight: 600;
}
.status-dot {
  display: inline-block;
  background: #609561;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
}
.main-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  background: #fcfcf8;
  position: sticky;
  top: 0;
  z-index: 10;
}
.workspace-name {
  font-size: 12px;
  color: var(--muted);
}
.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.pet-select select {
  border: 1px solid var(--line);
  border-radius: 25px;
  padding: 8px 30px 8px 15px;
  background: white;
  color: var(--ink);
  max-width: 210px;
}
.language-button {
  border: none;
  background: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  padding: 10px;
}
.mobile-brand {
  display: none;
}
.content {
  max-width: 1350px;
  margin: auto;
  padding: 38px 42px 40px;
}
.view-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
}
.view-head h1 {
  font-size: 29px;
  letter-spacing: -0.9px;
  font-weight: 700;
}
.view-head p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  max-width: 640px;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--green);
  padding: 11px 17px;
  border-radius: 9px;
  background: var(--green);
  color: white;
  font-weight: 600;
  font-size: 12px;
  min-height: 42px;
  white-space: normal;
  line-height: 1.5;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn:hover {
  background: var(--green-dark);
}
.btn.secondary {
  background: white;
  border-color: var(--line);
  color: var(--green);
}
.btn.secondary:hover {
  background: #f1f5ee;
}
.btn.small {
  padding: 7px 11px;
  font-size: 11px;
  min-height: 34px;
}
.btn.light {
  background: #f9f7e9;
  color: var(--green);
  border-color: #f9f7e9;
}
.btn.outline-light {
  background: transparent;
  border-color: #ffffff4a;
  color: white;
}
.btn.danger,
.btn.danger:hover {
  background: var(--red);
  border-color: var(--red);
}
.btn.danger-outline {
  background: white;
  border-color: #e8c5c0;
  color: var(--red);
}
.icon-button {
  border: 0;
  background: none;
  padding: 9px 6px;
  color: var(--muted);
  font-size: 11px;
  border-radius: 6px;
  min-height: 36px;
}
.icon-button:hover {
  background: var(--green-pale);
  color: var(--green);
}
.danger-text {
  color: var(--red);
}
.daily-hero,
.welcome {
  position: relative;
  overflow: hidden;
  background: var(--green);
  border-radius: 20px;
  color: #fff;
  padding: 36px 40px;
}
.daily-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2.2px;
  font-weight: 650;
  color: #d1dec2;
}
.daily-hero h2 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 600;
  line-height: 1.25;
  max-width: 550px;
  margin: 12px 0;
}
.daily-hero p {
  font-size: 12px;
  color: #d2dfd2;
  max-width: 570px;
  margin-bottom: 22px;
}
.hero-paw {
  font-size: 102px;
  opacity: 0.16;
  transform: rotate(-20deg);
  margin-right: 30px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 22px 0 28px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 23px;
}
.stat > span {
  font-size: 11px;
  color: var(--muted);
}
.stat strong {
  display: block;
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 600;
  color: var(--green-dark);
  margin-top: 7px;
}
.stat strong small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.card > h2 {
  font-size: 17px;
  margin-bottom: 20px;
  font-weight: 650;
  letter-spacing: -0.4px;
}
.card > p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 15px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: 16px;
  letter-spacing: -0.4px;
  font-weight: 650;
}
.section-head a {
  font-size: 10px;
}
.muted {
  color: var(--muted);
  font-size: 11px;
}
.tag {
  display: inline-block;
  font-size: 9px;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--green-pale);
  color: var(--green);
  font-weight: 600;
  white-space: nowrap;
}
.tag.orange {
  background: #fcf0e4;
  color: var(--orange);
}
.record-row,
.reminder-row {
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid #edf0ea;
  padding: 15px 0;
  min-width: 0;
}
.record-row:last-child,
.reminder-row:last-child {
  border-bottom: 0;
}
.record-icon {
  height: 38px;
  width: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f0f4e9;
  color: var(--green);
  font-size: 18px;
}
.kind-symptom,
.kind-vet {
  background: #f9eee4;
  color: var(--orange);
}
.kind-water {
  background: #edf4f5;
  color: #487481;
}
.record-body {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.row-title,
.record-body > strong {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}
.record-body .muted {
  margin-top: 4px;
  font-size: 10px;
}
.record-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  white-space: pre-wrap;
  max-height: 110px;
  overflow: auto;
}
.record-amount {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.record-amount small {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.dashboard-grid .row-actions {
  flex-wrap: wrap;
  max-width: 90px;
  justify-content: flex-end;
}
.date-chip {
  width: 44px;
  height: 49px;
  border-radius: 9px;
  background: #f2f5ed;
  text-align: center;
  flex-shrink: 0;
  padding: 4px 2px;
}
.date-chip strong {
  display: block;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 600;
}
.date-chip span {
  font-size: 8px;
  color: var(--muted);
}
.date-chip.late {
  background: #fcf0e4;
  color: var(--orange);
}
.fine-print {
  font-size: 11px !important;
  color: var(--muted);
  line-height: 1.7 !important;
  margin-top: 18px !important;
}
.empty-state {
  text-align: center;
  padding: 32px 12px;
  color: var(--muted);
}
.empty-state h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 10px 0;
}
.empty-state p {
  font-size: 12px;
  max-width: 310px;
  margin: 0 auto 18px;
}
.empty-mark {
  font-size: 30px;
  color: #8aa085;
}
.welcome {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  min-height: 360px;
  background: #eaf0e4;
  color: var(--green-dark);
  padding: 48px;
}
.welcome .eyebrow {
  color: var(--green);
}
.welcome h2 {
  font-size: 39px;
  line-height: 1.14;
  letter-spacing: -1.6px;
  font-weight: 600;
  margin: 17px 0;
  max-width: 460px;
}
.welcome p {
  color: #637460;
  font-size: 13px;
  max-width: 450px;
  margin-bottom: 25px;
}
.welcome-note {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 16px;
}
.pet-art {
  position: relative;
  min-height: 250px;
  display: grid;
  place-items: center;
}
.art-pet {
  font-size: 126px;
  z-index: 2;
  position: relative;
  filter: drop-shadow(0 15px 20px #245c4610);
}
.art-cat {
  position: absolute;
  right: 0;
  bottom: 10px;
  font-size: 77px;
  z-index: 3;
}
.orbit {
  position: absolute;
  width: 230px;
  height: 230px;
  border: 1px solid #adbe9c;
  border-radius: 50%;
  opacity: 0.4;
}
.orbit-two {
  width: 300px;
  height: 300px;
}
.floating-note {
  position: absolute;
  bottom: 25px;
  left: 0;
  padding: 12px 16px;
  background: white;
  border-radius: 12px;
  font-size: 10px;
  box-shadow: var(--shadow);
  z-index: 4;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.feature {
  padding: 25px 24px;
  border-top: 1px solid #d8e1d3;
}
.feature > span {
  font-size: 11px;
  color: var(--green);
  font-weight: 700;
}
.feature h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 12px 0;
}
.feature p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.pet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pet-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 25px;
}
.pet-card.archived {
  background: #f7f7f3;
}
.pet-card-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.pet-avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: #f1f3e6;
  font-size: 34px;
}
.pet-card h2 {
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.6px;
  margin: 18px 0 3px;
  overflow-wrap: anywhere;
}
.pet-card dl {
  border-top: 1px solid var(--line);
  margin: 22px 0 16px;
}
.pet-card dl div {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
  font-size: 11px;
  gap: 12px;
}
.pet-card dt {
  color: var(--muted);
}
.pet-card dd {
  margin: 0;
}
.allergy {
  background: #fcf4e8;
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 11px;
  color: #8d622c;
}
.allergy p {
  margin-top: 5px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.pet-note {
  font-size: 12px;
  color: var(--muted);
  margin: 15px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.pet-card .actions {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  padding: 18px 20px;
  background: #eef2e9;
  border-radius: 12px;
  margin-bottom: 22px;
}
.filter-bar .field {
  margin: 0;
  flex: 1;
  min-width: 135px;
}
.filter-bar .field:first-child {
  flex: 0.8;
}
.filter-bar .field:nth-child(4) {
  flex: 1.4;
}
.field {
  display: block;
  margin: 0 0 18px;
  min-width: 0;
}
.field > span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #5a6e60;
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  display: block;
  background: #fff;
  border: 1px solid #dbe2d7;
  width: 100%;
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--ink);
  font-size: 12px;
  min-height: 41px;
}
.field textarea {
  resize: vertical;
}
.field input::placeholder {
  color: #89978b;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.load-more {
  display: flex;
  margin: 22px auto 0;
}
.completed-list {
  margin-top: 24px;
  opacity: 0.85;
}
.info-note {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 22px;
}
.trend-card {
  margin-top: 24px;
}
.chart-wrap {
  max-width: 750px;
  margin: 15px auto 0;
}
.chart-wrap svg {
  width: 100%;
  max-height: 210px;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  max-width: 750px;
  margin: 0 auto 24px;
}
.chart-labels strong {
  color: var(--green);
  font-size: 16px;
}
details {
  font-size: 12px;
  color: var(--muted);
}
summary {
  cursor: pointer;
  min-height: 30px;
  padding: 5px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
  margin-top: 12px;
}
th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.upload-label {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.upload-label input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.upload-label:focus-within {
  outline: 3px solid #d0a858;
  outline-offset: 3px;
}
.danger-zone {
  border-color: #ebd9d5;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.guide-card {
  padding: 30px;
}
.guide-card h2 {
  margin: 14px 0 12px;
}
.guide-card p {
  margin: 0;
}
.guide-number {
  font-size: 12px;
  color: #719273;
  font-weight: 650;
}
.alert {
  padding: 15px 18px;
  background: #e9f0e5;
  border: 1px solid #d2dfca;
  border-radius: 11px;
  font-size: 12px;
  margin-bottom: 22px;
  line-height: 1.8;
}
.alert.error {
  background: #fcf0ed;
  border-color: #edccc5;
  color: #92392f;
}
.alert.warning {
  background: #fff7e4;
  color: #866024;
  border-color: #ead9ad;
}
.alert h2 {
  font-size: 13px;
  margin-bottom: 15px;
  font-weight: 600;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 15px);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  color: #fff;
  background: var(--green-dark);
  padding: 13px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 12px;
  max-width: min(580px, 90vw);
  transition: 0.2s;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.error {
  background: #973e32;
}
footer {
  margin-top: auto;
  padding: 20px 42px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: #8b9689;
  font-size: 10px;
  gap: 20px;
}
#editor {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0;
  background: #fff;
  color: var(--ink);
  max-width: 540px;
  width: calc(100% - 32px);
  max-height: 90dvh;
  box-shadow: 0 20px 100px #163e3040;
}
#editor::backdrop {
  background: #172d2570;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
  font-weight: 600;
}
.dialog-close {
  border: 0;
  background: #f1f4ec;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
  color: var(--muted);
  line-height: 1;
}
.dialog-content {
  padding: 24px 26px 12px;
}
.dialog-content > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 26px;
  border-top: 1px solid var(--line);
  background: #fcfcf9;
  position: sticky;
  bottom: 0;
}
#form-error {
  color: var(--red);
  font-size: 12px;
  margin: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip-link {
  position: fixed;
  top: -50px;
  left: 12px;
  background: white;
  padding: 8px;
  z-index: 200;
}
.skip-link:focus {
  top: 10px;
}
@media (min-width: 1550px) {
  .content {
    padding: 48px 60px;
  }
  .topbar {
    padding: 0 60px;
  }
  .dashboard-grid {
    grid-template-columns: 1.3fr 1fr;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding: 28px 14px;
  }
  .brand {
    font-size: 17px;
    margin-left: 3px;
  }
  .brand small {
    font-size: 8px;
  }
  .content {
    padding: 30px 26px;
  }
  .topbar {
    padding: 0 26px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .pet-grid {
    grid-template-columns: 1fr 1fr;
  }
  .welcome {
    padding: 32px;
  }
  .welcome h2 {
    font-size: 33px;
  }
  .art-pet {
    font-size: 105px;
  }
  .orbit {
    width: 180px;
    height: 180px;
  }
  .orbit-two {
    width: 240px;
    height: 240px;
  }
  .art-cat {
    font-size: 60px;
  }
  .dashboard-grid .row-actions {
    max-width: none;
  }
  .feature-grid {
    gap: 14px;
  }
  .feature {
    padding: 20px 10px;
  }
  .hero-paw {
    font-size: 75px;
    margin: 0;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 18px;
  }
  .stat strong {
    font-size: 25px;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 6px 3px max(6px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    border-right: none;
    z-index: 30;
    background: #fff;
  }
  .sidebar .brand,
  .nav-label,
  .sidebar-foot {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: space-around;
  }
  .nav-item {
    flex-direction: column;
    gap: 4px;
    padding: 7px 4px;
    margin: 0;
    flex: 1;
    min-width: 49px;
    font-size: 8px;
    line-height: 1.3;
    text-align: center;
    border-radius: 8px;
  }
  .nav-item > span {
    font-size: 21px;
    height: 24px;
  }
  .topbar {
    height: 64px;
    padding: 0 18px;
    gap: 10px;
  }
  .workspace-name {
    display: none;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
  }
  .mobile-brand img {
    background: var(--green);
    border-radius: 8px;
    font-size: 16px;
    width: 28px;
    height: 28px;
  }
  .header-actions {
    gap: 3px;
  }
  .pet-select select {
    max-width: 145px;
    font-size: 11px;
    padding: 6px 19px 6px 10px;
  }
  .language-button {
    font-size: 10px;
    padding: 8px;
  }
  .content {
    padding: 26px 18px 24px;
  }
  .view-head {
    margin-bottom: 20px;
    align-items: start;
    gap: 12px;
  }
  .view-head h1 {
    font-size: 25px;
  }
  .view-head p {
    font-size: 11px;
    margin-top: 5px;
  }
  .view-head > .actions {
    max-width: 130px;
    flex-shrink: 0;
  }
  .view-head .btn {
    padding: 9px 12px;
    font-size: 11px;
  }
  .daily-hero {
    padding: 27px 24px;
  }
  .daily-hero h2 {
    font-size: 27px;
    max-width: 290px;
  }
  .daily-hero p {
    font-size: 11px;
    max-width: 290px;
  }
  .daily-hero .actions {
    gap: 7px;
  }
  .daily-hero .btn {
    font-size: 10px;
    padding: 8px 10px;
    min-height: 36px;
  }
  .hero-paw {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 55px;
    opacity: 0.1;
    pointer-events: none;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 18px 0 22px;
  }
  .stat {
    padding: 15px 17px;
  }
  .stat strong {
    font-size: 26px;
  }
  .card {
    padding: 19px 18px;
    border-radius: 14px;
  }
  .dashboard-grid {
    gap: 18px;
  }
  .section-head h2 {
    font-size: 15px;
  }
  .record-row {
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
  }
  .record-icon {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
  .record-row .row-actions {
    margin-left: auto;
  }
  .row-title {
    font-size: 12px;
  }
  .record-amount {
    margin-left: auto;
  }
  .reminder-row {
    gap: 10px;
    flex-wrap: wrap;
  }
  .reminder-row .row-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: -4px;
  }
  .reminder-row .tag {
    font-size: 8px;
  }
  .empty-state {
    padding: 25px 10px;
  }
  .pet-grid,
  .settings-grid,
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .pet-card {
    padding: 23px;
  }
  .pet-card .actions {
    gap: 18px;
  }
  .filter-bar {
    gap: 10px;
    padding: 14px;
  }
  .filter-bar .field {
    flex: 1 1 40%;
    min-width: 120px;
  }
  .filter-bar .field:nth-child(4) {
    flex: 1 1 40%;
  }
  .filter-bar .btn {
    flex: 1;
  }
  .welcome {
    display: flex;
    flex-direction: column;
    padding: 30px 26px;
    min-height: 0;
    gap: 5px;
  }
  .welcome h2 {
    font-size: 35px;
    max-width: 350px;
  }
  .welcome p {
    font-size: 12px;
  }
  .pet-art {
    height: 190px;
    min-height: 190px;
    max-width: 300px;
    width: 100%;
    margin: 8px auto 0;
  }
  .art-pet {
    font-size: 105px;
  }
  .orbit {
    width: 150px;
    height: 150px;
  }
  .orbit-two {
    width: 205px;
    height: 205px;
  }
  .floating-note {
    bottom: 10px;
    left: 0;
    font-size: 9px;
    padding: 10px 12px;
  }
  .art-cat {
    right: 0;
    bottom: 0;
    font-size: 57px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 22px;
  }
  .feature {
    padding: 21px 5px;
  }
  .feature h3 {
    margin: 6px 0;
  }
  .feature > span {
    float: right;
  }
  .main-wrap {
    padding-bottom: 73px;
  }
  footer {
    padding: 18px;
    font-size: 9px;
  }
  .dialog-head {
    padding: 20px;
  }
  .dialog-content {
    padding: 20px 20px 10px;
  }
  .dialog-actions {
    padding: 15px 20px;
  }
  .form-grid {
    gap: 12px;
  }
  #editor {
    max-height: 92dvh;
  }
  #editor .field input,
  #editor .field select,
  #editor .field textarea {
    font-size: 16px;
  }
  .toast {
    bottom: 85px;
  }
  .guide-card {
    padding: 24px;
  }
  .chart-wrap svg {
    min-height: 150px;
  }
  .card > p {
    font-size: 12px;
  }
  .stack-actions .btn {
    flex: 1 1 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  footer,
  .view-head > .actions,
  .toast,
  .skip-link,
  dialog,
  .row-actions,
  .alert {
    display: none !important;
  }
  .app-shell,
  .main-wrap {
    display: block;
    padding: 0;
  }
  .content {
    padding: 0;
    max-width: none;
  }
  body {
    background: white;
  }
  .card,
  .stat {
    break-inside: avoid;
    box-shadow: none;
  }
  .stats {
    gap: 10px;
  }
  .card {
    margin-top: 15px;
  }
  .chart-wrap svg {
    max-height: 170px;
  }
  details {
    display: block;
  }
  details > table {
    display: table;
  }
  a {
    color: inherit;
  }
  .view-head h1 {
    font-size: 24px;
  }
}

.app-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: var(--muted);
  font-size: 10px;
  min-height: 28px;
  background: #f0f4e9;
  padding: 2px 15px;
}
.app-status .icon-button {
  min-height: 26px;
  padding: 4px 7px;
  color: var(--green);
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.faq summary {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.faq p {
  font-size: 13px;
  line-height: 1.8;
  margin: 12px 0 4px;
}
.policy h2 {
  margin: 24px 0 10px;
}
.policy p {
  font-size: 13px;
  line-height: 1.8;
}
.footer-links {
  display: flex;
  gap: 16px;
}
@media print {
  .app-status {
    display: none;
  }
}

.community-intro {
  padding: 22px 26px;
  background: var(--green-pale);
  border-radius: 16px;
  margin-bottom: 22px;
}
.community-intro h2 {
  font-size: 24px;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.community-intro p {
  font-size: 13px;
  max-width: 760px;
}
.community-intro details {
  margin-top: 14px;
}
.community-intro li {
  margin: 7px 0;
}
.guest-card {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.guest-card > div {
  flex: 1;
  min-width: 220px;
}
.community-feed,
.support-card {
  margin-top: 24px;
}
.community-post {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.community-post h3 {
  font-size: 18px;
  margin: 15px 0 8px;
}
.community-body {
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: 14px;
  margin: 10px 0 16px;
}
.community-comment {
  border-left: 3px solid var(--line);
  padding: 10px 14px;
  margin: 12px 0;
  background: #f8faf5;
  font-size: 12px;
  white-space: pre-wrap;
}
.comment-form {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.comment-form label {
  flex: 1;
}
.comment-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.report-form {
  background: #faf3eb;
  padding: 18px;
  margin-top: 18px;
  border-radius: 12px;
}
.consent {
  display: flex;
  align-items: start;
  gap: 10px;
  margin: 15px 0;
  font-size: 12px;
}
.consent input {
  flex: none;
  width: 16px;
  height: 16px;
}
.community-feed select {
  border: 1px solid var(--line);
  padding: 7px;
  border-radius: 8px;
  color: var(--ink);
  max-width: 155px;
}
.support-card > p {
  font-size: 12px;
  margin-bottom: 16px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .sidebar .nav-item {
    min-width: 45px;
    font-size: 7px;
  }
  .community-intro {
    padding: 20px;
  }
  .comment-form {
    flex-wrap: wrap;
  }
  .community-post h3 {
    font-size: 17px;
  }
}

@media (max-width: 760px) {
  .sidebar .nav-item {
    flex: 1;
    min-width: 0;
    font-size: 11px;
  }
  .sidebar nav {
    justify-content: space-around;
  }
}

.care-section { margin: 28px 0 12px; font-size: 18px; }
.care-links { padding-top: 7px; padding-bottom: 7px; }
.care-link { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:18px 0; border-bottom:1px solid var(--line); min-width:0; }
.care-link:last-child { border-bottom:0; }
.care-link strong,.care-link small { display:block; }
.care-link small { color:var(--muted); margin-top:4px; overflow-wrap:anywhere; }
.back-link { display:inline-block; margin-bottom:12px; }
.care-facts { display:grid; grid-template-columns:minmax(120px,1fr) 2fr; gap:12px 20px; }
.care-facts dt { font-weight:600; }
.care-facts dd { margin:0; color:var(--muted); overflow-wrap:anywhere; }
.care-saved { padding:16px 0; border-bottom:1px solid var(--line); }
.label-camera { border:2px dashed var(--line); border-radius:14px; padding:18px; display:flex; align-items:center; justify-content:center; min-height:180px; margin:18px 0; }
.label-camera img { max-width:100%; max-height:450px; object-fit:contain; border-radius:8px; }
.table-scroll { overflow:auto; }
.table-scroll table { width:100%; border-collapse:collapse; }
.table-scroll th,.table-scroll td { text-align:left; padding:12px; border-bottom:1px solid var(--line); vertical-align:top; overflow-wrap:anywhere; }
.community-photo-preview { display:block; max-width:100%; max-height:420px; object-fit:contain; border-radius:12px; margin:16px 0; }
.message-log { display:flex; flex-direction:column; gap:14px; margin:24px 0; }
.message-bubble { max-width:85%; padding:14px 18px; border-radius:16px; background:var(--bg); align-self:flex-start; overflow-wrap:anywhere; }
.message-bubble.sent { align-self:flex-end; background:var(--green-pale); }
.message-bubble p { white-space:pre-wrap; margin:0 0 6px; }
.message-bubble small { color:var(--muted); font-size:11px; }
.account-link { white-space:nowrap; }
@media(max-width:760px){
  .dm-mode .sidebar { display:none; }
  .dm-mode .main-wrap { padding-bottom:0; }
  .account-link { font-size:11px; padding:6px; }
  .mobile-brand { font-size:12px; }
  .pet-select select { max-width:105px; }
  .topbar { padding:0 10px; gap:6px; }
  .care-facts { grid-template-columns:1fr; gap:4px; }
  .care-facts dd { margin-bottom:10px; }
  .message-bubble { max-width:95%; }
  .care-link { gap:10px; }
}

/* App-owned English date controls, independent of browser/OS locale. */
.field > label { display:block; font-size:11px; font-weight:600; color:#5a6e60; margin-bottom:7px; }
.field > .date-field { display:block; position:relative; margin-bottom:0; }
.field .date-field input { padding-right:44px; }
.date-open { position:absolute; right:1px; top:1px; bottom:1px; width:40px; display:grid; place-items:center; background:transparent; border:0; border-radius:7px; color:var(--green); cursor:pointer; }
.date-open svg { width:19px; height:19px; }
.date-calendar { width:min(360px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); overflow:auto; padding:18px; border:1px solid #dbe2d7; border-radius:16px; color:var(--ink); background:#fff; }
.date-calendar::backdrop { background:rgb(20 40 30 / 25%); }
.date-calendar-heading, .date-calendar-month, .date-calendar-actions { display:flex; align-items:center; gap:8px; }
.date-calendar-heading { justify-content:space-between; margin-bottom:14px; }
.date-calendar-heading h2 { margin:0; font-size:18px; }
.date-calendar-month { margin-bottom:12px; }
.date-calendar-month label:first-of-type { flex:1; min-width:0; }
.date-calendar-month select, .date-calendar-month input { width:100%; min-height:40px; border:1px solid #dbe2d7; border-radius:7px; padding:6px; font:inherit; background:#fff; color:var(--ink); }
.date-calendar-month label:last-of-type { width:74px; }
.date-calendar-month > button { padding:4px; width:28px; flex:none; font-size:24px; }
.date-calendar-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; }
.date-calendar-days > span { text-align:center; font-size:11px; color:#5a6e60; padding:6px 0; }
.date-calendar-days > button { min-height:36px; border:1px solid transparent; border-radius:7px; padding:5px 0; background:#f5f7f1; color:var(--ink); font:inherit; cursor:pointer; }
.date-calendar-days > button[aria-current=date] { border-color:#2b5d4b; }
.date-calendar-days > button[aria-pressed=true] { background:#2b5d4b; color:#fff; }
.date-calendar button:disabled { opacity:.35; cursor:default; }
.date-calendar-actions { justify-content:space-between; margin-top:12px; }
.date-calendar button:focus-visible, .date-calendar input:focus-visible, .date-calendar select:focus-visible, .date-open:focus-visible { outline:2px solid #2b5d4b; outline-offset:2px; }
