:root {
  --ink: #17251f;
  --muted: #596a62;
  --paper: #f5f7f3;
  --surface: #ffffff;
  --line: #dde5df;
  --brand: #174f3f;
  --brand-deep: #103b30;
  --mint: #d9f0e5;
  --coral: #f27c62;
  --coral-soft: #fff0eb;
  --amber: #e7aa43;
  --blue: #5f83c4;
  --shadow: 0 18px 46px rgba(23, 79, 63, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 11px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
button, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(242, 124, 98, 0.32); outline-offset: 2px; }
[hidden] { display: none !important; }

.orders_app { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.orders_app__sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 20px; background: var(--brand-deep); color: white; display: flex; flex-direction: column; }
.orders_app__main { min-width: 0; padding: 0 34px 44px; }

.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; }
.brand__mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; background: var(--coral); font-weight: 600; font-size: 18px; letter-spacing: -1px; }
.brand__name, .brand__caption { display: block; }
.brand__name { font-size: 19px; letter-spacing: 0.01em; }
.brand__caption { margin-top: 2px; color: rgba(255,255,255,.58); font-size: 11px; }
.mobile_menu_toggle { display: none; }

.role_nav { display: grid; gap: 8px; }
.role_nav__item { width: 100%; min-height: 60px; display: grid; grid-template-columns: 38px 1fr; gap: 11px; align-items: center; padding: 12px; border: 0; border-radius: 14px; background: transparent; color: rgba(255,255,255,.78); text-align: left; transition: .18s ease; }
.role_nav__item:hover { background: rgba(255,255,255,.07); color: white; }
.role_nav__item--active { background: rgba(255,255,255,.12); color: white; box-shadow: inset 3px 0 var(--coral); }
.role_nav__item--reset { margin-top: auto; border-color: rgba(255,255,255,.08); }
.role_nav__icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; font-weight: 600; }
.role_nav__item strong, .role_nav__item small { display: block; }
.role_nav__item strong { font-size: 13px; }
.role_nav__item small { margin-top: 2px; color: rgba(255,255,255,.5); font-size: 10px; }
.demo_notice { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(0,0,0,.08); }
.demo_notice__dot { width: 9px; height: 9px; border-radius: 50%; background: #72d7a8; box-shadow: 0 0 0 5px rgba(114,215,168,.12); }
.demo_notice strong, .demo_notice span { display: block; }
.demo_notice strong { font-size: 11px; }
.demo_notice span { margin-top: 2px; color: rgba(255,255,255,.5); font-size: 9px; }

.topbar { height: 94px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.topbar h1 { margin: 2px 0 0; font-size: 22px; letter-spacing: -.03em; }
.topbar__meta { display: flex; align-items: center; gap: 12px; }
.date_chip { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); font-size: 12px; text-transform: capitalize; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--brand); font-size: 12px; font-weight: 600; }
.eyebrow { margin: 0; color: var(--coral); font-size: 12px; font-weight: 500; letter-spacing: .01em; }

.view { animation: reveal .28s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } }
.customer_intro, .dashboard_heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 34px 0 26px; }
.customer_intro h2, .dashboard_heading h2 { margin: 5px 0 8px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.045em; }
.customer_intro__copy, .dashboard_heading p { max-width: 590px; margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px; }
.customer_intro__copy--mobile { display: none; }
.customer_layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.customer_layout__catalog { min-width: 0; }

.field { display: grid; gap: 7px; }
.field--customer { min-width: 230px; }
.field--inline { display: flex; align-items: center; }
.field__label { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .01em; }
.field__control { min-height: 48px; padding: 0 36px 0 12px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); }
.field__control--textarea { min-height: 76px; padding: 11px; resize: vertical; cursor: text; }

.delivery_picker { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 30px; padding: 19px 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; box-shadow: 0 8px 24px rgba(23,79,63,.04); }
.delivery_picker h3 { margin: 0 0 5px; font-size: 15px; }
.delivery_picker p { margin: 0; color: var(--muted); font-size: 11px; }
.delivery_picker__policy--closed { color: #b0503d !important; font-weight: 500; }
.delivery_picker__mobile_summary { display: none; }
.segmented { display: flex; gap: 5px; padding: 4px; border-radius: 13px; background: var(--paper); }
.segmented__button { min-width: 112px; min-height: 48px; padding: 8px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); }
.segmented__button:last-child { min-width: 174px; }
.segmented__button strong, .segmented__button span { display: block; }
.segmented__button strong { font-size: 12px; }
.segmented__button span { margin-top: 2px; font-size: 9px; }
.segmented__button--active { background: var(--brand); color: white; box-shadow: 0 5px 15px rgba(23,79,63,.2); }
.segmented__button:disabled { cursor: not-allowed; background: transparent; color: #a4aea9; box-shadow: none; }

.section_heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 14px; }
.section_heading h3 { margin: 4px 0 0; font-size: 18px; }
.price_hint { color: var(--muted); font-size: 10px; }
.product_grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.product_card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; box-shadow: 0 8px 24px rgba(23,79,63,.035); transition: transform .18s ease, box-shadow .18s ease; }
.product_card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product_card__visual { height: 96px; display: flex; align-items: end; justify-content: space-between; padding: 14px; background: linear-gradient(145deg, #dceee4, #faeadb); }
.product_card--2 .product_card__visual { background: linear-gradient(145deg, #e4e9f5, #f8e7dd); }
.product_card--3 .product_card__visual { background: linear-gradient(145deg, #e7edd9, #f6e4c9); }
.product_card--4 .product_card__visual { background: linear-gradient(145deg, #f4e7d4, #e9dfcf); }
.product_card--5 .product_card__visual { background: linear-gradient(145deg, #e8edcf, #f7e4be); }
.product_card--6 .product_card__visual { background: linear-gradient(145deg, #d9eee1, #e4eef6); }
.product_card__visual > span { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.72); color: var(--brand-deep); font-weight: 600; }
.product_card__visual small { padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.68); font-size: 9px; font-weight: 600; }
.product_card__body { padding: 15px; }
.product_card h4 { margin: 0 0 5px; font-size: 14px; }
.product_card p { min-height: 34px; margin: 0 0 13px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.product_card__actions { display: grid; gap: 7px; }
.product_card__add { display: flex; align-items: center; justify-content: space-between; gap: 7px; width: 100%; min-height: 48px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfa; color: var(--ink); font-size: 11px; }
.product_card__add:hover { border-color: var(--brand); background: var(--mint); }
.product_card__add:disabled { cursor: not-allowed; border-color: var(--line); background: #f1f3f0; color: #909b95; }
.product_card__add strong { color: var(--brand); font-size: 11px; }

.cart { position: sticky; top: 118px; padding: 21px; border-radius: var(--radius-lg); background: var(--brand-deep); color: white; box-shadow: 0 22px 55px rgba(16,59,48,.2); }
.cart__header { display: flex; justify-content: space-between; align-items: start; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.cart__header h3 { margin: 4px 0 0; font-size: 18px; }
.cart__count { min-width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--coral); font-size: 11px; font-weight: 600; }
.cart__items { display: grid; gap: 13px; min-height: 128px; max-height: 350px; margin: 16px 0; overflow: auto; }
.empty_state { align-self: center; text-align: center; color: rgba(255,255,255,.62); }
.empty_state span { width: 38px; height: 38px; display: grid; place-items: center; margin: 0 auto 8px; border: 1px dashed rgba(255,255,255,.25); border-radius: 50%; font-size: 18px; }
.empty_state strong, .empty_state p { display: block; }
.empty_state strong { color: white; font-size: 11px; }
.empty_state p { margin: 3px 0 0; font-size: 9px; }
.cart_line { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.09); }
.cart_line__main strong, .cart_line__main span { display: block; }
.cart_line__main strong { font-size: 11px; }
.cart_line__main span { margin-top: 3px; color: rgba(255,255,255,.48); font-size: 9px; }
.cart_line__controls { display: flex; align-items: center; gap: 7px; }
.cart_line__controls button { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.28); border-radius: 9px; background: rgba(255,255,255,.06); color: white; font-size: 18px; }
.cart_line__controls span { min-width: 42px; text-align: center; font-size: 9px; }
.cart_line__total { grid-column: 1 / -1; color: #b9e3d1; font-size: 10px; text-align: right; }
.cart .field__label { color: rgba(255,255,255,.58); }
.cart .field__control { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.07); color: white; }
.cart .field__control::placeholder { color: rgba(255,255,255,.35); }
.cart__summary { display: flex; justify-content: space-between; align-items: end; margin: 18px 0; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.1); }
.cart__summary span { color: rgba(255,255,255,.6); font-size: 10px; }
.cart__summary strong { font-size: 21px; }
.cart__footnote { margin: 10px 0 0; color: rgba(255,255,255,.42); font-size: 8px; text-align: center; }

.button { min-height: 48px; padding: 0 18px; border: 0; border-radius: 11px; font-weight: 600; font-size: 12px; }
.button--primary { background: var(--coral); color: white; box-shadow: 0 8px 20px rgba(242,124,98,.22); }
.button--primary:hover { background: #e96e55; }
.button--primary:disabled { cursor: not-allowed; background: #667a71; box-shadow: none; color: rgba(255,255,255,.55); }
.button--secondary { border: 1px solid var(--line); background: white; color: var(--ink); }
.button--ghost { margin-top: 8px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: white; }
.button--full { width: 100%; }
.button--work { width: 100%; min-height: 64px; background: var(--brand); color: white; font-size: 18px; }

.recent_orders { margin-top: 34px; }
.recent_orders__list { display: grid; gap: 8px; }
.order_strip { display: grid; grid-template-columns: minmax(150px, 1fr) auto auto auto; gap: 16px; align-items: center; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.order_strip div strong, .order_strip div span { display: block; }
.order_strip div strong { font-size: 11px; }
.order_strip div span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.order_strip > strong { font-size: 11px; }
.order_strip__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.order_strip__actions button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--brand); font-size: 11px; font-weight: 600; }
.order_strip__actions [data-action="cancel-order"] { color: #b0503d; }
.order_strip__actions button:disabled { cursor: not-allowed; color: #9ca7a1; background: #f2f4f2; }
.empty_inline { color: var(--muted); font-size: 11px; }

.dashboard_heading { align-items: center; }
.workshop_clock { min-width: 150px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.workshop_clock span, .workshop_clock strong { display: block; }
.workshop_clock span { color: var(--muted); font-size: 12px; }
.workshop_clock strong { margin-top: 3px; font-size: 13px; }
.metric_grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 22px; }
.metric_card { position: relative; overflow: hidden; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
.metric_card::after { content: ""; position: absolute; right: -16px; bottom: -25px; width: 74px; height: 74px; border-radius: 50%; background: var(--tone); opacity: .18; }
.metric_card--coral { --tone: var(--coral); }
.metric_card--mint { --tone: #53aa82; }
.metric_card--blue { --tone: var(--blue); }
.metric_card--amber { --tone: var(--amber); }
.metric_card span, .metric_card strong, .metric_card small { display: block; }
.metric_card span { color: var(--muted); font-size: 10px; }
.metric_card strong { margin: 9px 0 4px; font-size: 24px; letter-spacing: -.03em; }
.metric_card small { color: var(--muted); font-size: 9px; }

.admin_panel { margin-bottom: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: 0 12px 35px rgba(23,79,63,.04); }
.admin_panel__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; border-bottom: 1px solid var(--line); }
.admin_panel__header h3 { margin: 4px 0 0; font-size: 17px; }
.filter_group { display: flex; gap: 4px; padding: 4px; border-radius: 11px; background: var(--paper); }
.filter_group__button { min-height: 44px; padding: 7px 14px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 600; }
.filter_group__button--active { background: white; color: var(--ink); box-shadow: 0 3px 10px rgba(23,79,63,.08); }
.table_wrap { overflow-x: auto; }
.orders_table { width: 100%; border-collapse: collapse; font-size: 10px; }
.orders_table th { padding: 11px 15px; background: #fafbf9; color: var(--muted); text-align: left; font-size: 12px; letter-spacing: .01em; }
.orders_table td { padding: 13px 15px; border-top: 1px solid #edf1ee; white-space: nowrap; }
.orders_table td > strong, .orders_table td > small { display: block; }
.orders_table td > small { margin-top: 2px; color: var(--muted); }
.order_link { padding: 0; border: 0; background: none; color: var(--brand); text-align: left; cursor: pointer; }
.order_link strong, .order_link small, .order_items_summary strong, .order_items_summary small { display: block; }
.order_link small, .order_items_summary small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.order_link:hover strong { text-decoration: underline; }
.order_link:focus-visible { outline: 3px solid rgba(242, 124, 98, 0.32); outline-offset: 4px; border-radius: 4px; }
.dashboard_heading__actions { display: flex; gap: 10px; }
.order_detail_dialog { width: min(680px, calc(100vw - 32px)); max-height: min(760px, calc(100dvh - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: #f8f9f7; box-shadow: 0 25px 80px rgba(16,59,48,.24); }
.order_detail_dialog::backdrop { background: rgba(10,28,22,.62); backdrop-filter: blur(3px); }
.order_detail_dialog__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px; border-bottom: 1px solid var(--line); background: white; }
.order_detail_dialog__header h2 { margin: 4px 0 5px; font-size: 24px; }
.order_detail_dialog__header p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
.order_detail_lines { display: grid; gap: 10px; margin: 0; padding: 20px 24px; list-style: none; }
.order_detail_lines li { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.order_detail_lines span strong, .order_detail_lines span small { display: block; }
.order_detail_lines span small { margin-top: 4px; color: var(--muted); }
.order_detail_note { margin: 0 24px 20px; padding: 14px 16px; border-left: 3px solid var(--brand); background: white; color: var(--muted); }
.order_detail_total { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-top: 1px solid var(--line); background: white; }
.order_detail_total strong { color: var(--brand); font-size: 24px; }
.customer_cell { display: flex; align-items: center; gap: 8px; }
.customer_cell__mark { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: var(--mint); color: var(--brand); font-size: 8px; font-style: normal; font-weight: 600; }
.customer_cell__mark--amber { background: #ffedca; color: #7d5210; }
.customer_cell__mark--blue { background: #e3ebfa; color: #31568e; }
.status_select { min-height: 44px; max-width: 150px; padding: 7px 28px 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: 11px; }

.price_matrix { padding: 6px 20px 16px; }
.price_row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid #edf1ee; }
.price_row:last-child { border-bottom: 0; }
.price_row__product { display: flex; align-items: center; gap: 10px; }
.price_row__product i { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; background: var(--paper); font-size: 9px; font-style: normal; font-weight: 600; }
.price_row__product strong, .price_row__product small { display: block; }
.price_row__product strong { font-size: 11px; }
.price_row__product small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.price_row__values { display: flex; gap: 24px; }
.price_row__values span { min-width: 75px; text-align: right; }
.price_row__values small, .price_row__values strong { display: block; }
.price_row__values small { color: var(--muted); font-size: 8px; }
.price_row__values strong { margin-top: 2px; font-size: 11px; }

.status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; font-size: 8px; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--new { background: #edf1ee; color: #66766e; }
.status--confirmed { background: #e6edfb; color: #486da8; }
.status--preparing { background: #fff0d8; color: #996515; }
.status--ready { background: var(--mint); color: #287653; }
.status--completed { background: #e7eae8; color: #52615a; }
.status--canceled { background: #fde8e4; color: #b0503d; }

.workshop_summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 28px; overflow: hidden; border: 1px solid #cbd7d0; border-radius: var(--radius-md); background: white; box-shadow: 0 10px 28px rgba(23,79,63,.05); }
.workshop_summary div { padding: 20px 22px; border-right: 1px solid var(--line); }
.workshop_summary div:last-child { border-right: 0; }
.workshop_summary span, .workshop_summary strong { display: block; }
.workshop_summary span { color: var(--muted); font-size: 18px; }
.workshop_summary strong { margin-top: 7px; font-size: 26px; }
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.kanban_lane { padding: 18px; border: 1px solid #d2ddd6; border-radius: 20px; background: #e5ece7; }
.kanban_lane__head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 16px; }
.kanban_lane__head h3 { margin: 0; font-size: 20px; }
.kanban_lane__head > span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: white; font-size: 18px; font-weight: 600; }
.kanban_lane__body { display: grid; gap: 16px; }
.work_card { padding: 20px; border: 1px solid #c7d4cc; border-radius: 17px; background: white; box-shadow: 0 10px 24px rgba(23,79,63,.08); }
.work_card__head { display: flex; align-items: start; justify-content: space-between; gap: 9px; }
.work_card__head strong, .work_card__head small { display: block; }
.work_card__head strong { font-size: 22px; }
.work_card__head small { margin-top: 5px; color: var(--muted); font-size: 18px; }
.work_card .status { min-height: 44px; padding: 6px 12px; font-size: 18px; }
.work_card ul { display: grid; gap: 10px; margin: 16px 0; padding: 14px 0; border-top: 1px solid #dfe7e2; border-bottom: 1px solid #dfe7e2; list-style: none; }
.work_card li { display: flex; justify-content: space-between; gap: 12px; font-size: 18px; line-height: 1.4; }
.work_card li strong { font-size: 19px; }
.work_card__note { margin: -2px 0 15px; padding: 12px 14px; border: 1px solid #f0cbbf; border-radius: 10px; background: var(--coral-soft); color: #783c2f; font-size: 18px; line-height: 1.5; }
.empty_lane { margin: 0; padding: 32px 12px; color: var(--muted); font-size: 18px; text-align: center; }

#workshop-view .dashboard_heading > div > p { font-size: 18px; }
#workshop-view .workshop_clock { min-width: 190px; padding: 16px 20px; }
#workshop-view .workshop_clock span { font-size: 18px; }
#workshop-view .workshop_clock strong { margin-top: 5px; font-size: 22px; }

.toast { position: fixed; z-index: 20; right: 24px; bottom: 24px; max-width: 340px; padding: 13px 17px; border-radius: 12px; background: var(--ink); color: white; box-shadow: var(--shadow); font-size: 11px; transform: translateY(24px); opacity: 0; pointer-events: none; transition: .2s ease; }
.toast--visible { transform: translateY(0); opacity: 1; }
.confirm_dialog { max-width: 390px; padding: 30px; border: 0; border-radius: 22px; color: var(--ink); text-align: center; box-shadow: 0 25px 80px rgba(16,59,48,.25); }
.confirm_dialog::backdrop { background: rgba(10,28,22,.62); backdrop-filter: blur(3px); }
.confirm_dialog__mark { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 17px; background: var(--mint); color: var(--brand); font-size: 24px; font-weight: 600; }
.confirm_dialog h2 { margin: 0 0 8px; font-size: 21px; }
.confirm_dialog p { margin: 0 0 20px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.selftest_banner { position: fixed; z-index: 30; left: 50%; top: 18px; display: flex; gap: 12px; align-items: center; padding: 11px 16px; border: 2px solid currentColor; border-radius: 12px; background: white; box-shadow: var(--shadow); transform: translateX(-50%); font-size: 11px; }
.selftest_banner span { color: var(--muted); font-size: 9px; }
.selftest_banner--passed { color: #24714e; }
.selftest_banner--failed { color: #b0503d; }

@media (max-width: 1120px) {
  .product_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer_layout { grid-template-columns: minmax(0, 1fr) 310px; }
  .metric_grid { grid-template-columns: repeat(2, 1fr); }
  .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1440px) {
  .orders_app { grid-template-columns: 280px minmax(0, 1fr); }
  .orders_app__sidebar { padding: 32px 24px; }
  .orders_app__main { padding: 0 48px 56px; }
  #workshop-view .dashboard_heading { padding: 40px 0 30px; }
  #workshop-view .dashboard_heading h2 { font-size: 46px; }
  #workshop-view .kanban { gap: 24px; }
  #workshop-view .kanban_lane { padding: 20px; }
}

@media (max-width: 820px) {
  .orders_app { display: block; }
  .orders_app__sidebar { position: static; width: 100%; height: auto; padding: 14px 16px; }
  .brand { padding: 0 0 14px; }
  .role_nav { grid-template-columns: repeat(3, 1fr); }
  .role_nav__item { grid-template-columns: 1fr; padding: 9px; text-align: center; }
  .role_nav__icon, .role_nav__item small, .demo_notice { display: none; }
  .orders_app__main { padding: 0 18px 32px; }
  .customer_layout { grid-template-columns: 1fr; }
  .cart { position: static; }
  .kanban { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  #customer-view.view--active { animation: none; transform: none; }
  .topbar { height: 76px; }
  .topbar h1 { font-size: 18px; }
  .date_chip { display: none; }
  .customer_intro, .dashboard_heading { align-items: stretch; flex-direction: column; padding: 26px 0 20px; }
  .field--customer { width: 100%; }
  .delivery_picker { align-items: stretch; flex-direction: column; }
  .segmented, .segmented__button { width: 100%; }
  .product_grid, .metric_grid, .workshop_summary { grid-template-columns: 1fr; }
  .workshop_summary div { border-right: 0; border-bottom: 1px solid var(--line); }
  .workshop_summary div:last-child { border-bottom: 0; }
  .admin_panel__header { align-items: stretch; flex-direction: column; }
  .field--inline { align-items: stretch; flex-direction: column; }
  .order_strip { grid-template-columns: 1fr auto; }
  .order_strip > strong { grid-column: 1 / -1; }
}

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

/* Premium product system */
:root {
  --ink: #17231e;
  --muted: #607068;
  --paper: #f8f9f7;
  --surface: #ffffff;
  --line: #e4e8e5;
  --brand: #103b30;
  --brand-deep: #103b30;
  --mint: #e3f0ea;
  --coral: #c96f53;
  --coral-soft: #fbf1ed;
  --shadow: 0 18px 50px rgba(18, 47, 38, .08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

body { background: #f8f9f7; letter-spacing: -.005em; }
.orders_app { grid-template-columns: 268px minmax(0, 1fr); }
.orders_app__sidebar { padding: 30px 22px; background: #103b30; border-right: 1px solid rgba(255,255,255,.06); }
.orders_app__main { padding: 0 42px 54px; }
.topbar, .view { width: 100%; max-width: 1900px; margin-inline: auto; }
.topbar { height: 88px; }
.topbar h1 { font-size: 24px; font-weight: 600; }

.brand { gap: 13px; padding: 0 6px 34px; }
.brand__mark { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.08); }
.brand__mark svg, .role_nav__icon svg, .confirm_dialog__mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand__name { font-size: 18px; font-weight: 600; }
.brand__name span { color: #ffffff; }
.brand__caption { color: rgba(255,255,255,.72); font-size: 12px; letter-spacing: .01em; }

.role_nav { display: flex; flex: 1; flex-direction: column; gap: 7px; }
.role_nav__item { min-height: 64px; grid-template-columns: 40px 1fr; padding: 11px 12px; border: 1px solid transparent; border-radius: 12px; color: rgba(255,255,255,.72); }
.role_nav__item:hover { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.06); }
.role_nav__item--active { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.09); box-shadow: inset 3px 0 #69d1a7; }
.role_nav__icon { width: 38px; height: 38px; border-color: rgba(255,255,255,.12); border-radius: 10px; }
.role_nav__icon svg { width: 19px; height: 19px; }
.role_nav__icon .lucide_icon { width: 19px; height: 19px; filter: brightness(0) invert(1); opacity: .86; }
.role_nav__item--active .role_nav__icon .lucide_icon { opacity: 1; }
.role_nav__item strong { font-size: 13px; font-weight: 600; }
.role_nav__item small { color: rgba(255,255,255,.68); font-size: 10px; }
.role_nav__item--active small { color: rgba(255,255,255,.84); }
.demo_notice { padding: 14px; border-color: rgba(255,255,255,.09); background: rgba(0,0,0,.1); }
.demo_notice__dot { background: #69d1a7; }
.demo_notice span { color: rgba(255,255,255,.68); }

.eyebrow { color: #8a5a49; font-size: 10px; letter-spacing: .16em; }
.customer_intro, .dashboard_heading { padding: 40px 0 30px; }
.customer_intro h2, .dashboard_heading h2 { font-size: clamp(34px, 3.2vw, 48px); font-weight: 600; letter-spacing: -.045em; }
.customer_intro__copy, .dashboard_heading p { color: #617169; font-size: 15px; }

.field__control { border-color: #d5ddd7; border-radius: 10px; box-shadow: 0 1px 0 rgba(18,47,38,.02); }
.field__control:focus { border-color: #6e9c89; outline: none; box-shadow: 0 0 0 4px rgba(13,101,75,.1); }
.delivery_picker { margin-bottom: 32px; padding: 18px 20px; border-color: #d8e0da; border-radius: 14px; box-shadow: 0 10px 32px rgba(18,47,38,.04); }
.delivery_picker h3 { font-size: 16px; }
.delivery_picker p { font-size: 12px; }
.segmented { background: #eef1ee; }
.segmented__button--active { background: #0d654b; box-shadow: 0 5px 16px rgba(13,101,75,.2); }

.section_heading { margin-bottom: 17px; }
.section_heading h3 { font-size: 21px; font-weight: 600; }
.price_hint { font-size: 12px; letter-spacing: .01em; }
.product_grid { gap: 16px; }
.product_card { border-color: #d9e0db; border-radius: 15px; box-shadow: 0 7px 24px rgba(18,47,38,.045); }
.product_card:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(18,47,38,.09); }
.product_card__visual,
.product_card--2 .product_card__visual,
.product_card--3 .product_card__visual,
.product_card--4 .product_card__visual,
.product_card--5 .product_card__visual,
.product_card--6 .product_card__visual { height: 74px; padding: 13px 15px; background: #fff; border-bottom: 0; }
.product_card__visual > span { width: 44px; height: 44px; border: 1px solid #e4e8e5; border-radius: 11px; background: #f8f9f7; color: #103b30; }
.price_row__product i svg, .empty_state svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product_card__visual small { padding: 5px 9px; border: 1px solid #d8dfda; background: rgba(255,255,255,.72); color: #52635b; font-size: 10px; }
.product_card__body { padding: 15px 17px 17px; border-top: 1px solid #e4e8e5; }
.product_card h4 { font-size: 16px; font-weight: 600; }
.product_card p { color: #65766e; font-size: 11px; }
.product_card__add { border-color: #d4ddd7; background: #fff; color: #263a32; }
.product_card__add:hover { border-color: #0d654b; background: #f2f8f5; }
.product_card__add strong { color: #0d654b; }

.cart { top: 108px; padding: 24px; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background: #103b30; box-shadow: 0 24px 58px rgba(9,40,31,.18); }
.cart__header { border-color: rgba(255,255,255,.12); }
.cart__count { border-radius: 9px; background: #70c7a3; color: #0b382d; }
.cart .eyebrow { color: #9bd8bf; }
.cart_line__main span, .cart__footnote { color: rgba(255,255,255,.58); }
.button--primary { background: #c96f53; box-shadow: 0 8px 20px rgba(137,64,43,.24); }
.button--primary:hover { background: #b96046; }
.button--secondary { border-color: #ced8d1; box-shadow: 0 4px 16px rgba(18,47,38,.04); }

.order_strip { min-height: 72px; border-color: #d9e0db; border-radius: 12px; box-shadow: 0 5px 18px rgba(18,47,38,.035); }
.order_strip div strong { font-size: 13px; }
.order_strip div span { font-size: 11px; }
.order_strip > strong { font-size: 13px; }

.metric_grid { gap: 15px; }
.metric_card { min-height: 128px; padding: 21px; border-color: #d9e0db; border-radius: 14px; box-shadow: 0 8px 28px rgba(18,47,38,.04); }
.metric_card::after { display: none; }
.metric_card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--tone); }
.metric_card span { font-size: 12px; font-weight: 500; letter-spacing: .01em; }
.metric_card strong { font-size: 29px; }
.metric_card small { font-size: 11px; }
.admin_panel { border-color: #d8e0da; border-radius: 17px; box-shadow: 0 10px 34px rgba(18,47,38,.045); }
.admin_panel__header { padding: 22px 24px; }
.admin_panel__header h3 { font-size: 19px; }
.orders_table { font-size: 12px; }
.orders_table th { padding: 14px 18px; color: #66766e; font-size: 9px; }
.orders_table td { padding: 15px 18px; }
.customer_cell__mark { width: 34px; height: 34px; background: #edf3ef; color: #0d654b; }
.price_matrix { padding: 8px 24px 18px; }
.price_row { padding: 15px 0; }
.price_row__product i { background: #f8f9f7; color: #103b30; }
.price_row__product strong, .price_row__values strong { font-size: 13px; }

.workshop_summary { border-color: #d4ddd7; border-radius: 15px; box-shadow: 0 10px 30px rgba(18,47,38,.04); }
.kanban { gap: 18px; }
.kanban_lane { border-color: #d3dcd5; border-radius: 17px; background: #e9eeea; }
.work_card { border-color: #cfd9d2; border-radius: 14px; box-shadow: 0 8px 22px rgba(18,47,38,.06); }
.work_card .status { border: 1px solid currentColor; }
.button--work { background: #0d654b; box-shadow: 0 7px 18px rgba(13,101,75,.18); }
.button--work:hover { background: #0a553f; }
.workshop_clock { border-color: #d4ddd7; box-shadow: 0 8px 24px rgba(18,47,38,.04); }

.status { padding-inline: 10px; }

/* Premium Minimal typography — local Inter, licensed under SIL OFL 1.1. */
@font-face {
  font-family: "Inter Local";
  src: url("assets/fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --font-sans: "Inter Local", Inter, "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 32px;
  --leading-tight: 1.2;
  --leading-ui: 1.4;
  --leading-body: 1.6;
  --tracking-tight: -.025em;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  font-family: var(--font-sans);
  font-synthesis: none;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-ui);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button, select, textarea { font-family: inherit; font-weight: var(--weight-medium); }
strong, b, h1, h2, h3, h4 { font-weight: var(--weight-semibold); }

.brand__mark,
.brand__name,
.role_nav__icon,
.role_nav__item strong,
.avatar,
.segmented__button strong,
.product_card__visual span,
.product_card__visual small,
.product_card h4,
.product_card__add strong,
.cart__count,
.button,
.order_strip__actions button,
.filter_group__button,
.customer_cell__mark,
.price_row__product i,
.status,
.kanban_lane__head > span,
.confirm_dialog__mark,
.metric_card strong { font-weight: var(--weight-semibold); }

.delivery_picker__policy--closed,
.eyebrow,
.field__label,
.price_hint,
.metric_card span,
.orders_table th,
.workshop_clock span,
.brand__caption { font-weight: var(--weight-medium); }

.topbar h1,
.customer_intro h2,
.dashboard_heading h2,
.section_heading h3,
.admin_panel__header h3 {
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.topbar h1 { font-size: var(--text-2xl); }
.customer_intro h2, .dashboard_heading h2 { font-size: clamp(36px, 3.2vw, 48px); }
.section_heading h3, .admin_panel__header h3 { font-size: var(--text-xl); }

.eyebrow,
.field__label,
.price_hint,
.metric_card span,
.orders_table th,
.workshop_clock span,
.brand__caption {
  font-size: var(--text-xs);
  line-height: var(--leading-ui);
  letter-spacing: .01em;
  text-transform: none;
}

.role_nav__item strong { font-size: 14px; }
.role_nav__item small, .demo_notice span { font-size: var(--text-xs); line-height: var(--leading-ui); }
.customer_intro__copy, .dashboard_heading p { font-size: var(--text-base); line-height: var(--leading-body); }
.delivery_picker p, .product_card p { font-size: var(--text-xs); line-height: 1.55; }
.product_card h4, .delivery_picker h3 { font-size: var(--text-md); }
.button { font-size: var(--text-sm); }
.orders_table { font-size: var(--text-sm); }
.orders_table th { font-size: var(--text-xs); }
.status { font-size: var(--text-xs); }
.metric_card strong { font-size: 30px; letter-spacing: var(--tracking-tight); }
.metric_card small { font-size: var(--text-xs); line-height: var(--leading-ui); }

.metric_card strong,
.orders_table,
.price_row__values,
.cart__summary,
.workshop_summary,
.work_card { font-variant-numeric: tabular-nums; }

#workshop-view .dashboard_heading > div > p,
#workshop-view .workshop_clock span,
#workshop-view .work_card,
#workshop-view .work_card .status,
#workshop-view .button--work,
#workshop-view .empty_lane {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  line-height: 1.45;
}

#workshop-view .workshop_summary span,
#workshop-view .kanban_lane__head h3,
#workshop-view .kanban_lane__head > span { font-size: var(--text-xl); font-weight: var(--weight-medium); }

#workshop-view .work_card__head strong,
#workshop-view .workshop_clock strong,
#workshop-view .kanban_lane__head h3 { font-size: 22px; font-weight: var(--weight-semibold); }

#workshop-view .work_card li,
#workshop-view .work_card__note { font-size: var(--text-lg); }

#workshop-view .button--work { min-height: 64px; }
.workshop_tabs { display: inline-grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 8px; margin: 0 0 22px; padding: 6px; border: 1px solid #cbd7d0; border-radius: 16px; background: white; }
.workshop_tabs__button { min-height: 56px; padding: 0 24px; border: 0; border-radius: 11px; background: transparent; color: var(--brand); font-size: 19px; font-weight: 600; }
.workshop_tabs__button--active { background: var(--brand-deep); color: white; }
.workshop_orders { display: grid; grid-template-columns: repeat(auto-fit, minmax(430px, 1fr)); gap: 22px; align-items: start; }
.workshop_orders > .empty_lane { grid-column: 1 / -1; }
.workshop_orders .work_card { padding: 24px; border-radius: 20px; }
.workshop_orders .work_card ul { gap: 0; padding: 0; border-bottom: 0; }
.workshop_orders .work_card li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; min-width: 0; min-height: 104px; padding: 14px 0; border-bottom: 1px solid #dfe7e2; }
.workshop_orders .work_card__head small { font-size: 20px; font-weight: 500; }
.work_line__product { font-size: 20px; font-weight: 600; }
.work_line__quantities { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; min-width: 0; }
.work_line__requested small, .work_line__requested strong, .work_line__actual small, .work_line__actual strong, .work_card__footer small, .work_card__footer strong { display: block; }
.work_line__requested small, .work_line__actual small, .work_card__footer small { color: var(--muted); font-size: 15px; }
.workshop_orders .work_line__requested strong, .workshop_orders .work_line__actual strong { margin-top: 4px; font-size: 21px; }
.work_line__measured { display: grid; grid-template-columns: auto 130px; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; }
.work_line__measured input { width: 130px; min-height: 60px; padding: 0 14px; border: 2px solid #7f9f90; border-radius: 12px; color: var(--ink); background: white; font-size: 24px; font-weight: 600; text-align: center; }
.work_line__measured input::placeholder { color: #8a9991; opacity: 1; }
.work_line__total { justify-self: end; min-width: 0; max-width: 100%; color: var(--brand-deep); font-size: 20px; text-align: right; white-space: nowrap; }
.work_card__footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; }
.work_card__footer > span > strong { margin-top: 4px; color: var(--brand-deep); font-size: 24px; }
.work_card__footer .button--work { min-width: 230px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.work_card__footer .lucide_icon { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.work_card--ready { border-color: #dde4df; background: #f8faf8; box-shadow: none; }
.work_card--ready .work_card__note { border-color: #e4e8e5; background: white; color: var(--muted); }

@media (min-width: 2200px) {
  .workshop_orders { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .workshop_orders { grid-template-columns: 1fr; }
  .workshop_orders .work_card li { grid-template-columns: 1fr auto; }
  .work_line__quantities { grid-column: 1 / -1; justify-content: space-between; }
  .work_card__footer { align-items: stretch; flex-direction: column; }
  .work_card__footer .button--work { width: 100%; }
}
.status--new { background: #f0f2f0; color: #596860; }
.status--confirmed { background: #eef3f8; color: #41658b; }
.status--preparing { background: #f7f2e8; color: #876021; }
.status--ready { background: #e7f2ed; color: #23694d; }
.status--completed { background: #eef0ef; color: #4d5e56; }
.status--canceled { background: #f8eeec; color: #9c4b3b; }
.confirm_dialog { border: 1px solid #d7dfd9; }
.confirm_dialog__mark { background: #e6f2ec; }
.confirm_dialog__mark svg { width: 28px; height: 28px; }

/* Customer Portal: local Lucide icons and commerce controls. */
.lucide_icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: 0 0 auto;
  object-fit: contain;
}

#customer-view .product_card { display: flex; min-height: 286px; flex-direction: column; }
#customer-view .product_card__visual { height: 66px; align-items: center; background: #f4f6f3; }
#customer-view .product_card__body { display: flex; flex: 1; flex-direction: column; }
#customer-view .product_card h4 { margin-bottom: var(--space-2); color: var(--ink); font-size: 18px; line-height: 1.25; }
#customer-view .product_card p { min-height: 38px; margin-bottom: var(--space-4); }
#customer-view .product_card__actions { display: grid; gap: 12px; margin-top: auto; }
#customer-view .product_card__unit { padding-top: 11px; border-top: 1px solid var(--line); }
#customer-view .product_card__price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
#customer-view .product_card__price > span { color: var(--muted); font-size: 11px; font-weight: 500; }
#customer-view .product_card__price strong { color: var(--brand-deep); font-size: 16px; font-weight: 600; white-space: nowrap; }
#customer-view .product_card__price small { font-size: 11px; font-weight: 500; }
#customer-view .quantity_control { display: grid; grid-template-columns: 40px minmax(48px, 1fr) 40px minmax(76px, auto); gap: 6px; }
#customer-view .quantity_control button,
#customer-view .quantity_control__input { min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); }
#customer-view .quantity_control button { display: grid; place-items: center; padding: 0; }
#customer-view .quantity_control button:hover { border-color: var(--brand); background: var(--mint); }
#customer-view .quantity_control__input { width: 100%; padding: 0 6px; text-align: center; font: inherit; font-weight: 600; }
#customer-view .product_card__add { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding-inline: 10px; border-color: var(--brand); background: var(--brand); color: white; font-weight: 600; }
#customer-view .product_card__add:hover { background: var(--brand-deep); color: white; }
#customer-view .product_card__add .lucide_icon { width: 16px; height: 16px; filter: brightness(0) invert(1); }

#customer-view .cart__items { max-height: min(46vh, 430px); gap: 14px; overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; }
#customer-view .cart_line { width: 100%; min-width: 0; max-width: 100%; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 8px; }
#customer-view .cart_line__main { min-width: 0; }
#customer-view .cart_line__main strong { font-size: 13px; }
#customer-view .cart_line__main span { font-size: 11px; }
#customer-view .cart_line__remove {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px;
  background: transparent;
  color: rgba(255,255,255,.72);
}
#customer-view .cart_line__remove:hover { border-color: #e8a592; color: #ffd7cb; }
#customer-view .cart_line__remove .lucide_icon { width: 18px; height: 18px; }
#customer-view .cart_line__remove_icon--mobile { display: none; }
#customer-view .cart_line__controls { min-width: 0; grid-column: 1; display: grid; grid-template-columns: 40px 72px 40px; gap: 6px; width: max-content; max-width: 100%; }
#customer-view .cart_line__controls button { width: 40px; display: grid; place-items: center; }
#customer-view .cart_line__controls .lucide_icon { width: 18px; height: 18px; }
#customer-view .cart_line__input { min-width: 0; display: flex; align-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.28); border-radius: 9px; }
#customer-view .cart_line__input input { width: 100%; min-width: 0; min-height: 42px; border: 0; background: transparent; color: white; text-align: right; font: inherit; font-size: 12px; font-weight: 600; }
#customer-view .cart_line__input small { padding-right: 8px; color: rgba(255,255,255,.62); font-size: 10px; }
#customer-view .cart_line__total { grid-column: 2; align-self: center; font-size: 12px; }
#customer-view .cart .button--primary,
#customer-view .order_strip__actions button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
#customer-view .order_strip__actions .lucide_icon { width: 16px; height: 16px; }
#customer-view .empty_state .lucide_icon,
#customer-view .cart_line__remove .lucide_icon,
#customer-view .cart_line__controls .lucide_icon,
#customer-view .cart .button--primary .lucide_icon { filter: brightness(0) invert(1); }
#customer-view .cart__summary strong { font-variant-numeric: tabular-nums; }
.cart__header-actions { display: flex; align-items: center; gap: 8px; }
.cart__close,
.mobile_cart_bar,
.mobile_cart_backdrop { display: none; }
.delivery_picker__desktop_label { display: none; }

/* Customer Portal: restrained catalog hierarchy and high-contrast actions. */
#customer-view .customer_layout__catalog > section[aria-labelledby="catalog-heading"] {
  padding: 20px;
  border-radius: 18px;
  background: #f1f4f2;
}
#customer-view .product_grid { gap: 18px; }
#customer-view .product_card {
  overflow: hidden;
  border: 1px solid #d5dfd8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(16,59,48,.055);
}
#customer-view .product_card:hover { box-shadow: 0 10px 24px rgba(16,59,48,.085); }
#customer-view .product_card__visual {
  padding-inline: 18px;
  border-bottom: 1px solid #e1e7e3;
  background: #fff;
}
#customer-view .product_card__visual small {
  border-color: #d5dfd8;
  background: #fff;
  color: #43564d;
  font-size: 11px;
}
#customer-view .product_card__body { padding: 18px; border-top: 0; }
#customer-view .product_card h4 { font-size: 18px; }
#customer-view .product_card p { color: #596b62; font-size: 12px; line-height: 1.55; }
#customer-view .product_card__actions { gap: 14px; }
#customer-view .product_card__unit { border-color: #d5dfd8; }
#customer-view .product_card__price > span { color: #52655c; font-size: 12px; }
#customer-view .product_card__price strong { color: #103b30; font-size: 17px; }
#customer-view .product_card__price small { font-size: 12px; }
#customer-view .quantity_control button,
#customer-view .quantity_control__input { border-color: #d5dfd8; }
#customer-view .product_card__add {
  min-height: 46px;
  border-color: #103b30;
  border-radius: 10px;
  background: #103b30;
  color: #fff;
  font-size: 12px;
  box-shadow: 0 5px 12px rgba(16,59,48,.16);
}
#customer-view .product_card__add:hover { border-color: #0b2f27; background: #0b2f27; }
#customer-view button .lucide_icon { width: 18px; height: 18px; }
#customer-view .order_strip__actions .lucide_icon { width: 18px; height: 18px; }
#customer-view .cart { color: #fff; }
#customer-view .cart__header h3,
#customer-view .cart_line__main strong,
#customer-view .cart__summary strong { color: #fff; }
#customer-view .cart .eyebrow { color: #9fe0c4; }
#customer-view .cart_line__main span,
#customer-view .cart .field__label,
#customer-view .cart__summary span { color: rgba(255,255,255,.76); }
#customer-view .cart_line__total { color: #d8f3e7; }
#customer-view .cart__footnote { color: rgba(255,255,255,.64); }
#customer-view .cart .field__control::placeholder { color: rgba(255,255,255,.56); }

@media (min-width: 1440px) {
  .orders_app { grid-template-columns: 280px minmax(0, 1fr); }
  .orders_app__main { padding-inline: 48px; }
  .customer_layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; }
}

@media (max-width: 1120px) {
  .orders_app { grid-template-columns: 230px minmax(0, 1fr); }
  .orders_app__main { padding-inline: 24px; }
  .customer_layout { grid-template-columns: minmax(0, 1fr) 310px; }
}

@media (max-width: 820px) {
  .orders_app { display: block; }
  .orders_app__sidebar { padding: 14px 16px; }
  .orders_app__main { padding-inline: 18px; }
  .topbar, .view { max-width: none; }
  .role_nav__item { min-height: 52px; }
  .customer_layout { grid-template-columns: 1fr; }
  #customer-view .cart { margin-top: 8px; }
}

@media (max-width: 560px) {
  #customer-view.view { animation: none; transform: none; }
  #customer-view .customer_intro,
  #customer-view .section_heading { align-items: stretch; flex-direction: column; gap: 12px; }
  #customer-view .customer_layout,
  #customer-view .customer_layout__catalog,
  #customer-view .delivery_picker { min-width: 0; }
  #customer-view .price_hint { max-width: none; text-align: left; }
  #customer-view .product_grid { grid-template-columns: 1fr; }
  #customer-view .product_card { min-height: 0; }
  #customer-view .quantity_control { grid-template-columns: 44px minmax(54px, 1fr) 44px minmax(90px, auto); }
  #customer-view .segmented { display: grid; grid-template-columns: 1fr; }
  #customer-view .segmented__button,
  #customer-view .segmented__button:last-child { min-width: 0; }
  #customer-view .price_hint { max-width: 150px; text-align: right; }
  #customer-view .order_strip { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  #customer-view .order_strip__actions { grid-column: 1 / -1; }
  #customer-view .order_strip__actions button { flex: 1; }
  #customer-view { padding-bottom: calc(102px + env(safe-area-inset-bottom, 0px) + var(--mobile-viewport-bottom-gap, 0px)); }
  body.mobile_cart_open { overflow: hidden; }
  #customer-view .cart {
    position: fixed;
    z-index: 100;
    inset: auto 0 0;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 20px);
    margin: 0;
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 22px 22px 0 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(105%);
    transition: transform .22s ease, visibility .22s step-end;
  }
  #customer-view .cart--open {
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: transform .22s ease;
  }
  #customer-view .cart__header { position: sticky; top: -22px; z-index: 2; margin: -22px -18px 0; padding: 20px 18px 15px; background: var(--brand-deep); }
  #customer-view .cart__close { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 11px; background: rgba(255,255,255,.08); }
  #customer-view .cart__close .lucide_icon { width: 20px; height: 20px; filter: brightness(0) invert(1); }
  #customer-view .cart__items { max-height: none; overflow: visible; scrollbar-gutter: auto; }
  #customer-view .cart .field__control--textarea { min-height: 76px; resize: vertical; }
  #customer-view .mobile_cart_bar {
    position: fixed;
    z-index: 1000;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px) + var(--mobile-viewport-bottom-gap, 0px));
    left: 12px;
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    background: var(--brand-deep);
    color: white;
    box-shadow: 0 18px 45px rgba(9,40,31,.3);
  }
  #customer-view .mobile_cart_bar__label { display: flex; align-items: center; gap: 11px; text-align: left; }
  #customer-view .mobile_cart_bar__label > .lucide_icon { width: 22px; height: 22px; filter: brightness(0) invert(1); }
  #customer-view .mobile_cart_bar__label strong,
  #customer-view .mobile_cart_bar__label small { display: block; }
  #customer-view .mobile_cart_bar__label strong { font-size: 14px; }
  #customer-view .mobile_cart_bar__label small { margin-top: 2px; color: rgba(255,255,255,.65); font-size: 11px; }
  #customer-view .mobile_cart_bar > strong { font-size: 17px; font-variant-numeric: tabular-nums; }
  #customer-view .mobile_cart_backdrop { position: fixed; z-index: 90; inset: 0; display: block; border: 0; background: rgba(5,22,17,.52); backdrop-filter: blur(2px); }
  #customer-view .mobile_cart_backdrop[hidden] { display: none; }
}

@media (max-width: 560px) and (prefers-reduced-motion: reduce) {
  #customer-view .cart { transition: none; }
}

@media (max-width: 560px) {
  #customer-view .customer_layout__catalog > section[aria-labelledby="catalog-heading"] { padding: 16px; border-radius: 16px; }
  #customer-view .price_hint { max-width: none; text-align: left; }
}

/* Customer add action: final state rules intentionally outrank generic quantity buttons. */
#customer-view .product_card__visual { justify-content: space-between; }
#customer-view .product_card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #d5dfd8;
  border-radius: 12px;
  background: #f8faf8;
  color: #103b30;
}
#customer-view .product_card__icon .lucide_icon { width: 22px; height: 22px; }
#customer-view .product_card__visual small,
#customer-view .product_card p,
#customer-view .product_card__price > span,
#customer-view .product_card__price small,
#customer-view .price_hint { font-size: 14px; }
#customer-view .product_card h4 { font-size: 20px; }
#customer-view .product_card__price strong { font-size: 19px; }
#customer-view .quantity_control__input { font-size: 14px; }
#customer-view .quantity_control { grid-template-columns: 44px minmax(56px, 1fr) 44px 152px; }
#customer-view .quantity_control button.product_card__add {
  min-width: 152px;
  min-height: 44px;
  border: 1px solid #103b30;
  background: #103b30;
  color: #fff;
  opacity: 1;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(16,59,48,.16);
}
#customer-view .quantity_control button.product_card__add:hover:not(:disabled) {
  border-color: #0b3027;
  background: #0b3027;
  color: #fff;
  opacity: 1;
}
#customer-view .quantity_control button.product_card__add:active:not(:disabled) {
  border-color: #0b3027;
  background: #0b3027;
  color: #fff;
  opacity: 1;
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(16,59,48,.2);
}
#customer-view .quantity_control button.product_card__add:focus-visible {
  outline: 3px solid #63c49d;
  outline-offset: 2px;
}
#customer-view .quantity_control button.product_card__add:disabled {
  border-color: #c8d2cc;
  background: #dfe6e2;
  color: #4b5d54;
  opacity: 1;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}
#customer-view .cart,
#customer-view .cart__header h3,
#customer-view .cart_line__main strong,
#customer-view .cart__summary strong { color: #fff; }
#customer-view .cart_line__main span,
#customer-view .cart .field__label,
#customer-view .cart__summary span,
#customer-view .cart__footnote { color: #d5e3dc; }

@media (min-width: 821px) and (max-width: 1120px) {
  #customer-view .quantity_control { grid-template-columns: 40px minmax(52px, 1fr) 40px 144px; }
  #customer-view .quantity_control button.product_card__add { min-width: 144px; }
}

@media (max-width: 560px) {
  #customer-view .product_card,
  #customer-view .product_card__body,
  #customer-view .product_card__unit { min-width: 0; }
  #customer-view .quantity_control { grid-template-columns: 44px minmax(0, 1fr) 44px minmax(96px, 100px); }
  #customer-view .quantity_control button.product_card__add {
    min-width: 0;
    width: 100%;
  }
  #customer-view .cart_line__controls { grid-column: 1 / -1; grid-template-columns: 44px minmax(0, 1fr) 44px; width: 100%; }
  #customer-view .cart_line__controls button { width: 44px; }
  #customer-view .cart_line__total { grid-column: 1 / -1; justify-self: end; }
  #customer-view .order_strip__actions button { flex: 1 1 132px; }
}

/* Customer cart: compact catalog summary and full-page order review. */
#customer-view .cart:not(.cart--open) .field,
#customer-view .cart:not(.cart--open) .cart__notes,
#customer-view .cart:not(.cart--open) #submit-order,
#customer-view .cart:not(.cart--open) #cancel-edit,
#customer-view .cart:not(.cart--open) .cart__footnote { display: none; }
#customer-view .cart:not(.cart--open) .cart__items { max-height: none; overflow: visible; }
#customer-view .cart__review_action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
#customer-view .cart__review_action .lucide_icon { width: 18px; height: 18px; filter: brightness(0) invert(1); }
#customer-view .cart.cart--open .cart__review_action { display: none; }
#customer-view .cart_preview_line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
#customer-view .cart_preview_line span,
#customer-view .cart_preview_line strong,
#customer-view .cart_preview_line small { display: block; }
#customer-view .cart_preview_line span { min-width: 0; }
#customer-view .cart_preview_line span > strong { overflow: hidden; color: #fff; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
#customer-view .cart_preview_line small { margin-top: 3px; color: #d5e3dc; font-size: 11px; }
#customer-view .cart_preview_line > strong { flex: 0 0 auto; color: #d8f3e7; font-size: 12px; }
#customer-view .cart_preview_more { margin: 10px 0 0; color: #9fe0c4; font-size: 12px; font-weight: 600; }
#customer-view .cart__close { width: auto; min-width: 44px; padding: 0 12px; gap: 7px; color: #fff; }
#customer-view .cart__close span { display: none; }
body.cart_review_open { overflow-y: auto; }
#customer-view.customer_view--cart-review .customer_intro,
#customer-view.customer_view--cart-review .customer_layout__catalog,
#customer-view.customer_view--cart-review .mobile_cart_bar { display: none; }
#customer-view.customer_view--cart-review .customer_layout { display: block; }
#customer-view .cart.cart--open {
  position: static;
  width: min(100%, 1080px);
  max-width: 1080px;
  max-height: none;
  margin: 34px auto 70px;
  padding: 30px;
  overflow: visible;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  border-radius: 22px;
}
#customer-view .cart.cart--open .cart__header { position: static; margin: 0; padding: 0 0 20px; }
#customer-view .cart.cart--open .cart__close { display: inline-flex; align-items: center; }
#customer-view .cart.cart--open .cart__close span { display: inline; }
#customer-view .cart.cart--open .cart__close { order: 3; }
#customer-view .cart.cart--open .cart__heading { order: 1; }
#customer-view .cart.cart--open .cart__count { order: 2; margin-left: auto; }
#customer-view .cart.cart--open .cart__back_icon { display: none; }
#customer-view .cart.cart--open .cart__items { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; overflow: visible; }
#customer-view .cart.cart--open .cart_line { padding: 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.04); }
#customer-view .cart.cart--open .field { margin-top: 24px; }
#customer-view .cart.cart--open .cart__summary { margin-top: 24px; }
.cart__review_meta,
.submit_label--mobile { display: none; }

@media (max-width: 480px) {
  #customer-view.customer_view--cart-review { margin-inline: -16px; background: #f1f4f2; }
  #customer-view .cart.cart--open {
    width: 100%;
    margin: 0;
    padding: 18px 16px calc(28px + env(safe-area-inset-bottom));
    border: 1px solid #d5dfd8;
    border-radius: 0;
    background: #f1f4f2;
    color: var(--ink);
    box-shadow: none;
  }
  #customer-view .cart.cart--open .cart__header {
    position: static;
    top: auto;
    z-index: auto;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    margin: 0;
    padding: 0 0 14px;
    border-bottom: 0;
    background: transparent;
  }
  #customer-view .cart.cart--open .cart__close,
  #customer-view .cart.cart--open .cart__heading,
  #customer-view .cart.cart--open .cart__count { order: initial; margin-left: 0; }
  #customer-view .cart.cart--open .cart__header .eyebrow { display: none; }
  #customer-view .cart.cart--open .cart__header h3 { margin: 0; color: var(--ink); font-size: 22px; line-height: 1.15; }
  #customer-view .cart.cart--open .cart__heading { min-width: 0; padding-top: 2px; }
  #customer-view .cart.cart--open .cart__count {
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 7px 0 0;
    background: transparent;
    color: #52655c;
    white-space: nowrap;
  }
  #customer-view .cart.cart--open .cart__count strong { color: var(--brand-deep); font-size: 14px; }
  #customer-view .cart.cart--open .cart__count small { font-size: 11px; font-weight: 500; }
  #customer-view .cart.cart--open .cart__close {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-color: #cbd8d0;
    background: #fff;
    color: var(--brand-deep);
  }
  #customer-view .cart.cart--open .cart__close .lucide_icon { filter: none; }
  #customer-view .cart.cart--open .cart__back_icon { display: block; }
  #customer-view .cart.cart--open .cart__close_icon,
  #customer-view .cart.cart--open .cart__close_text { display: none; }
  #customer-view .cart__review_meta {
    display: block;
    margin-bottom: 12px;
    border: 1px solid #d5dfd8;
    border-radius: 12px;
    background: #fff;
  }
  #customer-view .cart__review_meta > span { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; min-height: 52px; padding: 10px 12px; }
  #customer-view .cart__review_meta > span + span { border-top: 1px solid #e3e9e5; }
  #customer-view .cart__review_meta small,
  #customer-view .cart__review_meta strong { display: block; }
  #customer-view .cart__review_meta small { color: #687a71; font-size: 11px; line-height: 1.3; }
  #customer-view .cart__review_meta strong { color: var(--ink); font-size: 14px; line-height: 1.35; white-space: normal; }
  #customer-view .cart.cart--open .cart__items { gap: 10px; margin: 0; }
  #customer-view .cart.cart--open .cart_line {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 10px 8px;
    padding: 14px;
    border: 1px solid #d5dfd8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(16,59,48,.045);
  }
  #customer-view .cart.cart--open .cart_line__main strong { color: var(--ink); font-size: 15px; }
  #customer-view .cart.cart--open .cart_line__main span { color: #596b62; font-size: 12px; }
  #customer-view .cart.cart--open .cart_line__remove {
    width: 44px;
    height: 44px;
    border-color: #edc9c1;
    background: #fff5f3;
    color: #9b4938;
  }
  #customer-view .cart.cart--open .cart_line__remove:hover { border-color: #dda99d; background: #fbe9e5; color: #873d30; }
  #customer-view .cart.cart--open .cart_line__remove .lucide_icon { filter: none; }
  #customer-view .cart.cart--open .cart_line__controls { grid-template-columns: 44px 70px 44px; }
  #customer-view .cart.cart--open .cart_line__controls button { width: 44px; min-height: 44px; border-color: #d5dfd8; background: #f8faf8; color: var(--brand-deep); }
  #customer-view .cart.cart--open .cart_line__controls .lucide_icon { filter: none; }
  #customer-view .cart.cart--open .cart_line__input { border-color: #d5dfd8; background: #fff; }
  #customer-view .cart.cart--open .cart_line__input input { min-height: 42px; color: var(--ink); }
  #customer-view .cart.cart--open .cart_line__input small { color: #687a71; }
  #customer-view .cart.cart--open .cart_line__total { color: var(--brand-deep); font-size: 14px; }
  #customer-view .cart__notes { gap: 6px; margin-top: 12px; padding: 12px; border: 1px solid #d5dfd8; border-radius: 12px; background: #fff; }
  #customer-view .cart__notes .field__label { color: var(--brand-deep); font-size: 13px; font-weight: 600; }
  #customer-view .cart__notes .field__label small { color: #687a71; font-size: 11px; font-weight: 400; }
  #customer-view .cart__notes .field__control { height: 44px; min-height: 44px; padding: 10px 12px; overflow-y: hidden; border-color: #d5dfd8; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.45; resize: none; }
  #customer-view .cart__notes .field__control::placeholder { color: transparent; }
  #customer-view .cart.cart--open .cart__summary { margin: 16px 0; padding: 14px 0 0; border-color: #cbd8d0; }
  #customer-view .cart.cart--open .cart__summary span { color: #596b62; font-size: 12px; }
  #customer-view .cart.cart--open .cart__summary strong { color: var(--brand-deep); font-size: 22px; }
  #customer-view .cart.cart--open #submit-order { min-height: 52px; background: var(--brand-deep); color: #fff; font-size: 15px; }
  #customer-view .cart.cart--open .submit_label--desktop { display: none; }
  #customer-view .cart.cart--open .submit_label--mobile { display: inline; }
  #customer-view .cart.cart--open .cart__footnote { color: #687a71; }
}


/* Customer catalog navigation and search. */
#customer-view .catalog_tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 16px;
}
#customer-view .catalog_search { display: grid; gap: 6px; color: var(--brand-deep); font-size: 12px; font-weight: 600; }
#customer-view .catalog_search input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #cbd8d0;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
}
#customer-view .catalog_search input:focus-visible { outline: 3px solid #9bd7bf; outline-offset: 1px; border-color: var(--brand); }
#customer-view .catalog_search__clear { min-height: 44px; }
#customer-view .catalog_result_count { align-self: center; color: #687a71; font-size: 12px; white-space: nowrap; }
#customer-view .catalog_result_count--desktop { display: none; }
#customer-view .catalog_browser { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; align-items: start; }
#customer-view .catalog_categories {
  position: sticky;
  top: 18px;
  padding: 14px;
  border: 1px solid #d5dfd8;
  border-radius: 14px;
  background: #fff;
}
#customer-view .catalog_categories > strong { display: block; margin-bottom: 10px; color: var(--ink); font-size: 14px; }
#customer-view .catalog_categories nav { display: grid; gap: 4px; }
#customer-view .catalog_category_button {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #4d6057;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}
#customer-view .catalog_category_button:hover { background: #edf3ef; color: var(--brand-deep); }
#customer-view .catalog_category_button--active { border-color: #b8d5c8; background: #e3efe9; color: var(--brand-deep); font-weight: 600; }
#customer-view .catalog_results { min-width: 0; }
#customer-view .catalog_results .product_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#customer-view .catalog_quick,
#customer-view .catalog_category_panel { display: none; }
#customer-view .product_card__sku { display: block; margin: -2px 0 10px; color: #718078; font-size: 10px; letter-spacing: .035em; }
#customer-view .catalog_empty { padding: 28px 18px; border: 1px dashed #bfcfc5; border-radius: 14px; background: #fff; text-align: center; }
#customer-view .catalog_empty strong { color: var(--ink); font-size: 17px; }
#customer-view .catalog_empty p { margin: 6px 0 14px; color: #687a71; font-size: 13px; }
#customer-view .catalog_more {
  width: 100%;
  min-height: 46px;
  margin-top: 16px;
  border: 1px solid #b8ccc1;
  border-radius: 14px;
  background: #fff;
  color: var(--brand-deep);
  font-weight: 600;
}
#customer-view .catalog_more:hover { border-color: #86aa98; background: #f1f4f2; color: var(--brand-deep); }
#customer-view .catalog_more:active { border-color: var(--brand); background: #e4e8e5; color: var(--brand-deep); }
#customer-view .catalog_more:focus-visible { outline: 3px solid #63c49d; outline-offset: 2px; }

@media (max-width: 767px) {
  #customer-view .catalog_tools { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  #customer-view .catalog_result_count { grid-column: 1 / -1; justify-self: end; margin-top: -2px; }
  #customer-view .catalog_browser { display: block; }
  #customer-view .catalog_results .product_grid { grid-template-columns: 1fr; }
  #customer-view .catalog_categories { display: none; }
  #customer-view .catalog_quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
  #customer-view .catalog_quick .catalog_category_button { min-height: 44px; text-align: center; }
  #customer-view .catalog_quick .catalog_category_button--mobile-all { display: none; }
  #customer-view .catalog_quick .catalog_category_more { grid-column: 1 / -1; }
  #customer-view .catalog_category_panel:not([hidden]) { display: block; margin-bottom: 12px; padding: 10px; border: 1px solid #d5dfd8; border-radius: 12px; background: #fff; }
  #customer-view .catalog_category_backdrop,
  #customer-view .catalog_category_sheet__header { display: none; }
  #customer-view .catalog_category_list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  #customer-view .catalog_category_panel .catalog_category_button { min-height: 44px; text-align: center; }
}

@media (max-width: 480px) {
  #customer-view .catalog_tools { margin-bottom: 10px; }
  #customer-view .catalog_search > span { font-size: 11px; }
  #customer-view .catalog_search input { min-height: 44px; }
  #customer-view .catalog_search__clear { padding-inline: 10px; }
  #customer-view .catalog_quick {
    grid-template-columns: .9fr .85fr 1fr 1.2fr;
    gap: 6px;
    margin-bottom: 8px;
    overflow: visible;
  }
  #customer-view .catalog_quick .catalog_category_button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding-inline: 4px;
    border: 1px solid #cbd8d0;
    border-radius: 12px;
    background: #fff;
    color: var(--brand-deep);
    font-size: 11.5px;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
  }
  #customer-view .catalog_quick .catalog_category_button--mobile-all { display: inline-flex; }
  #customer-view .catalog_quick .catalog_category_button--optional { display: none; }
  #customer-view .catalog_quick .catalog_category_more { grid-column: auto; }
  #customer-view .catalog_quick .catalog_category_more .lucide_icon { width: 18px; height: 18px; flex: 0 0 18px; }
  #customer-view .catalog_quick .catalog_category_button:hover,
  #customer-view .catalog_quick .catalog_category_button:active { border-color: #cbd8d0; background: #fff; color: var(--brand-deep); }
  #customer-view .catalog_quick .catalog_category_button--active,
  #customer-view .catalog_quick .catalog_category_button--active:hover,
  #customer-view .catalog_quick .catalog_category_button--active:active { border-color: var(--brand-deep); background: var(--brand-deep); color: #fff; }
  #customer-view .catalog_quick .catalog_category_button:focus-visible { outline: 3px solid #9bd7bf; outline-offset: 2px; }
  body.category_sheet_open { position: fixed; width: 100%; overflow: hidden; }
  #customer-view .catalog_category_panel:not([hidden]) {
    position: fixed;
    z-index: 1200;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  #customer-view .catalog_category_backdrop {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    border: 0;
    background: rgba(5, 22, 17, .52);
  }
  #customer-view .catalog_category_sheet {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: min(78dvh, 620px);
    max-height: calc(100dvh - max(12px, env(safe-area-inset-top, 0px)));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: #fff;
    box-shadow: 0 -18px 50px rgba(16, 59, 48, .18);
  }
  #customer-view .catalog_category_sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    margin-bottom: 10px;
  }
  #customer-view .catalog_category_sheet__header h3 { margin: 0; color: var(--ink); font-size: 20px; font-weight: 600; }
  #customer-view .catalog_category_sheet__close {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #d5dfd8;
    border-radius: 12px;
    background: #fff;
    color: var(--brand-deep);
  }
  #customer-view .catalog_category_list {
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 2px 2px 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scroll-padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
  #customer-view .catalog_category_list .catalog_category_button {
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid #cbd8d0;
    border-radius: 12px;
    background: #fff;
    color: var(--brand-deep);
    font-size: 13px;
    -webkit-tap-highlight-color: transparent;
  }
  #customer-view .catalog_category_list .catalog_category_button:hover,
  #customer-view .catalog_category_list .catalog_category_button:active { border-color: #cbd8d0; background: #fff; color: var(--brand-deep); }
  #customer-view .catalog_category_list .catalog_category_button--active,
  #customer-view .catalog_category_list .catalog_category_button--active:hover,
  #customer-view .catalog_category_list .catalog_category_button--active:active { border-color: var(--brand-deep); background: var(--brand-deep); color: #fff; }
  #customer-view .catalog_category_list .catalog_category_button:focus-visible { outline: 3px solid #9bd7bf; outline-offset: 2px; }
}

@media (max-width: 700px) {
  #customer-view.customer_view--cart-review { padding-bottom: 24px; }
  #customer-view .cart.cart--open { width: 100%; margin: 18px 0 24px; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); border-radius: 18px; }
  #customer-view .cart.cart--open .cart__items { grid-template-columns: 1fr; }
  #customer-view .cart.cart--open .cart__close span { display: none; }
}

@media (max-width: 480px) {
  #customer-view.customer_view--cart-review { margin-inline: 0; }
  #customer-view .cart.cart--open {
    width: 100%;
    margin: 0 0 24px;
    padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
    border-radius: 16px;
  }
  #customer-view .cart.cart--open .cart__close { display: grid; place-items: center; }
  #customer-view .cart.cart--open .cart__close .lucide_icon { width: 20px; height: 20px; margin: 0; }
  #customer-view .cart__review_meta > span:first-child { display: none; }
  #customer-view .cart__review_meta > span + span { border-top: 0; }
  #customer-view .cart.cart--open .cart__items { gap: 8px; }
  #customer-view .cart.cart--open .cart_line {
    grid-template-columns: 44px minmax(0, 1fr) 44px minmax(96px, 100px);
    gap: 8px 6px;
    padding: 12px;
  }
  #customer-view .cart.cart--open .cart_line__main { grid-column: 1 / 4; grid-row: 1; }
  #customer-view .cart.cart--open .cart_line__remove { grid-column: 4; grid-row: 1; justify-self: end; }
  #customer-view .cart.cart--open .cart_line__remove_icon--desktop { display: none; }
  #customer-view .cart.cart--open .cart_line__remove_icon--mobile { display: block; }
  #customer-view .cart.cart--open .cart_line__controls { display: contents; }
  #customer-view .cart.cart--open .cart_line__controls > button:first-child { grid-column: 1; grid-row: 2; }
  #customer-view .cart.cart--open .cart_line__input { grid-column: 2; grid-row: 2; min-width: 0; height: 44px; }
  #customer-view .cart.cart--open .cart_line__input input { height: 44px; min-height: 44px; padding: 0 0 0 18px; text-align: center; }
  #customer-view .cart.cart--open .cart_line__controls > button:last-child { grid-column: 3; grid-row: 2; }
  #customer-view .cart.cart--open .cart_line__total {
    grid-column: 4;
    grid-row: 2;
    align-self: stretch;
    justify-self: stretch;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 44px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--brand-deep);
    font-size: 22px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .orders_app__sidebar {
    position: sticky;
    z-index: 900;
    top: 0;
    width: 100%;
    height: auto;
    padding: 10px 16px;
    overflow: visible;
  }
  .orders_app__sidebar .brand {
    min-height: 48px;
    justify-content: flex-start;
    gap: 10px;
    padding: 0;
  }
  .orders_app__sidebar .brand__mark { width: 40px; height: 40px; flex: 0 0 40px; }
  .orders_app__sidebar .brand__name { white-space: nowrap; }
  .orders_app__sidebar .brand__caption,
  .orders_app__sidebar .demo_notice { display: none; }
  .orders_app__sidebar .mobile_menu_toggle {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-left: auto;
    padding: 0;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 11px;
    background: rgba(255,255,255,.08);
    color: #fff;
  }
  .orders_app__sidebar .mobile_menu_toggle .lucide_icon { width: 22px; height: 22px; filter: brightness(0) invert(1); }
  .orders_app__sidebar .role_nav {
    position: absolute;
    top: calc(100% - 2px);
    right: 16px;
    left: 16px;
    display: none;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 0 0 14px 14px;
    background: #103b30;
    box-shadow: 0 18px 36px rgba(9,40,31,.24);
    flex: none;
  }
  .orders_app__sidebar--menu-open .role_nav { display: grid; }
  .orders_app__sidebar .role_nav__item {
    min-height: 48px;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 6px 10px;
    text-align: left;
  }
  .orders_app__sidebar .role_nav__icon { width: 34px; height: 34px; display: grid; }
  .orders_app__sidebar .role_nav__item > span:last-child { min-width: 0; }
  .orders_app__sidebar .role_nav__item strong {
    overflow-wrap: normal;
    word-break: normal;
    white-space: nowrap;
  }
  .orders_app__sidebar .role_nav__item small { display: none; }
  .orders_app__sidebar .role_nav__item--reset { margin-top: 4px; }
  .orders_app__main { padding: 0 16px 32px; }
  .topbar { display: none; }
  .customer_intro,
  .dashboard_heading { padding-top: 24px; }
}

@media (max-width: 480px) {
  #customer-view { padding-bottom: 24px; }
  #customer-view.customer_view--has-cart { padding-bottom: calc(102px + env(safe-area-inset-bottom, 0px) + var(--mobile-viewport-bottom-gap, 0px)); }
  #customer-view .customer_intro {
    gap: 8px;
    padding: 14px 0 10px;
  }
  #customer-view .customer_intro > div > .eyebrow { display: none; }
  #customer-view .customer_intro h2 {
    margin: 0 0 5px;
    font-size: 28px;
    line-height: 1.12;
    letter-spacing: -.035em;
  }
  #customer-view .customer_intro__copy { font-size: 15px; line-height: 1.4; }
  #customer-view .customer_intro__copy--desktop { display: none; }
  #customer-view .customer_intro__copy--mobile { display: inline; }
  #customer-view .field--customer { gap: 0; }
  #customer-view .field--customer .field__label { display: none; }
  #customer-view .field--customer .field__control { min-height: 44px; }
  #customer-view .delivery_picker {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    overflow: visible;
    border-color: #d5dfd8;
    background: #fff;
    box-shadow: 0 5px 16px rgba(16, 59, 48, .05);
  }
  #customer-view .delivery_picker > div:first-child { display: none; }
  #customer-view .delivery_picker__mobile_summary {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 62px;
    padding: 9px 14px;
    border: 0;
    border-radius: inherit;
    background: #fff;
    color: var(--ink);
    text-align: left;
  }
  #customer-view .delivery_picker__mobile_summary:focus-visible { outline: 3px solid #63c49d; outline-offset: 2px; }
  #customer-view .delivery_picker__mobile_summary:disabled { cursor: default; color: var(--ink); }
  #customer-view .delivery_picker__calendar {
    width: 22px;
    height: 22px;
    filter: brightness(0) saturate(100%) invert(19%) sepia(22%) saturate(1461%) hue-rotate(113deg) brightness(91%) contrast(94%);
  }
  #customer-view .delivery_picker__summary_copy { min-width: 0; }
  #customer-view .delivery_picker__summary_copy span,
  #customer-view .delivery_picker__summary_copy strong { display: block; }
  #customer-view .delivery_picker__summary_copy strong {
    overflow: hidden;
    margin-bottom: 2px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #customer-view .delivery_picker__summary_copy span { color: var(--muted); font-size: 13px; font-weight: 500; }
  #customer-view .delivery_picker__chevron { width: 18px; height: 18px; transition: transform .18s ease; }
  #customer-view .delivery_picker--mobile-open .delivery_picker__chevron { transform: rotate(180deg); }
  #customer-view .delivery_picker--single-date .delivery_picker__chevron { display: none; }
  #customer-view .delivery_picker--single-date .delivery_picker__mobile_summary {
    grid-template-columns: 22px minmax(0, 1fr);
    pointer-events: none;
  }
  #customer-view .segmented {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin: 0 10px 10px;
    padding: 3px;
  }
  #customer-view .delivery_picker--mobile-open .segmented { display: grid; }
  #customer-view .segmented__button {
    min-height: 44px;
    padding: 6px 10px;
  }
  #customer-view .delivery_picker--today-closed [data-delivery="today"] { display: none; }
  #customer-view .delivery_picker--today-closed .segmented { grid-template-columns: 1fr; }
  #customer-view .customer_layout__catalog > section[aria-labelledby="catalog-heading"] { padding: 12px; }
  #customer-view .section_heading { display: block; margin-bottom: 10px; }
  #customer-view .section_heading .eyebrow,
  #customer-view .section_heading .price_hint { display: none; }
  #customer-view .section_heading h3 { margin: 0; font-size: 19px; }
}

/* Desktop Customer catalog: compact, readable product cards. */
@media (min-width: 1024px) {
  #customer-view .customer_layout { grid-template-columns: minmax(0, 1fr) clamp(310px, 23vw, 350px); }
  #customer-view .catalog_results .product_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #customer-view .product_card { min-height: 0; }
  #customer-view .product_card__body { padding: 16px 18px 17px; }
  #customer-view .product_card h4 { margin-bottom: 6px; font-size: 18px; font-weight: 600; line-height: 1.3; }
  #customer-view .product_card p { min-height: 0; margin: 0 0 10px; font-size: 14px; font-weight: 400; line-height: 1.45; }
  #customer-view .product_card__sku { margin: 0 0 10px; font-size: 13px; line-height: 1.35; }
  #customer-view .product_card__actions { gap: 10px; margin-top: 0; }
  #customer-view .product_card__unit { padding-top: 10px; }
  #customer-view .product_card__price { margin-bottom: 8px; }
  #customer-view .product_card__price > span,
  #customer-view .product_card__price small { font-size: 13px; }
  #customer-view .product_card__price strong { font-size: 20px; font-weight: 600; }
  #customer-view .quantity_control { grid-template-columns: 44px minmax(72px, 1fr) 44px minmax(120px, 132px); gap: 8px; }
  #customer-view .quantity_control button,
  #customer-view .quantity_control__input { height: 44px; min-height: 44px; }
  #customer-view .quantity_control__input { padding-inline: 8px; font-size: 16px; }
  #customer-view .quantity_control button.product_card__add { width: 100%; min-width: 0; min-height: 44px; background: var(--brand-deep); color: #fff; }
  #customer-view .cart:not(.cart--open) .cart__count { width: 32px; min-width: 32px; flex: 0 0 32px; padding: 0; white-space: nowrap; }
  #customer-view .cart:not(.cart--open) .cart__count small { display: none; }
  #customer-view .cart:not(.cart--open) .cart__items { overflow: visible; }
  #customer-view .cart_preview_line { gap: 14px; padding-block: 12px; }
  #customer-view .cart_preview_line span > strong { color: #fff; font-size: 14px; line-height: 1.35; }
  #customer-view .cart_preview_line small { color: #c7d9d1; font-size: 13px; line-height: 1.35; }
  #customer-view .cart_preview_line > strong { color: #e4f7ee; font-size: 16px; font-weight: 600; }
  #customer-view .cart_preview_more { width: 100%; min-height: 44px; display: flex; align-items: center; padding: 6px 0; border: 0; background: transparent; color: #9fe0c4; font-size: 13px; font-weight: 600; text-align: left; }
  #customer-view .cart_preview_more:hover { color: #fff; }
  #customer-view .cart_preview_more:focus-visible { outline-color: #9fe0c4; }
  #customer-view .cart:not(.cart--open) .cart__summary span { font-size: 13px; line-height: 1.35; }
  #customer-view .cart:not(.cart--open) .cart__summary strong { color: #fff; font-size: 24px; font-weight: 600; }
  #customer-view .cart:not(.cart--open) .cart__review_action { min-height: 48px; font-size: 14px; line-height: 1.25; }
}

/* Desktop Customer catalog: final hierarchy and fulfillment-date polish. */
@media (min-width: 1024px) {
  body:has(#customer-view.view--active) .topbar { display: none; }
  #customer-view .customer_intro { align-items: center; padding: 14px 0 10px; }
  #customer-view .customer_intro .eyebrow { display: none; }
  #customer-view .customer_intro h2 { margin: 0; font-size: clamp(32px, 2.5vw, 42px); }
  #customer-view .customer_intro__copy { max-width: 680px; }
  #customer-view .customer_intro__copy--desktop { display: none; }
  #customer-view .field--customer { width: 260px; }

  #customer-view .customer_layout__catalog { display: grid; grid-template-columns: minmax(0, 1fr); }

  #customer-view .delivery_picker {
    position: relative;
    width: min(100%, 420px);
    min-height: 0;
    display: block;
    z-index: 2;
    grid-area: 1 / 1;
    align-self: start;
    justify-self: end;
    margin: 18px 18px 0 260px;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  #customer-view .delivery_picker > div:first-child { display: none; }
  #customer-view .delivery_picker__mobile_summary {
    width: 100%;
    min-height: 70px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #d5dfd8;
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    text-align: left;
    box-shadow: 0 5px 16px rgba(16, 59, 48, .05);
  }
  #customer-view .delivery_picker__mobile_summary:hover:not(:disabled) { border-color: #a9beb2; background: #fbfcfb; }
  #customer-view .delivery_picker__mobile_summary:focus-visible { outline: 3px solid #9bd7bf; outline-offset: 2px; }
  #customer-view .delivery_picker__mobile_summary:disabled { cursor: default; }
  #customer-view .delivery_picker__calendar { width: 22px; height: 22px; filter: brightness(0) saturate(100%) invert(19%) sepia(22%) saturate(1461%) hue-rotate(113deg) brightness(91%) contrast(94%); }
  #customer-view .delivery_picker__summary_copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  #customer-view .delivery_picker__desktop_label { display: block; color: #687a71; font-size: 12px; font-weight: 500; line-height: 1.25; }
  #customer-view .delivery_picker__summary_copy strong { overflow: hidden; color: var(--brand-deep); font-size: 16px; font-weight: 600; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
  #customer-view #selected-delivery-meta { display: none; }
  #customer-view .delivery_picker__chevron { width: 18px; height: 18px; transition: transform .18s ease; }
  #customer-view .delivery_picker--mobile-open .delivery_picker__chevron { transform: rotate(180deg); }
  #customer-view .delivery_picker--single-date .delivery_picker__chevron { display: none; }
  #customer-view .delivery_picker--single-date .delivery_picker__mobile_summary { grid-template-columns: 22px minmax(0, 1fr); pointer-events: none; }
  #customer-view .segmented { display: none; position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 5px; border: 1px solid #d5dfd8; background: #f1f4f2; box-shadow: 0 14px 30px rgba(16,59,48,.12); }
  #customer-view .delivery_picker--mobile-open .segmented { display: grid; }
  #customer-view .segmented__button,
  #customer-view .segmented__button:last-child {
    min-width: 0;
    min-height: 52px;
    padding: 7px 14px;
    border: 1px solid transparent;
  }
  #customer-view .segmented__button strong { font-size: 12px; font-weight: 500; }
  #customer-view .segmented__button span { margin-top: 3px; font-size: 14px; font-weight: 600; white-space: nowrap; }
  #customer-view .segmented__button--active { border-color: var(--brand-deep); background: var(--brand-deep); color: #fff; }
  #customer-view .delivery_picker--today-closed [data-delivery="today"] { display: none; }
  #customer-view .delivery_picker--single-date .segmented { display: none; }

  #customer-view .customer_layout__catalog > section[aria-labelledby="catalog-heading"] { grid-area: 1 / 1; padding: 18px; }
  #customer-view .recent_orders { grid-column: 1; }
  #customer-view .customer_layout__catalog > section[aria-labelledby="catalog-heading"] > .section_heading { min-height: 70px; align-items: flex-start; padding-right: min(440px, 44%); margin-bottom: 12px; }
  #customer-view .catalog_heading__title { min-width: 0; }
  #customer-view .catalog_heading__line { display: flex; align-items: baseline; gap: 10px; }
  #customer-view .catalog_result_count--desktop { display: inline; }
  #customer-view .catalog_result_count--mobile { display: none; }
  #customer-view .catalog_heading__line h3 { white-space: nowrap; }
  #customer-view .catalog_heading__line .catalog_result_count { color: #66786f; font-size: 13px; font-weight: 500; white-space: nowrap; }
  #customer-view .customer_layout__catalog > section[aria-labelledby="catalog-heading"] > .section_heading .price_hint { display: none; }
  #customer-view .section_heading { margin-bottom: 12px; }
  #customer-view .catalog_tools { margin-bottom: 14px; }
  #customer-view .catalog_browser { gap: 16px; }
  #customer-view .catalog_categories { padding: 12px; }
  #customer-view .catalog_categories > strong { margin-bottom: 8px; font-size: 15px; }
  #customer-view .catalog_categories nav { gap: 5px; }
  #customer-view .catalog_category_button { min-height: 42px; padding: 8px 11px; font-size: 13px; line-height: 1.25; }
  #customer-view .catalog_category_button--active { border-color: var(--brand-deep); background: var(--brand-deep); color: #fff; }
  #customer-view .catalog_category_button--active:hover { background: #0b3027; color: #fff; }
  #customer-view .product_grid { gap: 15px; }
  #customer-view .product_card__visual { height: 58px; padding-inline: 16px; }
  #customer-view .product_card__visual > span { width: 40px; height: 40px; }
  #customer-view .product_card__body { padding: 14px 16px 15px; }
  #customer-view .product_card p { margin-bottom: 8px; color: #52655c; font-size: 14px; line-height: 1.4; }
  #customer-view .product_card__sku { margin-bottom: 8px; color: #65766e; font-size: 13px; line-height: 1.3; letter-spacing: .02em; }
  #customer-view .product_card__actions { gap: 8px; }
  #customer-view .product_card__unit { padding-top: 8px; }
  #customer-view .product_card__price { margin-bottom: 6px; }
  #customer-view .quantity_control { grid-template-columns: 44px minmax(68px, 1fr) 44px minmax(116px, 128px); }

  #customer-view .cart:not(.cart--open) { top: 0; padding-top: 16px; }
  #customer-view .cart:not(.cart--open) .cart__header { padding-bottom: 10px; }
  #customer-view .cart:not(.cart--open) .cart__heading .eyebrow { display: none; }
  #customer-view .cart:not(.cart--open) .cart__header h3 { margin-top: 0; }
  #customer-view .cart:not(.cart--open) .cart__items { min-height: 0; margin: 6px 0 10px; }
  #customer-view .cart:not(.cart--open) .empty_state { padding: 6px 0 2px; }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  #customer-view .quantity_control { grid-template-columns: 44px minmax(44px, 1fr) 44px 68px; gap: 4px; }
}

@media (min-width: 1024px) and (max-width: 1599px) {
  #customer-view .customer_layout { grid-template-columns: minmax(0, 1fr); }
  #customer-view .cart:not(.cart--open) { position: static; width: 100%; margin-top: 20px; }
}

/* Desktop Customer review: light, full-page Premium Minimal layout. */
@media (min-width: 1024px) {
  #customer-view.customer_view--cart-review { background: #f1f4f2; }
  #customer-view .cart.cart--open {
    width: min(100%, 1120px);
    max-width: 1120px;
    margin: 30px auto 72px;
    padding: 32px;
    border: 1px solid #d5dfd8;
    border-radius: 20px;
    background: #f1f4f2;
    color: var(--ink);
    box-shadow: 0 12px 34px rgba(16, 59, 48, .07);
  }
  #customer-view .cart.cart--open .cart__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-color: #cbd8d0;
  }
  #customer-view .cart.cart--open .cart__close {
    order: 1;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #cbd8d0;
    border-radius: 11px;
    background: #fff;
    color: var(--brand-deep);
  }
  #customer-view .cart.cart--open .cart__close:hover { border-color: #9eb4a8; background: #f8faf8; }
  #customer-view .cart.cart--open .cart__back_icon { display: block; filter: none; }
  #customer-view .cart.cart--open .cart__close_icon { display: none; }
  #customer-view .cart.cart--open .cart__heading { order: 2; align-self: center; min-width: 0; }
  #customer-view .cart.cart--open .cart__heading .eyebrow { display: none; }
  #customer-view .cart.cart--open .cart__header h3 { margin: 0; color: var(--ink); font-size: 27px; line-height: 1.2; }
  #customer-view .cart.cart--open .cart__count {
    order: 3;
    width: auto;
    min-width: 104px;
    min-height: 44px;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-left: 0;
    padding: 8px 12px;
    border: 1px solid #c7d6cd;
    border-radius: 11px;
    background: #e4e8e5;
    color: var(--brand-deep);
    white-space: nowrap;
  }
  #customer-view .cart.cart--open .cart__count strong,
  #customer-view .cart.cart--open .cart__count small { display: inline; line-height: 1; white-space: nowrap; }
  #customer-view .cart.cart--open .cart__review_meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    margin: 18px 0;
    overflow: hidden;
    border: 1px solid #d5dfd8;
    border-radius: 14px;
    background: #fff;
  }
  #customer-view .cart.cart--open .cart__review_meta > span { min-width: 0; padding: 15px 18px; }
  #customer-view .cart.cart--open .cart__review_meta > span + span { border-left: 1px solid #e1e7e3; }
  #customer-view .cart.cart--open .cart__review_meta small,
  #customer-view .cart.cart--open .cart__review_meta strong { display: block; }
  #customer-view .cart.cart--open .cart__review_meta small { margin-bottom: 4px; color: #687a71; font-size: 12px; }
  #customer-view .cart.cart--open .cart__review_meta strong { color: var(--brand-deep); font-size: 16px; line-height: 1.4; white-space: normal; }
  #customer-view .cart.cart--open .cart__items { gap: 16px; margin: 0; }
  #customer-view .cart.cart--open .cart_line {
    min-width: 0;
    padding: 18px;
    border: 1px solid #d5dfd8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(16, 59, 48, .045);
  }
  #customer-view .cart.cart--open .cart_line__main strong { color: var(--ink); font-size: 15px; line-height: 1.35; }
  #customer-view .cart.cart--open .cart_line__main span { color: #687a71; font-size: 12px; }
  #customer-view .cart.cart--open .cart_line__remove {
    border-color: #dfc9c3;
    background: #fff8f6;
    color: #8e4b3d;
  }
  #customer-view .cart.cart--open .cart_line__remove:hover { border-color: #cfa99f; background: #fcedea; color: #783b30; }
  #customer-view .cart.cart--open .cart_line__remove .lucide_icon,
  #customer-view .cart.cart--open .cart_line__controls .lucide_icon { filter: none; }
  #customer-view .cart.cart--open .cart_line__controls { grid-template-columns: 44px 72px 44px; }
  #customer-view .cart.cart--open .cart_line__controls button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-color: #d5dfd8;
    background: #f8faf8;
    color: var(--brand-deep);
  }
  #customer-view .cart.cart--open .cart_line__input { border-color: #d5dfd8; background: #fff; }
  #customer-view .cart.cart--open .cart_line__input input { color: var(--ink); }
  #customer-view .cart.cart--open .cart_line__input small { color: #687a71; }
  #customer-view .cart.cart--open .cart_line__total { color: var(--brand-deep); font-size: 16px; font-weight: 600; }
  #customer-view .cart.cart--open .cart__notes {
    gap: 7px;
    margin-top: 22px;
    padding: 16px;
    border: 1px solid #d5dfd8;
    border-radius: 14px;
    background: #fff;
  }
  #customer-view .cart.cart--open .cart__notes .field__label { color: var(--brand-deep); font-size: 13px; font-weight: 600; }
  #customer-view .cart.cart--open .cart__notes .field__label small { color: #687a71; font-weight: 400; }
  #customer-view .cart.cart--open .cart__notes .field__control {
    min-height: 82px;
    border-color: #cbd8d0;
    background: #fff;
    color: var(--ink);
    resize: vertical;
  }
  #customer-view .cart.cart--open .cart__notes .field__control::placeholder { color: #819087; }
  #customer-view .cart.cart--open .cart__summary {
    margin: 22px 0 16px;
    padding: 18px 0 0;
    border-color: #cbd8d0;
  }
  #customer-view .cart.cart--open .cart__summary span { color: #596b62; font-size: 13px; }
  #customer-view .cart.cart--open .cart__summary strong { color: var(--brand-deep); font-size: 30px; font-weight: 600; }
  #customer-view .cart.cart--open #submit-order {
    min-height: 54px;
    background: var(--brand-deep);
    color: #fff;
    font-size: 15px;
    box-shadow: 0 8px 20px rgba(16, 59, 48, .16);
  }
  #customer-view .cart.cart--open #submit-order:hover { background: #0b3027; }
  #customer-view .cart.cart--open .cart__footnote { color: #687a71; font-size: 12.5px; line-height: 1.45; }
}
