:root {
  color-scheme: light;
  --ink: #17312e;
  --muted: #677a76;
  --line: #dfe8e4;
  --surface: #ffffff;
  --canvas: #f4f7f2;
  --primary: #0d5b52;
  --primary-strong: #084740;
  --green: #17ad75;
  --green-soft: #e4f8ee;
  --mint: #dff5e9;
  --yellow: #ffc857;
  --yellow-soft: #fff5d9;
  --red: #c94d54;
  --red-soft: #fff0f0;
  --blue: #2d6da0;
  --blue-soft: #edf6fb;
  --shadow: 0 18px 45px rgba(24, 62, 56, 0.09);
  --radius-lg: 26px;
  --radius-md: 19px;
  --radius-sm: 13px;
}

* {
  box-sizing: border-box;
}

html {
  background: #e7eeea;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 25% 0%, rgba(22, 172, 117, 0.12), transparent 26rem),
    #e7eeea;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  position: relative;
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--canvas);
  box-shadow: 0 0 80px rgba(23, 49, 46, 0.12);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px 20px;
  padding-top: max(12px, env(safe-area-inset-top));
  border-bottom: 1px solid rgba(222, 232, 228, 0.82);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.brand-mark {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--primary);
  box-shadow: 0 7px 16px rgba(13, 91, 82, 0.2);
}

.brand-mark span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  border-radius: 4px;
  background: #c6f5de;
  transform: translate(-50%, -50%);
}

.brand-mark span:first-child {
  width: 19px;
  height: 6px;
}

.brand-mark span:last-child {
  width: 6px;
  height: 19px;
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 3px;
  border-radius: 12px;
  background: #dff4e8;
  object-fit: contain;
  box-shadow: 0 7px 16px rgba(13, 91, 82, 0.16);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.69rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.demo-chip,
.period-chip {
  padding: 6px 9px;
  border: 1px solid #d3e5dc;
  border-radius: 999px;
  color: var(--primary);
  background: #f0fbf5;
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.avatar {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, var(--primary), #1c766b);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

main {
  min-height: calc(100vh - 72px);
}

.page {
  display: none;
  padding: 26px 20px 116px;
  animation: page-in 180ms ease-out;
}

.page.is-active {
  display: block;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 7px;
  font-size: clamp(1.7rem, 7vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 0;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--green);
  font-size: 0.69rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.105em;
}

.welcome-row,
.page-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 21px;
}

.welcome-row h1,
.page-title-row h1 {
  margin-bottom: 0;
}

.page-title-row > div > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.status-dot {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  margin-top: 19px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.status-dot i {
  width: 8px;
  height: 8px;
  border: 2px solid #b5ead3;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px #dff7ec;
}

.search-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  color: white;
  background:
    radial-gradient(circle at 100% 0%, rgba(103, 234, 179, 0.18), transparent 14rem),
    linear-gradient(145deg, #0c5149, #0d685d);
  box-shadow: 0 20px 42px rgba(13, 91, 82, 0.2);
}

.search-card label {
  display: block;
  margin-bottom: 11px;
  color: #e3fff2;
  font-size: 0.83rem;
  font-weight: 750;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 8px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.98);
}

.search-input-wrap > svg,
.inline-search svg {
  flex: 0 0 auto;
  width: 20px;
  fill: none;
  stroke: #60736f;
  stroke-width: 2;
  stroke-linecap: round;
}

.search-input-wrap input,
.inline-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.search-input-wrap input {
  height: 100%;
  padding: 0 11px;
  font-size: 0.9rem;
}

.search-input-wrap input::placeholder,
.inline-search input::placeholder {
  color: #8b9a97;
}

.scan-button {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 13px;
  color: var(--primary);
  background: var(--green-soft);
  cursor: pointer;
}

.scan-button svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.primary-button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 15px;
  color: #083e38;
  background: #bff4d9;
  font-size: 0.87rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 140ms ease, filter 140ms ease;
}

.search-card .primary-button {
  margin-top: 12px;
}

.primary-button:active {
  transform: scale(0.985);
  filter: brightness(0.96);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 2px 14px;
}

.section-heading .eyebrow {
  margin-bottom: 4px;
}

.compact-heading {
  margin-top: 25px;
}

.text-button {
  padding: 6px 0;
  border: 0;
  color: var(--primary);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.symptom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.symptom-card {
  min-height: 108px;
  padding: 13px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: left;
  box-shadow: 0 8px 24px rgba(24, 62, 56, 0.04);
  cursor: pointer;
}

.symptom-card span {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 12px;
  color: var(--primary);
  background: var(--green-soft);
  font-size: 1.05rem;
  font-weight: 800;
}

.symptom-card strong,
.symptom-card small {
  display: block;
}

.symptom-card strong {
  overflow: hidden;
  font-size: 0.76rem;
  line-height: 1.24;
}

.symptom-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.62rem;
}

.impact-card {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #d2eadf;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #effbf5, #e3f7ec);
}

.impact-icon {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: var(--green);
  font-size: 1.1rem;
  font-weight: 850;
}

.impact-card > div:nth-child(2) {
  flex: 1;
}

.impact-card p,
.impact-card strong,
.impact-card small {
  display: block;
}

.impact-card p {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.impact-card strong {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.impact-card small {
  margin-top: 2px;
  color: #58726c;
  font-size: 0.65rem;
}

.impact-card > button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.75);
  font-size: 1.5rem;
  cursor: pointer;
}

.attention-list {
  display: grid;
  gap: 9px;
}

.attention-item,
.opportunity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.attention-item > span,
.opportunity-item > span {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: #936b12;
  background: var(--yellow-soft);
  font-size: 0.73rem;
  font-weight: 900;
}

.attention-item > div,
.opportunity-item > div {
  min-width: 0;
  flex: 1;
}

.attention-item strong,
.attention-item small,
.opportunity-item strong,
.opportunity-item small {
  display: block;
}

.attention-item strong,
.opportunity-item strong {
  overflow: hidden;
  font-size: 0.79rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attention-item small,
.opportunity-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.66rem;
}

.attention-item button,
.opportunity-item button {
  padding: 7px 9px;
  border: 0;
  border-radius: 10px;
  color: var(--primary);
  background: var(--green-soft);
  font-size: 0.66rem;
  font-weight: 800;
  cursor: pointer;
}

.safety-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  padding: 13px;
  border: 1px solid #ecdba6;
  border-radius: 15px;
  color: #705819;
  background: #fff9e8;
}

.safety-banner > span {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #c89a23;
  font-size: 0.72rem;
  font-weight: 900;
}

.safety-banner p {
  margin: 1px 0 0;
  font-size: 0.68rem;
  line-height: 1.5;
}

.square-button {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  color: white;
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(13, 91, 82, 0.2);
  font-size: 1.45rem;
  cursor: pointer;
}

.inventory-title-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.import-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #bfd8cf;
  border-radius: 14px;
  color: var(--primary);
  background: white;
  font-size: 0.7rem;
  font-weight: 850;
  cursor: pointer;
}

.import-button span {
  font-size: 1rem;
  line-height: 1;
}

.inline-search {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.inline-search input {
  height: 100%;
  padding-left: 10px;
  font-size: 0.84rem;
}

.filter-row {
  display: flex;
  gap: 8px;
  margin: 13px 0 17px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: white;
  font-size: 0.7rem;
  font-weight: 750;
  cursor: pointer;
}

.filter-chip.is-active {
  border-color: var(--primary);
  color: white;
  background: var(--primary);
}

.product-list {
  display: grid;
  gap: 10px;
}

.product-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  text-align: left;
  box-shadow: 0 7px 20px rgba(24, 62, 56, 0.035);
  cursor: pointer;
}

.product-thumb {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 51px;
  height: 51px;
  place-items: center;
  border-radius: 15px;
  color: var(--primary);
  background: var(--green-soft);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-thumb::after {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.product-thumb.is-low {
  color: #866211;
  background: var(--yellow-soft);
}

.product-thumb.is-low::after {
  background: #d3a52d;
}

.product-thumb.is-out {
  color: #924c52;
  background: var(--red-soft);
}

.product-thumb.is-out::after {
  background: var(--red);
}

.product-card-main {
  min-width: 0;
  flex: 1;
}

.product-card-main strong,
.product-card-main small {
  display: block;
}

.product-card-main strong {
  overflow: hidden;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card-main small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card-meta {
  flex: 0 0 auto;
  text-align: right;
}

.product-card-meta strong,
.product-card-meta span {
  display: block;
}

.product-card-meta strong {
  font-size: 0.8rem;
}

.product-card-meta span {
  margin-top: 5px;
  color: var(--primary);
  font-size: 0.64rem;
  font-weight: 800;
}

.empty-state {
  padding: 34px 20px;
  border: 1px dashed #c9d9d4;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.empty-state span {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 15px;
  color: var(--primary);
  background: var(--green-soft);
  font-size: 1.35rem;
}

.empty-state strong,
.empty-state small {
  display: block;
}

.empty-state strong {
  font-size: 0.9rem;
}

.empty-state small {
  max-width: 290px;
  margin: 6px auto 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.assistant-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 19px;
}

.assistant-heading h1 {
  margin-bottom: 5px;
  font-size: 1.65rem;
}

.assistant-heading > div:last-child > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.assistant-orb {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 59px;
  height: 59px;
  place-items: center;
  border-radius: 21px;
  color: #073f38;
  background: linear-gradient(145deg, #adf2d0, #5fd6a4);
  box-shadow: 0 13px 25px rgba(23, 173, 117, 0.2);
  font-size: 1.35rem;
}

.assistant-orb::after {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--canvas);
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.assistant-scope {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  padding: 11px 12px;
  border: 1px solid #cae8d9;
  border-radius: 14px;
  background: var(--green-soft);
}

.assistant-scope.caution {
  border-color: #eadcae;
  background: var(--yellow-soft);
}

.assistant-scope > span {
  font-weight: 900;
}

.assistant-scope p {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.45;
}

.prompt-list {
  display: flex;
  gap: 8px;
  margin: 17px 0 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.prompt-list::-webkit-scrollbar {
  display: none;
}

.prompt-list button {
  flex: 0 0 auto;
  max-width: 220px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary);
  background: white;
  font-size: 0.67rem;
  font-weight: 750;
  cursor: pointer;
}

.chat {
  display: grid;
  gap: 12px;
  min-height: 260px;
  max-height: 42vh;
  padding: 3px 0 16px;
  overflow-y: auto;
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 92%;
}

.message > div:last-child {
  padding: 12px 13px;
  border-radius: 4px 17px 17px;
  background: white;
  box-shadow: 0 7px 21px rgba(24, 62, 56, 0.05);
}

.message p {
  margin: 0;
  font-size: 0.77rem;
  line-height: 1.55;
}

.message small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.6rem;
}

.mini-orb {
  display: grid;
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 10px;
  color: var(--primary);
  background: #bff4d9;
  font-size: 0.76rem;
}

.user-message {
  justify-self: end;
}

.user-message > div:last-child {
  border-radius: 17px 4px 17px 17px;
  color: white;
  background: var(--primary);
}

.message-action {
  display: inline-flex;
  margin-top: 9px;
  padding: 7px 9px;
  border: 0;
  border-radius: 9px;
  color: var(--primary);
  background: var(--green-soft);
  font-size: 0.65rem;
  font-weight: 800;
  cursor: pointer;
}

.assistant-form {
  position: sticky;
  bottom: 84px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 7px 7px 15px;
  border: 1px solid #d9e5e1;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(24, 62, 56, 0.12);
  backdrop-filter: blur(16px);
}

.assistant-form input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.78rem;
}

.assistant-form button {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 13px;
  color: white;
  background: var(--primary);
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
}

.owner-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: white;
}

.metric-card.main-metric {
  grid-column: 1 / -1;
  color: white;
  border-color: transparent;
  background:
    radial-gradient(circle at 90% 0%, rgba(135, 241, 192, 0.22), transparent 11rem),
    var(--primary);
}

.metric-card span,
.metric-card strong,
.metric-card small {
  display: block;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.main-metric span,
.main-metric small {
  color: #c5e8df;
}

.metric-card strong {
  margin-top: 8px;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.metric-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.63rem;
}

.owner-card {
  margin-top: 12px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
}

.card-heading {
  margin: 0 0 16px;
}

.bar-chart {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 9px;
  height: 130px;
  padding-top: 10px;
}

.bar-column {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  height: 100%;
  gap: 7px;
}

.bar-column i {
  display: block;
  width: min(100%, 25px);
  min-height: 8px;
  border-radius: 8px 8px 4px 4px;
  background: #a8e8cb;
}

.bar-column.is-today i {
  background: var(--green);
}

.bar-column span {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 750;
}

#owner-opportunities {
  display: grid;
  gap: 8px;
}

.opportunity-row {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #fbfdfb;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.opportunity-row > span {
  display: block;
  min-width: 0;
}

.opportunity-row strong,
.opportunity-row small {
  display: block;
}

.opportunity-row strong {
  font-size: 0.77rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.opportunity-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.35;
}

.opportunity-row > b {
  color: #7b5a12;
  font-size: 0.68rem;
  white-space: nowrap;
}

.opportunity-row:focus-visible {
  outline: 3px solid rgba(19, 165, 119, 0.28);
  outline-offset: 2px;
}

.owner-tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--blue-soft);
  border-color: #d3e4ef;
}

.owner-tip .impact-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--blue);
  font-family: Georgia, serif;
}

.owner-tip strong {
  font-size: 0.81rem;
}

.owner-tip p {
  margin: 5px 0 0;
  color: #586e7c;
  font-size: 0.68rem;
  line-height: 1.5;
}

.bottom-nav {
  position: fixed;
  z-index: 25;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, 760px);
  min-height: 76px;
  margin: 0 auto;
  padding: 7px 12px max(7px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(215, 228, 223, 0.9);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -10px 30px rgba(24, 62, 56, 0.07);
  backdrop-filter: blur(20px);
}

.bottom-nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 0;
  color: #71827e;
  background: transparent;
  font-size: 0.59rem;
  font-weight: 750;
  cursor: pointer;
}

.bottom-nav button.is-active {
  color: var(--primary);
}

.bottom-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-orb {
  display: grid;
  width: 34px;
  height: 34px;
  margin-top: -13px;
  place-items: center;
  border: 4px solid white;
  border-radius: 13px;
  color: #083e38;
  background: #92e9bd;
  box-shadow: 0 8px 18px rgba(23, 173, 117, 0.24);
  font-size: 0.88rem;
}

.bottom-nav .assistant-nav.is-active .nav-orb {
  color: white;
  background: var(--primary);
}

dialog {
  color: var(--ink);
  font-family: inherit;
}

dialog::backdrop {
  background: rgba(8, 34, 30, 0.48);
  backdrop-filter: blur(4px);
}

.bottom-sheet {
  position: fixed;
  top: auto;
  bottom: 0;
  width: min(100%, 760px);
  max-width: none;
  max-height: 90vh;
  margin: 0 auto;
  padding: 26px 20px max(24px, env(safe-area-inset-bottom));
  overflow-y: auto;
  border: 0;
  border-radius: 28px 28px 0 0;
  background: var(--canvas);
  box-shadow: 0 -22px 60px rgba(8, 34, 30, 0.2);
}

.bottom-sheet[open] {
  animation: sheet-up 220ms ease-out;
}

@keyframes sheet-up {
  from { transform: translateY(25px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.dialog-handle {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 38px;
  height: 4px;
  border-radius: 99px;
  background: #cbd7d3;
  transform: translateX(-50%);
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 17px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: white;
  font-size: 1.25rem;
  cursor: pointer;
}

.dialog-heading {
  padding-right: 42px;
}

.dialog-heading h2 {
  margin-bottom: 7px;
  font-size: 1.35rem;
}

.dialog-heading > p:last-child {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.product-detail-header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-right: 38px;
}

.product-detail-header .product-thumb {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  font-size: 0.9rem;
}

.product-detail-header h2 {
  margin-bottom: 4px;
  font-size: 1.25rem;
}

.product-detail-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.location-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 18px 0 13px;
  padding: 15px;
  border: 1px solid #cae8d9;
  border-radius: 17px;
  background: var(--green-soft);
}

.location-panel span,
.location-panel strong {
  display: block;
}

.location-panel span {
  color: #547269;
  font-size: 0.66rem;
  font-weight: 700;
}

.location-panel strong {
  margin-top: 3px;
  color: var(--primary);
  font-size: 1.05rem;
}

.stock-pill {
  padding: 7px 10px;
  border-radius: 999px;
  color: #096143;
  background: white;
  font-size: 0.68rem;
  font-weight: 850;
}

.stock-pill.out {
  color: var(--red);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 12px 0;
}

.detail-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.detail-grid span,
.detail-grid strong {
  display: block;
}

.detail-grid span {
  color: var(--muted);
  font-size: 0.62rem;
}

.detail-grid strong {
  margin-top: 4px;
  font-size: 0.76rem;
}

.info-panel {
  margin: 12px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.info-panel h3 {
  margin: 0 0 7px;
  font-size: 0.77rem;
}

.info-panel p,
.info-panel li {
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.5;
}

.info-panel p {
  margin: 0;
}

.info-panel ul {
  margin: 0;
  padding-left: 18px;
}

.warning-panel {
  border-color: #ecdba6;
  background: var(--yellow-soft);
}

.alternatives-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.alternative-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--canvas);
  text-align: left;
  cursor: pointer;
}

.alternative-row > div {
  min-width: 0;
  flex: 1;
}

.alternative-row strong,
.alternative-row small {
  display: block;
}

.alternative-row strong {
  overflow: hidden;
  font-size: 0.73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alternative-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.62rem;
}

.sale-confirm-button {
  margin-top: 5px;
  color: white;
  background: var(--green);
}

.secondary-button {
  width: 100%;
  min-height: 47px;
  margin-top: 8px;
  border: 1px solid #cbdad5;
  border-radius: 14px;
  color: var(--primary);
  background: white;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.symptom-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 15px;
}

.symptom-picker button {
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  text-align: left;
  cursor: pointer;
}

.symptom-picker span,
.symptom-picker strong {
  display: block;
}

.symptom-picker span {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.symptom-picker strong {
  font-size: 0.76rem;
}

.progress-row {
  display: flex;
  gap: 5px;
  margin: 14px 0 18px;
}

.progress-row i {
  display: block;
  height: 4px;
  flex: 1;
  border-radius: 99px;
  background: #dce6e2;
}

.progress-row i.is-active {
  background: var(--green);
}

.screening-form {
  display: grid;
  gap: 10px;
}

.screening-question {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}

.screening-question > span {
  display: block;
  margin-bottom: 9px;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.4;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.choice-row label {
  cursor: pointer;
}

.choice-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-row label span {
  display: block;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--canvas);
  font-size: 0.66rem;
  font-weight: 750;
}

.choice-row input:checked + span {
  border-color: var(--primary);
  color: white;
  background: var(--primary);
}

.refer-card {
  padding: 18px;
  border: 1px solid #ecc5c8;
  border-radius: 18px;
  background: var(--red-soft);
}

.refer-card .refer-icon {
  display: grid;
  width: 43px;
  height: 43px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: var(--red);
  font-weight: 900;
}

.refer-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.refer-card p {
  margin: 0;
  color: #7f4d52;
  font-size: 0.72rem;
  line-height: 1.5;
}

.result-intro {
  padding: 13px;
  border: 1px solid #cae8d9;
  border-radius: 15px;
  background: var(--green-soft);
}

.result-intro p {
  margin: 0;
  color: #426a5d;
  font-size: 0.7rem;
  line-height: 1.5;
}

.otc-results {
  display: grid;
  gap: 9px;
  margin-top: 13px;
}

.otc-option {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.otc-option-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.otc-option h3 {
  margin: 0;
  font-size: 0.8rem;
}

.otc-option p {
  margin: 5px 0 9px;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.45;
}

.otc-option button {
  padding: 7px 9px;
  border: 0;
  border-radius: 9px;
  color: var(--primary);
  background: var(--green-soft);
  font-size: 0.64rem;
  font-weight: 800;
  cursor: pointer;
}

.stack-form {
  display: grid;
  gap: 12px;
}

.import-steps {
  display: grid;
  gap: 9px;
  margin: 0 0 15px;
  padding: 0;
  list-style: none;
}

.import-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.import-steps li > span {
  display: grid;
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 10px;
  color: var(--primary);
  background: var(--green-soft);
  font-size: 0.69rem;
  font-weight: 900;
}

.import-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.4;
}

.import-steps strong {
  color: var(--ink);
}

.download-template-button {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--primary);
  text-decoration: none;
}

.file-input-label {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  margin-top: 9px;
  overflow: hidden;
  border: 1px solid #cbdad5;
  border-radius: 14px;
  color: var(--primary);
  background: white;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.file-input-label input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-input-label.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

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

.import-status {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  padding: 11px;
  border: 1px solid #d8e3df;
  border-radius: 13px;
  background: #eef4f1;
}

.import-status > span {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--primary);
  font-size: 0.67rem;
  font-weight: 900;
}

.import-status p {
  margin: 1px 0 0;
  color: #506863;
  font-size: 0.67rem;
  line-height: 1.45;
}

.import-status.is-success {
  border-color: #b9dfce;
  background: var(--green-soft);
}

.import-status.is-error {
  border-color: #ecc5c8;
  background: var(--red-soft);
}

.import-status.is-error > span {
  background: var(--red);
}

.stack-form label:not(.check-label) {
  display: grid;
  gap: 6px;
  color: #4e625e;
  font-size: 0.68rem;
  font-weight: 750;
}

.stack-form input:not([type="checkbox"]) {
  width: 100%;
  height: 47px;
  padding: 0 12px;
  border: 1px solid #d6e2de;
  border-radius: 13px;
  outline: 0;
  color: var(--ink);
  background: white;
  font-size: 0.78rem;
}

.stack-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 173, 117, 0.1);
}

.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px;
  border: 1px solid #ecdba6;
  border-radius: 13px;
  color: #705819;
  background: var(--yellow-soft);
  font-size: 0.66rem;
  line-height: 1.4;
}

.check-label input {
  flex: 0 0 auto;
  margin-top: 1px;
}

.toast {
  position: fixed;
  z-index: 60;
  right: 16px;
  bottom: 94px;
  left: 16px;
  max-width: 440px;
  margin: 0 auto;
  padding: 12px 15px;
  border-radius: 14px;
  color: white;
  background: #173b36;
  box-shadow: 0 14px 34px rgba(7, 31, 27, 0.23);
  font-size: 0.73rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 620px) {
  .page {
    padding-right: 34px;
    padding-left: 34px;
  }

  .topbar {
    padding-right: 34px;
    padding-left: 34px;
  }

  .symptom-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .owner-metrics {
    grid-template-columns: 1.35fr 1fr 1fr;
  }

  .metric-card.main-metric {
    grid-column: auto;
  }
}

@media (max-width: 370px) {
  .page {
    padding-right: 15px;
    padding-left: 15px;
  }

  .topbar {
    padding-right: 15px;
    padding-left: 15px;
  }

  .demo-chip,
  .status-dot {
    display: none;
  }

  .symptom-grid {
    gap: 7px;
  }

  .symptom-card {
    min-height: 102px;
    padding: 11px 8px;
  }

}

@media (max-width: 440px) {
  .import-button {
    width: 44px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .import-button span {
    font-size: 1rem;
  }
}

/* FarmAsist comercial: modo empleado/dueño y lector */
.is-hidden { display: none !important; }
.mode-chip { display:inline-flex;align-items:center;min-height:30px;padding:0 10px;border-radius:999px;background:#edf2ef;color:#60736d;font-size:.68rem;font-weight:800;letter-spacing:.02em; }
.mode-chip.is-owner { background:#dff1e7;color:var(--green); }
.welcome-row h1 { max-width:620px; }
.quick-actions { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 26px; }
.quick-actions button,.owner-action-grid button { display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;align-items:center;gap:2px 12px;padding:15px;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--ink);text-align:left;box-shadow:0 8px 22px rgba(23,53,47,.05); }
.quick-actions button>span,.owner-action-grid button>span { grid-row:1/3;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--mint);color:var(--green);font-size:1.25rem;font-weight:900; }
.quick-actions strong,.owner-action-grid strong { font-size:.83rem; }
.quick-actions small,.owner-action-grid small { color:var(--muted);font-size:.67rem; }
.employee-lock-note { display:flex;gap:10px;align-items:flex-start;margin:14px 0;padding:12px 14px;border:1px solid #e7e2cf;border-radius:14px;background:#fbf8ee;color:#6c695d; }
.employee-lock-note p { margin:0;font-size:.72rem;line-height:1.45; }
.inline-search>button { width:38px;height:38px;margin-right:4px;border:0;border-radius:10px;background:var(--mint);color:var(--green);font-weight:900; }
.inventory-product { grid-template-columns:minmax(0,1fr) auto auto; }
.inventory-product {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(24,62,56,.035);
}
.product-main {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 9px minmax(0,1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.product-main > span:last-child { min-width: 0; }
.product-main strong,.product-main small { display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.product-main strong { font-size:.83rem;line-height:1.25; }
.product-main small { margin-top:4px;color:var(--muted);font-size:.66rem;line-height:1.25; }
.product-status-dot { display:block;width:9px;height:9px;border-radius:50%;background:#1da56d; }
.product-status-dot.low { background:#d4a12a; }
.product-status-dot.out { background:#c85b55; }
.product-stock { flex:0 0 auto;min-width:42px;text-align:right; }
.product-stock strong,.product-stock small { display:block; }
.product-stock strong { font-size:.91rem;line-height:1; }
.product-stock small { margin-top:3px;color:var(--muted);font-size:.6rem; }
.attention-item > .attention-count {
  display:grid;
  flex:0 0 34px;
  width:34px;
  height:34px;
  place-items:center;
  border-radius:11px;
  color:#936b12;
  background:var(--yellow-soft);
  font-size:.73rem;
  font-weight:900;
}
.attention-item > .attention-count.out { color:#924c52;background:var(--red-soft); }
.attention-item { width:100%;min-width:0;color:var(--ink);text-align:left;cursor:pointer; }
.attention-item > span:not(.attention-count) {
  display:flex;
  flex:1 1 0;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  min-width:0;
  width:0;
  height:auto;
  color:inherit;
  background:transparent;
  border-radius:0;
  font-size:inherit;
  font-weight:inherit;
  text-align:left;
}
.attention-item > b { flex:0 0 auto;color:var(--primary);font-size:1.25rem; }
.edit-stock-button { min-height:34px;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--green);font-size:.68rem;font-weight:800; }
.safe-product-banner { margin-top:22px; }
.lock-owner-button { border:1px solid #cfded7;color:var(--green);cursor:pointer; }
.owner-actions-card { display:block; }
.owner-action-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px; }
.pin-panel { padding:4px 6px 18px;text-align:center; }
.pin-icon { display:grid;place-items:center;width:58px;height:58px;margin:0 auto 14px;border-radius:18px;background:var(--mint);font-size:1.45rem; }
.pin-panel h2 { margin:4px 0 8px; }
.pin-panel>p:not(.eyebrow) { margin:0 auto 18px;color:var(--muted);font-size:.82rem; }
.pin-panel form { display:grid;gap:12px; }
.pin-panel input { width:100%;padding:15px;border:1px solid var(--line);border-radius:14px;background:var(--soft);color:var(--ink);font-size:1.7rem;font-weight:900;letter-spacing:.45em;text-align:center; }
.pin-panel>small { display:block;margin-top:13px;color:var(--muted);font-size:.66rem;line-height:1.4; }
.scanner-sheet { background:#f7f8f5; }
.scanner-stage { position:relative;min-height:300px;overflow:hidden;border-radius:20px;background:#13201e; }
.scanner-stage video { display:block;width:100%;min-height:300px;object-fit:cover; }
.scanner-frame { position:absolute;inset:50% auto auto 50%;width:min(84%,350px);height:140px;border:2px solid rgba(255,255,255,.9);border-radius:18px;transform:translate(-50%,-50%);box-shadow:0 0 0 1000px rgba(0,0,0,.28); }
.scanner-frame i { position:absolute;top:50%;left:8%;width:84%;height:2px;background:#7fe0b1;box-shadow:0 0 12px #7fe0b1; }
#scanner-message { position:absolute;right:12px;bottom:10px;left:12px;z-index:2;margin:0;padding:9px 12px;border-radius:10px;background:rgba(14,32,28,.78);color:#fff;font-size:.68rem;text-align:center; }
.manual-code-form { margin-top:16px; }
.manual-code-form label { display:block;margin-bottom:7px;color:var(--muted);font-size:.68rem;font-weight:800; }
.manual-code-form>div { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px; }
.manual-code-form input { min-width:0;padding:13px;border:1px solid var(--line);border-radius:12px;background:#fff; }
.manual-code-form button { padding:0 17px;border:0;border-radius:12px;background:var(--green);color:#fff;font-weight:800; }
.product-detail-title { display:flex;align-items:flex-start;justify-content:space-between;gap:12px; }
.product-detail-title h2 { margin:5px 0 4px; }
.product-detail-title p { margin:0;color:var(--muted);font-size:.75rem; }
.status-pill { flex:0 0 auto;padding:7px 9px;border-radius:999px;font-size:.63rem;font-weight:900; }
.status-pill.ok { background:#def3e7;color:#116346; }
.status-pill.low { background:#fff1c9;color:#8a5b00; }
.status-pill.out { background:#fde2df;color:#9e3029; }
.inventory-facts { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0; }
.inventory-facts div { padding:12px;border:1px solid var(--line);border-radius:13px;background:var(--soft); }
.inventory-facts dt { color:var(--muted);font-size:.61rem;font-weight:800; }
.inventory-facts dd { margin:5px 0 0;font-size:.76rem;font-weight:850; }
.product-disclaimer { padding:13px;border-left:3px solid var(--green);border-radius:0 12px 12px 0;background:#edf6f1; }
.product-disclaimer strong { font-size:.72rem; }
.product-disclaimer p { margin:4px 0 0;color:#5d706a;font-size:.67rem;line-height:1.45; }
.confirm-sale-button { margin-top:16px; }
.owner-edit-detail { width:100%;margin-top:9px; }
.assistant-results { display:grid;gap:7px;margin:10px 0; }
.assistant-results button { padding:10px;border:1px solid #d5e5dd;border-radius:11px;background:#fff;color:var(--ink);text-align:left; }
.assistant-results strong,.assistant-results span { display:block; }
.assistant-results strong { font-size:.72rem; }
.assistant-results span { margin-top:4px;color:var(--muted);font-size:.62rem; }
.assistant-note { color:var(--muted);font-size:.65rem !important; }
.search-result-list { display:grid;gap:10px; }
.search-result-card .product-thumb { display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-transform:none; }
.search-result-card .product-thumb strong,.search-result-card .product-thumb small { display:block;line-height:1; }
.search-result-card .product-thumb strong { font-size:.84rem; }
.search-result-card .product-thumb small { font-size:.5rem;font-weight:800; }
.search-result-card .product-card-meta .low { color:#8a5b00; }
.search-result-card .product-card-meta .out { color:#9e3029; }
.ingredient-info-card { margin:0 0 13px;padding:14px;border:1px solid #cfe4d9;border-radius:15px;background:#f0f8f3; }
.ingredient-info-card h3 { margin:5px 0 8px;font-size:.9rem; }
.ingredient-info-card>p:not(.eyebrow) { margin:0;color:#365b53;font-size:.7rem;line-height:1.5; }
.ingredient-info-card .ingredient-learning-note { margin-top:8px!important;color:var(--muted)!important; }
.ingredient-info-card a { display:inline-block;margin-top:10px;color:var(--green);font-size:.63rem;font-weight:850;text-decoration:none; }
.ingredient-info-card>small { display:block;margin-top:10px;padding-top:9px;border-top:1px solid #d9ebe2;color:var(--muted);font-size:.58rem;line-height:1.4; }
@media (max-width:560px) { .owner-action-grid { grid-template-columns:1fr; } .owner-action-grid button { min-height:68px; } }
@media (min-width:900px) { .quick-actions { max-width:650px; } .scanner-sheet { max-width:560px; } }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
