@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;
  }
}

/* Rose identifies cat profiles and care. The comparison area keeps its green 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;
  }
}


.head .brand .supapurr-logo {
  display: block;
  width: clamp(142px, 16vw, 185px);
  height: auto;
}

.hero .btn.primary {
  background: #ffa8c9;
  color: #311b35;
}

.hero .btn.primary:hover {
  background: #fa92ba;
}

/* SupaPurr visual identity */
:root {
  --ink: #361d35;
  --deep: #361d35;
  --mute: #62545e;
  --line: #e8dadc;
  --canvas: #fff8f3;
  --soft: #f8eff0;
  --rose: #97234e;
  --rose-ink: #852145;
  --rose-line: #e8b9ca;
  --strawberry: #ff96b7;
  --butter: #ffda83;
}

header { border-color: var(--line); }
.head .brand .supapurr-logo { width: clamp(150px, 16.5vw, 196px); }
.head .navitem, .head .cat-nav { color: var(--mute); }
.head :is(.navitem, .cat-nav).active { background: #ffe2eb; color: var(--ink); }
.head :is(.navitem, .cat-nav):hover { background: #f9edf0; color: var(--ink); }

.hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr);
  border: 0;
  background: var(--strawberry);
  border-radius: 26px;
}
.hero-content { padding: clamp(28px, 3.9vw, 58px); }
[dir="ltr"] :is(.hero h1, .care-hero h1) {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -.047em;
}
[dir="ltr"] .hero h1 { font-size: clamp(3.3rem, 5.8vw, 5.2rem); line-height: .96; }
.hero h1, .hero h1 em, .care-hero h1 { color: var(--ink); }
[dir="ltr"] .hero h1 em { font-weight: inherit; font-style: normal; letter-spacing: inherit; }
.hero-content > p { color: #4a2840; max-width: 38ch; }
.hero .btn.primary { background: var(--ink); color: #fff8f3; }
.hero .btn.primary:hover { background: #542943; }
.hero-alt { background: transparent; border-color: #975771; color: var(--ink); }
.hero-alt:hover { background: #ffc3d6; border-color: #6e3550; }
.hero-visual { min-height: 340px; background: #e9a4b1; border-start-start-radius: 105px; }
.hero-visual img { object-position: center 50%; }
.dropzone { background: #fff8f3; border-color: #bc999c; }
.dropzone.drag { background: #ffe6ef; border-color: var(--rose); }
.dropzone .scan-mark { color: var(--ink); background: var(--butter); }
.count { background: #fff5da; color: var(--ink); border-color: #edd8a4; }
.capacity i { background: #e8d69e; }
.capacity i.filled { background: #775323; }
.scan-tip, .scan-tip b { color: var(--mute); }
.pref { background: #fff3f7; border-color: #ebcbd5; }
.pref .pref-icon, .care-icon { background: #ffd8e6; color: var(--rose); }
.sample:hover, .quiet:hover { background: #fff2f4; }
.care-hero { background: #ffebae; color: var(--ink); border-color: #eed493; }
.care-hero p, .care-kicker { color: #553747; }
.care-account { background: #fff8f3; border-color: #ddb987; }
.journal-symbol { display: block; flex-shrink: 0; margin-inline-start: auto; width: clamp(58px, 8vw, 100px); height: auto; }
footer .footer-logo { display: block; width: 112px; height: auto; }
:where(button, a, input, select, textarea, summary, [tabindex]):focus-visible { outline-color: var(--rose); }

@media (max-width: 900px) and (min-width: 691px) {
  .hero-content { padding: 30px 24px; }
  [dir="ltr"] .hero h1 { font-size: clamp(3rem, 6.2vw, 3.65rem); }
  .hero-visual { min-height: 305px; }
}
@media (max-width: 690px) {
  .head .brand .supapurr-logo { width: 145px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(90px, 34%); border-radius: 20px; }
  .hero-content { padding: 0; }
  [dir="ltr"] .hero h1 { font-size: clamp(2.05rem, 8.2vw, 3.35rem); }
  .hero-visual { min-height: 0; aspect-ratio: 1; border-radius: 50% 50% 15px 15px; }
  .hero-visual img { object-position: center; }
  .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(50px, 15vw, 83px); }
}
