:root {
  color-scheme: light;
  --paper: #f7f6ee;
  --white: #ffffff;
  --ink: #142c21;
  --forest: #173a2a;
  --green: #24573c;
  --green-hover: #17452d;
  --leaf: #dcef8e;
  --sage: #edf1df;
  --muted: #58675e;
  --line: #dce2d8;
  --danger: #9b3441;
  --display: Georgia, 'Times New Roman', serif;
  --sans: Inter, 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 20px;
  --width: 1328px;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

.stock-channel-hold { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.15; }

*, *::before, *::after { box-sizing: border-box; }
body { min-width: 320px; margin: 0; }
button, input, textarea, select { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #328352;
  outline-offset: 3px;
}
button { border: 0; }
button svg, label svg { flex: none; }
button, a { touch-action: manipulation; }
h1, h2, h3, p, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.page-width { width: min(calc(100% - 84px), var(--width)); margin-inline: auto; }
.muted { color: var(--muted); }
.boot { min-height: 100svh; display: grid; place-items: center; color: var(--green); font-family: var(--display); font-size: 35px; }
.brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; color: var(--forest); }
.brand-icon {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; background: var(--forest); color: var(--leaf);
}
.brand-text {
  font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.051em; line-height: 1;
}
.brand-text > span { font-weight: 400; }
.brand-inverse { color: var(--white); }
.brand-inverse .brand-icon { background: var(--leaf); color: var(--forest); }
.brand-button { display: inline-flex; justify-self: start; padding: 0; background: transparent; text-align: left; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px;
  border-radius: 10px; padding: 11px 16px; font-size: 14px; font-weight: 680; line-height: 1.2;
  text-decoration: none; transition: color .18s, background .18s, border-color .18s, transform .18s;
}
.button:active:not(:disabled), .round-add:active:not(:disabled) { transform: translateY(1px); }
.button-primary { background: var(--green); color: white; border: 1px solid var(--green); }
.button-primary:hover:not(:disabled) { background: var(--green-hover); border-color: var(--green-hover); }
.button-line { background: #fff; color: var(--forest); border: 1px solid #cfd9cf; }
.button-line:hover:not(:disabled) { background: #eff5e9; }
.button-text { background: transparent; color: var(--green); }
.button-text:hover { background: #e5ecd6; }
.button-danger { border: 1px solid #e9d1d6; color: var(--danger); background: white; }
.button-danger:hover:not(:disabled) { background: #fdf1f4; }
.button:disabled { background: #ecf0eb; border-color: #e0e5df; color: #677268; }

.icon-button {
  display: inline-grid; flex: none; place-items: center; min-width: 40px; min-height: 40px;
  padding: 4px; border-radius: 50%; color: var(--green); background: transparent;
}
.icon-button:hover { background: #e9efe4; }
.text-button { display: inline-flex; align-items: center; gap: 7px; padding: 0; line-height: 1.3; background: transparent; color: var(--green); font-size: 13px; font-weight: 650; }
.text-button:hover { text-decoration: underline; }
.back-button { display: inline-flex; align-items: center; gap: 7px; color: var(--green); padding: 4px 0; background: transparent; font-size: 14px; font-weight: 650; }
.back-button:hover { text-decoration: underline; }
.language-select { display: inline-flex; align-items: center; gap: 3px; color: inherit; }
.language-select select { min-width: 51px; min-height: 33px; padding: 3px 6px 3px 3px; background: transparent; border: 0; color: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.language-select option { background: #fff; color: var(--ink); }

.store-announcement { background: var(--forest); color: #f3f6e9; }
.announcement-inner { display: flex; min-height: 37px; justify-content: space-between; align-items: center; }
.announcement-inner > span, .footer-inner > span:not(.brand) { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; letter-spacing: .015em; }
.announcement-inner > span svg { color: var(--leaf); }
.store-header { min-height: 77px; background: #fffdf7; border-bottom: 1px solid #edece2; }
.store-header-inner { display: grid; grid-template-columns: minmax(190px,1fr) auto minmax(155px,1fr); align-items: center; min-height: 77px; gap: 20px; }
.store-nav { display: flex; justify-content: center; gap: 25px; }
.store-nav button { min-height: 41px; display: flex; align-items: center; justify-content: center; position: relative; padding: 0 3px; white-space: nowrap; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; }
.store-nav button:hover, .store-nav button.is-active { color: var(--green); }
.store-nav button.is-active::after { position: absolute; content: ''; height: 2px; background: #5e8849; bottom: 3px; inset-inline: 4px; border-radius: 2px; }
.store-actions { display: flex; justify-content: end; align-items: center; gap: 9px; }
.cart-button { display: inline-flex; align-items: center; gap: 8px; justify-content: center; padding: 7px 11px; min-height: 40px; border-radius: 22px; background: #edf2df; color: var(--forest); font-size: 13px; font-weight: 700; white-space: nowrap; }
.cart-button:hover { background: #e1eac9; }
.cart-button b { display: inline-grid; place-items: center; border-radius: 50%; background: #dce8b7; min-width: 21px; height: 21px; padding-inline: 3px; font-size: 11px; }

.store-main { padding: 31px 0 71px; }
.shop-hero { min-height: 449px; display: grid; grid-template-columns: 46% 54%; overflow: hidden; border-radius: 24px; background: #edf0dc; }
.hero-copy { min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(29px,5.45vw,85px); padding-block: 46px; }
.hero-location { display: inline-flex; align-items: center; gap: 7px; color: #456146; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.hero-copy h1 {
  margin: 17px 0 17px; font-family: var(--display); font-size: clamp(43px, 5.55vw, 97px); font-weight: 400;
  line-height: .98; letter-spacing: -.074em; color: var(--forest);
}
.hero-copy h1 em { font-weight: 400; color: #3a6442; letter-spacing: -.086em; }
.hero-copy p { max-width: 365px; color: #45564a; font-size: 15px; line-height: 1.64; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 25px; }
.hero-actions .button-primary { border-radius: 30px; min-height: 48px; padding: 11px 20px; }
.hero-actions .button-text { border-radius: 30px; }
.hero-image {
  min-width: 0; min-height: 350px;
  background: #566d42 url('/images/hero.webp') 69% 49% / cover no-repeat;
}
.catalog { margin-top: 54px; scroll-margin-top: 22px; }
.catalog-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.catalog h2 {
  font-family: var(--display); color: var(--forest); font-size: clamp(34px, 4.3vw, 57px);
  font-weight: 400; line-height: 1.03; letter-spacing: -.055em;
}
.search-input {
  display: flex; flex: 0 1 310px; min-width: 135px; align-items: center; gap: 9px; min-height: 44px;
  padding: 0 12px; border: 1px solid #d7dfd4; border-radius: 10px; background: #fff; color: #526453;
}
.search-input:focus-within { border-color: #589966; box-shadow: 0 0 0 2px #5899662b; }
.search-input input { width: 100%; min-width: 0; height: 42px; padding: 0; outline: 0; border: 0; background: transparent; color: var(--ink); font-size: 14px; }
.search-input input:focus-visible { outline: none; }
.categories { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.category-button { min-height: 38px; padding: 8px 15px; border: 1px solid #dce1d4; border-radius: 24px; color: #405446; background: transparent; white-space: nowrap; font-size: 13px; font-weight: 650; }
.category-button:hover { background: #edf1e2; }
.category-button.is-active { color: #fff; background: var(--green); border-color: var(--green); }
.catalog-meta { margin: 15px 1px 11px; color: #69766d; font-size: 12px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.product-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid #e4e6dc; border-radius: 16px; background: #fffefa; transition: box-shadow .2s, transform .2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 23px #263d2110; }
.product-art { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; overflow: hidden; background: #e4e9d9; }
.product-image { width: 100%; height: 100%; display: block; background-image: url('/images/products.webp'); background-repeat: no-repeat; background-size: 400% 300%; }
.tile-0 { background-position: 0 0; }
.tile-1 { background-position: 33.3333% 0; }
.tile-2 { background-position: 66.6667% 0; }
.tile-3 { background-position: 100% 0; }
.tile-4 { background-position: 0 50%; }
.tile-5 { background-position: 33.3333% 50%; }
.tile-6 { background-position: 66.6667% 50%; }
.tile-7 { background-position: 100% 50%; }
.tile-8 { background-position: 0 100%; }
.tile-9 { background-position: 33.3333% 100%; }
.tile-10 { background-position: 66.6667% 100%; }
.tile-11 { background-position: 100% 100%; }
.image-placeholder { display: grid; place-items: center; color: #577659; background: #e6edda; }
.product-badge { position: absolute; top: 11px; left: 11px; padding: 5px 8px; border-radius: 20px; font-size: 11px; font-weight: 760; }
.product-badge.limited { color: #684b19; background: #fff0bd; }
.product-badge.sold-out { color: #575d55; background: #f1f1eb; }
.product-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 14px 15px 12px; }
.product-name { padding: 0; background: transparent; font-size: 17px; text-align: left; font-weight: 700; letter-spacing: -.027em; line-height: 1.25; }
.product-name:hover { color: var(--green); text-decoration: underline; }
.product-unit { margin-top: 4px; color: var(--muted); font-size: 13px; }
.product-bottom { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 7px; margin-top: auto; padding-top: 12px; }
.product-bottom strong { color: var(--forest); font-size: 16px; font-weight: 750; white-space: nowrap; }
.round-add { display: grid; place-items: center; flex: none; width: 38px; height: 38px; padding: 0; border-radius: 50%; background: var(--green); color: #fff; font-size: 14px; font-weight: 760; transition: background .18s, transform .18s; }
.round-add:hover:not(:disabled) { background: #123f29; }
.round-add.in-cart { background: var(--leaf); color: var(--forest); box-shadow: inset 0 0 0 1px #c7dd78; }
.round-add.in-cart:hover:not(:disabled) { background: #d0e871; }
.round-add:disabled { color: #6f796c; background: #e9ede5; box-shadow: none; }

.store-footer { padding: 22px 0; border-top: 1px solid #e1e6d9; color: var(--muted); background: #eef0e4; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.footer-inner .brand { margin-right: auto; }
.footer-inner .brand-icon { width: 33px; height: 33px; }
.footer-inner .brand-text { font-size: 22px; }

.login-layout { display: grid; grid-template-columns: minmax(420px,43.2%) 1fr; min-height: 100svh; background: #f8f8ef; }
.login-left { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(25px, 3.3vw, 55px); }
.login-header { align-self: start; }
.login-body { align-self: center; justify-self: center; width: min(100%, 390px); padding: 36px 0; }
.login-icon { display: inline-grid; width: 53px; height: 53px; place-items: center; border-radius: 15px; background: #e5ebd3; color: #386746; }
.login-body h1 { margin: 21px 0 10px; color: var(--forest); font-family: var(--display); font-size: clamp(36px, 4.8vw, 60px); font-weight: 400; letter-spacing: -.055em; line-height: .98; }
.login-body > p { color: #596853; font-size: 15px; line-height: 1.55; }
.login-form { margin-top: 29px; }
.login-form .button { width: 100%; min-height: 49px; margin-top: 4px; }
.login-footer { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.login-art {
  position: relative; display: flex; align-items: flex-end; min-width: 0;
  background: linear-gradient(0deg,#0e2f22ca 0%,#122c1a00 58%), #34583a url('/images/hero.webp') 67% center / cover no-repeat;
}
.login-art-caption { margin: 0 0 clamp(30px,4.65vw,75px) clamp(24px,4.8vw,77px); color: #fff; }
.login-art-caption > span { display: inline-block; margin-bottom: 12px; color: #e7f2bb; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .11em; }
.login-art-caption p { font: 400 clamp(43px,6vw,100px)/.94 var(--display); letter-spacing: -.067em; }

form { display: grid; align-items: start; gap: 14px; }
form label { display: grid; min-width: 0; align-content: start; gap: 6px; font-size: 13px; font-weight: 680; }
form input, form textarea, form select, .ops-filters select {
  width: 100%; min-width: 0; padding: 10px 11px; min-height: 43px; border: 1px solid #d3ddd2; border-radius: 8px;
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.4;
}
form textarea { resize: vertical; }
form select { padding-inline-end: 25px; }
form input:focus, form textarea:focus, form select:focus { border-color: #669972; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-error { padding: 9px 11px; border: 1px solid #f0cfd7; border-radius: 8px; background: #fff1f2; color: #902c3a; font-size: 13px; line-height: 1.4; }
.empty-state { display: grid; min-height: 176px; align-content: center; justify-items: center; gap: 12px; padding: 27px; text-align: center; color: var(--muted); font-size: 14px; }
.empty-state > svg { color: #54805b; }
.view-error { padding: 10px 0 30px; }
.center-actions { display: flex; justify-content: center; }

.has-overlay { overflow: hidden; }
.overlay { position: fixed; z-index: 20; inset: 0; display: flex; justify-content: flex-end; overflow: hidden; background: #112a20a6; }
.drawer { display: flex; flex-direction: column; width: min(100%,470px); max-width: 100%; height: 100%; min-width: 0; min-height: 0; background: #fffefa; box-shadow: -10px 0 50px #0c2c2330; animation: drawer-in .2s ease-out; }
@keyframes drawer-in { from { opacity: .8; } to { opacity: 1; } }
.drawer-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex: none; padding: 23px 25px 18px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { color: var(--forest); font: 400 32px/1.05 var(--display); letter-spacing: -.045em; }
.drawer-header .icon-button { margin-top: -4px; margin-right: -8px; }
.drawer-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 19px 25px; }
.drawer-footer { flex: none; border-top: 1px solid var(--line); padding: 17px 25px max(18px, env(safe-area-inset-bottom)); }
.cart-drawer .drawer-footer .button { width: 100%; margin-top: 11px; }
.cart-list { display: flex; flex-direction: column; gap: 0; list-style: none; }
.cart-line { display: grid; grid-template-columns: 66px minmax(0,1fr) auto; gap: 12px; align-items: start; padding: 13px 0; border-bottom: 1px solid #edf0e8; }
.line-thumb, .summary-thumb, .inventory-thumb, .pick-thumb { flex: none; width: 66px; height: 66px; border-radius: 9px; overflow: hidden; }
.cart-line-name, .cart-line-price { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; font-size: 14px; }
.cart-line-name > span { color: var(--muted); font-size: 12px; }
.cart-line-price { align-items: flex-end; white-space: nowrap; }
.cart-line-price .text-button { margin-top: 6px; font-size: 12px; }
.quantity-stepper { display: inline-flex; align-items: center; min-height: 32px; border: 1px solid #dce3d8; border-radius: 20px; margin-top: 3px; font-size: 13px; font-weight: 700; }
.quantity-stepper button { display: grid; place-items: center; width: 32px; height: 30px; padding: 0; background: transparent; color: var(--green); border-radius: 50%; }
.quantity-stepper button:hover:not(:disabled) { background: #ebf2e6; }
.quantity-stepper button:disabled { opacity: .4; }
.quantity-stepper span { min-width: 20px; text-align: center; }

.dialog-overlay { align-items: center; justify-content: center; padding: 19px; overflow: auto; }
.product-dialog { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(740px,100%); max-height: 100%; overflow: auto; background: #fffefa; border-radius: 19px; }
.float-close { position: absolute; top: 10px; right: 10px; z-index: 1; background: white; }
.product-detail-image { aspect-ratio: 1; height: auto; align-self: start; }
.product-detail { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; justify-content: center; padding: 28px 27px; color: var(--ink); }
.product-detail h2 { color: var(--forest); font: 400 clamp(29px,4vw,45px)/1 var(--display); letter-spacing: -.045em; }
.product-detail p { font-size: 14px; line-height: 1.5; }
.stock-label { color: var(--green); font-weight: 750; }
.product-detail-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; width: 100%; margin-top: 5px; }
.product-detail-bottom > strong { font-size: 20px; }

.buyer-page { min-height: calc(100svh - 190px); padding: 33px 0 64px; }
.buyer-page > h1 { margin: 17px 0 24px; font: 400 clamp(38px,5vw,64px)/1.03 var(--display); letter-spacing: -.06em; }
.checkout-layout, .order-tracking-grid { display: grid; grid-template-columns: minmax(0,1.22fr) minmax(0,.82fr); gap: 22px; align-items: start; }
.checkout-layout { max-width: 1040px; }
.checkout-fields, .checkout-summary, .tracking-detail { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fffefa; }
.checkout-fields h2, .checkout-summary h2 { margin-bottom: 17px; font: 400 27px/1.12 var(--display); letter-spacing: -.035em; }
.checkout-summary .button { width: 100%; }
.checkout-line-list { list-style: none; margin-bottom: 9px; }
.checkout-line-list li { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; }
.checkout-line-list b, .checkout-line-list small { display: block; }
.checkout-line-list small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.summary-thumb { width: 42px; height: 42px; border-radius: 6px; }
.summary-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 14px; }
.total-line { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; font-size: 16px; }
.payment-line { display: flex; align-items: center; gap: 7px; margin: 6px 0 13px; padding: 10px; border-radius: 8px; background: #eef3e8; color: #4a634e; font-size: 13px; }
.order-tracking-grid { max-width: 1050px; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
.tracking-list { display: grid; gap: 10px; }
.tracking-card { display: flex; flex-direction: column; text-align: left; gap: 7px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fffefa; }
.tracking-card.is-active { background: #f0f4e5; border-color: #a2b98d; }
.tracking-card > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.tracking-card p, .tracking-items, .tracking-address { font-size: 13px; color: var(--muted); }
.tracking-detail > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 17px; }
.tracking-detail h2 { margin-bottom: 3px; color: var(--forest); font: 400 30px/1.1 var(--display); letter-spacing: -.04em; }
.tracking-detail h3, .order-drawer h3 { margin-bottom: 8px; font-size: 14px; font-weight: 720; }
.tracking-items { list-style: none; margin-bottom: 15px; }
.tracking-items li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid #eef0ec; }
.tracking-address { display: flex; align-items: center; gap: 6px; }
.timeline { list-style: none; margin-bottom: 13px; }
.timeline li { position: relative; display: flex; gap: 12px; align-items: flex-start; min-height: 39px; font-size: 13px; }
.timeline li:not(:last-child)::before { content: ''; position: absolute; left: 4px; top: 12px; bottom: -4px; width: 1px; background: #cddcce; }
.timeline-dot { position: relative; flex: none; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: #607f64; }
.timeline li:first-child .timeline-dot { background: #4a9357; box-shadow: 0 0 0 3px #e0efde; }
.timeline li div { display: grid; gap: 3px; }
.timeline li div span { color: var(--muted); font-size: 12px; }

.status-pill, .source-pill { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 4px 8px; border-radius: 24px; color: #47574e; background: #ecf1eb; font-size: 11px; font-weight: 740; line-height: 1.2; }
.status-pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-needs_review { color: #704b14; background: #f8edcb; }
.status-confirmed { color: #245831; background: #e5f1dc; }
.status-picking { color: #3d5189; background: #e8ebf9; }
.status-ready { color: #245539; background: #dbeedb; }
.status-dispatched { color: #3a5786; background: #e2edf8; }
.status-delivered { color: #515e53; background: #eaf0e8; }
.status-cancelled { color: #872b38; background: #f7e6e8; }
.source-website { color: #42543c; background: #edf0e2; }
.source-whatsapp { color: #216044; background: #e2f2e8; }
.source-grab { color: #255e20; background: #e6f4da; }
.source-telegram { color: #245876; background: #e2f0f7; }

.ops-layout { display: grid; grid-template-columns: 223px minmax(0,1fr); min-height: 100svh; background: #eff2ec; }
.ops-sidebar {
  position: sticky; top: 0; min-height: 100svh; height: 100svh; display: flex; flex-direction: column; gap: 8px;
  padding: 22px 13px; color: #e9f2e8; background: #173a2a;
}
.ops-brand { margin: 3px 2px 24px; }
.ops-brand .brand-icon { width: 34px; height: 34px; }
.ops-brand .brand-text { font-size: 24px; }
.ops-side-label { padding: 0 12px; color: #b6ccb9; font-size: 12px; font-weight: 600; }
.ops-nav, .ops-sidebar-bottom { display: flex; flex-direction: column; gap: 4px; }
.ops-sidebar-bottom { margin-top: auto; }
.ops-sidebar :is(button,.ops-download) { display: inline-flex; align-items: center; gap: 9px; min-height: 43px; padding: 9px 10px; color: #e6f0e5; border-radius: 8px; background: transparent; text-align: left; font-size: 13px; font-weight: 600; }
.ops-sidebar :is(button,.ops-download):hover { background: #ffffff18; }
.ops-sidebar button.is-active { color: #233b27; background: #e1eead; font-weight: 760; }
.ops-topbar { display: flex; justify-content: flex-end; align-items: center; gap: 15px; min-height: 64px; padding: 8px 29px; border-bottom: 1px solid var(--line); background: #fafbf5; }
.ops-user { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.avatar { display: inline-grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e1ecdc; color: #34563d; font-size: 12px; }
.ops-mobile-header { display: none; }
.ops-main { min-width: 0; }
.ops-content { width: min(100%, 1450px); margin-inline: auto; padding: 28px clamp(17px,3.15vw,43px) 46px; }
.ops-heading { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-bottom: 21px; }
.ops-heading p { margin-bottom: 4px; color: #5f7464; font-size: 11px; font-weight: 750; letter-spacing: .085em; text-transform: uppercase; }
.ops-heading h1 { color: var(--forest); font: 400 clamp(35px,4.7vw,62px)/1.03 var(--display); letter-spacing: -.06em; }
.ops-heading .button { flex: none; }
.ops-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; margin-bottom: 14px; }
.ops-metric { display: grid; gap: 6px; justify-items: start; min-height: 114px; padding: 12px; border: 1px solid #dde5d9; border-radius: 13px; text-align: left; background: #fff; }
.ops-metric:hover, .ops-metric.is-active { border-color: #a7bc99; background: #f8fbef; }
.metric-icon { display: inline-grid; width: 33px; height: 33px; place-items: center; border-radius: 8px; color: #365e40; background: #e8f0e3; }
.metric-alert { color: #886226; background: #f7edcf; }
.metric-list { color: #4d638f; background: #e9eef7; }
.ops-metric > .metric-label { color: #5b6c61; font-size: 12px; font-weight: 600; }
.ops-metric > strong { color: var(--forest); font-size: 24px; line-height: 1; }
.ops-panel { min-width: 0; overflow: hidden; border: 1px solid #dde5d9; border-radius: 13px; background: #fff; }
.padded-panel { padding: 17px; }
.padded-panel > h2, .panel-title { color: var(--forest); font-size: 17px; font-weight: 740; letter-spacing: -.02em; }
.padded-panel > h2 { margin-bottom: 8px; }
.padded-panel > .muted { margin: 2px 0 12px; font-size: 13px; line-height: 1.5; }
.panel-title { padding: 15px 15px 12px; }
.ops-stacked { display: grid; align-content: start; gap: 15px; }
.ops-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; padding: 12px; }
.ops-toolbar .search-input { flex: 1 1 220px; max-width: 380px; }
.ops-filters { display: flex; align-items: center; gap: 8px; }
.ops-filters select { width: auto; min-width: 130px; max-width: 205px; }

.table-scroll { position: relative; overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
th, td { padding: 9px 13px; border-bottom: 1px solid #edf1ec; }
th { color: #647568; background: #f6f8f3; white-space: nowrap; font-weight: 720; font-size: 11px; }
td { height: 44px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfcf8; }
.table-money, .table-date { white-space: nowrap; }
.table-date { color: #5d6a60; font-size: 12px; }
.table-order-number { color: var(--green); white-space: nowrap; font-weight: 780; }
.interactive-row { cursor: pointer; }
tr.interactive-row:hover td, .catalog-manager-row:hover { background: #eff5eb; }
.interactive-row:focus-visible { outline: 2px solid #598257; outline-offset: -2px; }
.intake-channels, .button-row, .small-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.intake-channels { margin-bottom: 14px; }
.channel-button { min-height: 36px; padding: 1px 8px; border: 1px solid #e4eae0; border-radius: 8px; background: #fbfdf9; }
.channel-button.is-active { border-color: #83a67d; background: #eef5e8; }
.intake-panel form { max-width: 720px; }
.intake-panel form > .button { justify-self: start; }
.inventory-hint { margin: 0; padding: 11px 13px; color: var(--muted); font-size: 13px; }
.inline-stock {
  width: 76px; min-height: 34px; padding: 5px 7px; border: 1px solid #cfdccf; border-radius: 7px;
  background: #fff; color: var(--forest); font: inherit; font-weight: 600; font-variant-numeric: tabular-nums;
}
.inline-stock:focus { outline: 2px solid #598257; outline-offset: 1px; }
.inline-stock:disabled { opacity: .6; }
.inventory-product { display: inline-flex; align-items: center; gap: 8px; padding: 0; text-align: left; background: transparent; font-weight: 670; }
.inventory-product small { display: block; margin-top: 1px; color: var(--muted); font-size: 11px; font-weight: 500; }
.inventory-thumb { width: 37px; height: 37px; border-radius: 6px; }
.uploaded-product-image { background-image: none; background-color: #f0eee5; overflow: hidden; }
.uploaded-product-image img, .catalog-photo-preview > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.catalog-manager-list { margin: 0; padding: 0; list-style: none; }
.catalog-manager-row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 16px; align-items: center; gap: 12px;
  width: 100%; padding: 12px 16px; background: transparent; text-align: left;
}
.catalog-manager-list li + li { border-top: 1px solid var(--line); }
.catalog-manager-thumb { width: 52px; height: 52px; border-radius: 8px; }
.catalog-manager-name { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.catalog-manager-name > span { color: var(--muted); font-size: 12px; }
.catalog-manager-name > .catalog-hidden { color: #79591b; font-weight: 680; }
.catalog-manager-price { color: var(--forest); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.catalog-manager-price small { display: block; color: var(--muted); font-size: 10px; font-weight: 550; }
.catalog-row-chevron { display: grid; place-items: center; color: var(--muted); }
.list-status { padding: 24px 16px; color: var(--muted); font-size: 14px; }
.warehouse-view { padding-bottom: 18px; }
.warehouse-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.warehouse-metrics > div { display: grid; gap: 5px; padding: 14px; min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.warehouse-metrics span { color: var(--muted); font-size: 12px; }
.warehouse-metrics strong { font-size: clamp(17px, 2vw, 24px); line-height: 1.2; color: var(--forest); }
.warehouse-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.warehouse-nav button { padding: 9px 13px; border: 1px solid var(--line); background: #fff; border-radius: 100px; color: var(--forest); font-weight: 680; }
.warehouse-nav button[aria-current="page"] { color: #fff; background: var(--forest); border-color: var(--forest); }
.warehouse-checkbox { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.warehouse-checkbox input { accent-color: var(--forest); }
.warehouse-stock-options, .stock-secondary-label { display: none; }
.warehouse-stock-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.warehouse-stock-table { font-variant-numeric: tabular-nums; }
.warehouse-table { min-width: 600px; }
.warehouse-table th:first-child { min-width: 215px; }
.warehouse-history { min-width: 820px; }
.warehouse-history th:first-child { min-width: auto; }
.warehouse-history td:nth-child(2) { min-width: 145px; }
.warehouse-history td:nth-child(7) { min-width: 165px; }
.warehouse-warning { color: #8b571d !important; }
.warehouse-form-panel { padding: clamp(14px, 3vw, 25px); }
.warehouse-form-heading { margin-bottom: 16px; }
.warehouse-form-heading h2 { margin: 0 0 4px; font-size: clamp(20px, 3vw, 25px); }
.warehouse-form-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.warehouse-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; max-width: 830px; }
.warehouse-form label, .warehouse-product-field, .warehouse-history-filters label { display: grid; min-width: 0; gap: 5px; font-size: 13px; font-weight: 650; }
.warehouse-form :is(input,select,textarea), .warehouse-history-filters :is(input,select), .catalog-manager-toolbar select {
  width: 100%; min-width: 0; min-height: 38px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--forest); font: inherit;
}
.catalog-manager-toolbar select { width: auto; }
.warehouse-product-chooser { display: grid; grid-template-columns: minmax(85px,1fr) minmax(0,1.65fr); gap: 6px; }
.warehouse-form-wide { grid-column: 1 / -1; }
.warehouse-qc-result { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-top: auto; gap: 8px; padding: 8px 12px; background: #f2f5ed; border-radius: 8px; color: var(--forest); font-size: 13px; }
.warehouse-qc-result output { font-size: 19px; font-weight: 700; }
.warehouse-history-filters label { flex: 1 1 155px; }
.warehouse-pages { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; padding: 12px; color: var(--muted); font-size: 13px; }
.warehouse-pages > div { display: flex; gap: 7px; }
.warehouse-suppliers { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 9px; padding: 12px; }
.warehouse-suppliers button { display: flex; gap: 10px; align-items: center; text-align: left; padding: 11px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.warehouse-suppliers button:hover { background: #eff5eb; }
.warehouse-suppliers small { display: block; color: var(--muted); font-size: 11px; }
.warehouse-supplier-icon { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: #edf3e8; color: var(--forest); flex: none; }
.warehouse-catalog-source { padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #f6f7f1; font-size: 13px; }
.warehouse-catalog-source dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin: 8px 0; }
.warehouse-catalog-source dt, .warehouse-catalog-source small, .warehouse-catalog-source p { color: var(--muted); }
.warehouse-catalog-source dd { margin: 0; font-weight: 700; }
.warehouse-catalog-source p { margin: 5px 0 0; }
.report-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px; }
.report-toolbar label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.report-toolbar input { min-height: 36px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.report-periods { display: flex; padding: 3px; gap: 3px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.report-periods button { padding: 7px 13px; border: 0; border-radius: 6px; color: var(--forest); background: transparent; font-weight: 700; }
.report-periods button[aria-pressed="true"] { background: var(--forest); color: #fff; }
.report-period-caption { display: flex; flex-wrap: wrap; gap: 5px 14px; font-size: 12px; color: var(--muted); }
.report-period-caption strong { color: var(--forest); }
.report-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 9px; }
.report-metric { display: grid; grid-template-rows: minmax(28px,auto) auto auto; gap: 5px; min-width: 0; min-height: 98px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.report-metric > span, .report-metric > small { color: var(--muted); line-height: 1.35; font-size: 12px; }
.report-metric > strong { color: var(--forest); font-size: clamp(18px,2vw,26px); line-height: 1.2; overflow-wrap: anywhere; }
.report-panel-heading { padding: 14px 15px 7px; }
.report-panel-heading h2 { margin: 0; font-size: 17px; }
.report-panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.report-chart-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 4px 16px 8px; color: var(--muted); font-size: 12px; }
.report-chart-legend span { display: inline-flex; gap: 5px; align-items: center; }
.report-chart-legend i { width: 10px; height: 10px; border-radius: 2px; }
.report-sheet { background: #397552; }
.report-app { background: #a28665; }
.report-negative { background: #a04d53; }
.report-chart { display: flex; gap: clamp(2px,.6vw,8px); padding: 4px 16px 12px; }
.report-chart-point { position: relative; flex: 1 1 0; min-width: 0; padding: 0 0 20px; text-align: center; color: var(--muted); background: transparent; border-radius: 4px; }
.report-chart-point:hover, .report-chart-point[aria-pressed="true"] { color: var(--forest); background: #edf2e8; }
.report-chart-point:focus-visible { z-index: 1; outline-offset: 1px; }
.report-chart-date { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); font-size: 11px; line-height: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.report-chart-point:first-child .report-chart-date { left: 0; transform: none; }
.report-chart-point:last-child .report-chart-date { inset-inline: auto 0; transform: none; }
.report-chart-bars { display: flex; justify-content: center; align-items: end; height: clamp(96px,19vw,184px); gap: 2px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), #edf0eb calc(25% - 1px), #edf0eb 25%); }
.report-chart-bars i { display: block; width: 40%; max-width: 24px; height: var(--report-bar); border-radius: 3px 3px 0 0; }
.report-chart-controls {
  display: flex; align-items: center; gap: 8px 16px; min-height: 48px; padding: 4px 16px 8px;
  color: var(--forest); font-size: 13px; font-variant-numeric: tabular-nums;
}
.report-chart-controls select { flex: none; min-height: 36px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.report-chart-controls output { overflow-wrap: anywhere; line-height: 1.45; }
.report-table { min-width: 510px; }
.operations-toolbar, .operation-section-heading, .operation-actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.operations-toolbar, .operation-section-heading { justify-content: space-between; }
.operations-toolbar label, .operation-form label, .operation-form fieldset label { display: grid; min-width: 0; gap: 4px; font-size: 13px; font-weight: 620; }
.operations-toolbar :is(input,select), .operation-form :is(input,select,textarea), .purchase-message textarea {
  font: inherit; color: var(--forest); border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 8px 10px; min-height: 39px; min-width: 0;
}
.operation-form :is(input,select,textarea) { width: 100%; }
.operation-form label small { color: var(--muted); font-size: 11px; font-weight: 450; }
.operation-form label:has(input[type="checkbox"]) { display: flex; align-items: center; gap: 7px; }
.operation-form input[type="checkbox"] { width: auto; min-height: 0; accent-color: var(--forest); }
.operation-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.operation-field-wide { grid-column: 1 / -1; }
.operation-form-panel { padding: clamp(13px,2.4vw,22px); min-width: 0; scroll-margin-top: 12px; }
.operation-form-panel h2, .operation-list h2, .logistics-route h2 { margin: 0; font-size: clamp(17px,2vw,21px); color: var(--forest); }
.operation-form-panel h2 + p, .operation-section-heading p { margin: 4px 0 0; }
.operation-form-panel > h2 { margin-bottom: 12px; }
.operation-fields { display: grid; align-items: center; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; border: 1px solid var(--line); border-radius: 9px; padding: 10px; margin: 0; min-width: 0; }
.operation-fields legend { padding-inline: 5px; font-size: 13px; font-weight: 720; }
.operation-hint { margin: 0; padding: 10px 12px; border-radius: 9px; border: 1px solid #e0e7d5; background: #f5f8ef; color: var(--forest); font-size: 13px; }
.operation-list { min-width: 0; padding: 13px; }
.operation-list > h2 { margin-bottom: 8px; }
.operation-list > p, .logistics-map p, .stop-time small, .stop-information small { color: var(--muted); font-size: 12px; }
.operation-list > div, .purchase-order-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; text-align: left; background: #fff; padding: 9px; border-bottom: 1px solid var(--line); }
.operation-list > :is(button,div):last-child { border-bottom: 0; }
.operation-list :is(div,button) > span small { display: block; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; min-height: 0; }
.state-chip { display: inline-flex; align-items: center; white-space: nowrap; padding: 4px 8px; font-size: 11px; font-weight: 680; color: #245a41; background: #e8f2e7; border-radius: 20px; }
.state-ordered,.state-expected { background: #e9edf7; color: #354b79; }
.state-adjusted { background: #f8eee0; color: #7a4a1d; }
.state-cancelled { background: #eff1ec; color: #575e58; }
.logistics-map { overflow: hidden; }
.logistics-map canvas { width: 100%; max-height: 280px; display: block; object-fit: fill; }
.logistics-map p { margin: 0; padding: 8px 12px; }
.logistics-routes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.logistics-route { min-width: 0; overflow: hidden; align-self: start; }
.logistics-route header { display: flex; align-items: start; justify-content: space-between; padding: 13px 13px 10px; gap: 8px; }
.logistics-route header p { color: var(--muted); margin: 2px 0 0; font-size: 11px; }
.logistics-route header i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; }
.logistics-route ol { list-style: none; margin: 0; padding: 0; }
.logistics-stop { display: grid; grid-template-columns: 25px minmax(0,1fr) auto; align-items: start; padding: 10px; gap: 6px 8px; border-top: 1px solid var(--line); }
.stop-position { width: 24px; height: 24px; display: grid; place-items: center; color: var(--forest); background: #eef4e9; border-radius: 50%; font-size: 11px; font-weight: 650; }
.stop-information, .stop-time { display: grid; overflow-wrap: anywhere; gap: 2px; min-width: 0; }
.stop-actions { grid-column: 2 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.stop-actions .button, .logistics-stop .button { min-height: 31px; padding-inline: 8px; font-size: 11px; }
.purchasing-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
.purchasing-suppliers { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 9px; padding: 13px; }
.purchasing-suppliers article { border: 1px solid var(--line); border-radius: 9px; padding: 11px; min-width: 0; }
.purchasing-suppliers p, .purchasing-suppliers small { margin: 4px 0; color: var(--muted); font-size: 12px; }
.purchasing-suppliers .operation-actions { margin-top: 8px; }
.purchase-table { min-width: 620px; }
.purchase-editor-lines, .purchase-receipt-lines, .purchase-messages { display: grid; gap: 9px; min-width: 0; }
.purchase-edit-line { display: grid; grid-template-columns: minmax(130px,2fr) minmax(74px,1fr) minmax(82px,1.2fr) auto; gap: 8px; align-items: start; padding: 8px; border-radius: 8px; border: 1px solid var(--line); }
.purchase-edit-line .icon-button { margin-top: 16px; }
.purchase-edit-total, .purchase-money { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.purchase-edit-total > div { display: grid; text-align: right; }
.purchase-edit-total span, .purchase-edit-total small, .purchase-money span { font-size: 12px; }
.purchase-detail, .purchase-confirm { display: grid; gap: 12px; }
.purchase-confirm { border-top: 1px solid var(--line); padding-top: 11px; }
.purchase-confirm h3 { margin: 0; font-size: 15px; }
.purchase-readable-lines { margin: 0; padding-left: 16px; }
.purchase-receipt-line { grid-template-columns: repeat(3,minmax(0,1fr)); }
.purchase-message { border: 1px solid var(--line); border-radius: 9px; padding: 11px; min-width: 0; overflow-wrap: anywhere; }
.purchase-message header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.purchase-message p { margin: 0; white-space: pre-wrap; }
.purchase-message small { color: var(--muted); }
.purchase-message textarea { display: block; width: 100%; resize: vertical; margin-bottom: 7px; }
.message-draft { background: #f3f7ee; }
.purchase-messages { margin: 10px 0; }
.operations-role { min-height: 100vh; background: #f1f3ed; }
.operations-role-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.operations-role-top > div { display: flex; gap: 8px; align-items: center; }
.operations-role main { max-width: 850px; padding: 15px; margin-inline: auto; }
.operations-role main > h1 { margin: 0 0 13px; }
.operations-role .logistics-routes { grid-template-columns: minmax(0,1fr); }
.channel-table { min-width: 720px; }
.channel-table td small { display: block; margin-top: 2px; font-size: 11px; }
.channel-table input[type="checkbox"] { accent-color: var(--forest); }
.channel-example { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 11px; }
.channel-example div { display: grid; gap: 4px; padding: 9px; background: #f1f6eb; border-radius: 8px; min-width: 0; font-size: 12px; }
.channel-example strong { font-size: 20px; color: var(--forest); }
@media (max-width: 740px) {
  .logistics-routes, .operation-form { grid-template-columns: minmax(0,1fr); }
  .purchase-edit-line { grid-template-columns: minmax(0,1fr) minmax(0,1.25fr) auto; }
  .purchase-edit-line > label:first-child { grid-column: 1 / -1; }
  .purchase-receipt-line > label:last-child { grid-column: 1 / -1; }
  .purchase-receipt-line { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .warehouse-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .warehouse-metrics > div { padding: 11px; }
  .warehouse-nav { gap: 6px; }
  .warehouse-nav button { padding: 8px 10px; font-size: 12px; }
  .warehouse-form { grid-template-columns: minmax(0,1fr); }
  .warehouse-suppliers { grid-template-columns: minmax(0,1fr); }
  .report-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .report-metric { min-height: 85px; padding: 9px; }
  .report-chart-bars { gap: 1px; }
  .report-chart, .report-chart-legend { padding-inline: 9px; }
}
.catalog-drawer { width: min(100%, 540px); }
.catalog-product-form { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.catalog-product-fields { display: flex; flex-direction: column; gap: 14px; }
.catalog-field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.catalog-photo-field { display: grid; grid-template-columns: 93px minmax(0, 1fr); align-items: center; gap: 13px; }
.catalog-photo-preview { width: 93px; aspect-ratio: 1; border-radius: 9px; overflow: hidden; }
.catalog-photo-field input { width: 100%; min-width: 0; padding: 7px; font-size: 12px; }
.catalog-drawer-footer { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-drawer-footer .button { flex: 1 1 auto; }
.catalog-drawer-footer p { flex: 1 1 100%; margin: 0; color: var(--muted); font-size: 12px; }
.catalog-product-fields textarea { resize: vertical; }
.stock-count { display: inline-flex; min-width: 29px; justify-content: center; padding: 4px 7px; border-radius: 7px; color: #37603b; background: #e9f2e3; font-weight: 740; }
.stock-low { color: #795922; background: #f8edd0; }

.order-drawer { width: min(100%, 630px); }
.courier-summary {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--forest);
  background: #f0f5ea; border: 1px solid #dce8d5; border-radius: 10px; font-size: 13px;
}
.courier-summary > svg { flex: 0 0 auto; color: var(--green); }
.courier-summary > div { display: grid; flex: 1 1 auto; gap: 2px; }
.courier-summary > div > span { color: var(--muted); }
.courier-summary > small { color: var(--muted); white-space: nowrap; }
.tracking-detail .courier-summary, .picker-main .courier-summary { margin: 0 0 14px; }
.order-drawer .drawer-header .small-row { margin-top: 6px; }
.order-drawer .drawer-body { gap: 17px; }
.order-drawer .order-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.detail-grid section { display: grid; align-content: start; gap: 4px; padding: 12px; border: 1px solid #e5ebdf; background: #f5f8ef; border-radius: 9px; font-size: 13px; }
.detail-grid section h3 { margin-bottom: 2px; font-size: 12px; color: var(--muted); }
.detail-grid section span { overflow-wrap: anywhere; }
.issues, .raw-message { padding: 12px; border-radius: 9px; font-size: 13px; line-height: 1.46; }
.issues { background: #fbf1d9; color: #6a511e; }
.raw-message { color: #3d5848; background: #edf4e8; }
.issues h3, .raw-message h3 { display: flex; align-items: center; gap: 7px; }
.issues ul { padding-inline-start: 18px; }
.raw-message blockquote { white-space: pre-wrap; overflow-wrap: anywhere; }
.review-items { display: grid; gap: 6px; }
.review-item { display: grid; grid-template-columns: minmax(0,1fr) 81px 37px; align-items: center; gap: 6px; }
.review-item .icon-button { min-width: 35px; min-height: 35px; }
#review-form > .button-line, #review-form > .button-primary { justify-self: start; }

.picker-layout { min-height: 100svh; background: #f1f4ed; }
.picker-width { width: min(calc(100% - 35px),750px); margin-inline: auto; }
.picker-header { color: #f2f6ee; background: var(--forest); }
.picker-header .picker-width, .picker-header .picker-width > div { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.picker-header .icon-button { color: #f3f7ef; }
.picker-header .icon-button:hover { background: #ffffff22; }
.picker-link { min-height: 35px; padding: 5px 7px; display: inline-flex; align-items: center; gap: 5px; border-radius: 6px; color: #eef6e9; background: transparent; font-size: 12px; font-weight: 650; }
.picker-link:hover { background: #ffffff1e; }
.picker-main { padding: 27px 0 55px; }
.picker-title { margin: 9px 0 15px; display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.picker-title h1 { color: var(--forest); font: 400 clamp(35px,6vw,61px)/1 var(--display); letter-spacing: -.055em; }
.queue-count { padding: 5px 9px; border-radius: 22px; color: var(--forest); background: #dee9d7; font-size: 14px; font-weight: 780; }
.picker-queue { display: grid; gap: 8px; }
.picker-order-card { display: grid; grid-template-columns: 41px 1fr auto 19px; align-items: center; min-height: 68px; gap: 9px; padding: 12px; border: 1px solid #dbe4d8; border-radius: 11px; background: #fff; text-align: left; }
.picker-order-card:hover { background: #f6fbee; border-color: #a6bf9d; }
.picker-card-icon { display: grid; width: 41px; height: 41px; place-items: center; border-radius: 8px; background: #e5efdf; color: #355c39; }
.picker-order-card strong, .picker-order-card small { display: block; }
.picker-order-card small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.picker-delivery { display: flex; align-items: center; gap: 7px; margin: -6px 0 13px; color: var(--muted); font-size: 13px; }
.pick-progress { margin-bottom: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.pick-progress div { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.pick-progress progress { width: 100%; height: 9px; appearance: none; border: 0; border-radius: 11px; background: #e2eadf; color: #509153; }
.pick-progress progress::-webkit-progress-bar { border-radius: 11px; background: #e2eadf; }
.pick-progress progress::-webkit-progress-value { border-radius: 11px; background: #509153; }
.pick-progress progress::-moz-progress-bar { border-radius: 11px; background: #509153; }
.pick-items { display: grid; gap: 7px; list-style: none; }
.pick-line { display: grid; grid-template-columns: 45px 1fr 27px; align-items: center; min-height: 59px; gap: 9px; padding: 7px 10px; border: 1px solid #dfe7dd; border-radius: 10px; background: white; }
label.pick-line { cursor: pointer; min-height: 67px; }
label.pick-line:hover, .pick-line.is-checked { background: #edf6e8; border-color: #b4cbb0; }
.pick-thumb { width: 45px; height: 45px; border-radius: 7px; }
.pick-line-copy { display: grid; gap: 2px; font-size: 14px; }
.pick-line-copy small { color: var(--muted); font-size: 12px; }
.pick-checkbox { width: 22px; height: 22px; margin: 0; accent-color: var(--green); cursor: pointer; }
.simple-check { color: var(--green); }
.picker-submit { position: sticky; bottom: 0; padding-top: 12px; background: #f1f4ed; }
.picker-submit .button { width: 100%; min-height: 49px; }

#notifications { position: fixed; z-index: 35; right: 19px; bottom: max(18px,env(safe-area-inset-bottom)); display: grid; justify-items: end; gap: 6px; max-width: min(390px,calc(100vw - 37px)); pointer-events: none; }
.toast { display: flex; align-items: center; justify-content: flex-start; gap: 9px; min-height: 42px; padding: 9px 13px; border-radius: 9px; color: #f8f9f1; background: #245d3d; font-size: 13px; font-weight: 650; line-height: 1.35; box-shadow: 0 6px 17px #1635242c; }
.toast svg { flex: none; }
.toast-error { background: #8b3341; }

@media (max-width: 1100px) {
  .page-width { width: min(calc(100% - 48px), var(--width)); }
  .shop-hero { min-height: 405px; }
  .hero-copy { padding-inline: 34px; }
  .store-nav { gap: 16px; }
  .ops-layout { grid-template-columns: 189px minmax(0,1fr); }
  .ops-brand .brand { gap: 7px; }
  .ops-brand .brand-text { font-size: 19px; }
}
@media (max-width: 850px) {
  .store-header-inner { gap: 10px; grid-template-columns: minmax(150px,1fr) auto minmax(100px,1fr); }
  .store-nav { gap: 10px; }
  .store-nav button { font-size: 12px; }
  .store-actions { gap: 2px; }
  .cart-button > span { display: none; }
  .hero-copy { padding-inline: 26px; }
  .hero-copy h1 { font-size: clamp(43px,7vw,74px); }
  .shop-hero { grid-template-columns: 48% 52%; }
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
  .ops-layout { grid-template-columns: minmax(0,1fr); grid-template-rows: auto 1fr; }
  .ops-sidebar, .ops-topbar { display: none; }
  .ops-mobile-header {
    position: relative; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 8px;
    min-height: 56px; padding: 4px 16px; background: var(--forest); color: #f2f6ec;
  }
  .ops-mobile-header .brand-icon { width: 32px; height: 32px; }
  .ops-mobile-header .brand-text { font-size: 22px; }
  .ops-mobile-controls { display: flex; align-items: center; gap: 8px; }
  .ops-mobile-menu summary {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 1px solid #719180; border-radius: 8px; list-style: none; cursor: pointer;
  }
  .ops-mobile-menu summary::-webkit-details-marker { display: none; }
  .ops-mobile-menu[open] summary, .ops-mobile-menu summary:hover { background: #ffffff1c; }
  .ops-mobile-menu summary:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }
  .ops-mobile-menu-panel {
    position: absolute; inset-inline-end: 16px; top: calc(100% + 4px); width: min(420px, calc(100% - 32px));
    padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--forest);
    box-shadow: 0 8px 24px #17252124;
  }
  .ops-mobile-sections { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
  .ops-mobile-links { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; padding-top: 4px; border-top: 1px solid var(--line); }
  .ops-mobile-menu-panel :is(button,.ops-download) {
    display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 8px;
    background: transparent; border-radius: 6px; text-align: left; font-size: 13px; line-height: 1.2; font-weight: 600;
  }
  .ops-mobile-menu-panel :is(button,.ops-download):hover, .ops-mobile-menu-panel button.is-active { background: #edf2e6; color: var(--forest); }
  .login-layout { grid-template-columns: minmax(320px,48%) 1fr; }
}
@media (max-width: 610px) {
  .page-width { width: calc(100% - 30px); }
  .announcement-inner { min-height: 33px; }
  .announcement-inner > span { font-size: 10px; gap: 4px; }
  .language-select select { min-width: 47px; }
  .store-header, .store-header-inner { min-height: 0; }
  .store-header-inner { grid-template-columns: minmax(0,1fr) auto; grid-template-rows: 54px 33px; gap: 0; }
  .store-actions { grid-row: 1; grid-column: 2; }
  .profile-button { min-width: 34px; min-height: 36px; }
  .brand-icon { width: 33px; height: 33px; }
  .brand-text { font-size: 23px; }
  .store-nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; gap: 14px; overflow: auto; scrollbar-width: none; }
  .store-nav button { min-height: 30px; }
  .store-nav button.is-active::after { bottom: 2px; }
  .store-main { padding: 12px 0 40px; }
  .shop-hero { min-height: 0; grid-template-columns: minmax(0,1fr); border-radius: 16px; }
  .hero-copy { padding: 16px 20px; }
  .hero-copy h1 { margin: 8px 0; font-size: clamp(40px,10.5vw,56px); }
  .hero-copy p { font-size: 13px; }
  .hero-copy .hero-location { font-size: 10px; }
  .hero-actions { gap: 4px; margin-top: 12px; }
  .hero-actions .button { min-height: 44px; font-size: 12px; }
  .hero-actions .button-primary { padding-inline: 12px; }
  .hero-image { min-height: 0; height: clamp(132px,40vw,240px); background-position: 65% 48%; }
  .catalog { margin-top: 24px; }
  .catalog-heading { display: grid; gap: 12px; }
  .catalog h2 { font-size: 39px; }
  .categories { flex-wrap: nowrap; overflow: auto; margin-top: 10px; padding: 3px 0; scrollbar-width: none; }
  .category-button { min-height: 35px; padding-inline: 10px; font-size: 12px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .product-card { border-radius: 11px; }
  .product-copy { padding: 9px 9px 7px; }
  .product-name { font-size: 14px; }
  .product-unit, .catalog-meta { font-size: 11px; }
  .product-bottom { padding-top: 7px; }
  .product-bottom strong { font-size: 13px; }
  .round-add { width: 33px; height: 33px; }
  .product-badge { top: 6px; left: 6px; font-size: 10px; }
  .footer-inner { gap: 10px; }
  .footer-inner .brand { flex: 1 0 63%; }
  .footer-inner .footer-mode { flex: 1; }
  .login-layout { grid-template-columns: 1fr; grid-template-rows: minmax(0,1fr) minmax(158px,26svh); }
  .login-left { min-height: 0; padding: 18px 22px 14px; }
  .login-body { padding: 23px 0 16px; }
  .login-icon { width: 43px; height: 43px; }
  .login-body h1 { margin: 13px 0 7px; }
  .login-body > p { font-size: 14px; }
  .login-form { margin-top: 17px; }
  .login-art { min-height: 150px; background-position: 60% 47%; }
  .login-art-caption { margin: 0 0 15px 23px; }
  .login-art-caption > span { margin-bottom: 4px; font-size: 10px; }
  .login-art-caption p { font-size: 34px; }
  .buyer-page { padding: 23px 0 39px; }
  .buyer-page > h1 { margin: 11px 0 14px; }
  .checkout-layout, .order-tracking-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .checkout-fields, .checkout-summary, .tracking-detail { padding: 13px; }
  .product-dialog { grid-template-columns: 1fr; }
  .product-detail-image { max-width: min(100%, min(42svh,340px)); margin-inline: auto; }
  .product-detail { padding: 13px 17px 18px; }
  .drawer-header { padding: 16px 15px 13px; }
  .drawer-body { padding: 11px 14px; }
  .drawer-footer { padding-inline: 14px; }
  .ops-content { padding: 12px 12px 28px; }
  .ops-heading { flex-wrap: wrap; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 12px; }
  .ops-heading p { display: none; }
  .ops-heading h1 { font-size: 34px; line-height: 1.08; letter-spacing: -.045em; }
  .ops-heading .button { min-height: 44px; padding: 8px 12px; font-size: 12px; }
  .ops-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; margin-bottom: 12px; }
  .ops-metric { align-content: start; grid-template-rows: auto minmax(24px, auto); gap: 4px; min-height: 64px; padding: 8px 6px; border-radius: 8px; }
  .ops-metric .metric-label { grid-row: 2; font-size: 11px; line-height: 1.18; }
  .ops-metric > strong { grid-row: 1; font-size: 20px; font-variant-numeric: tabular-nums; }
  .ops-metric .metric-icon { display: none; }
  .ops-toolbar { padding: 8px; }
  .ops-toolbar .search-input { max-width: unset; }
  .catalog-manager-row { grid-template-columns: 44px minmax(0, 1fr) auto 12px; gap: 8px; padding: 8px; }
  .catalog-manager-thumb { width: 44px; height: 44px; }
  .catalog-manager-name { font-size: 14px; }
  .catalog-row-chevron svg { width: 12px; }
  .catalog-manager-price { font-size: 13px; }
  .catalog-photo-field { grid-template-columns: 72px minmax(0, 1fr); }
  .catalog-photo-preview { width: 72px; }
  .catalog-drawer-footer .button { padding-inline: 9px; }
  .ops-filters { width: 100%; }
  .ops-filters select { flex: 1 1 0; min-width: 0; padding-inline: 6px; }
  .padded-panel { padding: 12px; }
  table th, table td { padding-inline: 8px; }
  .order-list-table, .order-list-table tbody { display: block; }
  .order-list-table thead { display: none; }
  .order-list-table tr {
    display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center;
    gap: 4px 8px; padding: 8px 12px; border-top: 1px solid var(--line);
  }
  .order-list-table td { min-width: 0; height: auto; padding: 0; border: 0; overflow-wrap: anywhere; }
  .order-list-table .table-order-number { grid-area: 1 / 1; font-variant-numeric: tabular-nums; }
  .order-list-table .table-order-status { grid-area: 1 / 2; text-align: right; }
  .order-list-table .table-order-customer { grid-area: 2 / 1; }
  .order-list-table .table-money { grid-area: 2 / 2; text-align: right; font-variant-numeric: tabular-nums; }
  .order-list-table .table-order-source { grid-area: 3 / 1; }
  .order-list-table .table-date { grid-area: 3 / 2; text-align: right; }
  .warehouse-view, .report-view { gap: 12px; }
  .warehouse-metrics {
    grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; padding: 8px 12px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--white);
  }
  .warehouse-metrics > div { gap: 4px; padding: 0 4px; border: 0; border-radius: 0; }
  .warehouse-metrics > div:not(:first-child,:last-child) { border-inline-start: 1px solid var(--line); padding-inline-start: 8px; }
  .warehouse-metrics > div:last-child {
    grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding-top: 8px;
  }
  .warehouse-metrics > div:last-child strong { font-size: 12px; font-weight: 600; }
  .warehouse-metrics strong { font-size: 20px; font-variant-numeric: tabular-nums; }
  .warehouse-nav { flex-wrap: nowrap; gap: 4px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: thin; }
  .warehouse-nav button { flex: none; min-height: 40px; padding: 8px 12px; border-radius: 8px; white-space: nowrap; font-weight: 600; }
  .warehouse-nav button:focus-visible { outline-offset: -2px; }
  .warehouse-stock-toolbar { flex-wrap: nowrap; gap: 8px; padding: 8px 12px; }
  .warehouse-stock-toolbar .search-input { flex: 1 1 140px; min-width: 104px; }
  .warehouse-stock-toolbar .search-input input { font-size: 16px; }
  .warehouse-stock-toolbar .warehouse-checkbox { min-height: 44px; flex: 0 1 auto; font-size: 12px; line-height: 1.2; }
  .warehouse-stock-options { display: inline-flex; }
  .warehouse-checkbox input { width: 16px; height: 16px; margin: 0; flex: none; }
  .warehouse-stock-table, .warehouse-stock-table thead, .warehouse-stock-table tbody { display: block; min-width: 0; }
  .warehouse-stock-table tr {
    display: grid; grid-template-columns: minmax(0,1fr) 72px 68px; align-items: center; column-gap: 8px;
    padding: 0 12px; border-top: 1px solid var(--line);
  }
  .warehouse-stock-table th, .warehouse-stock-table td { min-width: 0; height: auto; padding: 8px 0; border: 0; }
  .warehouse-stock-table thead tr { background: #f6f8f3; }
  .warehouse-stock-table th:first-child { min-width: 0; }
  .warehouse-stock-table th { color: var(--muted); font-weight: 600; font-size: 12px; background: transparent; }
  .warehouse-stock-table .stock-product { grid-area: 1 / 1; }
  .warehouse-stock-table .stock-on-hand { grid-area: 1 / 2; }
  .warehouse-stock-table .stock-available { grid-area: 1 / 3; text-align: right; }
  .warehouse-stock-table .inventory-product { display: flex; min-width: 0; }
  .warehouse-stock-table .inventory-product > span:last-child { min-width: 0; overflow-wrap: anywhere; }
  .warehouse-stock-table .inventory-thumb { width: 32px; height: 32px; }
  .warehouse-stock-table .inline-stock { width: 100%; min-height: 40px; padding: 4px 6px; font-size: 16px; text-align: right; }
  .warehouse-stock-table .stock-count { max-width: 100%; overflow-wrap: anywhere; }
  .warehouse-stock-table .stock-secondary { display: none; }
  .warehouse-stock-panel:has([data-stock-meta-toggle]:checked) td.stock-secondary {
    display: grid; grid-row: 2; gap: 2px; align-content: start; align-self: stretch;
    padding: 4px 0 8px; border-top: 1px solid var(--line); font-size: 12px;
  }
  .warehouse-stock-table .stock-secondary:nth-child(3) { grid-column: 1; }
  .warehouse-stock-table .stock-secondary:nth-child(4) { grid-column: 2; }
  .warehouse-stock-table .stock-secondary:nth-child(6) { grid-column: 3; text-align: right; }
  .warehouse-stock-table .stock-secondary-label { display: block; color: var(--muted); font-size: 11px; }
  .warehouse-no-stock td { grid-column: 1 / -1; color: var(--muted); }
  .report-metric { min-height: 0; padding: 8px 12px; gap: 4px; }
  .report-toolbar { gap: 8px 4px; }
  .report-toolbar label { gap: 4px; font-size: 12px; }
  .report-toolbar input { max-width: 118px; padding-inline: 8px; }
  .report-periods button { min-height: 36px; padding: 4px 8px; font-size: 14px; }
  .report-chart-controls { gap: 8px; padding-inline: 12px; font-size: 12px; }
  .picker-header .brand { gap: 6px; }
  .picker-header .brand-text { font-size: 20px; }
  .picker-header .picker-width > div { gap: 2px; }
  .picker-link { padding-inline: 5px; }
  .picker-link span { display: none; }
  .picker-main { padding-top: 17px; }
}
@media (max-width: 370px) {
  .hero-copy { padding-inline: 15px; }
  .hero-track { padding-inline: 5px; }
  .product-bottom { gap: 4px; }
  .cart-line { gap: 7px; grid-template-columns: 50px minmax(0,1fr) auto; }
  .line-thumb { width: 50px; height: 50px; }
  .cart-line-name, .cart-line-price { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  :root, body, .ops-layout { color: #111; background: white; }
  .ops-layout { display: block; }
  .ops-sidebar, .ops-topbar, .ops-mobile-header, .ops-heading .button, #notifications { display: none !important; }
  .ops-content, .ops-panel { margin: 0; padding: 0; border: none; }
  .next-day-list > .ops-panel { break-inside: avoid; }
  table { font-size: 11px; }
}
