:root {
  color-scheme: light;
  --ink: #223429; --green: #263d2d; --green-2: #36583f; --muted: #596459;
  --paper: #f8f5eb; --cream: #f4eddb; --white: #fffdf7; --edge: #e1ded0;
  --rust: #a3452c; --accent: #e2bc72;
  --sans: "Segoe UI", system-ui, sans-serif; --serif: Georgia, "Times New Roman", serif;
  font: 16px/1.5 var(--sans); color: var(--ink); background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
:focus-visible { outline: 3px solid #a0572d; outline-offset: 3px; }
[hidden] { display: none !important; }
p { margin: 0 0 1rem; color: var(--muted); text-wrap: pretty; }
h1, h2, h3 { margin: 0; line-height: 1.12; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 700; }
h3 { font-weight: 680; }
.skip { position: fixed; left: 12px; top: 12px; padding: 9px 14px; background: white; z-index: 10; transform: translateY(-150%); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shell { width: min(1170px, calc(100% - 68px)); margin-inline: auto; }
.eyebrow { font-size: .69rem; font-weight: 780; letter-spacing: .18em; text-transform: uppercase; color: #77553a; margin-bottom: 11px; }
.eyebrow.light { color: #f4d59c; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.button {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; text-wrap: balance;
  min-height: 43px; border: 1px solid transparent; border-radius: 8px; padding: 9px 15px;
  font-size: .88rem; line-height: 1.35; font-weight: 680; text-decoration: none; white-space: normal;
}
.button.primary { background: var(--green); color: #fffef6; }
.button.primary:hover:not(:disabled) { background: #39563d; }
.button.secondary { background: #fffdf8; color: var(--ink); border-color: #d5d9ca; }
.button.secondary:hover:not(:disabled) { background: #f2f2e9; }
.button.mini { min-height: 34px; padding: 5px 9px; font-size: .78rem; }
.button.cream { color: #292d20; background: #f6dfb0; }
.button.cream:hover { background: #fff0d1; }
.button.outline-light { color: #fffdf5; background: #2b2e2680; border-color: #fff7dc86; }
.button.outline-light:hover { background: #4b493dcc; }
.text-button { color: var(--green-2); font-weight: 680; text-align: left; padding: 0; background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; font-size: .86rem; }
.pill { display: inline-flex; align-items: center; width: fit-content; border-radius: 30px; font-size: .72rem; padding: 4px 10px; color: #5c584b; background: #ede9da; font-weight: 680; white-space: nowrap; }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; flex: none; }
.brand-logo { border-radius: 50%; object-fit: cover; background: #f1e6c6; flex: 0 0 auto; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: var(--serif); font-size: 1.17rem; line-height: 1.17; }
.brand small { margin-top: 3px; font-size: .57rem; font-weight: 730; letter-spacing: .105em; }
.topline { text-align: center; background: var(--green); color: #faf3dd; font-size: .74rem; letter-spacing: .07em; padding: 6px 12px; }
.topline span { margin-inline: 8px; color: #edc787; }
.public-header { background: var(--cream); border-bottom: 1px solid #d9d0ba; }
.masthead { min-height: 78px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.masthead nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 37px); font-size: .86rem; font-weight: 650; }
.masthead nav a { text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.masthead .admin-link { border: 1px solid #c9c4af; padding: 7px 11px; border-radius: 6px; white-space: nowrap; }
.hero { position: relative; display: grid; align-items: center; min-height: clamp(450px, 48vw, 660px); isolation: isolate; color: white; background: #34422f; overflow: hidden; }
.hero > img, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero > img { object-fit: cover; object-position: center 48%; }
.hero-shade { background: linear-gradient(90deg, #171b11e9 0%, #212518c4 34%, #21251860 68%, #21251822 100%), linear-gradient(0deg, #1b27143f, transparent 55%); }
.hero-copy { padding-block: 55px 65px; }
.hero h1 { font-size: clamp(3.25rem, 6.1vw, 6.35rem); letter-spacing: -.054em; line-height: .98; color: #fff7e6; }
.hero p { max-width: 460px; color: #fbf0d9; font-size: clamp(1rem, 2vw, 1.24rem); margin: 24px 0 25px; }
.visit-ribbon { background: #e9dfc2; border-bottom: 1px solid #ded4b6; }
.ribbon-inner { display: grid; grid-template-columns: repeat(3,1fr); padding-block: 18px; }
.ribbon-inner > div { padding: 0 20px; border-left: 1px solid #cfc2a0; }
.ribbon-inner > div:first-child { padding-left: 0; border: 0; }
.ribbon-inner small { display: block; font-size: .63rem; font-weight: 760; letter-spacing: .14em; color: #735239; margin-bottom: 3px; }
.ribbon-inner strong, .ribbon-inner a { font-size: 1rem; font-weight: 700; }
.public-section { padding-block: clamp(48px,7vw,84px); scroll-margin-top: 12px; }
.public-section h2 { font-size: clamp(2rem,4vw,3.25rem); letter-spacing: -.04em; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.section-heading p { margin: 10px 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { border: 1px solid var(--edge); border-radius: 30px; background: #fffdf7; padding: 6px 12px; min-height: 34px; font-size: .8rem; font-weight: 650; }
.chip:hover { background: #f2eddf; }
.chip.selected { background: var(--green); border-color: var(--green); color: white; }
.product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 17px; }
.product-card { min-width: 0; padding: 17px; border: 1px solid var(--edge); border-radius: 10px; background: var(--white); }
.product-meta { display: flex; gap: 6px; justify-content: space-between; align-items: center; color: #6c5845; font-size: .7rem; font-weight: 700; margin-bottom: 15px; }
.product-card h3 { font-size: 1.05rem; }
.product-card p { margin: 4px 0 11px; font-size: .85rem; }
.status { display: inline-block; padding: 3px 8px; border-radius: 20px; font-size: .69rem; font-weight: 730; white-space: nowrap; }
.status.in { color: #315139; background: #e8efe0; }
.status.out { color: #7d3c2b; background: #f6e7dd; }
.season-panel { background: #ede8d8; }
.season-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.season-card { overflow: hidden; border-radius: 12px; background: var(--white); color: var(--ink); text-decoration: none; border: 1px solid #ded7c6; }
.season-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.season-card img { width: 100%; aspect-ratio: 1.4; object-fit: cover; }
.season-card div { padding: 14px 15px 17px; }
.season-card small { color: var(--muted); font-size: .73rem; }
.season-card h3 { margin-top: 4px; }
.visit-section { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; }
.visit-section p { margin-top: 14px; }
.visit-section img { width: 100%; height: min(26vw,280px); min-height: 190px; object-fit: cover; object-position: 50% 62%; border-radius: 11px; }
.public-footer { color: #f8efdb; background: var(--green); padding: 25px 0; font-size: .78rem; }
.public-footer .shell { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.admin { display: grid; grid-template-columns: 220px minmax(0,1fr); min-height: 100vh; background: #f6f5ef; }
.sidebar { background: #24372b; color: #f4f2e7; padding: 24px 15px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.sidebar .brand { gap: 8px; }
.sidebar .brand-logo { width: 43px; height: 43px; }
.sidebar .brand strong { font-size: 1.01rem; }
.sidebar .brand small { font-size: .48rem; color: #d6d9c4; }
.sidebar-label { margin: 34px 9px 8px; color: #bdc8b8; letter-spacing: .15em; font-weight: 750; font-size: .62rem; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav a, .public-link { border-radius: 7px; display: flex; gap: 10px; padding: 10px 11px; color: inherit; align-items: center; text-decoration: none; font-size: .88rem; }
.sidebar nav a span { width: 18px; text-align: center; color: #e2c480; }
.sidebar nav a[aria-current] { background: #435b45; font-weight: 710; }
.sidebar nav a:hover, .public-link:hover { background: #3b5140; }
.public-link { margin-top: 22px; border-top: 1px solid #4f6252; }
.side-foot { margin-top: auto; padding: 18px 9px 0; font-size: .66rem; font-weight: 700; letter-spacing: .12em; color: #d6dbc9; }
.side-foot span { font-weight: 500; letter-spacing: 0; color: #c1c8b9; }
.admin-top { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 clamp(16px, 4vw, 44px); border-bottom: 1px solid #e5e4da; background: #fcfbf6; font-size: .81rem; font-weight: 650; }
.admin-top a { text-decoration: none; white-space: nowrap; }
.admin-top a:hover { text-decoration: underline; }
.green-dot { width: 7px; height: 7px; border-radius: 50%; background: #668358; display: inline-block; margin-right: 4px; vertical-align: 1px; }
.separator { color: #93978a; margin-inline: 4px; }
.workspace { width: min(1420px,100%); margin: 0 auto; padding: 31px clamp(16px, 4vw, 44px) 48px; }
.admin-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin: 0 0 20px; }
.admin-heading h1 { font-size: clamp(2rem,4vw,3.2rem); letter-spacing: -.048em; }
.admin-heading p { margin: 8px 0 0; font-size: .91rem; }
.admin-heading .button-row { justify-content: flex-end; flex: 0 0 auto; }
.stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 12px; margin-bottom: 16px; }
.stat { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 15px 16px 13px; background: var(--white); border: 1px solid var(--edge); border-radius: 10px; }
.stat small { font-size: .79rem; font-weight: 690; color: #475248; text-wrap: pretty; }
.stat strong { font-size: clamp(1.3rem,2.5vw,2rem); letter-spacing: -.045em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat span { color: var(--muted); font-size: .73rem; text-wrap: pretty; }
.panel { background: var(--white); border: 1px solid var(--edge); border-radius: 11px; padding: 17px; min-width: 0; }
.panel h2 { font-size: 1.25rem; letter-spacing: -.018em; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.panel-heading > a { font-size: .78rem; white-space: nowrap; }
.panel-heading p { font-size: .83rem; margin: 4px 0 0; }
.walkthrough { background: #eeeee2; padding: 18px; }
.walkthrough .eyebrow { margin-bottom: 6px; }
.steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 15px; }
.steps a { display: flex; align-items: flex-start; gap: 7px; padding: 8px 9px; text-decoration: none; border-radius: 8px; background: #ffffff9c; }
.steps a:hover { background: white; }
.steps b { color: #8a4f2e; font-size: .75rem; padding-top: 3px; }
.steps strong, .steps small { display: block; text-wrap: pretty; }
.steps strong { font-size: .83rem; }
.steps small { color: var(--muted); font-size: .71rem; margin-top: 3px; }
.dashboard-grid, .invoice-entry { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 15px; }
.activity, .invoice-history { margin-top: 15px; }
.data-list { list-style: none; padding: 0; margin: 0; }
.data-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 11px; padding: 9px 0; border-top: 1px solid #ebe8db; font-size: .86rem; }
.data-list li small { display: block; font-size: .75rem; color: var(--muted); }
.empty { font-size: .85rem; margin: 0; padding-block: 10px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .86rem; }
table th, table td { border-bottom: 1px solid #ece9db; padding: 8px 10px; }
table thead th { font-size: .73rem; color: #4f5e51; white-space: nowrap; background: #f4f3eb; }
table tbody th { font-weight: 690; min-width: 125px; }
table small { color: var(--muted); font-weight: 500; font-size: .72rem; }
table th small { display: block; }
.count { font-weight: 740; border-radius: 4px; padding: 2px 5px; background: #ecf1e6; }
.count.zero { color: #7a3d2c; background: #f6e8e0; }
input:not([type=checkbox]):not([type=file]), select, textarea { min-width: 0; width: 100%; padding: 8px 9px; min-height: 40px; background: white; border: 1px solid #cdd2c5; border-radius: 6px; font-size: .86rem; }
.search-label { width: min(100%,265px); }
.capture, .manual { padding: 22px; }
.capture p, .manual p { margin: 8px 0 16px; font-size: .88rem; }
.capture .file-button { margin-right: 6px; }
.sample-row { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 5px 14px; }
.file-button { position: relative; cursor: pointer; }
.file-button:focus-within { outline: 3px solid #a0572d; outline-offset: 3px; }
.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mobile-camera { display: none; }
#ocr-status { margin: 9px 0 0; }
.supplier-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.supplier-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: #32543b; background: #e4ecda; font-weight: 750; margin-bottom: 12px; }
.supplier-card p { font-size: .86rem; margin: 8px 0; }
.supplier-counts { display: flex; flex-wrap: wrap; gap: 8px 14px; border-top: 1px solid var(--edge); margin: 12px 0; padding-top: 10px; font-size: .76rem; }
.checkout-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(230px,1fr); gap: 14px; align-items: start; }
.till-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.tile { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 3px; min-height: 97px; padding: 9px; border: 1px solid #ced8c4; border-radius: 8px; background: #e7eee0; }
.tile:hover:not(:disabled) { box-shadow: 0 0 0 1px #5d7d5c; }
.tile strong { line-height: 1.22; font-size: .88rem; text-wrap: pretty; }
.tile small { font-size: .75rem; color: #394b3d; }
.tile span { margin-top: auto; font-size: .68rem; color: #405241; }
.tile-1, .tile-4 { background: #f3e9ce; border-color: #e0d3af; }
.tile-2, .tile-3 { background: #e8e7f0; border-color: #d7d6e2; }
.basket-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--edge); padding: 12px 0; margin-top: 8px; }
.basket-total strong { font-size: 1.44rem; }
.basket-actions { display: grid; gap: 7px; margin-bottom: 8px; }
.quantity { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.quantity button { background: #efeee4; border: 1px solid #e1decf; border-radius: 6px; min-width: 34px; min-height: 32px; }
dialog { width: min(670px, calc(100% - 28px)); max-height: calc(100dvh - 28px); border: 1px solid var(--edge); border-radius: 13px; padding: 21px; background: #fffdf7; box-shadow: 0 18px 85px #202a1c5c; overflow: auto; }
dialog::backdrop { background: #1c2a22a0; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.dialog-head h2 { font-size: 1.55rem; }
.close { font-size: 1.55rem; width: 33px; height: 33px; flex: none; line-height: 1; background: #efeee5; border: 1px solid #dfdecf; border-radius: 6px; }
.field { display: grid; gap: 4px; margin-bottom: 10px; min-width: 0; }
.field span { font-size: .78rem; font-weight: 690; text-wrap: pretty; }
.help { margin: 4px 0 12px; font-size: .84rem; }
.form-error { color: #a13327; font-weight: 660; font-size: .85rem; margin: 9px 0; }
.form-error:empty { display: none; }
.form-columns { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 9px; }
.invoice-line { border: 1px solid #e3dfcf; border-radius: 8px; padding: 8px 10px 5px; margin: 0 0 8px; min-width: 0; }
.invoice-line legend { padding: 0 5px; font-size: .76rem; font-weight: 700; }
.line-top, .line-bottom { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.line-bottom { grid-template-columns: repeat(3,minmax(0,1fr)) auto; }
.line-bottom button { align-self: center; }
.ocr-raw { margin: 12px 0; font-size: .83rem; }
.ocr-raw pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.checkbox { display: flex; align-items: flex-start; gap: 8px; margin: 13px 0; font-size: .84rem; }
.checkbox input { margin-top: 4px; }
.invoice-image { max-height: 570px; margin-top: 8px; object-fit: contain; }
.detail-section { border-top: 1px solid var(--edge); margin-top: 15px; padding-top: 12px; }
.detail-section h3 { margin-bottom: 8px; }
.quote-result { background: #eef1e6; border-radius: 8px; padding: 12px; }
.quote-result dl { margin: 7px 0; }
.quote-result dl div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #dce4d4; padding: 4px 0; font-size: .85rem; }
.quote-result dd { font-weight: 750; margin: 0; }
#notice { position: fixed; z-index: 2; right: 16px; bottom: 16px; padding: 11px 14px; color: white; background: #24372b; border-radius: 8px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s ease; font-size: .9rem; max-width: min(360px,calc(100% - 32px)); text-wrap: pretty; }
#notice.visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .admin-heading .button-row { justify-content: flex-start; }
  .steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .till-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 830px) {
  .admin { grid-template-columns: 170px minmax(0,1fr); }
  .sidebar { padding-inline: 11px; }
  .sidebar .brand-logo { width: 33px; height: 33px; }
  .sidebar .brand strong { font-size: .84rem; }
  .sidebar .brand small { font-size: .4rem; }
  .stats { grid-auto-flow: row; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .checkout-layout { grid-template-columns: 1fr; }
  .till-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .supplier-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .season-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 32px); }
  .masthead { align-items: flex-start; flex-direction: column; gap: 8px; padding: 9px 0; }
  .masthead nav { gap: 12px; flex-wrap: wrap; font-size: .76rem; width: 100%; }
  .masthead .brand-logo { width: 39px; height: 39px; }
  .masthead .brand strong { font-size: 1.07rem; }
  .hero { min-height: 415px; }
  .hero-shade { background: linear-gradient(90deg,#172011e2,#20221862),linear-gradient(0deg,#171e12a0,transparent 60%); }
  .hero-copy { padding: 43px 0; }
  .ribbon-inner { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .ribbon-inner > div { padding-inline: 12px 0; }
  .ribbon-inner > div:last-child { padding-left: 0; border: 0; }
  .ribbon-inner strong, .ribbon-inner a { font-size: .86rem; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .product-card { padding: 10px; }
  .product-meta { flex-wrap: wrap; margin-bottom: 8px; }
  .product-card h3 { font-size: .94rem; }
  .visit-section { grid-template-columns: 1fr; gap: 16px; }
  .visit-section img { height: 210px; }
  .admin { display: block; }
  .sidebar { position: static; height: auto; padding: 10px 12px; }
  .sidebar .brand { width: fit-content; }
  .sidebar-label, .side-foot, .public-link { display: none; }
  .sidebar nav { display: flex; flex-wrap: wrap; margin-top: 8px; gap: 3px; }
  .sidebar nav a { padding: 7px 8px; font-size: .78rem; }
  .sidebar nav a span { display: none; }
  .admin-top { min-height: 43px; font-size: .73rem; }
  .workspace { padding-top: 20px; }
  .dashboard-grid, .invoice-entry, .supplier-grid { grid-template-columns: 1fr; }
  .till-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .inventory-panel .panel-heading { align-items: flex-start; flex-direction: column; }
  .form-columns, .line-top { grid-template-columns: 1fr; gap: 0; }
  .line-bottom { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mobile-camera { display: inline-flex; }
  dialog { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* Product recognition and checkout lookup */
.product-visual {
  display: grid;
  place-items: center;
  flex: none;
  width: 70px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #d9d2bf;
  border-radius: 8px;
  background-color: #f8f0e3;
}
.product-visual img { width: 100%; height: 100%; object-fit: cover; }
.sample-photo {
  background-image: url("./assets/catalog-contact-sheet.webp");
  background-repeat: no-repeat;
  background-size: 500% 500%;
  background-position: var(--photo-x) var(--photo-y);
  background-origin: border-box;
}
.no-product-photo { color: #485747; font-weight: 740; }
.inventory-product { display: flex; gap: 9px; align-items: center; }
.inventory-product .product-visual { width: 39px; }
.inventory-panel td:last-child { white-space: nowrap; }
.inventory-panel td:last-child button + button { margin-left: 5px; }
.checkout-lookup { display: block; margin: 0 0 12px; }
#checkout-search { min-height: 44px; }
.till-grid .tile {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: 8px;
  min-height: 93px;
}
.till-grid .tile > .product-visual { width: clamp(48px, 4.7vw, 72px); margin: 0; font-size: .88rem; }
.till-grid .tile-content { display: grid; align-content: center; gap: 4px; color: var(--ink); margin: 0; }
.tile .tile-stock { width: fit-content; margin-top: 3px; font-weight: 700; color: #35533b; }
.tile.sold-out-tile { background: #f3f0e7; border-color: #e1dbcd; opacity: 1; }
.tile.sold-out-tile .product-visual { filter: saturate(.65); }
.tile.sold-out-tile .tile-stock { color: #843e2b; }
.recent-stock { border-top: 1px solid var(--edge); margin-top: 18px; padding-top: 13px; }
.recent-stock h3 { font-size: .86rem; color: #6c4839; }
.recent-stock .till-grid { margin-top: 9px; }
.product-card .product-visual { width: 90px; margin: 0 auto 15px; border-color: #e6ddcb; }
.current-product-photo { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.current-product-photo p { margin: 0; }
.product-photo-input { border: 1px solid var(--edge); border-radius: 8px; padding: 8px 11px; background: white; }
.product-photo-input input { width: 100%; font-size: .85rem; }
[data-product-photo-preview]:not(:empty) { margin: 0 0 12px; }
.availability-pill { background: #e8efe0; color: #315139; }
.farm-link-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 20px; }
.farm-link-grid article { background: var(--white); border: 1px solid var(--edge); border-radius: 9px; padding: 14px; }
.farm-link-grid h3 { font-size: .96rem; }
.farm-link-grid a { text-decoration: none; }
.farm-link-grid a:hover { text-decoration: underline; }
.farm-link-grid p { font-size: .82rem; margin: 6px 0 0; }
@media (max-width: 620px) {
  .till-grid .tile { grid-template-columns: 1fr; align-items: start; gap: 6px; }
  .till-grid .tile > .product-visual { width: 65px; }
  .farm-link-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (pointer: coarse) {
  .mobile-camera { display: inline-flex; }
}


.inventory-views { margin-bottom: 16px; }
.inventory-views a { display: inline-flex; align-items: center; text-decoration: none; }
.supply-controls { margin-bottom: 15px; }
.supply-inputs { display: grid; grid-template-columns: 1.65fr repeat(3,minmax(0,1fr)); gap: 10px; }
.supply-inputs .field { margin-bottom: 6px; }
.supply-note { margin: 6px 0 0; font-size: .81rem; }
.supply-layout { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(0, 2fr); gap: 14px; align-items: start; }
.supply-item { display: flex; align-items: center; gap: 9px; margin: 13px 0 17px; }
.supply-item .product-visual { width: 49px; }
.supply-item small { display: block; font-size: .8rem; color: var(--muted); }
.supply-bar + .supply-bar { margin-top: 13px; }
.supply-bar > div:first-child { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 8px; align-items: baseline; font-size: .78rem; }
.supply-bar > div:first-child span { color: var(--muted); }
.supply-track { height: 8px; margin-top: 5px; background: #eeeadd; border-radius: 10px; overflow: hidden; }
.supply-track span { display: block; height: 100%; border-radius: inherit; }
.supply-track .warehouse { background: #a77747; }
.supply-track .unpacked { background: #7c8f56; }
.supply-track .ready { background: #36583f; }
.supply-location .supply-note { margin-top: 14px; }
.outlook-legend { display: flex; flex-wrap: wrap; gap: 7px 17px; margin: 10px 0 2px; font-size: .79rem; color: #475248; }
.outlook-legend span { display: flex; align-items: center; gap: 6px; }
.outlook-key { display: inline-block; width: 23px; height: 0; border-top: 3px solid #36583f; }
.outlook-key.baseline { border-color: #995431; border-top-style: dashed; }
.outlook-chart { display: block; width: 100%; height: auto; overflow: visible; }
.outlook-chart text { fill: #536050; font: 13px var(--sans); }
.outlook-grid { stroke: #e3dfd1; stroke-width: 1; }
.outlook-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.outlook-line.planned { stroke: #36583f; }
.outlook-line.baseline { stroke: #995431; stroke-dasharray: 7 6; }
.outlook-dot { fill: #36583f; stroke: #fffdf7; stroke-width: 1; }
.supply-summary { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; padding: 11px 13px; border-radius: 8px; background: #edf0e4; }
.supply-summary strong { font-size: .89rem; text-wrap: pretty; }
.supply-summary p { margin: 3px 0 0; font-size: .78rem; }
.supply-warning { margin: 9px 0 0; color: #7d3c2b; font-weight: 680; font-size: .8rem; }
.supply-table { margin-top: 12px; }
.supply-table summary { cursor: pointer; font-weight: 680; font-size: .82rem; color: #36583f; }
.supply-table .table-wrap { margin-top: 8px; }
@media (max-width: 1050px) {
  .supply-layout { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .supply-inputs, .supply-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .supply-inputs .field:first-child { grid-column: 1 / -1; }
  .outlook-chart text { font-size: 16px; }
}


.supply-comparisons { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 4px; }
.supply-comparisons .field { margin-bottom: 4px; }
.outlook-key.series-1 { border-color: #286780; }
.outlook-key.series-2 { border-color: #73487e; }
.outlook-line.series-0 { stroke: #36583f; }
.outlook-line.series-1 { stroke: #286780; stroke-width: 2.5; }
.outlook-line.series-2 { stroke: #73487e; stroke-width: 2.5; stroke-dasharray: 2 5; }
.outlook-key.series-2 { border-top-style: dotted; }
.supply-summary small { display: block; color: #536050; font-size: .72rem; }
.category-stock { margin-top: 15px; }
.category-stock .panel-heading .field { flex: 0 1 200px; margin: 0; }
.category-bars { list-style: none; padding: 0; margin: 0; }
.category-bars li + li { border-top: 1px solid #ebe8db; }
.category-bar { width: 100%; min-height: 43px; display: grid; grid-template-columns: minmax(130px, 1fr) minmax(50px, 3fr) minmax(34px, auto); align-items: center; gap: 10px; padding: 6px 8px; border: 0; border-radius: 5px; background: transparent; text-align: left; font-size: .84rem; }
button.category-bar:hover { background: #edf0e4; }
.category-bar-text strong { text-wrap: pretty; }
.category-bar-text small { display: block; color: var(--muted); font-size: .72rem; }
.category-bar-track { display: block; height: 12px; border-radius: 8px; background: #ebeadd; overflow: hidden; }
.category-bar-track span { display: block; height: 100%; border-radius: inherit; background: #4d7554; }
.category-bar-count { text-align: right; font-weight: 690; font-variant-numeric: tabular-nums; }
@media (max-width: 620px) {
  .category-stock .panel-heading { align-items: flex-start; flex-direction: column; }
  .category-stock .panel-heading .field { flex: auto; width: 100%; }
  .category-bar { grid-template-columns: minmax(100px,1.4fr) minmax(24px,1fr) minmax(27px,auto); gap: 7px; padding-inline: 0; }
}


.invoice-review-queue { margin-top: 15px; }
.invoice-review-queue li small { white-space: pre-wrap; overflow-wrap: anywhere; }
.invoice-warning { margin: 0 0 12px; border: 1px solid #ecd3bb; border-radius: 8px; background: #fbefe0; padding: 9px 12px; color: #734026; font-size: .84rem; }
.invoice-warning ul { margin: 4px 0 0; padding-left: 18px; }
.invoice-warning li { text-wrap: pretty; }
dialog:has(#invoice-form) { width: min(960px, calc(100% - 28px)); }
.invoice-review-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.55fr); align-items: start; gap: 15px; }
.invoice-review-fields { min-width: 0; }
.invoice-evidence { min-width: 0; padding: 10px; border: 1px solid var(--edge); border-radius: 8px; background: #f6f3e9; }
.invoice-evidence summary { cursor: pointer; font-weight: 690; margin-bottom: 8px; }
.invoice-evidence .invoice-image { width: 100%; max-height: 340px; margin: 8px 0; border-radius: 5px; }
.invoice-evidence .help { margin: 7px 0 0; }
.invoice-review-note { margin-top: 12px; }
@media (max-width: 800px) {
  .invoice-review-layout { grid-template-columns: 1fr; gap: 11px; }
  .invoice-evidence .invoice-image { max-height: 220px; object-position: left center; }
}
@media (max-width: 1050px) {
  .invoice-photo-actions .mobile-camera, .invoice-evidence .mobile-camera { display: inline-flex; }
}

