:root {
  --ink: #192e2a;
  --muted: #65746e;
  --green: #126c52;
  --deep: #0b644b;
  --line: #e0e7e2;
  --mint: #e8f3ea;
  --bg: #f5f7f4;
  --panel: #fff;
  --side: 222px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--ink);
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
label.filelabel {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #6fba9c;
}
.icon {
  display: inline-block;
  flex: none;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button {
  border: 0;
  background: none;
}
button:hover {
  filter: brightness(0.97);
}
.shell {
  min-height: 100vh;
}
.sidebar {
  width: var(--side);
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--line);
  z-index: 5;
  padding: 29px 15px 19px;
}
.brand {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0 7px;
  letter-spacing: -1.25px;
  font-size: 24px;
  font-weight: 750;
  align-self: flex-start;
  color: #193c32;
}
.brand span {
  color: var(--green);
}
.brand img {
  width: 37px;
  margin-right: 9px;
}
.navlabel {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #77857c;
  margin: 57px 12px 15px;
  font-weight: 600;
}
.navitem {
  display: flex;
  gap: 13px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 15px;
  color: #53605b;
  text-align: left;
  font-weight: 500;
}
.navitem .icon {
  width: 19px;
  height: 19px;
}
.navitem + .navitem {
  margin-top: 5px;
}
.navitem.chosen {
  background: #e3f2e7;
  color: #125f46;
  font-weight: 650;
}
.scan-nav {
  border-top: 1px solid var(--line);
  margin: 22px 4px 0;
  padding: 18px 0;
}
.scan-nav .navitem {
  color: var(--green);
  padding-left: 10px;
}
.sidebottom {
  margin-top: auto;
}
.version {
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--line);
  width: 100%;
  font-size: 12px;
  color: var(--muted);
  padding: 20px 7px 0;
  margin-top: 13px;
}
.version > span:last-child {
  margin-left: auto;
  color: #667c6e;
  font-size: 11px;
  font-weight: 650;
  padding: 4px 6px;
  background: #f0f4ee;
  border-radius: 5px;
}
.versiondot,
.dot,
.hero-label i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4d9973;
}
.workspace {
  margin-left: var(--side);
}
header {
  height: 69px;
  padding: 0 clamp(24px, 3vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.crumb,
.header-right,
.userbtn,
.flex,
.twobtn,
.hero-meta,
.hero-meta span,
.textbtn,
.btn,
.hero-btn,
.iconbtn,
.tag,
.medtext > span,
.choice,
.lineinfo,
.chip,
.search,
.note,
.listrow,
.tileicon,
.bigicon,
.modalhead,
.tab,
.hero-label,
.stockline,
.legend > span,
.cardhead,
.time small,
.scanicon {
  display: flex;
  align-items: center;
}
.crumb {
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}
.crumb strong {
  color: #3b4a42;
  font-weight: 550;
}
.header-right {
  gap: 19px;
}
.head-sep {
  height: 25px;
  width: 1px;
  background: var(--line);
}
.userbtn {
  gap: 9px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}
.userbtn > .icon {
  color: var(--muted);
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 33px;
  height: 33px;
  background: #f1e4cd;
  color: #795b33;
  font-weight: 600;
}
.notibtn {
  position: relative;
  padding: 6px;
}
.notibtn i {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #df9e51;
  outline: 2px solid #fff;
}
main {
  max-width: 1530px;
  margin: auto;
  padding: 30px clamp(24px, 3vw, 52px) 50px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(32px, 2.9vw, 46px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.15;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.045em;
  line-height: 1.25;
  font-weight: 650;
}
h3 {
  font-size: 19px;
  letter-spacing: -0.03em;
}
p {
  line-height: 1.5;
}
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.page-title p {
  color: var(--muted);
  margin-top: 7px;
  font-size: 15px;
}
.btn,
.hero-btn,
.textbtn,
.tag,
.iconbtn,
.tab {
  justify-content: center;
  gap: 8px;
  font-weight: 550;
}
.btn,
.hero-btn {
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.25;
  border: 1px solid #d5dfd8;
  background: #fff;
}
.btn.primary,
.hero-btn {
  color: white;
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 2px 2px #0d3d2810;
}
.primary:hover,
.hero-btn:hover {
  background: #0b5e45;
}
.primary .icon,
.hero-btn .icon {
  stroke-width: 2;
}
.btn.small {
  min-height: 32px;
  padding: 5px 11px;
}
.btn.danger,
.danger {
  color: #ab443c;
}
.btn:active,
.hero-btn:active {
  transform: translateY(1px);
}
.textbtn {
  color: var(--green);
  font-size: 14px;
  padding: 4px 0;
}
.iconbtn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: none;
}
.iconbtn:hover {
  background: #eef3ef;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(103deg, #deefe0 0%, #deeee0 53%, #cde6cf 100%);
  border: 1px solid #cddfce;
  border-radius: 21px;
  min-height: 220px;
  padding: 25px 30px;
  margin-bottom: 23px;
}
.hero-copy,
.emptyhero > div:first-child {
  position: relative;
  z-index: 2;
  max-width: 64%;
}
.hero-label {
  display: inline-flex;
  border-radius: 30px;
  background: #ffffffb5;
  color: #38694d;
  padding: 5px 10px;
  gap: 7px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}
.hero-label i {
  background: #3a915c;
  width: 6px;
  height: 6px;
}
.hero h2 {
  color: #153e2c;
  font-size: clamp(36px, 3.9vw, 56px);
  margin: 13px 0 9px;
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 640;
}
.hero-meta {
  gap: 12px;
  color: #3d5947;
  flex-wrap: wrap;
  font-size: 14px;
}
.hero-meta span {
  gap: 6px;
}
.hero-meta > i {
  width: 3px;
  height: 3px;
  background: #728c78;
  border-radius: 50%;
}
.hero-btn {
  display: inline-flex;
  margin-top: 20px;
  background: var(--deep);
  border-radius: 9px;
  min-height: 38px;
  padding: 9px 15px;
}
.hero-art {
  position: absolute;
  z-index: 1;
  right: 5.5%;
  height: 98%;
  width: 38%;
  object-fit: contain;
  top: 1%;
  pointer-events: none;
}
.hero-rings {
  position: absolute;
  right: 2%;
  top: 50%;
  width: 33%;
  aspect-ratio: 1;
  border: 1px solid #ffffff7d;
  transform: translateY(-50%);
  border-radius: 50%;
  box-shadow:
    0 0 0 32px #ffffff17,
    0 0 0 33px #ffffff66,
    0 0 0 70px #ffffff0d,
    0 0 0 71px #ffffff55,
    0 0 0 111px #ffffff0b,
    0 0 0 112px #ffffff44;
}
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(246px, 1fr);
  gap: 20px;
  align-items: start;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 21px;
  box-shadow: 0 2px 5px #1b402703;
}
.cardhead {
  justify-content: space-between;
  gap: 8px;
}
.rail {
  display: grid;
  gap: 16px;
}
.weekstrip {
  padding: 18px 0 15px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  border-bottom: 1px solid var(--line);
}
.weekdate {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  border-radius: 10px;
  padding: 9px 3px 6px;
  background: #f4f6f3;
  min-height: 69px;
}
.weekdate small {
  font-size: 12px;
  color: #6d7a72;
}
.weekdate b {
  font-weight: 600;
  font-size: 19px;
  line-height: 1.15;
}
.weekdate i {
  height: 3px;
  width: 3px;
  border-radius: 50%;
}
.weekdate i.has {
  background: #a8beaa;
}
.weekdate.current,
.calday.on {
  background: var(--green);
  color: white;
}
.weekdate.current small {
  color: #e2f0e6;
}
.weekdate.current i.has {
  background: #bde3b9;
}
.schedrow {
  display: grid;
  grid-template-columns: 52px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
  min-height: 98px;
}
.schedrow:last-child {
  border-bottom: 0;
  padding-bottom: 7px;
}
.time strong {
  font-size: 17px;
  letter-spacing: -0.035em;
}
.time small {
  font-size: 12px;
  color: var(--muted);
  gap: 3px;
  margin-top: 5px;
}
.medimage,
.stockimg,
.detailphoto,
.shelfphoto {
  background: #f3f5ef;
  border: 1px solid #e8ece4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.medimage {
  width: 58px;
  height: 66px;
  border-radius: 10px;
  padding: 5px;
}
.packshot {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.medtext {
  min-width: 0;
}
.medname {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.025em;
  text-align: left;
  padding: 0;
}
.medtext > span {
  font-size: 13px;
  gap: 6px;
  color: #4b5b51;
  margin-top: 5px;
}
.medtext small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
}
.tag,
.low,
.chip {
  border-radius: 20px;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 550;
  padding: 5px 9px;
}
.tag {
  gap: 4px;
}
.tag.taken,
.chip {
  background: #e8f3e8;
  color: #39764c;
}
.tag.pending {
  background: #f1f3ef;
  color: #607067;
}
.tag.skipped {
  background: #f8ebe5;
  color: #935d40;
}
.tileicon,
.bigicon,
.scanicon {
  justify-content: center;
  background: #eaf3e9;
  color: #488060;
  border-radius: 9px;
  width: 31px;
  height: 31px;
  flex: none;
}
.tileicon.sand {
  background: #faf0e1;
  color: #b67e40;
}
.tileicon.rose {
  background: #f6ebf1;
  color: #a87896;
}
.progressbody {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
}
.donut {
  flex: none;
  width: 89px;
  height: 89px;
  background: conic-gradient(from 0deg, #368661 var(--percent), #e7efe5 0);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.donut b {
  width: 73px;
  height: 73px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  letter-spacing: -0.075em;
  font-weight: 640;
}
.donut small {
  font-size: 15px;
  margin: 3px 0 0 2px;
  letter-spacing: 0;
}
.legend {
  flex: 1;
  display: grid;
  gap: 10px;
}
.legend > span {
  gap: 7px;
  font-size: 13px;
  color: #526158;
}
.legend b {
  margin-left: auto;
  color: var(--ink);
  font-size: 13px;
}
.dot {
  width: 7px;
  height: 7px;
}
.dot.green {
  background: #398868;
}
.dot.sage {
  background: #bfd5ba;
}
.dot.grey {
  background: #d8ddd7;
}
.stockline {
  gap: 10px;
  margin: 16px 0;
}
.stockimg {
  border-radius: 9px;
  width: 42px;
  height: 49px;
  padding: 4px;
  flex: none;
}
.stockline strong {
  font-size: 15px;
}
.stockline small,
.listrow small,
.choice small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
  line-height: 1.4;
}
.stockline .low {
  margin-left: auto;
}
.low {
  background: #fbefdc;
  color: #9a652b;
}
.pharmacy {
  width: 100%;
  background: #f9faf7;
  color: #47604b;
  min-height: 35px;
  font-size: 13px;
}
.moodbody {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
}
.moodbody span {
  color: var(--muted);
  white-space: nowrap;
}
.moodbody b {
  color: var(--ink);
  font-size: 28px;
}
.spark {
  height: 42px;
  width: 52%;
  overflow: visible;
}
.dose-icon {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  width: 14px;
  height: 10px;
  border: 1px solid #b1a477;
  background: linear-gradient(145deg, #ffefa4, #e2b64e);
  border-radius: 50%;
  transform: rotate(-28deg);
  flex: none;
}
.dose-icon.capsule {
  background: linear-gradient(90deg, #f1e9df 50%, #9baea7 50%);
  border-color: #a5b0a5;
  border-radius: 8px;
}
.dose-icon.tablet,
.dose-icon.half {
  background: linear-gradient(90deg, #e6dbed 46%, #ac9ab9 50%, #ece5f0 56%);
  border: 1px solid #b4a2bf;
  width: 12px;
  height: 12px;
}
.dose-icon.half {
  border-radius: 10px 0 0 10px;
  width: 7px;
}
.dose-icon.drops,
.dose-icon.liquid {
  background: #bdddeb;
  border-color: #83b6be;
  border-radius: 1px 70% 70%;
  width: 10px;
  height: 10px;
  transform: rotate(40deg);
}
.dose-icon.powder {
  border-radius: 1px;
  background: #f0e6d1;
}
.generic-pack .dose-icon {
  transform: scale(2.5) rotate(-28deg);
}
.spaced {
  margin-top: 18px;
}
.flex,
.twobtn {
  gap: 8px;
  flex-wrap: wrap;
}
.twobtn {
  margin-top: 19px;
}
.twobtn > * {
  flex: 1;
}
.empty {
  text-align: center;
  padding: 30px 15px;
  width: 100%;
  grid-column: 1/-1;
}
.empty > .icon {
  color: #73957a;
  margin-bottom: 9px;
}
.empty p,
.muted {
  color: var(--muted);
  font-size: 14px;
  margin: 7px 0;
}
.empty button {
  margin: 12px auto 0;
}
.monthgrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 18px;
}
.monthgrid > small {
  text-align: center;
  color: var(--muted);
  padding: 6px;
  font-size: 13px;
}
.calday {
  min-height: 49px;
  border-radius: 9px;
  position: relative;
  background: #f5f7f2;
}
.calday.dim {
  opacity: 0.45;
}
.calday span {
  display: flex;
  gap: 3px;
  justify-content: center;
  margin-top: 2px;
}
.calday i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #73a47f;
}
.calday i.pink {
  background: #ca7699;
}
.calday.on i {
  background: #fff;
}
.toolbar {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 21px;
  flex-wrap: wrap;
}
.tabs,
.search {
  display: flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
  background: white;
}
.tab {
  font-size: 14px;
  padding: 7px 12px;
  border-radius: 7px;
}
.tab.on {
  background: var(--mint);
  color: var(--green);
}
.search {
  gap: 8px;
  padding: 7px 11px;
  color: var(--muted);
}
.search input {
  border: none;
  background: transparent;
  width: 170px;
  font-size: 14px;
}
.gridcards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.medcard,
.programcard,
.person {
  min-width: 0;
}
.shelfphoto {
  height: 138px;
  width: 100%;
  padding: 12px;
  border-radius: 11px;
  margin-bottom: 15px;
}
.medcard p,
.person p,
.programcard p {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 15px;
}
.shelf-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bigicon {
  width: 45px;
  height: 45px;
  margin-bottom: 15px;
}
.lilac {
  background: #efebf6;
  color: #8b79a5;
}
.programcard small {
  display: block;
  color: var(--muted);
  margin: 10px 0 19px;
}
.listrow {
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.listrow:last-child {
  border-bottom: 0;
}
.listrow .btn {
  flex: none;
}
.listrow small {
  margin: 3px 0;
}
.journalgraph {
  height: 85px;
  margin: 16px 0;
  background: #f6f9f4;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.journalgraph .spark {
  width: 100%;
  height: 75px;
}
.journal-list {
  max-height: 270px;
  overflow: auto;
}
.large {
  width: 47px;
  height: 47px;
  font-size: 22px;
  margin-bottom: 12px;
}
.note {
  align-items: flex-start;
  gap: 10px;
  color: #4f6556;
  background: #edf3ec;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
}
.scanpanel {
  text-align: center;
  border-style: dashed;
  padding: 40px 18px;
}
.scanicon {
  margin: 0 auto 15px;
  width: 70px;
  height: 70px;
  border-radius: 20px;
}
.scanpanel p {
  max-width: 530px;
  margin: 12px auto 17px;
  color: var(--muted);
}
.filelabel {
  cursor: pointer;
  display: inline-flex;
  position: relative;
}
.filelabel input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}
.scanpanel small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
}
.prose {
  max-width: 880px;
  line-height: 1.65;
}
.prose p {
  margin: 10px 0 18px;
}
.prose h3 {
  margin-top: 22px;
}
.prose a,
a {
  color: var(--green);
}
.notifications-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 12;
  display: flex;
  flex-direction: column;
  width: min(400px, calc(100% - 16px));
  background: var(--panel);
  border-inline-start: 1px solid var(--line);
  box-shadow: -12px 0 36px #192e2a26;
  animation: notifications-enter 180ms ease-out;
}
.notifications-drawer[hidden] {
  display: none;
}
.notifications-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px 16px;
  border-bottom: 1px solid var(--line);
}
.notifications-drawer-header h2 {
  font-size: 22px;
}
.notifications-drawer-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) 16px;
}
@keyframes notifications-enter {
  from { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .notifications-drawer { animation: none; }
}
dialog {
  border: 1px solid var(--line);
  width: min(520px, calc(100% - 24px));
  max-height: 88dvh;
  background: #fff;
  border-radius: 18px;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 25px 100px #142f2b33;
}
dialog::backdrop {
  background: #182e255c;
  backdrop-filter: blur(3px);
}
.modalwrap {
  padding: 24px;
}
.modalhead {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 19px;
}
.modalhead h2 {
  font-size: 24px;
}
.choice {
  width: 100%;
  gap: 13px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px;
  margin-top: 9px;
}
.choice > span:nth-child(2) {
  flex: 1;
}
.choice strong {
  font-size: 15px;
}
.choice small {
  margin-top: 2px;
}
.drugsummary {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 7px 0 17px;
}
.detailphoto {
  width: 70px;
  height: 78px;
  border-radius: 14px;
  padding: 7px;
  flex: none;
}
.drugsummary p {
  margin: 6px 0;
}
.drugsummary small,
.lineinfo {
  color: var(--muted);
}
.lineinfo {
  gap: 10px;
  font-size: 14px;
}
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 13px;
  font-size: 14px;
  font-weight: 550;
}
.field input,
.field textarea,
.field select,
.scoreval,
.inlinefield {
  background: #fafbf9;
  border: 1px solid #d3ddd4;
  color: var(--ink);
  border-radius: 8px;
  padding: 10px;
  width: 100%;
  min-width: 0;
  font-size: 15px;
  font-weight: 400;
}
.field textarea {
  resize: vertical;
  min-height: 72px;
}
.field small,
.hint {
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.45;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  margin: 12px 0;
  line-height: 1.45;
}
.checkbox input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
  flex: none;
}
.full {
  width: 100%;
  margin-top: 14px;
}
.error:not(:empty),
.warn {
  background: #fff1e7;
  color: #87471d;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.45;
  margin: 10px 0;
}
.error:empty {
  display: none;
}
.scoregrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin-top: 8px;
}
.scorenum {
  position: relative;
}
.scorenum input {
  opacity: 0;
  position: absolute;
  inset: 0;
}
.scorenum span {
  display: block;
  border: 1px solid var(--line);
  text-align: center;
  padding: 8px;
  border-radius: 8px;
}
.scorenum input:checked + span {
  background: var(--green);
  color: white;
}
.scorenum input:focus-visible + span {
  outline: 2px solid var(--green);
}
.authproviders {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.authproviders button {
  flex: 1;
}
.authproviders b {
  font-size: 15px;
}
.vk {
  color: #1571d9;
}
.ya {
  color: #c84740;
}
.scanpreview {
  max-width: 100%;
  max-height: 180px;
  display: block;
  margin: 0 auto 15px;
  border-radius: 8px;
}
.scantext {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f5f7f4;
  padding: 12px;
  border-radius: 8px;
  max-height: 155px;
  overflow: auto;
  font-size: 14px;
}
.scanrow {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
}
.scanrow button {
  margin-top: 6px;
}
.scanrow-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.scanrow-heading .iconbtn {
  width: 44px;
  height: 44px;
  margin-top: 0;
  color: #ab443c;
}
.scanrow p {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.progressbar {
  width: 100%;
  height: 10px;
  accent-color: var(--green);
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 15px);
  background: #234638;
  color: white;
  padding: 12px 17px;
  border-radius: 10px;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transition: 0.18s;
  max-width: 90vw;
  font-size: 14px;
  pointer-events: none;
}
#toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.skip {
  position: fixed;
  left: 4px;
  top: -80px;
  z-index: 50;
  background: #fff;
  padding: 10px;
}
.skip:focus {
  top: 4px;
}
#hamb,
.scrim {
  display: none;
}
.hint + .hint {
  margin-top: 7px;
}
.scorelabels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin: 6px 0;
}
.statelabel {
  display: inline-block;
  background: #f6efe0;
  border-radius: 20px;
  color: #845c2c;
  font-size: 12px;
  padding: 4px 9px;
  margin-bottom: 7px;
}
.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.linkbtn {
  text-decoration: none;
  display: inline-flex;
}
.formtitle {
  font-weight: 600;
  font-size: 15px;
  margin: 14px 0 7px;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
@media (min-width: 1550px) {
  :root {
    --side: 245px;
  }
  .hero {
    min-height: 245px;
  }
  .card {
    padding: 25px;
  }
  .schedrow {
    min-height: 107px;
  }
}
@media (max-width: 1180px) {
  :root {
    --side: 193px;
  }
  .sidebar {
    padding-left: 11px;
    padding-right: 11px;
  }
  .brand {
    font-size: 22px;
  }
  .navlabel {
    font-size: 11px;
  }
  .dashboard {
    grid-template-columns: minmax(0, 1.8fr) minmax(220px, 1fr);
    gap: 14px;
  }
  .card {
    padding: 17px;
  }
  .schedrow {
    grid-template-columns: 46px 47px minmax(0, 1fr) auto;
    gap: 9px;
  }
  .medimage {
    width: 47px;
    height: 58px;
  }
  .progressbody {
    gap: 11px;
  }
  .donut {
    width: 75px;
    height: 75px;
  }
  .donut b {
    width: 61px;
    height: 61px;
  }
  .hero {
    min-height: 204px;
  }
  .hero-art {
    right: 4%;
  }
  h2 {
    font-size: 20px;
  }
  .legend > span {
    font-size: 12px;
  }
  .tag {
    font-size: 11px;
    padding: 5px 7px;
  }
}
@media (max-width: 960px) {
  :root {
    --side: 74px;
  }
  .sidebar {
    align-items: center;
    padding: 22px 9px;
  }
  .brand {
    font-size: 0;
    margin: 0;
  }
  .brand img {
    width: 39px;
    margin: 0;
  }
  .navlabel {
    font-size: 0;
    margin: 32px 0 14px;
  }
  .sidebar nav,
  .sidebottom {
    width: 100%;
  }
  .navitem {
    font-size: 0;
    gap: 0;
    justify-content: center;
    padding: 13px;
  }
  .navitem .icon {
    width: 21px;
    height: 21px;
  }
  .scan-nav .navitem {
    padding: 13px;
  }
  .version {
    font-size: 0;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }
  .version > span:last-child {
    font-size: 9px;
    margin-left: 0;
  }
  .versiondot {
    display: none;
  }
  .dashboard {
    grid-template-columns: minmax(0, 1.8fr) minmax(218px, 1fr);
  }
  .crumb {
    font-size: 13px;
  }
}
@media (max-width: 780px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
  .rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .moodcard {
    grid-column: 1/-1;
  }
  .hero-art {
    right: 0;
    width: 42%;
  }
  .hero-meta {
    gap: 7px;
  }
  .schedrow {
    grid-template-columns: 56px 57px 1fr auto;
  }
  .medimage {
    width: 56px;
    height: 60px;
  }
  .rail .cardhead h2 {
    font-size: 18px;
  }
}
@media (max-width: 640px) {
  :root {
    --side: 0px;
  }
  .sidebar {
    transform: translateX(-105%);
    z-index: 10;
    align-items: stretch;
    width: 226px;
    padding: 24px 15px;
    transition: transform 0.2s;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .sidebar .brand {
    font-size: 24px;
    margin: 0 7px;
  }
  .brand img {
    margin-right: 8px;
  }
  .navlabel {
    font-size: 11px;
    margin: 34px 12px 14px;
  }
  .navitem {
    font-size: 15px;
    justify-content: flex-start;
    gap: 12px;
  }
  .version {
    font-size: 12px;
  }
  .version > span:last-child {
    margin-left: auto;
  }
  .scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: #19372e66;
    z-index: 8;
  }
  .workspace {
    margin: 0;
  }
  #hamb {
    display: flex;
  }
  header {
    height: 54px;
    padding: 0 14px;
  }
  .crumb {
    gap: 5px;
  }
  .crumb > span,
  .crumb > .icon {
    display: none;
  }
  .header-right {
    gap: 10px;
  }
  .userbtn {
    gap: 7px;
  }
  .avatar {
    width: 29px;
    height: 29px;
  }
  main {
    padding: 21px 14px 36px;
  }
  h1 {
    font-size: 34px;
  }
  .page-title {
    margin-bottom: 16px;
    gap: 9px;
  }
  .page-title p {
    font-size: 13px;
  }
  .page-title .btn {
    font-size: 13px;
    padding: 9px 11px;
    min-height: 36px;
  }
  .hero {
    min-height: 192px;
    padding: 19px 17px;
    border-radius: 16px;
    margin-bottom: 16px;
  }
  .hero-copy {
    max-width: 66%;
  }
  .hero h2 {
    font-size: 36px;
    margin: 13px 0 9px;
  }
  .hero-label {
    font-size: 11px;
  }
  .hero-meta {
    font-size: 12px;
    gap: 6px;
  }
  .hero-meta span:last-child {
    flex-basis: 100%;
  }
  .hero-meta i:nth-last-child(2) {
    display: none;
  }
  .hero-art {
    width: 43%;
    right: -2%;
    height: 86%;
    top: 7%;
  }
  .hero-btn {
    font-size: 13px;
    min-height: 35px;
    padding: 8px 12px;
    margin-top: 13px;
  }
  .card {
    padding: 15px;
    border-radius: 14px;
  }
  .weekstrip {
    gap: 4px;
    padding: 14px 0 12px;
  }
  .weekdate {
    min-height: 62px;
  }
  .weekdate b {
    font-size: 17px;
  }
  .weekdate small {
    font-size: 11px;
  }
  .schedrow {
    grid-template-columns: 42px 43px minmax(0, 1fr) auto;
    gap: 7px;
    padding: 15px 0;
    min-height: 81px;
  }
  .medimage {
    width: 43px;
    height: 51px;
  }
  .time strong {
    font-size: 15px;
  }
  .time small,
  .medtext small {
    font-size: 11px;
  }
  .medname {
    font-size: 15px;
  }
  .medtext > span {
    font-size: 12px;
  }
  .cardhead .textbtn {
    font-size: 12px;
    gap: 4px;
  }
  .cardhead h2 {
    font-size: 19px;
  }
  .rail {
    grid-template-columns: 1fr;
  }
  .moodcard {
    grid-column: auto;
  }
  .donut {
    width: 82px;
    height: 82px;
  }
  .donut b {
    width: 66px;
    height: 66px;
  }
  .progressbody {
    gap: 22px;
  }
  .legend {
    max-width: 240px;
  }
  .legend > span {
    font-size: 14px;
  }
  .gridcards {
    grid-template-columns: 1fr;
  }
  .formgrid {
    gap: 0 9px;
  }
  .modalwrap {
    padding: 18px;
  }
  .modalhead h2 {
    font-size: 21px;
  }
  .listrow {
    flex-wrap: wrap;
  }
  .toolbar .search {
    width: 100%;
  }
  .calday {
    min-height: 37px;
  }
  .monthgrid {
    gap: 3px;
  }
  .stockline .low {
    margin-left: 10px;
  }
  .note {
    font-size: 13px;
  }
  .tab {
    font-size: 13px;
  }
}
@media (max-width: 370px) {
  main {
    padding-left: 10px;
    padding-right: 10px;
  }
  .schedrow {
    grid-template-columns: 39px 35px minmax(0, 1fr) auto;
    gap: 5px;
  }
  .medimage {
    width: 35px;
    height: 44px;
  }
  .tag .icon {
    display: none;
  }
  .hero h2 {
    font-size: 32px;
  }
  .cardhead .textbtn .icon {
    display: none;
  }
}
.navspace {
  height: 46px;
}
.demo-scan {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}
.locked-screen {
  margin: 15vh auto;
  padding: 32px;
  max-width: 410px;
}
.locked-screen h1 {
  font-size: 30px;
  margin: 15px 0;
}
.locked-screen p {
  margin: 12px 0;
}
.locked-screen .btn {
  margin-top: 10px;
}
.cardhead h2 {
  line-height: 1.3;
}

.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.side-head .brand {
  flex: 1 1 auto;
  min-width: 0;
  align-self: center;
  gap: 7px;
  margin: 0;
  font-size: 16px;
  text-align: left;
}
.side-head .brand img { flex: 0 0 auto; width: 27px; margin: 0; }
.sidebar .brand-name {
  min-width: 0;
  color: #193c32;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-name b { color: var(--green); }
.sidebar [data-a="sidebar"] { flex: 0 0 42px; width: 42px; min-height: 44px; }
@media (min-width: 1550px) {
  .side-head .brand { font-size: 17px; }
  .side-head .brand img { width: 28px; }
}
.sidebar { overflow-y: auto; }
.navitem .icon, .pack-match .icon { flex-shrink: 0; }
.support-nav { border-top: 1px solid var(--line); margin-top: 12px; color: var(--green); }
.side-legal { display: block; padding: 12px 14px 4px; color: var(--muted); font-size: 12px; }
.scan-grid, .metrics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.scan-grid .scanpanel { margin: 0; padding-inline: 18px; max-width: none; }
.scan-grid .scanpanel p { max-width: 42ch; }
.scan-actions, .batch-previews { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; }
.batch-previews { margin: 0 0 20px; }
.batch-previews a { font-size: 12px; text-align: center; }
.batch-previews img { display: block; width: 62px; height: 76px; object-fit: contain; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
.pack-match { width: 100%; text-align: left; margin: 4px 0; }
.scanrow h3 { margin: 0 0 8px; }
.scanrow .note { margin: 10px 0; }
.aux-page { max-width: 1050px; margin: 0 auto; }
.aux-page section { scroll-margin-top: 24px; }
.owner-metrics-heading { flex-wrap: wrap; align-items: flex-start; }
.owner-metrics-heading > div { min-width: 0; }
.owner-metrics-heading h1 { overflow-wrap: anywhere; }
.aux-page .metric-value { display: block; margin-top: 5px; font-size: 28px; color: var(--green); }
.aux-page .metric-label { color: var(--muted); }
.legal-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 18px; }
.support-list article { border-top: 1px solid var(--line); padding: 16px 0; }
.support-list .message-text { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (min-width: 641px) and (max-width: 960px) {
  .shell.sidebar-expanded { --side: 226px; }
  .sidebar-expanded .sidebar { align-items: stretch; padding: 22px 14px; }
  .sidebar-expanded .sidebar .navitem { font-size: 14px; justify-content: flex-start; gap: 11px; }
}
@media (min-width: 641px) {
  .shell.sidebar-collapsed { --side: 74px; }
  .sidebar-collapsed .sidebar { align-items: stretch; padding: 22px 9px; }
  .sidebar-collapsed .side-head { flex-direction: column; gap: 8px; }
  .sidebar-collapsed .side-head .brand { flex: none; }
  .sidebar-collapsed .side-head .brand img { width: 34px; }
  .sidebar-collapsed .side-head [data-a="sidebar"] { flex-basis: auto; }
  .sidebar-collapsed :is(.brand-name, .nav-text, .side-legal) { display: none; }
  .sidebar-collapsed .sidebar .navitem { justify-content: center; padding-inline: 9px; }
}
@media (max-width: 850px) {
  .scan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sidebar .side-head { min-height: 44px; }
  .sidebar .side-head .brand { margin: 0; }
  .sidebar .side-head .brand img { width: 27px; }
  .metrics-grid .card { padding: 14px; }
}

.package-scan-photo {
  display: block;
  width: 100%;
  max-height: 132px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
}

#review-notice { justify-content: space-between; flex-wrap: wrap; margin: 0 0 16px; font-size: 13px; }
#review-notice[hidden] { display: none; }

.unified-photo > .scanrow-heading { margin-bottom: 8px; }
.unified-photo .scanrow { margin: 8px 0; background: var(--bg); }
.scan-corrections { justify-content: flex-start; }
.scan-raw { padding: 8px 0; }
.scan-raw pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }

.owner-signin { max-width: 430px; margin: 30px auto; }
.owner-actions { display: flex; justify-content: flex-end; }
.owner-content { scroll-margin-top: 24px; }
.owner-image { display: block; width: 160px; max-height: 110px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; }
.editable-copy { white-space: pre-line; }
.owner-signin[hidden], #owner-panel[hidden], #review-admin[hidden] { display: none; }

.owner-actions button[hidden] { display: none; }

.scan-crop-preview { display: block; max-width: 100%; max-height: 45vh; margin: 0 auto 12px; object-fit: contain; }
.scan-guidance { margin-top: 9px; }
.scan-guidance ul { margin: 4px 0 0; padding-left: 20px; }

.review-nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }

@media (min-width: 961px) and (max-width: 1180px) {
  .shell.sidebar-expanded { --side: 218px; }
}


.account-menu { position: relative; min-width: 0; }
.account-menu > summary { cursor: pointer; list-style: none; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu[open] > summary > .icon:last-child { transform: rotate(180deg); }
.account-dropdown {
  position: absolute;
  inset: calc(100% + 9px) 0 auto auto;
  z-index: 8;
  width: min(310px, calc(100vw - 28px));
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px #192e2a22;
}
.account-identity { display: grid; gap: 4px; padding: 7px 9px 11px; overflow-wrap: anywhere; }
.account-identity small { color: var(--muted); }
.account-dropdown .choice { margin-top: 3px; }

.nutrition-label { display: grid; gap: 6px; margin: 12px 0; }
.nutrition-label > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 16px; border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.nutrition-label dd { margin: 0; font-weight: 600; }

.clickable-card { cursor: pointer; }
.clickable-card:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
.intake-status { min-height: 44px; white-space: nowrap; }
.intake-status.pending { background: #f3f6f2; }
.intake-status.skipped { background: #fff2ed; color: #854833; border-color: #efd7cd; }
.intake-status.taken { background: var(--mint); color: var(--green); }
.formgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { min-width: 0; }
.field[hidden], .weekday-fields[hidden] { display: none; }
.field input[type="file"] { max-width: 100%; }
.modalhead h2, .listrow strong { min-width: 0; overflow-wrap: anywhere; }
.modalwrap { overflow-wrap: anywhere; }
.weekday-fields { display: flex; flex-wrap: wrap; gap: 0 12px; padding: 0 12px; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 8px; }
.weekday-fields label { align-items: center; margin: 8px 0; }
.frequency-helper { margin: 0 0 14px; }
.frequency-helper .formgrid { margin-top: 10px; }
.tracking-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 14px; }
.tracking-filters .field { margin: 0; }
.history-day { margin: 16px 0; }
.history-day h3 { margin: 0; }
.measurement-chart { display: block; width: 100%; max-height: 225px; background: var(--bg); border-radius: 10px; }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); }
@media (max-width: 640px) {
  .side-head [data-a="sidebar"] { display: none; }
  .schedrow { grid-template-columns: 42px 43px minmax(0, 1fr); }
  .schedrow .intake-status { grid-column: 2 / -1; justify-self: start; }
  .modalwrap :is(input, select, textarea) { font-size: 16px; }
  .modalwrap .date-fields { grid-template-columns: minmax(0, 1fr); }
  .modalwrap .twobtn .btn { min-width: 0; padding-inline: 8px; }
}
.package-scheme { margin: 12px 0; padding: 12px; border-radius: 10px; background: var(--bg); }
.package-scheme h4 { margin: 0; }
.package-scheme ul { padding-inline-start: 20px; }
.package-scheme li + li { margin-top: 5px; }
.pack-match.match-selected { border-color: var(--green); background: var(--mint); }
.owner-account-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; cursor: pointer; }
.owner-account-row span { overflow-wrap: anywhere; }
.dose-alert { padding: 12px; margin: 9px 0; border: 1px solid var(--line); border-radius: 11px; }
.dose-alert .twobtn { margin: 8px 0 0; }
.dose-alert p { margin: 4px 0; }
.cycle-fields[hidden] { display: none; }

.shell[hidden], .scrim[hidden] { display: none; }
.guest-avatar { color: var(--green); background: var(--mint); }
.guest-hero { justify-content: space-between; gap: 20px; min-height: 240px; }
.guest-hero .hero-copy { max-width: 60%; }
.guest-hero .hero-copy h2 { margin: 0 0 8px; }
.guest-hero-image { flex: 0 1 34%; width: 34%; max-height: 214px; object-fit: contain; }
.guest-schedule .empty { margin: 8px 0 0; }
@media (max-width: 640px) {
  .guest-hero { align-items: flex-start; min-height: 0; }
  .guest-hero .hero-copy { max-width: none; }
  .guest-hero-image { display: none; }
}

.account-rows {
  max-height: min(34dvh, 310px);
  min-height: 68px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 8px 0 4px;
  margin-block: 8px;
  scrollbar-gutter: stable;
}
.owner-account-row { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 8px 12px; padding-block: 9px; cursor: default; }
.owner-account-identity { min-width: 0; }
.owner-account-identity small:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.owner-account-row time { color: var(--muted); font-size: 13px; }
.owner-account-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.owner-account-actions .btn { padding-inline: 9px; }
@media (max-width: 640px) {
  .account-rows { max-height: min(42dvh, 310px); }
  .owner-account-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .owner-account-actions { grid-column: 2 / -1; }
}

.select-source, .select-screen-reader {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0 !important;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.select-widget { position: relative; min-width: 0; }
.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  font-weight: 400;
  text-align: left;
  background: #fafbf9;
  border: 1px solid #d3ddd4;
  border-radius: 8px;
}
.select-trigger > span { min-width: 0; overflow-wrap: anywhere; }
.select-trigger::after {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin: -4px 2px 0;
  border: solid var(--green);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.select-trigger[aria-expanded="true"] { border-color: var(--green); background: #fff; }
.select-trigger[aria-expanded="true"]::after { transform: rotate(225deg); margin-top: 4px; }
.select-menu {
  position: absolute;
  z-index: 9;
  inset: calc(100% + 5px) 0 auto;
  min-width: min(150px, 100%);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 8px 22px #192e2a22;
}
.select-flip .select-menu { inset: auto 0 calc(100% + 5px); }
.select-menu [role="option"] { cursor: pointer; padding: 9px 10px; min-height: 38px; border-radius: 6px; }
.select-menu [role="option"][aria-selected="true"] { color: var(--green); font-weight: 650; }
.select-menu [role="option"]:is(:hover, .select-active) { background: var(--mint); }
.select-menu [role="option"][aria-disabled="true"] { cursor: default; color: var(--muted); background: transparent; }
@media (max-width: 640px) {
  .select-trigger { font-size: 16px; }
  .select-menu [role="option"] { min-height: 44px; }
}

.error-page { min-height: 100dvh; max-width: 620px; margin-inline: auto; padding: 24px 16px; }
.error-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--ink); font-weight: 700; text-decoration: none; }
.error-panel { text-align: center; padding: clamp(18px, 4vw, 36px); }
.error-panel h1 { font-size: clamp(25px, 4vw, 37px); line-height: 1.15; }
.error-panel p { margin: 12px 0 18px; color: var(--muted); }
.error-panel .error-code { margin: 16px 0 6px; color: var(--green); font-weight: 700; }
.error-illustration { display: block; width: min(100%, 280px); height: auto; margin-inline: auto; border-radius: 18px; background: var(--bg); }
.scan-error .error-illustration { max-width: 160px; }

.legal-details { margin: 14px 0; display: grid; gap: 6px; }
.legal-details > div { display: flex; flex-wrap: wrap; column-gap: 16px; }
.legal-details dt { color: var(--muted); }
.legal-details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.packaging-reference { padding: 0; min-width: 0; overflow: hidden; }
.packaging-reference > a { display: grid; aspect-ratio: 4 / 3; place-items: center; background: var(--bg); }
.packaging-reference img { display: block; width: 100%; height: 100%; max-height: 240px; object-fit: contain; }
.packaging-reference-body { padding: 12px; }
.packaging-reference h3 { font-size: 15px; }
.packaging-reference p { margin: 5px 0 0; overflow-wrap: anywhere; }
.packaging-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 14px; }
.package-photos { margin: 12px 0; }
