@font-face {
  font-family: Inter;
  src: url(/assets/inter.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #182d27;
  --deep: #174b3c;
  --accent: #387458;
  --mute: #54675e;
  --line: #d7e0d7;
  --canvas: #f8faf6;
  --soft: #e9f1e6;
  --r: 18px;
  font:
    16px/1.5 Inter,
    "DM Sans",
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--deep);
}
.wrap {
  width: min(1216px, calc(100% - 88px));
  margin: auto;
}
header {
  background: #fff;
  border-bottom: 1px solid #dae2d8;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--deep);
  font-weight: 570;
  letter-spacing: -0.06em;
  font-size: 23px;
  white-space: nowrap;
}
.brand b {
  font-weight: 790;
}
.brand img {
  width: 40px;
  height: 40px;
}
.actions,
.work-actions,
.table-tools,
.tabs,
.matches {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang,
.link,
.tiny-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--mute);
  font-size: 0.9rem;
  font-weight: 590;
}
.lang {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 13px;
  color: var(--deep);
}
.link:hover,
.tiny-link:hover {
  color: var(--deep);
  text-decoration: underline;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1 {
  font-size: clamp(40px, 4.5vw, 65px);
  font-weight: 680;
  line-height: 1.01;
  letter-spacing: -0.067em;
  color: #163d32;
}
h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.064em;
  color: #356b50;
}
h2 {
  font-size: 1.55rem;
  line-height: 1.24;
  font-weight: 660;
  letter-spacing: -0.048em;
}
h3 {
  font-size: 1.12rem;
  line-height: 1.28;
  letter-spacing: -0.025em;
  font-weight: 650;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 9px;
  min-height: 43px;
  padding: 9px 17px;
  font-weight: 630;
  font-size: 0.9rem;
  border: 1px solid transparent;
  line-height: 1.3;
}
.primary {
  background: var(--deep);
  color: #fff;
}
.primary:hover {
  background: #593653;
}
.quiet:hover {
  background: #eaf2e8;
}
.quiet {
  background: #fff;
  border-color: #bdcfc0;
  color: var(--deep);
}
.desk {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(270px, 1fr);
  gap: 22px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  padding: 24px 26px;
  min-width: 0;
}
.sect-head,
.pref-title,
.food-row,
.work-actions,
.match-head,
.photo-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sect-head {
  justify-content: space-between;
  margin-bottom: 17px;
}
.count,
.type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  background: #edf3eb;
  color: #46624c;
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 3px 9px;
  font-weight: 600;
}
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1.5px dashed #a7bfac;
  border-radius: 13px;
  background: #f6f9f3;
  padding: 16px 12px 12px;
  gap: 7px;
}
.dropzone.drag {
  background: #dceedd;
  border-color: #226744;
}
.scan-mark,
.pref-icon {
  display: grid;
  place-items: center;
  background: #e2efdf;
  color: #417653;
  border-radius: 13px;
  width: 44px;
  height: 44px;
}
.scan-mark {
  margin-bottom: 2px;
}
.dropzone p,
.sect-head p,
.note,
.prose p,
.photo-panel p,
.match p {
  color: var(--mute);
  line-height: 1.5;
}
.dropzone p {
  font-size: 0.9rem;
}
.dropzone .btn {
  min-height: 36px;
  margin-top: 3px;
}
.link {
  color: var(--deep);
  padding: 3px 2px;
}
.manual {
  font-size: 0.8125rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pref-title {
  margin-bottom: 15px;
}
.pref-title h2 {
  font-size: 1.19rem;
  letter-spacing: -0.035em;
}
.pref-icon {
  width: 33px;
  height: 33px;
  border-radius: 9px;
}
.field {
  display: grid;
  gap: 5px;
  margin-bottom: 11px;
}
.field > span {
  font-weight: 580;
  color: #42574b;
  font-size: 0.87rem;
}
.field input,
.field select,
.field textarea,
#sort {
  min-width: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #c6d3c9;
  border-radius: 8px;
  padding: 8px 11px;
  min-height: 40px;
  color: var(--ink);
  font-size: 0.94rem;
}
.field select,
#sort {
  appearance: none;
  padding-inline-end: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12' fill='none' stroke='%2347584a' stroke-width='1.5'%3E%3Cpath d='m3 4 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}
.priv {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 12px;
  border-top: 1px solid #e5ebe4;
  color: #627266;
  font-size: 0.8rem;
  margin-top: 13px;
}
.priv svg {
  flex-shrink: 0;
}
.catalog {
  margin: 32px 0 36px;
}
.sect-head p {
  font-size: 0.94rem;
  margin-top: 3px;
}
.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.sample {
  display: flex;
  align-items: center;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  gap: 14px;
  min-height: 132px;
  padding: 14px;
}
.samplepic {
  border-radius: 10px;
  background: #f1efe5;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 82px;
  min-height: 100px;
  align-self: stretch;
}
.s1 .samplepic {
  background: #e8efdf;
}
.s2 .samplepic {
  background: #f8eee1;
}
.pack {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.samplepic .pack {
  width: 68px;
  height: 82px;
  mix-blend-mode: multiply;
}
.sampleinfo {
  min-width: 0;
  padding-inline-end: 2px;
}
.sampleinfo h3 {
  font-size: 1rem;
  line-height: 1.25;
  margin: 3px 0 9px;
  letter-spacing: -0.034em;
}
.small {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mute);
}
.type {
  background: #f1f4ef;
  font-size: 0.75rem;
  padding: 2px 7px;
}
.round,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--deep);
  border-radius: 8px;
  min-width: 34px;
  height: 34px;
}
.round {
  margin-inline-start: auto;
  align-self: flex-start;
  border: 1px solid #c9d8cb;
  background: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  min-width: 30px;
}
.round:hover,
.round.chosen,
.icon-btn:hover {
  background: #e6f1e3;
}
.food-row {
  padding: 9px 0;
  border-top: 1px solid #e2e8e1;
}
.food-row .grow {
  flex: 1;
  min-width: 0;
}
.food-row b {
  font-weight: 620;
}
.food-row .pack {
  background: #f3f6ef;
  border-radius: 7px;
  padding: 4px;
}
.food-row .icon-btn {
  min-width: 26px;
}
.food-row .fallback {
  display: grid;
  place-items: center;
}
.work-actions {
  margin-top: 12px;
  flex-wrap: wrap;
}
.comparison {
  margin-top: 22px;
  scroll-margin: 18px;
}
.match {
  background: #edf4e9;
  border-radius: 11px;
  padding: 16px 18px;
}
.match-head {
  color: var(--deep);
}
.matches {
  flex-wrap: wrap;
  gap: 6px;
  margin: 9px 0;
}
.match-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #27513d;
  border: 1px solid #c5d8c6;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 0.86rem;
  text-align: start;
}
.match p,
.note {
  font-size: 0.88rem;
}
.table-tools {
  justify-content: space-between;
  margin: 20px 0 12px;
  flex-wrap: wrap;
}
.table-tools label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}
.tabs {
  background: #eff3ee;
  border-radius: 8px;
  padding: 4px;
  gap: 2px;
}
.tabs button {
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  font-size: 0.88rem;
}
.tabs button.selected {
  background: #fff;
  color: var(--deep);
  box-shadow: 0 1px 3px #173b2122;
}
.table-scroll {
  overflow: auto;
  margin: 12px 0;
  max-height: 70vh;
  border: 1px solid var(--line);
  border-radius: 9px;
}
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 0.875rem;
  text-align: start;
}
th,
td {
  text-align: start;
  vertical-align: top;
  padding: 10px 12px;
  min-width: 138px;
  border-bottom: 1px solid #e3e9e3;
  border-inline-end: 1px solid #e3e9e3;
}
th {
  font-weight: 600;
}
thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #e7f0e5;
  color: var(--deep);
  max-width: 230px;
}
tbody th {
  background: #f4f7f3;
}
th:first-child {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  min-width: 116px;
  max-width: 154px;
}
thead th:first-child {
  z-index: 3;
}
tr:last-child td,
tr:last-child th {
  border-bottom: 0;
}
th small {
  display: inline-block;
  color: var(--mute);
  font-size: 0.72rem;
}
.cell {
  padding: 0;
  text-align: start;
  line-height: 1.45;
  color: #284e3c;
}
.cell:hover {
  text-decoration: underline;
}
.missing {
  color: #68766b;
  font-size: 0.8rem;
}
footer {
  border-top: 1px solid var(--line);
  padding: 17px 0 24px;
  color: var(--mute);
  font-size: 0.85rem;
}
footer .wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
footer .wrap > span {
  font-weight: 660;
  margin-inline-end: auto;
}
footer .link {
  font-size: 0.83rem;
}
#workspace {
  scroll-margin-top: 16px;
}
.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #5b9570;
  outline-offset: 2px;
}
.modal-open {
  overflow: hidden;
}
dialog {
  color: var(--ink);
  background: #fff;
  width: min(670px, calc(100% - 24px));
  max-height: 91dvh;
  border: 1px solid #c7d4c8;
  border-radius: 17px;
  padding: 0;
  box-shadow: 0 16px 80px #142d2040;
}
dialog::backdrop {
  background: #0d251f80;
}
.modal-head,
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 22px;
  background: #fff;
}
.modal-head {
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 1.4rem;
}
.modal-foot {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}
.modal-body {
  padding: 18px 22px;
}
.editor-scroll {
  overflow: auto;
  max-height: calc(91dvh - 143px);
}
.info-dialog {
  width: min(570px, calc(100% - 24px));
}
.info-dialog .modal-body {
  overflow: auto;
  max-height: calc(91dvh - 76px);
}
.prose p,
.prose details {
  margin: 8px 0 15px;
}
.prose summary {
  cursor: pointer;
  font-weight: 600;
}
.prose h3 {
  margin: 14px 0 4px;
}
.photo-panel {
  background: #f0f6ec;
  border: 1px dashed #adc6b3;
  padding: 16px;
  border-radius: 12px;
}
.photo-panel p {
  font-size: 0.9rem;
  margin: 6px 0 12px;
}
.slim {
  min-height: 36px;
  padding: 7px 11px;
}
.form-heading {
  margin: 19px 0 5px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
  margin-top: 14px;
}
.infield {
  margin-bottom: 8px;
}
.infield .field {
  margin: 0;
}
.infield textarea {
  resize: vertical;
}
.tiny-link {
  margin-top: 4px;
  font-size: 0.77rem;
  color: #326345;
  padding: 1px;
}
.src-link {
  display: inline-block;
  margin-top: 12px;
}
.thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.thumbnail {
  padding: 0;
  margin-top: 10px;
}
.thumbnail img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: cover;
  border: 1px solid #b6c9b9;
  border-radius: 6px;
}
#scanprog:not(:empty) {
  padding-top: 10px;
  color: #2e5540;
  font-size: 0.85rem;
}
.proof {
  margin: 6px 0 13px;
}
.proof-img {
  position: relative;
  display: inline-block;
  line-height: 0;
}
.proof-img img,
.full-photo {
  max-width: 100%;
  max-height: 55vh;
  object-fit: contain;
}
.proof-img i {
  position: absolute;
  border: 2px solid #f58241;
  background: #f4a44f44;
}
.proof figcaption {
  font-size: 0.9rem;
  padding: 6px 0;
}
#toast {
  position: fixed;
  z-index: 15;
  bottom: 18px;
  left: 50%;
  transform: translate(-50%, 20px);
  pointer-events: none;
  opacity: 0;
  transition: 0.2s;
  background: #163c30;
  color: white;
  border-radius: 10px;
  padding: 11px 17px;
  max-width: min(90vw, 520px);
  font-size: 0.875rem;
}
#toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3 {
  letter-spacing: 0;
  line-height: 1.3;
}
[dir="rtl"] h1 em {
  font-family: inherit;
  font-style: normal;
}
[dir="rtl"] .field select,
[dir="rtl"] #sort {
  background-position: left 11px center;
}
@media (max-width: 960px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .desk {
    gap: 15px;
    grid-template-columns: minmax(0, 1.45fr) minmax(250px, 1fr);
  }
  .panel {
    padding: 20px;
  }
  .sample {
    gap: 9px;
    padding: 10px;
  }
  .samplepic {
    width: 58px;
    min-height: 82px;
  }
  .samplepic .pack {
    width: 48px;
    height: 70px;
  }
  .sampleinfo h3 {
    font-size: 0.91rem;
  }
  .sample .round {
    position: absolute;
    inset-inline-end: 7px;
    bottom: 7px;
    width: 26px;
    height: 26px;
    min-width: 26px;
  }
}
@media (max-width: 690px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .brand {
    font-size: 19px;
    gap: 7px;
  }
  .brand img {
    height: 32px;
    width: 32px;
  }
  .lang {
    padding: 5px 9px;
  }
  h1 {
    font-size: clamp(36px, 8.2vw, 53px);
  }
  .desk {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 17px;
  }
  .sect-head {
    margin-bottom: 13px;
  }
  h2 {
    font-size: 1.32rem;
  }
  .dropzone {
    padding: 15px 9px 12px;
  }
  .sample-grid {
    grid-template-columns: 1fr;
  }
  .sample {
    min-height: 86px;
    gap: 13px;
  }
  .samplepic {
    width: 70px;
    min-height: 66px;
  }
  .samplepic .pack {
    width: 54px;
    height: 60px;
  }
  .sample .round {
    position: static;
    align-self: center;
    width: 32px;
    height: 32px;
  }
  .sampleinfo h3 {
    margin: 2px 0 4px;
    font-size: 1rem;
  }
  .catalog {
    margin: 22px 0;
  }
  .pref {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
  }
  .pref-title,
  .pref .priv {
    grid-column: 1/-1;
  }
  .pref-title {
    margin-bottom: 12px;
  }
  .pref .priv {
    margin-top: 2px;
  }
  .pref .field select {
    font-size: 0.86rem;
  }
  .table-tools {
    gap: 6px;
  }
  .table-tools label {
    font-size: 0.8rem;
  }
  .work-actions {
    gap: 8px;
  }
  .comparison {
    margin-top: 15px;
  }
  .table-scroll td,
  .table-scroll th {
    min-width: 115px;
    padding: 8px;
  }
  .table-scroll th:first-child {
    min-width: 88px;
  }
  footer .wrap {
    gap: 12px;
  }
  .modal-body,
  .modal-head,
  .modal-foot {
    padding: 13px 15px;
  }
  .form-grid {
    gap: 0 10px;
  }
  .modal-body .actions {
    gap: 7px;
  }
  .brand span {
    direction: ltr;
  }
  .actions {
    flex-wrap: wrap;
  }
  .food-row {
    gap: 6px;
  }
}
@media (max-width: 360px) {
  .form-grid,
  .pref {
    grid-template-columns: 1fr;
  }
  .wrap {
    width: calc(100% - 20px);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.diff {
  padding: 16px 2px 0;
}
.diff h3,
.water h3 {
  font-size: 1rem;
}
.diff ul {
  margin: 6px 0 0;
  padding-inline-start: 20px;
  color: var(--mute);
  font-size: 0.9rem;
}
.water {
  border: 1px solid #d6e3ed;
  border-radius: 10px;
  background: #f5f9fb;
  padding: 14px;
  margin: 10px 0;
}
.water-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(70px, 1.3fr) 48px;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
  font-size: 0.84rem;
}
.meter {
  height: 12px;
  background: #dce8d6;
  border-radius: 3px;
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  background: #69a4b6;
}
.profile-summary,
.profile-identity,
.chips,
.target-food {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-summary {
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 13px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.avatar {
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eff4e7;
  color: var(--deep);
}
.profile-identity {
  min-width: 0;
}
.profile-identity h3,
.profile-identity p,
.health-chip,
.target-food {
  overflow-wrap: anywhere;
}
.profile-identity p {
  font-size: 0.84rem;
  margin-top: 3px;
  color: var(--mute);
}
.profile-summary .btn {
  white-space: nowrap;
}
.field-title {
  font-size: 0.87rem;
  font-weight: 580;
  color: var(--mute);
}
.chips {
  flex-wrap: wrap;
  margin-top: 5px;
}
.health-chip,
.chip-add {
  border-radius: 16px;
  font-size: 0.82rem;
  padding: 4px 10px;
  text-align: start;
}
.health-chip {
  background: #eef3e8;
  color: #395039;
}
.chip-add {
  border: 1px dashed #a5bda5;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--deep);
}
.shopping-prefs {
  margin-top: 12px;
  font-size: 0.85rem;
}
.shopping-prefs summary,
.vet-target-fields summary,
.extra-nutrition summary {
  color: var(--deep);
  cursor: pointer;
  font-weight: 610;
}
.shopping-prefs[open] summary {
  margin: 0 0 8px;
}
.health-panel {
  margin: 20px 0 0;
}
.section-label {
  color: var(--accent);
  font-size: 0.79rem;
  font-weight: 650;
}
.health-panel h2 {
  margin: 4px 0 0;
}
.health-panel .sect-head {
  margin-bottom: 10px;
}
.goal-copy,
.care-card p {
  color: var(--mute);
  max-width: 84ch;
  line-height: 1.55;
}
.goal-copy {
  font-size: 0.95rem;
}
.health-source {
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: normal;
}
.health-table-title {
  margin: 15px 0 4px;
}
.empty-guide,
.weight-line,
.fact-line,
.clinical-note {
  font-size: 0.9rem;
  margin-top: 11px;
}
.weight-line {
  font-weight: 600;
}
.empty-guide {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #516b55;
}
.fact-line {
  background: #eef4ed;
  border-radius: 8px;
  padding: 9px 12px;
}
.clinical-note {
  background: #fcf4e7;
  border-radius: 8px;
  padding: 9px 12px;
}
.care-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 8px;
  margin: 13px 0;
}
.care-card,
.target-report {
  padding: 12px;
  background: #f5f7ef;
  border: 1px solid #d9e3d4;
  border-radius: 10px;
}
.care-card h3,
.target-report h3 {
  font-size: 1rem;
}
.care-card p,
.target-report p {
  margin-top: 4px;
  font-size: 0.88rem;
}
.target-report {
  margin-top: 12px;
  background: #f1f5f6;
}
.target-food {
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid #d9e3e2;
  margin-top: 9px;
  padding-top: 7px;
  font-size: 0.85rem;
}
.target-report small {
  display: block;
  margin-top: 9px;
}
.health-table {
  max-height: 52vh;
}
.weight-box {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  margin: 10px 0;
}
.weight-box legend,
.condition-group legend {
  font-size: 0.9rem;
  font-weight: 650;
}
.weight-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr 0.7fr;
  gap: 8px;
}
.weight-inputs .field {
  margin-bottom: 5px;
}
.condition-group {
  margin: 11px 0 0;
  padding: 7px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.condition-group legend {
  padding-inline-end: 8px;
  color: var(--deep);
}
.condition-group > div,
.extra-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}
.condition-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.89rem;
  background: #f8faf6;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
}
.condition-option input {
  accent-color: var(--deep);
  margin: 3px 0 0;
}
.condition-option:has(input:checked) {
  background: #e8f2e4;
}
.directory-list {
  columns: 2;
  padding-inline-start: 24px;
}
.directory-list li {
  break-inside: avoid;
  font-size: 0.92rem;
  margin: 4px 0;
}
.extra-nutrition,
.vet-target-fields {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  margin: 10px 0;
}
.extra-row {
  align-items: center;
}
.extra-nutrition .note,
.vet-target-fields .note {
  margin: 7px 0;
}
.breed-search input {
  min-height: 34px;
}
.health-panel .note {
  margin: 5px 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 690px) {
  .pref {
    display: block;
  }
  .condition-group > div {
    grid-template-columns: 1fr;
  }
  .health-panel .sect-head {
    align-items: flex-start;
  }
  .health-panel .link {
    white-space: nowrap;
  }
  .profile-summary .btn {
    min-height: 34px;
  }
  .goal-copy {
    font-size: 0.92rem;
  }
  .directory-list {
    columns: 1;
  }
  .target-food {
    display: grid;
    gap: 2px;
  }
}

/* Cat profiles and care controls. */
:root {
  --rose-ink: #833554;
  --rose: #9c3b65;
  --blush: #fbeaf0;
  --rose-line: #eac5d2;
  --plum: #594278;
  --teal: #23645f;
  --canvas: #fcfaf9;
}
.brand b {
  color: #873956;
}
.pref {
  background: linear-gradient(145deg, #fff4f7 0%, #fff 74%);
  border-color: var(--rose-line);
}
.pref .pref-icon,
.pref .avatar,
.care-icon {
  background: #f8d9e5;
  color: var(--rose-ink);
}
.pref .health-chip {
  background: #fae3ec;
  color: #79304f;
  border: 1px solid #ecc7d6;
}
.pref .rose-outline {
  margin-bottom: 14px;
}
.btn.pink {
  background: var(--rose);
  color: white;
  border-color: var(--rose);
}
.btn.pink:hover {
  background: #792d4c;
}
.btn.rose-outline {
  background: #fff1f6;
  border-color: #d9a4b9;
  color: #792d50;
}
.care-main {
  padding-bottom: 32px;
}
.care-hero {
  background:
    radial-gradient(ellipse at 72% 105%, #f1d1dc 0%, transparent 52%),
    linear-gradient(115deg, #fff1f5, #f9dfe9 65%, #f1e5ed);
  border: 1px solid #edccd9;
  border-radius: 22px;
  margin: 28px 0 20px;
  padding: clamp(22px, 4vw, 46px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #502d3c;
}
.care-kicker,
.care-form-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #803653;
  font-weight: 650;
  font-size: 0.94rem;
}
.care-hero h1 {
  color: #592b40;
  font-size: clamp(2.5rem, 6vw, 4.3rem);
  margin: 8px 0 12px;
  letter-spacing: -0.065em;
}
.care-hero p {
  max-width: 43ch;
  color: #624554;
}
.care-account {
  display: grid;
  gap: 3px;
  max-width: 36%;
  align-content: start;
  overflow-wrap: anywhere;
  border-inline-start: 2px solid #d49bb2;
  padding-inline-start: 16px;
}
.care-account span,
.care-account a,
.row-end time,
.care-row small {
  font-size: 0.88rem;
}
.care-account a {
  color: #71314c;
  text-underline-offset: 3px;
}
.care-empty {
  display: grid;
  justify-items: start;
  gap: 13px;
  padding: clamp(22px, 4vw, 42px);
  max-width: 900px;
}
.care-empty p {
  max-width: 59ch;
  color: var(--mute);
}
.care-icon {
  display: inline-grid;
  place-items: center;
  border-radius: 15px;
  height: 52px;
  width: 52px;
}
.care-picker {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  border-color: var(--rose-line);
}
.cat-select {
  display: grid;
  gap: 5px;
  font-size: 0.9rem;
  font-weight: 650;
  color: #73334c;
  min-width: min(100%, 210px);
}
.cat-select select,
.care-filter select {
  height: 41px;
  max-width: 100%;
  border: 1px solid #d7b7c5;
  background-color: white;
  border-radius: 8px;
  color: var(--ink);
  padding: 6px 30px 6px 10px;
  font: inherit;
}
.pref .cat-select {
  margin-bottom: 10px;
}
.care-entry {
  margin: 24px 0 18px;
}
.care-entry h2,
.care-history h2,
.care-columns h2 {
  font-size: clamp(1.22rem, 2vw, 1.5rem);
}
.care-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}
.care-action {
  min-height: 58px;
  padding: 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 650;
  font-size: 0.93rem;
  text-align: start;
  border: 1px solid color-mix(in srgb, currentColor 23%, transparent);
}
.care-action svg,
.care-tag svg {
  flex-shrink: 0;
}
.care-action:hover {
  filter: brightness(0.96);
}
.purchase {
  background: #e4f1e8;
  color: #265c43;
}
.feeding {
  background: #e0f1ee;
  color: #235e58;
}
.health {
  background: #fbe6ed;
  color: #823955;
}
.visit {
  background: #eee8fb;
  color: #574079;
}
.medication {
  background: #fcebd9;
  color: #7b461e;
}
.stock {
  color: #694c21;
  background: #fff0d3;
}
.care-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 18px;
}
.reminder-panel {
  background: linear-gradient(150deg, #fff4dd, #fffcf5 65%);
  border-color: #e5d2a6;
}
.pantry-panel {
  background: linear-gradient(150deg, #e9f3ed, #f8fbf8 65%);
  border-color: #c9ddcf;
}
.reminder-panel .sect-head {
  color: #704c1e;
}
.pantry-panel .sect-head {
  color: #295942;
}
.care-muted {
  color: #53645c;
  margin: 4px 0 16px;
  line-height: 1.5;
}
.care-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #ddd9ce;
  padding: 14px 0;
}
.care-row > div {
  min-width: 0;
}
.care-row b,
.care-row small,
.care-row time {
  display: block;
}
.care-row b {
  margin: 3px 0;
  overflow-wrap: anywhere;
}
.care-row > div > span,
.care-row small,
.care-row p {
  overflow-wrap: anywhere;
}
.care-row small,
.care-row time,
.care-row p,
.history-row > div > span:not(.care-tag) {
  color: #54635b;
}
.care-tag,
.due-tag {
  width: fit-content;
  font-size: 0.81rem;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 2px 9px;
}
.due-tag {
  color: #71471b;
  background: #f8e3bb;
}
.care-history {
  border-color: #e2d5db;
}
.care-history .sect-head {
  flex-wrap: wrap;
}
.care-row .row-end {
  text-align: end;
  flex-shrink: 0;
}
.care-row .row-end .link {
  margin-top: 4px;
  color: #803953;
}
.history-row p {
  margin-top: 5px;
  white-space: pre-wrap;
}
.care-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}
.link.danger {
  color: #8b3049;
}
.care-form-cat {
  border-radius: 20px;
  background: var(--blush);
  padding: 4px 10px;
  margin-bottom: 14px;
}
.care-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0;
  font-weight: 600;
}
.care-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--rose);
}
#remind-settings[hidden] {
  display: none;
}
.editor-scroll .care-muted {
  margin-bottom: 12px;
}
.modal-body textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  resize: vertical;
}
.rose-outline:hover {
  filter: brightness(0.97);
}
.care-main a.btn {
  text-decoration: none;
}
@media (max-width: 750px) {
  .care-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .care-columns {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 690px) {
  .care-hero {
    margin: 15px 0;
    align-items: start;
    flex-wrap: wrap;
    gap: 14px;
  }
  .care-account {
    max-width: 100%;
  }
  .care-picker {
    align-items: stretch;
    flex-direction: column;
  }
  .care-picker .actions {
    flex-wrap: wrap;
  }
  .care-action {
    font-size: 0.86rem;
    flex-direction: column;
    text-align: center;
  }
  .care-bottom {
    gap: 10px;
  }
  .care-row {
    gap: 6px;
  }
  .care-columns .btn {
    margin-top: 4px;
  }
}
@media (max-width: 420px) {
  .care-picker .btn {
    padding: 8px 10px;
  }
  .care-actions {
    gap: 6px;
  }
}

/* The main navigation keeps both work areas visible at every width. */
:root {
  --ink: #311b35;
  --deep: #311b35;
  --mute: #53645c;
  --line: #dedfd7;
  --canvas: #fff8f0;
  --blush: #faeaf0;
  --rose-ink: #7f3456;
  --r: 20px;
}
.head {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand {
  letter-spacing: -0.055em;
  font-weight: 630;
  font-size: 1.48rem;
  gap: 10px;
}
.brand img {
  height: 37px;
  width: 37px;
}
.brand b {
  font-weight: 720;
  color: #803756;
}
.head nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
}
.navitem,
.head .cat-nav {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: transparent;
  color: #536058;
  padding: 9px 15px;
  gap: 8px;
  border-radius: 999px;
  font-size: 0.91rem;
  font-weight: 620;
}
.head .navitem.active {
  background: #cee7cc;
  color: #311b35;
}
.head .cat-nav.active {
  background: #f8e2eb;
  color: #77344e;
}
.head .navitem:hover,
.head .cat-nav:hover {
  background: #f3f1ea;
  color: #393f36;
  text-decoration: none;
}
.head .lang {
  min-height: 42px;
  padding: 7px 14px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr);
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #e8d9d1;
  background: #fff0f4;
  border-radius: 24px;
  margin: 27px 0 24px;
}
.hero-content {
  align-self: center;
  padding: clamp(25px, 3.6vw, 57px);
  padding-inline-end: clamp(22px, 2.5vw, 40px);
}
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5.5vw, 5.15rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
  color: #311b35;
}
.hero h1 em {
  font-family: inherit;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.065em;
  color: #a33261;
}
.hero-content > p {
  font-size: 1.03rem;
  margin: 19px 0 23px;
  max-width: 42ch;
  color: #484f49;
  line-height: 1.55;
}
.hero .actions {
  gap: 10px;
  flex-wrap: wrap;
}
.hero .btn {
  border-radius: 999px;
  min-height: 45px;
  padding: 10px 20px;
}
.hero-alt {
  background: #fff9f4;
  border-color: #cdbbb1;
  color: #3a4940;
}
.hero-alt:hover {
  background: #fff;
  border-color: #9d8f88;
}
.hero-visual {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  isolation: isolate;
  align-self: stretch;
  border-start-start-radius: 54px;
  background: #dcb7a1;
}
.hero-visual img,
.journal-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
[dir="rtl"] .hero h1 {
  font-family: inherit;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.38;
  font-size: clamp(2.6rem, 4.5vw, 4rem);
}
[dir="rtl"] .hero h1 em {
  font-style: normal;
  letter-spacing: 0;
}
.panel {
  border-color: var(--line);
  box-shadow: 0 3px 12px #263e3106;
}
.desk {
  grid-template-columns: minmax(0, 1.75fr) minmax(285px, 1fr);
  gap: 20px;
  align-items: stretch;
}
.panel.work {
  display: flex;
  flex-direction: column;
  padding: clamp(19px, 2.1vw, 30px);
}
.sect-head h2,
.pref-title h2,
.catalog h2 {
  font-weight: 640;
  letter-spacing: -0.043em;
}
.count {
  flex-shrink: 0;
  gap: 8px;
  border: 1px solid #d9e5d9;
  background: #f3f8f1;
  padding: 4px 10px;
  font-size: 0.81rem;
  border-radius: 999px;
}
.capacity {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  direction: ltr;
}
.capacity i {
  background: #ccd9ca;
  width: 3px;
  height: 12px;
  border-radius: 2px;
}
.capacity i.filled {
  background: #48745a;
}
.dropzone {
  flex: 1;
  min-height: 194px;
  justify-content: center;
  background: #f5f8f1;
  border: 1px dashed #96b19b;
  gap: 6px;
  padding: 24px 15px;
  border-radius: 14px;
}
.dropzone .scan-mark {
  width: 51px;
  height: 46px;
  color: #316246;
  background: #e2eddf;
  border-radius: 14px;
  margin-bottom: 4px;
}
.dropzone h3 {
  font-size: 1.22rem;
}
.drop-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.dropzone .btn,
.manual {
  min-height: 42px;
  margin-top: 0;
}
.manual {
  font-size: 0.88rem;
}
.scan-tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 15px;
  color: #536357;
  line-height: 1.48;
  font-size: 0.87rem;
}
.scan-tip svg {
  margin-top: 2px;
  flex-shrink: 0;
}
.scan-tip b {
  font-weight: 650;
  color: #35503d;
  margin-inline-end: 4px;
}
.pref {
  border-color: #e8d2dc;
  background: linear-gradient(148deg, #fff3f7, #fff 80%);
  padding: clamp(19px, 2.1vw, 30px);
}
.pref-title {
  margin-bottom: 19px;
  gap: 10px;
}
.pref-title h2 {
  font-size: 1.33rem;
}
.pref .avatar {
  width: 42px;
  height: 42px;
  background: white;
  border: 1px solid #edcdd9;
}
.pref .pref-icon {
  color: #843c59;
  background: #f8e3eb;
  border-radius: 11px;
  width: 36px;
  height: 36px;
}
.pref .profile-summary {
  border-bottom-color: #eadde1;
}
.btn,
.link,
.icon-btn,
.round,
.navitem,
.sample {
  transition:
    background-color 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
.food-row b,
.profile-summary h3,
.sample h3,
.care-account b,
.care-row span {
  overflow-wrap: anywhere;
}
.food-row .icon-btn {
  min-width: 40px;
  min-height: 40px;
}
.catalog {
  margin: 32px 0;
}
.sample {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 15px;
  min-height: 112px;
}
.samplepic,
.s1 .samplepic,
.s2 .samplepic {
  width: 100%;
  min-height: 83px;
  background: #f2e6e8;
  border-radius: 10px;
}
.s1 .samplepic {
  background: #e9eee2;
}
.s2 .samplepic {
  background: #f7ebd9;
}
.sample .round {
  position: static;
  align-self: center;
  justify-self: end;
  width: 36px;
  height: 36px;
  margin: 0;
}
.sample .pack {
  width: 100%;
  max-width: 70px;
  height: 80px;
}
.sampleinfo h3 {
  line-height: 1.35;
  margin-bottom: 6px;
  font-size: 0.97rem;
}
.sampleinfo .small {
  font-size: 0.82rem;
}
.type {
  font-size: 0.78rem;
}
.match {
  border-inline-start: 3px solid #678f71;
  border-radius: 10px;
  background: #edf3ea;
}
.table-scroll {
  border-radius: 12px;
  overscroll-behavior-inline: contain;
}
.table-scroll tbody tr:nth-child(even) td {
  background: #fafaf7;
}
.table-scroll table {
  font-variant-numeric: tabular-nums;
}
.health-table .cell,
.comparison .cell {
  min-height: 30px;
}
.field input,
.field select,
.field textarea,
.cat-select select,
.care-filter select {
  min-height: 44px;
}
.profile-concerns {
  border: 1px solid #e5cdd6;
  background: #fffafb;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 14px 0 2px;
}
.profile-concerns summary {
  cursor: pointer;
  color: #69374c;
  font-size: 1rem;
  font-weight: 640;
}
.profile-concerns[open] summary {
  margin-bottom: 8px;
}
.modal-foot {
  flex-wrap: wrap;
}
.modal-foot .btn {
  min-height: 43px;
}
footer .wrap > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: -0.035em;
}
footer .link {
  min-height: 40px;
}
.care-hero {
  background: #f8edf0;
  border-color: #e6d0d9;
  padding: clamp(22px, 3.4vw, 45px);
  border-radius: 22px;
}
.care-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 4.5vw, 4.2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.055em;
}
.care-hero p {
  max-width: 52ch;
  font-size: 1.02rem;
}
.care-account {
  padding: 12px 16px;
  border: 1px solid #e5cbd5;
  background: #fffbfbbd;
  border-radius: 13px;
  gap: 1px;
}
.care-account a {
  width: fit-content;
  padding: 3px 0;
}
.journal-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  background: white;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.journal-welcome .care-empty {
  border: 0;
  box-shadow: none;
  align-content: center;
  gap: 12px;
  min-height: 260px;
  background: transparent;
}
.journal-welcome .care-empty p {
  max-width: 43ch;
}
.journal-photo {
  position: relative;
  overflow: hidden;
  background: #dce8d7;
  min-height: 240px;
}
.journal-photo img {
  object-position: 50% 32%;
}
.care-action {
  border-radius: 14px;
  padding: 14px 10px;
  gap: 8px;
  min-height: 65px;
}
.due-tag {
  font-weight: 680;
}
.care-row .row-end .link {
  min-height: 36px;
}
:where(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #2f705a;
  outline-offset: 3px;
}
[dir="rtl"] :is(.sect-head h2, .pref-title h2, .catalog h2, .care-hero h1) {
  letter-spacing: 0;
}
[dir="rtl"] .care-hero h1 {
  font-family: inherit;
  font-weight: 650;
  line-height: 1.4;
}
@media (min-width: 691px) and (max-width: 1020px) {
  .head {
    gap: 12px;
  }
  .head .navitem {
    padding-inline: 10px;
  }
  .hero-content {
    padding: 26px;
  }
  .hero-visual {
    min-height: 285px;
  }
  .sample {
    grid-template-columns: 55px 1fr;
    gap: 9px;
  }
  .samplepic {
    grid-row: span 2;
  }
  .sample .round {
    grid-column: 2;
    justify-self: start;
    width: 36px;
    height: 36px;
  }
  .desk {
    grid-template-columns: minmax(0, 1.3fr) minmax(270px, 1fr);
    gap: 14px;
  }
}
@media (max-width: 690px) {
  .head {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand lang" "nav nav";
    min-height: 0;
    gap: 4px 12px;
    padding-block: 9px 4px;
  }
  .head .brand {
    grid-area: brand;
    font-size: 1.15rem;
    gap: 8px;
    min-height: 41px;
    justify-self: start;
  }
  .head .brand img {
    width: 32px;
    height: 32px;
  }
  .head .lang {
    grid-area: lang;
    min-height: 39px;
    justify-self: end;
  }
  .head nav {
    grid-area: nav;
    justify-self: stretch;
    display: flex;
    gap: 4px;
  }
  .head .navitem,
  .head .cat-nav,
  .head .navitem.active,
  .head [data-act="help"] {
    display: inline-flex;
    justify-content: center;
    min-height: 42px;
    font-size: 0.87rem;
    padding: 6px 9px;
    gap: 5px;
    flex: 1;
    white-space: nowrap;
  }
  .head .navitem svg {
    width: 15px;
    height: 15px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(92px, 32%);
    grid-template-areas: "title photo" "copy copy" "buttons buttons";
    gap: 12px 10px;
    padding: 20px;
    margin: 16px 0;
    border-radius: 18px;
  }
  .hero-content {
    display: contents;
  }
  .hero h1 {
    grid-area: title;
    align-self: center;
    font-size: clamp(2.45rem, 8.6vw, 3.55rem);
    line-height: 1.01;
  }
  .hero-visual {
    grid-area: photo;
    min-height: 0;
    aspect-ratio: 1.05;
    border-radius: 32px 13px 14px 13px;
  }
  .hero-visual img {
    object-position: 51% 40%;
  }
  .hero-content > p {
    grid-area: copy;
    margin: 0;
    max-width: 52ch;
    font-size: 1rem;
  }
  .hero .actions {
    grid-area: buttons;
    gap: 8px;
  }
  .hero .btn {
    padding: 9px 15px;
    font-size: 0.9rem;
    min-height: 44px;
  }
  [dir="rtl"] .hero h1 {
    font-size: clamp(1.95rem, 6.8vw, 2.9rem);
    line-height: 1.45;
  }
  .desk {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .panel.work,
  .pref {
    padding: 18px;
  }
  .count {
    gap: 5px;
    font-size: 0.75rem;
    padding: 4px 7px;
  }
  .dropzone {
    min-height: 180px;
    padding: 17px 10px;
  }
  .drop-actions {
    gap: 2px 12px;
  }
  .scan-tip {
    margin-top: 12px;
  }
  .catalog {
    margin: 24px 0;
  }
  .sample-grid {
    gap: 9px;
  }
  .sample {
    grid-template-columns: 70px 1fr 42px;
    min-height: 90px;
    gap: 10px;
    padding: 10px;
  }
  .samplepic {
    min-height: 70px;
  }
  .sample .pack {
    height: 65px;
  }
  .sample .round {
    width: 42px;
    height: 42px;
  }
  .health-panel .sect-head {
    flex-wrap: wrap;
  }
  .table-scroll th:first-child {
    min-width: 96px;
    max-width: 120px;
  }
  .field input,
  .field select,
  .field textarea,
  .cat-select select,
  .care-filter select,
  #sort,
  .pref .field select {
    font-size: 1rem;
  }
  .care-hero {
    margin: 16px 0 12px;
    padding: 20px;
    gap: 14px;
  }
  .care-account {
    max-width: 100%;
    min-width: 0;
    padding: 8px 12px;
  }
  .journal-welcome {
    grid-template-columns: 1fr;
  }
  .journal-photo {
    min-height: 140px;
    max-height: 160px;
    grid-row: 1;
  }
  .journal-photo img {
    object-position: 50% 28%;
  }
  .journal-welcome .care-empty {
    min-height: 0;
    padding: 22px;
  }
  .care-hero h1 {
    font-size: 2.65rem;
  }
  .care-actions .care-action {
    min-height: 68px;
  }
  footer .wrap {
    column-gap: 14px;
    row-gap: 4px;
  }
  footer .wrap > span {
    flex-basis: 100%;
    margin-bottom: 4px;
  }
}
@media (max-width: 365px) {
  .head .navitem {
    font-size: 0.81rem;
    padding-inline: 5px;
  }
  .head .navitem svg {
    width: 14px;
  }
  .hero {
    padding: 16px;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) 30%;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero .btn {
    font-size: 0.85rem;
    padding-inline: 12px;
  }
  .profile-summary {
    flex-wrap: wrap;
  }
  .capacity {
    display: none;
  }
  .sect-head {
    gap: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .navitem,
  .link,
  .btn,
  .round,
  .icon-btn,
  .sample {
    transition: none;
  }
}
.nav-short {
  display: none;
}
@media (max-width: 690px) {
  .head nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .nav-long {
    display: none;
  }
  .nav-short {
    display: inline;
  }
  .head .navitem,
  .head .cat-nav,
  .head .navitem.active,
  .head [data-act="help"] {
    min-width: 0;
    padding-inline: 4px;
  }
  .hero-visual {
    width: 100%;
    min-width: 0;
    align-self: center;
  }
  .hero .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero .btn {
    padding-inline: 7px;
    gap: 5px;
  }
}

/* Colors from the original SupaPaws lid, with darker inks for small text. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #231f20;
  --deep: #231f20;
  --mute: #5c5156;
  --line: #dfd4d4;
  --canvas: #fffbf6;
  --soft: #fcf1f3;
  --rose: #a42656;
  --rose-ink: #922349;
  --rose-line: #e3a8bb;
  --strawberry: #d85f82;
  --blush: #f5aac8;
  --aqua: #9ed9df;
  --aqua-ink: #245762;
  --butter: #fff6ab;
  --display: "Bricolage Grotesque", Inter, system-ui, sans-serif;
}
header {
  background: #fffdf9;
  border-bottom: 1px solid #e4d8d9;
}
.head { min-height: 77px; }
.head .brand .supapurr-logo { display: block; width: clamp(155px, 15vw, 195px); height: auto; }
.head :is(.navitem, .cat-nav) { color: #443b3f; }
.head :is(.navitem, .cat-nav).active { background: #f9d5e3; color: var(--ink); }
.head :is(.navitem, .cat-nav):hover { background: #f7e8ec; color: var(--ink); }
.hero {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  margin-top: clamp(18px, 2.5vw, 32px);
  background: #fff4bd;
  border: 1.5px solid var(--ink);
  border-radius: 27px;
  box-shadow: 0 4px 0 var(--ink);
}
.hero-content {
  padding: clamp(29px, 4vw, 57px);
  position: relative;
}
[dir="ltr"] :is(.hero h1, .care-hero h1, h2, .dropzone h3) {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 760;
  letter-spacing: -.045em;
}
[dir="ltr"] .hero h1 {
  font-size: clamp(3.35rem, 6.05vw, 5.55rem);
  line-height: .93;
  font-weight: 800;
  letter-spacing: -.05em;
}
.hero h1, .care-hero h1 { color: var(--ink); }
.hero h1 em {
  color: var(--rose-ink);
  background: linear-gradient(177deg, transparent 76%, #f7c0d4 76% 92%, transparent 92%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
[dir="ltr"] .hero h1 em { font: inherit; letter-spacing: inherit; }
.hero-content > p { color: #453c3e; max-width: 43ch; line-height: 1.5; }
.hero .btn { min-height: 46px; border: 1.5px solid var(--ink); font-weight: 680; padding-inline: 18px; }
.hero .btn.primary { background: var(--ink); color: white; }
.hero .btn.primary:hover { background: var(--rose-ink); }
.hero-alt { background: #fffcf0; color: var(--ink); }
.hero-alt:hover { background: white; }
.hero-visual {
  min-height: 0;
  width: 100%;
  align-self: stretch;
  aspect-ratio: 4/3;
  border-radius: 0;
  border-inline-start: 1.5px solid var(--ink);
  background: var(--strawberry);
}
.hero-visual img { object-position: center; }
.panel { border-color: #d9cdce; box-shadow: 0 2px 0 #392b310b; }
.work .sect-head { margin-bottom: 15px; }
.count { background: #fff8c8; color: var(--ink); border-color: #d4bb69; }
.capacity i { background: #dfd29e; }
.capacity i.filled { background: #78521f; }
.dropzone {
  background-color: #e5f5f5;
  background-image: radial-gradient(circle at 8% 100%, #c1e8ea 0 8%, transparent 8.3%),
    radial-gradient(circle at 100% 0, #c1e8ea 0 10%, transparent 10.3%);
  border: 1.5px dashed #599aa2;
}
.dropzone.drag { border-color: var(--deep); background-color: #bde9e9; }
.dropzone .scan-mark {
  width: 52px; height: 52px; color: var(--ink);
  border-radius: 17px; background: #fffdf7; border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--aqua); transform: rotate(-5deg);
}
.dropzone h3 { color: var(--ink); }
.scan-tip, .scan-tip b { color: var(--mute); }
.manual, .tiny-link, .link { color: #4e3140; }
.pref { background: #fff0f5; border-color: #dfb4c4; }
.pref .pref-icon {
  color: var(--ink); background: var(--blush); border: 1px solid var(--ink);
  box-shadow: 1.5px 1.5px 0 #fff; border-radius: 10px;
}
.pref .avatar { background: #fff9d5; border-color: #d4b8aa; color: var(--ink); }
.samplepic { background: #f9d3e3; }
.s1 .samplepic { background: #c7e9eb; }
.s2 .samplepic { background: #fff5b9; }
.round, .sample .round { background: #fff7cf; color: var(--ink); border-color: #a48e7d; }
.sample:hover, .quiet:hover { background: #fff1f5; }
.btn.primary:hover { background: #4b2a3a; }
.match, .fact-line, .care-card { background: #f0f8f8; border-color: #b6d8da; }
.match { border-inline-start-color: #33808a; }
.care-card h3, .health-panel h2, .target-report h3 { color: var(--ink); }
.care-card p, .empty-guide { color: #40595b; }
.target-report, .clinical-note { background: #fff9dc; border-color: #e9d583; }
.section-label, .health-source { color: var(--aqua-ink); }
thead th { background: #d7eeef; }
tbody th { background: #f2f8f7; }
.tabs { background: #e7f1f1; }
.water { background: #edf8fa; }
.meter { background: #d5eced; }
.meter i { background: #358393; }
.care-hero {
  overflow: hidden; color: var(--ink);
  background: radial-gradient(ellipse 46% 170% at 104% -90%, var(--butter) 0 93%, transparent 93.5%),
    radial-gradient(ellipse 30% 140% at 105% 125%, var(--blush) 0 65%, transparent 66%),
    var(--aqua);
  border: 1.5px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}
[dir="rtl"] .care-hero {
  background: radial-gradient(ellipse 46% 170% at -4% -90%, var(--butter) 0 93%, transparent 93.5%),
    radial-gradient(ellipse 30% 140% at -5% 125%, var(--blush) 0 65%, transparent 66%), var(--aqua);
}
.care-kicker, .care-hero p { color: #2b474b; }
.care-account { background: #fffdf7; border-color: #58969c; }
.journal-symbol { display: block; flex-shrink: 0; margin-inline-start: auto; width: clamp(68px, 8vw, 106px); height: auto; transform: rotate(4deg); }
.care-icon { background: #fbd2e1; color: var(--rose-ink); }
.care-action.purchase, .care-tag.purchase { background: #cdebee; color: #244d54; }
.care-action.feeding, .care-tag.feeding { background: #e4f6f5; color: #285a5b; }
.care-action.health, .care-tag.health { background: #fbd7e5; color: #722040; }
.care-action.visit, .care-tag.visit { background: #fff2ad; color: #604d1b; }
.care-action.medication, .care-tag.medication { background: #f4e5f1; color: #603454; }
.reminder-panel { background: linear-gradient(145deg, #fff6bf, #fffdf2 75%); border-color: #e4d397; }
.pantry-panel { background: linear-gradient(145deg, #d5eef0, #fbffff 75%); border-color: #a9cdd0; }
.origin-story { display: grid; grid-template-columns: minmax(90px, 128px) 1fr; gap: 20px; align-items: center; margin-bottom: 24px; }
.origin-story img { display: block; width: 100%; height: auto; border-radius: 50%; transform: rotate(-5deg); box-shadow: 0 3px 0 #371a252a; }
.origin-story p { margin: 0; }
footer { background: #fffaf4; border-top: 1px solid var(--line); }
footer .footer-logo { display: block; width: 120px; height: auto; }
:where(button, a, input, select, textarea, summary, [tabindex]):focus-visible { outline-color: #862447; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero .btn, .sample .round { transition: transform .15s ease, box-shadow .15s, background-color .15s; }
  .hero .btn:hover { transform: translateY(-2px); box-shadow: 0 2px 0 var(--ink); }
  .sample:hover .round { transform: rotate(-7deg); }
}
@media (min-width: 691px) and (max-width: 960px) {
  .hero-content { padding: 28px 24px; }
  [dir="ltr"] .hero h1 { font-size: clamp(3rem, 6vw, 3.8rem); }
  .hero-visual { aspect-ratio: auto; min-height: 305px; }
}
@media (max-width: 690px) {
  .head { min-height: 0; }
  .head .brand .supapurr-logo { width: 147px; }
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(90px, 35%);
    grid-template-areas: "title photo" "copy copy" "buttons buttons";
    padding: clamp(15px, 4vw, 23px);
    margin: 17px 0 21px;
    gap: 12px;
    border-radius: 21px;
  }
  .hero-content { display: contents; padding: 0; }
  [dir="ltr"] .hero h1 { font-size: clamp(2.45rem, 8vw, 3.65rem); line-height: .98; }
  .hero-visual {
    align-self: center; border: 1.5px solid var(--ink);
    min-height: 0; aspect-ratio: 4/3; border-radius: 15px;
    transform: rotate(2deg); box-shadow: 2px 2px 0 #fffefa;
  }
  .hero-content > p { margin: 0; max-width: none; }
  .hero .btn { padding: 9px; }
  .care-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .care-account { grid-column: 1/-1; width: fit-content; max-width: 100%; }
  .journal-symbol { width: clamp(58px, 16vw, 86px); }
}
@media (max-width: 410px) {
  .origin-story { grid-template-columns: 76px minmax(0, 1fr); gap: 13px; align-items: start; }
  .origin-story img { margin-top: 5px; }
}

.ingredient-details {
  margin-block: 1rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf6;
}
.ingredient-details summary { cursor: pointer; font-weight: 680; color: var(--ink); }
.ingredient-details p { margin-block: .65rem; color: var(--mute); }
.ingredient-details .table-scroll { margin-block-start: .85rem; }
.ingredient-details button.cell { text-decoration: underline; text-underline-offset: .17em; }
.ingredient-rank { color: var(--rose-ink); font-variant-numeric: tabular-nums; }

.lang.language-picker {
  position: relative;
  flex: 0 0 auto;
  width: max-content;
  min-height: 42px;
  gap: .4rem;
  padding: 0 .65rem;
  background: #fff;
  color: var(--deep);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.language-picker select {
  appearance: none;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  min-height: 42px;
  padding-block: 0;
  padding-inline: 1.85rem 1.25rem;
  margin-inline: -.65rem;
  cursor: pointer;
}
.language-picker svg { pointer-events: none; position: absolute; inset-inline-start: .6rem; }
.language-picker svg:last-child { inset-inline: auto .35rem; }
.language-picker:focus-within { outline: 3px solid #a1406e; outline-offset: 2px; }
.language-picker select:focus { outline: none; }
html[lang="ar"] body { font-family: Inter, "Noto Sans Arabic", Tahoma, Arial, sans-serif; }

.profile-lookup { min-width: 0; }
.lookup-label { font-weight: 650; font-size: .92rem; color: var(--ink); }
.lookup-hint { color: var(--mute); font-size: .8rem; line-height: 1.45; }
.lookup-box { position: relative; min-width: 0; }
.lookup-box input { padding-inline-end: 2.2rem; }
.lookup-box::after {
  content: ""; position: absolute; inset-inline-end: 1rem; top: 40%;
  width: .45rem; height: .45rem; border: solid var(--mute);
  border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none;
}
.lookup-list {
  position: absolute; inset-inline: 0; top: calc(100% + 3px); z-index: 4;
  margin: 0; padding: 4px; max-height: min(12rem, 33dvh); overflow-y: auto;
  overscroll-behavior: contain; list-style: none; background: #fffdfb;
  border: 1px solid var(--rose-line); border-radius: 11px;
  box-shadow: 0 5px 16px #30222925;
}
.lookup-list[hidden], .lookup-chips:empty { display: none; }
.lookup-list li { padding: 9px 11px; border-radius: 7px; cursor: pointer; overflow-wrap: anywhere; }
.lookup-list li:is(:hover, [aria-selected="true"]) { background: var(--soft); color: var(--rose-ink); }
.lookup-custom { color: var(--rose-ink); font-weight: 640; }
.lookup-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 3px; }
.lookup-chip {
  display: inline-flex; align-items: center; gap: .5em; max-width: 100%; min-height: 32px;
  overflow-wrap: anywhere; text-align: start; padding: 3px 10px; font: inherit; font-size: .86rem;
  background: #e7f5f5; color: #23464a; border: 1px solid #a9cbca; border-radius: 15px; cursor: pointer;
}
.lookup-chip:hover { background: #d5edef; }
.lookup-chip span { flex-shrink: 0; font-size: 1.12em; }

/* Food library */
.lib-nav { text-decoration: none; }
.lib-main { padding-bottom: 24px; }
.lib-hero {
  margin-block: 22px 20px; padding: clamp(22px,4vw,46px); border: 1.5px solid var(--ink);
  border-radius: 22px; box-shadow: 0 4px 0 var(--ink); background: #f7cada;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.lib-hero h1 { font: 750 clamp(2.4rem,6vw,4.6rem)/1.04 var(--display); letter-spacing: -.055em; margin: 0; }
.lib-hero p { font-size: 1.05rem; line-height: 1.5; margin: 9px 0 0; max-width: 50ch; }
.lib-hero .btn { flex-shrink: 0; border: 1.5px solid var(--ink); }
.lib-tabs { display: flex; gap: 7px; flex-wrap: wrap; }
.lib-tabs button, .lib-pages button, .lib-add, .lib-detail {
  min-height: 42px; background: #fffdfa; border: 1px solid #cbbdbd; padding: 8px 13px;
  border-radius: 10px; font: inherit; color: var(--ink); cursor: pointer; font-weight: 620;
}
.lib-tabs button[aria-pressed="true"] { color: white; background: var(--ink); border-color: var(--ink); }
.lib-coverage { font-size: 1.02rem; font-weight: 600; margin-block: 18px 10px; }
.lib-filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px 14px;
  padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.lib-filters .field { margin: 0; }
.lib-filters .field >span { color: var(--ink); }
.lib-filters .lib-search, .lib-filters [data-filter="goal"] { min-width: 0; }
.lib-filters .lib-search, .lib-filters label:has([data-filter="goal"]) { grid-column: span 2; }
.lib-search>div { position: relative; }
.lib-search svg { position: absolute; inset-inline-start: 11px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.lib-search input { padding-inline-start: 38px; min-height: 44px; }
.lib-filters select { min-height: 44px; }
.lib-meta,.lib-end,.lib-note { color: var(--mute); font-size: .9rem; line-height: 1.5; }
.lib-note { padding: 12px 14px; background: #fff5cb; border-inline-start: 3px solid #bd9030; color: var(--ink); }
.lib-note[hidden] { display:none; }
.lib-result-head,.lib-end,.lib-card-head,.lib-actions,.lib-pages,.lib-source { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lib-result-head,.lib-end,.lib-card-head { justify-content: space-between; }
.lib-result-head { margin-block: 24px 12px; }
.lib-result-head h2 { font: 720 1.35rem/1.2 var(--display); margin: 0; }
.lib-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.lib-card { background:#fff; border:1px solid var(--line); border-radius:16px; padding: 17px; min-width:0; display:flex; flex-direction:column; align-items:flex-start; }
.lib-card-head { width:100%; align-items:flex-start; margin-bottom:12px; }
.lib-brand { color: var(--rose-ink); font-size:.91rem; font-weight:730; overflow-wrap:anywhere; }
.lib-pill { background:#dff0ef; color:#23464a; font-size:.82rem; border-radius:20px; padding:2px 9px; }
.lib-card h3 { margin:0; font:700 1.18rem/1.23 var(--display); overflow-wrap:anywhere; }
.lib-card .lib-meta { margin:5px 0 12px; }
.lib-fact { margin-top:auto; padding-top:2px; font-size:.9rem; }
.lib-actions { border-top:1px solid var(--line); width:100%; padding-top:11px; margin-top:12px; gap:6px; }
.lib-add,.lib-detail { font-size:.875rem; min-height:38px; padding:6px 10px; }
.lib-add { display:inline-flex; align-items:center; gap:4px; border-color:var(--rose-line); color:var(--rose-ink); }
.lib-add:not(:disabled):hover,.lib-detail:hover { background:var(--soft); }
.lib-add:disabled,.lib-pages button:disabled { color:#655f61; cursor:default; background:#f6f3f2; }
.lib-pages { justify-content:center; margin:20px 0; }
.lib-empty { grid-column:1/-1; margin:0; border:1px dashed var(--line); border-radius:12px; padding:24px; }
.lib-method { border:1px solid var(--line); padding:12px 15px; border-radius:12px; background:#fff; margin-top:12px; }
.lib-method summary { font-weight:650; cursor:pointer; }
.lib-end { margin-block:16px; }
.lib-dialog { overflow-wrap:anywhere; }
.lib-dialog h3 { margin:17px 0 5px; font-size:1.08rem; }
.lib-dialog p { margin:5px 0 11px; }
.lib-ingredients { padding-inline-start:22px; margin-block:6px 10px; }
.lib-data { margin:6px 0 12px; }
.lib-data div { border-bottom:1px solid var(--line); display:grid; grid-template-columns:minmax(100px,1fr) minmax(0,1.5fr); gap:12px; padding:6px 0; }
.lib-data dt { color:var(--mute); }
.lib-data dd { margin:0; font-weight:560; }
.lib-source { margin:16px 0 6px; }
.lib-dialog .lib-add { margin-bottom:8px; }
@media(max-width:900px) { .lib-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:690px) {
  .head nav { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .head .navitem { overflow-wrap: anywhere; white-space: normal; line-height:1.1; }
  .lib-hero { align-items:flex-start; flex-direction:column; }
  .lib-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:520px) { .lib-grid { grid-template-columns:minmax(0,1fr); } }
.lib-preview-ingredients { color:var(--ink); line-height:1.4; font-size:.91rem; margin:0 0 14px; }
.lib-preview-ingredients span { display:block; color:var(--mute); font-size:.82rem; }

.food-score-badge { display:inline-flex; align-items:center; gap:.55rem; padding:.32rem .65rem .32rem .4rem; border-radius:.65rem; background:#f7ecf2; color:#59253e; font-size:.8rem; font-weight:650; margin:.25rem 0; }
.food-score-badge bdi { padding:.22rem .45rem; color:#fff; background:#713552; border-radius:.4rem; font-size:.92rem; white-space:nowrap; font-variant-numeric:tabular-nums; }
.score-method { margin:10px 0 16px; }
.score-method p,.score-report small { line-height:1.55; }
.score-report { padding:1rem; border:1px solid #e5d6df; border-radius:14px; margin:1rem 0; }
.score-factors { margin:.65rem 0; }
.score-factors > div { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.25fr); gap:.65rem; padding:.65rem 0; border-bottom:1px solid var(--line); }
.score-factors dt { font-weight:650; }
.score-factors dd { margin:0; font-variant-numeric:tabular-nums; }
.score-factors small { display:block; color:var(--mute); overflow-wrap:anywhere; }

.lib-card .score-note { font-size:.875rem; line-height:1.45; color:#574453; margin:.25rem 0 .6rem; }
.recipe-estimate { padding:1rem; margin:1rem 0; background:#f1f9f8; border:1px solid #aacaC5; border-radius:14px; color:#233b38; }
.recipe-estimate h3 { margin:0 0 .6rem; }
.recipe-estimate table { border-collapse:collapse; width:100%; min-width:0; text-align:start; font-variant-numeric:tabular-nums; }
.recipe-estimate th,.recipe-estimate td { padding:.42rem .38rem; border-bottom:1px solid #d6e5e2; text-align:start; overflow-wrap:anywhere; min-width:0; }
.recipe-estimate caption { caption-side:top; text-align:start; font-size:.9rem; margin-bottom:.55rem; }
.recipe-estimate details { padding:.5rem 0; }
.recipe-estimate summary { cursor:pointer; font-weight:650; }
.estimate-callout,.estimate-score { background:#dcf1ee; color:#224b45; border-radius:8px; padding:.45rem .65rem; font-size:.9rem; }

.shop-actions,.offer-info {display:flex;flex-wrap:wrap;align-items:center;gap:.55rem;margin-block:.8rem 1rem}
.shop-actions [aria-pressed="true"] {background:var(--ink);border-color:var(--ink);color:white}
.lib-tools {margin-block:.8rem}
.lib-actions [data-buy] {font-size:.86rem;min-height:38px;padding:6px 10px}
.declared-meat {margin:.35rem 0 .85rem;padding:.55rem .7rem;background:#eef7f6;color:#21434a;border-inline-start:3px solid #46999a;border-radius:5px;line-height:1.4;font-size:.89rem}
.declared-meat small,.offer-row small,.budget-output small {display:block;margin-top:.35rem}
.shop-dialog {width:min(690px,calc(100% - 1.2rem));max-width:100%}
.shopper,.trial-body {overflow-wrap:anywhere}
.shopper > h3 {margin-block:.25rem 1rem}
.shop-fields {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));gap:.7rem}
.shopper .field,.trial-body .field {margin-block:.35rem .65rem;min-width:0}
.shopper form>.btn,.trial-body form>.btn {margin-top:.65rem}
.shopper :is(input,select,textarea),.trial-body :is(input,select,textarea) {max-width:100%;min-width:0}
.shopper summary,.trial-body summary {cursor:pointer;font-weight:690}
.shop-search,.budget-box {border:1px solid var(--line);border-radius:14px;padding:.85rem 1rem;margin-block:.8rem}
.budget-box {background:#fcf2f6}
.shop-search>p {margin-bottom:0}
.offer-row {border:1px solid var(--line);border-radius:14px;padding:.85rem 1rem;background:#fffdfa;margin-block:.6rem}
.offer-row header {display:flex;justify-content:space-between;align-items:baseline;gap:.7rem;margin-bottom:.25rem}
.offer-row header bdi {font-weight:750;color:var(--rose-ink)}
.offer-row small,.offer-info small {color:var(--mute)}
.offer-row p {margin:.45rem 0;font-size:.92rem}
.offer-row .actions,.trial-body .actions {display:flex;flex-wrap:wrap;gap:.45rem}
.offer-row .btn {padding:.36rem .7rem;min-height:36px;font-size:.875rem}
.offer-row[data-stock="out"] {background:#f7f5f4}
.budget-box fieldset {border:1px solid var(--line);padding:.5rem .8rem .2rem;background:white;margin:.65rem 0;border-radius:10px;min-width:0}
.budget-box legend {font-weight:650;padding-inline:.35rem}
.budget-output {display:flex;flex-wrap:wrap;align-items:center;gap:.35rem 1rem;padding:.65rem 0}
.budget-output small {flex-basis:100%}
.scan-status:not(:empty) {margin-top:.75rem}
.review-photo {max-width:100%;max-height:55vh;object-fit:contain}
@media(max-width:520px){.offer-row .actions,.trial-body .actions {align-items:stretch}.shop-fields {grid-template-columns:1fr}.shop-actions .btn {min-height:42px}.shop-dialog {width:calc(100% - .8rem)}}
