:root {
  --ink: #231657;
  --purple: #3b2172;
  --blue: #087fb8;
  --teal: #10bec0;
  --pink: #ff8fa3;
  --yellow: #f6df67;
  --paper: #fffdf9;
  --shell: #eef4f6;
  --muted: #6d767c;
  --line: rgba(35, 22, 87, .12);
  --shadow: 0 28px 70px rgba(27, 35, 54, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--shell); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 7% 4%, rgba(16, 190, 192, .13), transparent 28rem),
    radial-gradient(circle at 96% 1%, rgba(255, 143, 163, .17), transparent 31rem),
    var(--shell);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: radial-gradient(rgba(35,22,87,.16) .65px, transparent .65px);
  background-size: 13px 13px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.m3-shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; position: relative; z-index: 1; }
.m3-header {
  width: min(1240px, calc(100% - 40px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.m3-brand { display: flex; align-items: center; gap: 12px; }
.m3-brand > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.m3-brand strong { font-size: 13px; letter-spacing: .09em; }
.m3-brand small { color: var(--muted); font-size: 11px; }
.m3-orbit { position: relative; width: 42px; height: 42px; border: 4px solid var(--blue); border-radius: 52% 44% 50% 46%; transform: rotate(-14deg); }
.m3-orbit::before, .m3-orbit::after, .m3-orbit i { content: ""; position: absolute; border-radius: 50%; }
.m3-orbit::before { inset: 6px; border: 3px solid var(--pink); }
.m3-orbit::after { inset: 12px; background: var(--yellow); }
.m3-orbit i { width: 8px; height: 8px; right: -7px; top: 4px; background: var(--teal); }
.m3-nav { display: flex; align-items: center; gap: 7px; }
.m3-nav a { min-height: 42px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 99px; color: #5f676d; font-size: 12px; font-weight: 750; }
.m3-nav a:hover, .m3-nav a.active { background: rgba(255,255,255,.72); color: var(--ink); }
.m3-cart-link { gap: 8px; background: var(--ink) !important; color: white !important; }
.m3-cart-link b { min-width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #073d50; font-size: 11px; }
.m3-footer { width: min(1240px, calc(100% - 40px)); margin: 48px auto 0; min-height: 82px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #7c8388; font-size: 10px; }

.m3-kicker { color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.m3-page-intro { width: min(1080px, 100%); margin: 44px auto 28px; display: flex; align-items: end; justify-content: space-between; gap: 44px; }
.m3-page-intro h1 { margin: 8px 0 0; font-size: clamp(37px, 5.4vw, 68px); line-height: .98; letter-spacing: -.055em; }
.m3-page-intro p { max-width: 430px; margin: 0 0 4px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.m3-primary, .m3-primary-link, .m3-secondary { min-height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; border: 0; padding: 0 20px; font-weight: 850; }
.m3-primary, .m3-primary-link { background: var(--teal); color: #063d50; box-shadow: 0 9px 24px rgba(16,190,192,.22); }
.m3-secondary { border: 1px solid var(--line); background: white; color: var(--ink); }
.m3-primary:hover, .m3-primary-link:hover { filter: brightness(.96); transform: translateY(-1px); }

/* Hub */
.m3-hero { min-height: 560px; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 48px; padding: 54px 0 30px; }
.m3-hero h1 { margin: 12px 0 20px; font-size: clamp(48px, 6.6vw, 88px); line-height: .9; letter-spacing: -.065em; }
.m3-hero h1 span { color: var(--blue); }
.m3-hero-copy > p { max-width: 560px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.m3-hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; }
.m3-journey-card { position: relative; min-height: 470px; border-radius: 36px; overflow: hidden; background: var(--ink); color: white; box-shadow: var(--shadow); padding: 35px; }
.m3-journey-card::before { content: ""; position: absolute; width: 330px; height: 330px; border-radius: 50%; top: -150px; left: -95px; background: var(--teal); box-shadow: 210px 20px 0 var(--yellow), 295px 140px 0 var(--pink); opacity: .95; }
.m3-journey-card > div { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; }
.m3-journey-card small { font-weight: 850; letter-spacing: .14em; opacity: .68; }
.m3-journey-card h2 { margin: auto 0 10px; font-size: 42px; letter-spacing: -.05em; }
.m3-journey-card p { max-width: 390px; margin: 0; color: rgba(255,255,255,.68); line-height: 1.6; }
.m3-journey-steps { margin-top: 25px; display: flex; gap: 8px; }
.m3-journey-steps span { width: 34px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.18); }
.m3-journey-steps span:first-child, .m3-journey-steps span:nth-child(2) { background: var(--teal); }
.m3-route-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 16px auto 0; }
.m3-route-card { position: relative; min-height: 290px; border-radius: 28px; overflow: hidden; padding: 29px; background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.85); box-shadow: 0 18px 48px rgba(31,44,59,.09); }
.m3-route-card::after { content: ""; position: absolute; width: 170px; height: 170px; right: -70px; bottom: -80px; border-radius: 50%; background: var(--pink); box-shadow: -90px 34px 0 var(--yellow); opacity: .55; }
.m3-route-card:nth-child(2)::after { background: var(--teal); box-shadow: -90px 34px 0 #79d6ff; }
.m3-route-card > * { position: relative; z-index: 2; }
.m3-route-number { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 15px; background: var(--ink); color: white; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.m3-route-card h2 { margin: 40px 0 9px; font-size: 29px; letter-spacing: -.04em; }
.m3-route-card p { max-width: 460px; margin: 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.m3-route-card a { font-size: 12px; font-weight: 900; color: var(--blue); }
.m3-resume { margin: 18px auto 0; border: 1px solid rgba(16,190,192,.24); border-radius: 18px; background: #e9fbf8; padding: 17px 19px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.m3-resume strong { display: block; margin-bottom: 3px; }
.m3-resume p { margin: 0; color: var(--muted); font-size: 12px; }

/* Flipbook */
.m3-catalogue-wrap { width: min(1120px, 100%); margin: 0 auto; padding-bottom: 22px; }
.m3-book-stage { position: relative; width: fit-content; margin: 0 auto; perspective: 1600px; }
.m3-flipbook { position: relative; z-index: 2; width: min(510px, calc((100vh - 245px) * .705), calc(100vw - 36px)); aspect-ratio: 419.76/595.2; background: var(--paper); border-radius: 5px 16px 16px 5px; overflow: hidden; box-shadow: 0 35px 76px rgba(27,35,54,.22); }
.m3-flipbook::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 13px; background: linear-gradient(90deg, rgba(20,24,53,.13), transparent); pointer-events: none; z-index: 8; }
.m3-page-edge { position: absolute; z-index: 1; inset: 8px -8px -8px 8px; border-radius: 7px 18px 18px 7px; background: repeating-linear-gradient(90deg,#ede7dd 0 1px,#fff 1px 3px); box-shadow: 0 20px 48px rgba(27,35,54,.13); }
.page-enter-next { animation: m3-next .45s cubic-bezier(.2,.8,.25,1) both; transform-origin: left center; }
.page-enter-previous { animation: m3-previous .45s cubic-bezier(.2,.8,.25,1) both; transform-origin: right center; }
@keyframes m3-next { from { opacity: .5; transform: rotateY(-16deg) translateX(12px) scale(.985); } }
@keyframes m3-previous { from { opacity: .5; transform: rotateY(16deg) translateX(-12px) scale(.985); } }
.m3-cover { position: relative; width: 100%; height: 100%; background: #ef93a2; }
.m3-cover > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m3-cover > div { position: absolute; left: 7%; right: 7%; bottom: 4%; border-radius: 99px; background: rgba(25,18,62,.87); color: white; padding: 10px 11px 10px 17px; display: flex; align-items: center; justify-content: space-between; gap: 10px; backdrop-filter: blur(10px); }
.m3-cover span { font-size: 10px; font-weight: 800; }
.m3-cover button { border: 0; border-radius: 99px; background: var(--teal); color: #073d50; padding: 11px 15px; font-size: 11px; font-weight: 900; }
.m3-product-page { display: grid; grid-template-rows: 43% 57%; height: 100%; }
.m3-product-visual { position: relative; overflow: hidden; }
.m3-product-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.m3-product-visual span { position: absolute; left: 20px; bottom: 14px; border-radius: 99px; background: rgba(255,255,255,.9); color: var(--blue); padding: 7px 10px; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.m3-product-copy { position: relative; overflow: hidden; padding: 18px 24px 22px; background: #fffefb; }
.m3-product-copy::after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; bottom: -112px; border-radius: 50%; background: var(--pink); box-shadow: -70px -18px 0 var(--yellow), -115px 2px 0 var(--teal); opacity: .45; }
.m3-product-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; position: relative; z-index: 2; }
.m3-product-meta span { color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m3-product-meta b { flex: 0 0 auto; background: var(--purple); color: white; border-radius: 4px; padding: 5px 8px; font-size: 9px; letter-spacing: .08em; }
.m3-product-copy h2 { position: relative; z-index: 2; margin: 9px 0 7px; font-size: clamp(20px,3.3vw,29px); line-height: 1.02; letter-spacing: -.04em; }
.m3-product-copy > p { position: relative; z-index: 2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: #596168; font-size: 10.5px; line-height: 1.48; }
.m3-product-copy > em { position: relative; z-index: 2; display: inline-flex; margin-top: 7px; border-radius: 99px; background: #fff1d1; color: #6a4815; padding: 5px 9px; font-size: 9px; font-style: normal; font-weight: 850; }
.m3-buy-panel { position: absolute; z-index: 3; left: 24px; right: 24px; bottom: 22px; display: grid; grid-template-columns: minmax(0,1.3fr) minmax(95px,.8fr); gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.95); box-shadow: 0 10px 28px rgba(44,33,89,.11); backdrop-filter: blur(10px); }
.m3-buy-panel label, .m3-price { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.m3-buy-panel label > span, .m3-price > span { margin: 0 0 4px 2px; color: #7b7d84; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.m3-buy-panel select { width: 100%; min-height: 34px; border: 1px solid #e0e2e4; border-radius: 8px; background: #f8faf9; color: var(--ink); padding: 0 25px 0 9px; font-size: 10px; font-weight: 700; }
.m3-price { align-items: flex-end; }
.m3-price strong { font-size: 17px; letter-spacing: -.04em; }
.m3-quantity { min-height: 38px; display: grid; grid-template-columns: 38px 1fr 38px; border: 1px solid #e2e3e5; border-radius: 10px; overflow: hidden; }
.m3-quantity button { border: 0; background: #f2f6f5; color: var(--ink); font-size: 18px; font-weight: 850; }
.m3-quantity span { display: flex; align-items: center; justify-content: center; gap: 8px; }
.m3-quantity small { color: #93969a; font-size: 7px; }
.m3-catalogue-controls { width: min(650px,100%); margin: 20px auto 0; display: grid; grid-template-columns: 110px minmax(0,1fr) 110px; gap: 12px; align-items: center; }
.m3-catalogue-controls > button { min-height: 48px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.75); color: var(--ink); font-weight: 800; }
.m3-catalogue-controls > button:disabled { opacity: .32; cursor: default; }
.m3-catalogue-controls label { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.m3-catalogue-controls label span { color: #7a7f85; font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.m3-catalogue-controls select { width: 100%; min-height: 42px; border: 0; background: transparent; color: var(--ink); font-weight: 800; text-align: center; }
.m3-hint { margin: 10px 0 0; color: #7b8288; text-align: center; font-size: 10px; }

/* Module 3B */
.m3-order-tabs { width: min(860px,100%); margin: 0 auto 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 7px; border-radius: 16px; background: rgba(255,255,255,.68); border: 1px solid rgba(255,255,255,.9); }
.m3-order-tabs button { min-height: 49px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-weight: 850; }
.m3-order-tabs button.active { background: var(--ink); color: white; box-shadow: 0 8px 20px rgba(35,22,87,.16); }
.m3-panel { width: min(1060px,100%); margin: 0 auto; }
.m3-scan-layout { display: grid; grid-template-columns: 1fr .8fr; gap: 18px; }
.m3-scan-card, .m3-manual-card, .m3-shop-card, .m3-cart-panel, .m3-summary-card, .m3-form-card, .m3-payment-card, .m3-report-card { border: 1px solid rgba(255,255,255,.9); border-radius: 25px; background: rgba(255,255,255,.84); box-shadow: 0 18px 48px rgba(31,44,59,.09); }
.m3-scan-card { min-height: 410px; padding: 26px; }
.m3-scan-card h2, .m3-manual-card h2 { margin: 0 0 8px; font-size: 25px; letter-spacing: -.04em; }
.m3-scan-card > p, .m3-manual-card > p { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.m3-camera-placeholder { min-height: 270px; border-radius: 20px; background: var(--ink); color: white; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.m3-camera-placeholder > span { width: 68px; height: 52px; border: 3px solid var(--teal); border-radius: 13px; position: relative; margin-bottom: 17px; }
.m3-camera-placeholder > span::before { content: ""; position: absolute; width: 20px; height: 20px; border: 3px solid var(--pink); border-radius: 50%; inset: 0; margin: auto; }
.m3-camera-placeholder button { min-height: 44px; border: 0; border-radius: 99px; padding: 0 18px; background: var(--teal); color: #073d50; font-weight: 900; }
.m3-camera-stage { position: relative; min-height: 270px; border-radius: 20px; overflow: hidden; background: #111827; }
.m3-camera-stage video { width: 100%; height: 270px; object-fit: cover; display: block; }
.m3-camera-actions { position: absolute; left: 13px; right: 13px; bottom: 13px; display: flex; justify-content: center; gap: 8px; }
.m3-camera-actions button { min-height: 41px; border: 0; border-radius: 99px; padding: 0 14px; font-size: 11px; font-weight: 850; }
.m3-camera-actions button:first-child { background: var(--teal); color: #073d50; }
.m3-camera-actions button:last-child { background: rgba(255,255,255,.9); color: var(--ink); }
.m3-upload-code { display: flex; justify-content: center; margin-top: 12px; }
.m3-upload-code label { border-bottom: 1px solid var(--ink); font-size: 11px; font-weight: 800; cursor: pointer; }
.m3-upload-code input { display: none; }
.m3-scan-status { min-height: 18px; margin: 11px 0 0; color: var(--blue); text-align: center; font-size: 11px; font-weight: 750; }
.m3-manual-card { padding: 26px; }
.m3-code-entry { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.m3-code-entry input { min-height: 49px; border: 1px solid var(--line); border-radius: 12px; background: white; padding: 0 15px; text-transform: uppercase; font-weight: 850; }
.m3-code-entry button { min-width: 90px; border: 0; border-radius: 12px; background: var(--ink); color: white; font-weight: 850; }
.m3-scan-product { margin-top: 18px; display: grid; grid-template-columns: 120px 1fr; gap: 15px; border-top: 1px solid var(--line); padding-top: 18px; }
.m3-scan-product img { width: 120px; height: 130px; object-fit: cover; object-position: top; border-radius: 14px; }
.m3-scan-product small { color: var(--blue); font-weight: 900; }
.m3-scan-product h3 { margin: 4px 0 9px; }
.m3-scan-product label { display: block; color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.m3-scan-product select { display: block; width: 100%; min-height: 38px; margin: 4px 0 8px; border: 1px solid var(--line); border-radius: 9px; background: white; padding: 0 8px; font-size: 10px; }
.m3-scan-product .m3-primary { width: 100%; min-height: 40px; }
.m3-scan-error { margin-top: 18px; border-radius: 14px; background: #fff1f1; color: #792d36; padding: 15px; }
.m3-scan-error h3, .m3-scan-error p { margin: 0; }
.m3-scan-error p { margin-top: 4px; font-size: 11px; }
.m3-shop-card { padding: 22px; }
.m3-shop-tools { display: grid; grid-template-columns: 1fr 260px auto; gap: 9px; margin-bottom: 18px; }
.m3-shop-tools input, .m3-shop-tools select { min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: white; padding: 0 14px; color: var(--ink); }
.m3-shop-tools span { align-self: center; color: var(--muted); font-size: 11px; font-weight: 800; }
.m3-product-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.m3-product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: white; }
.m3-product-card > img { width: 100%; aspect-ratio: 1.5; object-fit: cover; object-position: top; display: block; }
.m3-product-card > div { padding: 13px; }
.m3-product-card small { color: var(--blue); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.m3-product-card h3 { margin: 5px 0 10px; min-height: 32px; font-size: 13px; line-height: 1.2; }
.m3-product-card p { margin: 0 0 11px; color: var(--muted); font-size: 10px; }
.m3-product-card select { width: 100%; min-height: 36px; margin: 0 0 7px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); padding: 0 7px; font-size: 9px; font-weight: 750; }
.m3-product-card button { width: 100%; min-height: 39px; border: 0; border-radius: 9px; background: #e8f9f6; color: #075268; font-size: 10px; font-weight: 900; }

/* Cart + checkout */
.m3-cart-layout { width: min(1060px,100%); margin: 0 auto; display: grid; grid-template-columns: 1fr 330px; gap: 18px; align-items: start; }
.m3-cart-panel { padding: 10px 24px; }
.m3-cart-item { display: grid; grid-template-columns: 90px 1fr 112px 105px; gap: 15px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.m3-cart-item:last-child { border-bottom: 0; }
.m3-cart-item img { width: 90px; height: 78px; object-fit: cover; object-position: top; border-radius: 12px; }
.m3-cart-item small { color: var(--blue); font-size: 8px; font-weight: 900; }
.m3-cart-item h3 { margin: 3px 0; font-size: 14px; }
.m3-cart-item p { margin: 0 0 4px; color: var(--muted); font-size: 10px; }
.m3-cart-item > b { text-align: right; font-size: 14px; }
.m3-line-quantity { display: grid; grid-template-columns: 32px 1fr 32px; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.m3-line-quantity button { height: 35px; border: 0; background: #f1f5f4; color: var(--ink); font-weight: 900; }
.m3-line-quantity span { display: grid; place-items: center; font-size: 11px; font-weight: 850; }
.m3-summary-card { position: sticky; top: 18px; padding: 23px; }
.m3-summary-card h2 { margin: 0 0 20px; font-size: 23px; letter-spacing: -.04em; }
.m3-total-row { display: flex; justify-content: space-between; gap: 15px; margin: 10px 0; color: var(--muted); font-size: 12px; }
.m3-total-row.total { margin: 18px 0; padding-top: 17px; border-top: 1px solid var(--line); color: var(--ink); align-items: end; }
.m3-total-row.total b { font-size: 24px; letter-spacing: -.04em; }
.m3-summary-card .m3-primary-link { width: 100%; }
.m3-summary-card > p { margin: 11px 0 0; color: #8a9094; text-align: center; font-size: 9px; line-height: 1.5; }
.m3-empty { padding: 50px 20px; text-align: center; color: var(--muted); grid-column: 1/-1; }
.m3-empty h2, .m3-empty h3 { margin: 12px 0 6px; color: var(--ink); }
.m3-empty p { margin: 0; line-height: 1.55; font-size: 12px; }
.m3-empty > span { width: 70px; height: 70px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: #e7f8f6; color: var(--teal); font-size: 23px; font-weight: 900; }
.m3-empty > div { margin-top: 18px; display: flex; justify-content: center; gap: 8px; }
.m3-checkout-layout { width: min(1080px,100%); margin: 0 auto; display: grid; grid-template-columns: 1fr 370px; gap: 18px; align-items: start; }
.m3-form-card, .m3-payment-card { padding: 25px; }
.m3-form-card h2, .m3-payment-card h2 { margin: 0 0 7px; font-size: 26px; letter-spacing: -.04em; }
.m3-form-card > p, .m3-payment-card > p { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.m3-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.m3-form-grid label { display: flex; flex-direction: column; gap: 6px; color: #5f676d; font-size: 10px; font-weight: 850; }
.m3-form-grid label.full { grid-column: 1/-1; }
.m3-form-grid input, .m3-form-grid textarea { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); padding: 11px 13px; }
.m3-form-grid textarea { min-height: 92px; resize: vertical; }
.m3-honeypot { position: absolute !important; left: -9999px !important; }
.m3-form-card .m3-primary { width: 100%; margin-top: 16px; }
.m3-checkout-items > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.m3-checkout-items small { display: block; color: var(--muted); margin-top: 2px; }
.m3-payment-card { width: min(1080px,100%); margin: 20px auto 0; }
.m3-quote-strip { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 16px 0; }
.m3-quote-strip > div { border-radius: 13px; background: #f0f5f5; padding: 13px; }
.m3-quote-strip span { display: block; color: var(--muted); font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.m3-quote-strip b { display: block; margin-top: 4px; font-size: 12px; }
.m3-banking { display: grid; grid-template-columns: repeat(5,1fr); gap: 7px; }
.m3-banking > div { border: 1px solid var(--line); border-radius: 12px; background: white; padding: 11px 38px 11px 11px; min-width: 0; position: relative; }
.m3-banking span { display: block; color: var(--muted); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.m3-banking b { display: block; margin-top: 5px; font-size: 10px; overflow-wrap: anywhere; }
.m3-copy-value { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 27px; height: 27px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.m3-copy-value svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.m3-copy-value:hover, .m3-copy-value:focus-visible { border-color: var(--teal); color: var(--teal); outline: none; }
.m3-copy-value.copied { background: #e7f8f6; border-color: rgba(14,190,190,.35); color: #087d81; font-weight: 900; }

.m3-payment-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 13px 0 18px; }
.m3-print-order { margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 15px; }
.m3-print-order h3 { margin: 0 0 8px; font-size: 14px; }
.m3-proof { border: 1px dashed rgba(35,22,87,.26); border-radius: 15px; padding: 17px; background: #fbfdfc; }
.m3-proof label { display: block; font-size: 11px; font-weight: 850; }
.m3-proof input { display: block; width: 100%; margin-top: 9px; font-size: 11px; }
.m3-consent { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.m3-submit-order { width: 100%; min-height: 54px; border: 0; border-radius: 13px; background: var(--ink); color: white; font-weight: 900; }
.m3-submit-order:disabled { opacity: .45; }

/* Confirmation + reporting */
.m3-confirmation { width: min(760px,100%); margin: 75px auto 0; border-radius: 32px; background: var(--ink); color: white; padding: 48px; box-shadow: var(--shadow); text-align: center; overflow: hidden; position: relative; }
.m3-confirmation::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--teal); top: -160px; left: -80px; box-shadow: 210px 30px 0 var(--yellow), 330px 150px 0 var(--pink); opacity: .9; }
.m3-confirmation > * { position: relative; z-index: 2; }
.m3-confirmation .m3-check { width: 72px; height: 72px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #073d50; font-size: 31px; font-weight: 900; }
.m3-confirmation h1 { margin: 0; font-size: 43px; letter-spacing: -.05em; }
.m3-confirmation > p { color: rgba(255,255,255,.7); line-height: 1.6; }
.m3-confirmation dl { max-width: 460px; margin: 25px auto; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; overflow: hidden; }
.m3-confirmation dl div { padding: 14px; }
.m3-confirmation dt { color: rgba(255,255,255,.55); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.m3-confirmation dd { margin: 5px 0 0; font-weight: 850; }
.m3-confirmation .m3-primary-link { margin-top: 4px; }
.m3-report-card { width: min(1080px,100%); margin: 0 auto; padding: 24px; }
.m3-report-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.m3-report-stats article { border-radius: 16px; background: #f3f7f7; padding: 18px; }
.m3-report-stats span { color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.m3-report-stats strong { display: block; margin-top: 6px; font-size: 27px; letter-spacing: -.04em; }
.m3-report-table { width: 100%; margin-top: 20px; border-collapse: collapse; }
.m3-report-table th, .m3-report-table td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; }
.m3-report-table th { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .09em; }
.m3-report-table td:last-child, .m3-report-table th:last-child { text-align: right; }
.m3-report-table td small { display: block; color: var(--muted); margin-top: 3px; }
.m3-report-table details { max-width: 320px; }
.m3-report-table summary { color: var(--blue); cursor: pointer; font-weight: 850; }
.m3-report-table ul { margin: 8px 0; padding-left: 17px; color: var(--muted); }
.m3-report-table form { display: flex; align-items: center; gap: 5px; }
.m3-report-table select, .m3-page-intro input[type="month"] { min-height: 36px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); padding: 0 8px; font-size: 10px; }
.m3-report-table form button { min-height: 36px; border: 0; border-radius: 8px; background: var(--ink); color: white; padding: 0 10px; font-size: 10px; font-weight: 850; }
.m3-report-scroll { overflow-x: auto; }
.m3-status { display: inline-flex; border-radius: 99px; background: #fff1d1; color: #6a4815; padding: 5px 8px; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.m3-report-note { width: min(1080px,100%); margin: 12px auto 0; color: var(--muted); text-align: center; font-size: 10px; }
.m3-toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100% - 28px); border-radius: 99px; background: #102f3b; color: white; padding: 13px 18px; font-size: 11px; font-weight: 850; box-shadow: 0 15px 35px rgba(8,38,49,.25); animation: m3-toast .25s ease both; }
.m3-toast.error { background: #7b2937; }
@keyframes m3-toast { from { opacity: 0; transform: translate(-50%,12px); } }

@media (max-width: 850px) {
  .m3-hero { grid-template-columns: 1fr; min-height: 0; }
  .m3-journey-card { min-height: 400px; }
  .m3-route-grid, .m3-scan-layout, .m3-cart-layout, .m3-checkout-layout { grid-template-columns: 1fr; }
  .m3-summary-card { position: static; }
  .m3-product-grid { grid-template-columns: repeat(2,1fr); }
  .m3-banking { grid-template-columns: repeat(2,1fr); }
  .m3-report-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .m3-shell { width: calc(100% - 28px); }
  .m3-header { width: calc(100% - 28px); min-height: 72px; }
  .m3-brand small { display: none; }
  .m3-orbit { width: 36px; height: 36px; }
  .m3-nav a { padding: 0 9px; font-size: 10px; }
  .m3-nav a:not(.m3-cart-link) { display: none; }
  .m3-footer { width: calc(100% - 28px); display: block; padding: 21px 0; line-height: 1.7; }
  .m3-footer span { display: block; }
  .m3-page-intro { margin: 28px auto 19px; display: block; }
  .m3-page-intro h1 { font-size: 38px; }
  .m3-page-intro p { margin-top: 12px; font-size: 12px; }
  .m3-hero { padding-top: 38px; gap: 25px; }
  .m3-hero h1 { font-size: 52px; }
  .m3-hero-copy > p { font-size: 14px; }
  .m3-journey-card { min-height: 370px; border-radius: 25px; padding: 26px; }
  .m3-route-grid { gap: 12px; }
  .m3-route-card { min-height: 250px; padding: 23px; }
  .m3-route-card h2 { margin-top: 28px; }
  .m3-resume { align-items: flex-start; flex-direction: column; }
  .m3-flipbook { width: min(94vw, calc((100vh - 210px) * .705)); min-width: 300px; }
  .m3-product-copy { padding: 14px 18px 18px; }
  .m3-product-copy h2 { font-size: 20px; }
  .m3-product-copy > p { -webkit-line-clamp: 2; font-size: 9px; }
  .m3-buy-panel { left: 18px; right: 18px; bottom: 16px; padding: 8px; }
  .m3-catalogue-controls { grid-template-columns: 54px minmax(0,1fr) 54px; margin-top: 15px; gap: 7px; }
  .m3-catalogue-controls button span { display: none; }
  .m3-hint { display: none; }
  .m3-order-tabs { margin-top: 0; }
  .m3-scan-card, .m3-manual-card, .m3-shop-card { padding: 18px; }
  .m3-shop-tools { grid-template-columns: 1fr; }
  .m3-product-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .m3-product-card > div { padding: 10px; }
  .m3-product-card h3 { font-size: 11px; }
  .m3-scan-product { grid-template-columns: 88px 1fr; }
  .m3-scan-product img { width: 88px; height: 110px; }
  .m3-cart-panel { padding: 5px 15px; }
  .m3-cart-item { grid-template-columns: 68px 1fr auto; gap: 10px; }
  .m3-cart-item img { width: 68px; height: 65px; }
  .m3-cart-item > b { grid-column: 2/4; }
  .m3-line-quantity { grid-column: 3; grid-row: 1; align-self: center; }
  .m3-checkout-layout { gap: 12px; }
  .m3-form-card, .m3-payment-card { padding: 18px; }
  .m3-form-grid { grid-template-columns: 1fr; }
  .m3-form-grid label.full { grid-column: auto; }
  .m3-quote-strip, .m3-banking { grid-template-columns: 1fr; }
  .m3-confirmation { margin-top: 35px; border-radius: 24px; padding: 36px 20px; }
  .m3-confirmation h1 { font-size: 35px; }
  .m3-report-card { padding: 14px; overflow-x: auto; }
  .m3-report-table { min-width: 620px; }
}

@media print {
  body { background: white; }
  [data-shell], .m3-page-intro, .m3-form-card, .m3-summary-card, .m3-payment-actions, .m3-proof, .m3-consent, .m3-submit-order { display: none !important; }
  .m3-payment-card { border: 0; box-shadow: none; padding: 0; }
  .m3-payment-card::before { content: "BARMAAN DENTAL · QUOTATION"; display: block; margin-bottom: 28px; color: var(--ink); font-size: 22px; font-weight: 900; }
  .m3-print-order { break-inside: avoid; }
}

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

/* =========================================================
   OrderFlow v2.0.0 commercial fulfilment layer
   ========================================================= */
.m3-orderflow-brand img { width: 398px; height: 76px; object-fit: contain; object-position: left center; display: block; }
.m3-catalogue-intro-grid { width: min(1320px, 100%); margin: 34px auto 24px; display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: stretch; }
.m3-page-intro-embedded { margin: 0; width: 100%; align-self: center; }
.m3-seller-identity { height: 100%; min-height: 230px; border: 1px solid rgba(255,255,255,.9); border-radius: 24px; background: rgba(255,255,255,.83); box-shadow: 0 18px 48px rgba(31,44,59,.09); padding: 19px; }
.m3-seller-identity > img { width: 82px; height: 70px; object-fit: contain; object-position: left center; display: block; margin-bottom: 8px; }
.m3-seller-identity > span, .m3-seller-public > span { color: var(--blue); font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.m3-seller-identity h2, .m3-seller-public h2 { margin: 4px 0 8px; font-size: 18px; }
.m3-seller-identity address { color: var(--muted); font-style: normal; font-size: 9px; line-height: 1.45; }
.m3-seller-links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.m3-seller-links a, .m3-action-row a, .m3-action-row button, .m3-action-row form button { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); padding: 0 9px; font-size: 9px; font-weight: 850; }
.m3-seller-links .whatsapp, .m3-action-row a[href*="whatsapp"], .m3-action-row a[href*="channel=whatsapp"] { background: #e9fbf1; color: #12653d; }

.m3-product-page-v2 { grid-template-rows: 34% 66%; }
.m3-product-page-v2 .m3-product-copy { overflow-y: auto; padding-bottom: 18px; }
.m3-product-page-v2 .m3-product-copy > p { -webkit-line-clamp: 7; margin-bottom: 9px; }
.m3-configurator { position: relative; z-index: 4; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 9px; }
.m3-config-field { display: block; margin-bottom: 7px; }
.m3-config-field > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.m3-config-field select { width: 100%; min-height: 34px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); padding: 0 8px; font-size: 9px; font-weight: 750; }
.m3-swatches { display: flex; flex-wrap: wrap; gap: 4px; max-height: 95px; overflow-y: auto; padding: 1px; }
.m3-swatch { min-height: 27px; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 99px; background: white; color: var(--ink); padding: 3px 7px 3px 4px; font-size: 7.5px; }
.m3-swatch i { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; background: var(--swatch); border: 1px solid rgba(35,22,87,.16); box-shadow: inset 0 0 0 2px rgba(255,255,255,.45); }
.m3-swatch b { font-size: 7.5px; white-space: nowrap; }
.m3-swatch.selected { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(8,127,184,.13); background: #f3fbff; }
.m3-fixed-specs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 7px; }
.m3-fixed-specs span { border-radius: 7px; background: #f3f7f7; padding: 5px 7px; color: var(--muted); font-size: 7.5px; }
.m3-fixed-specs b { margin-right: 4px; text-transform: capitalize; color: var(--ink); }
.m3-config-buy-row { display: grid; grid-template-columns: 1fr 100px; gap: 8px; align-items: stretch; }
.m3-config-price { border-radius: 10px; background: #f3f7f7; padding: 7px 9px; min-width: 0; }
.m3-config-price span, .m3-config-price small { display: block; color: var(--muted); font-size: 7px; text-transform: uppercase; font-weight: 850; }
.m3-config-price strong { display: block; margin: 2px 0; font-size: 14px; line-height: 1.1; }
.m3-configurator .m3-quantity { height: 48px; align-self: center; }
.m3-configurator .m3-config-add { width: 100%; min-height: 38px; margin-top: 7px; font-size: 9px; }
.m3-configurator .m3-contact-seller { background: #e9fbf1; color: #12653d; box-shadow: none; }
.m3-config-hint { margin: 5px 0 0 !important; color: var(--muted) !important; font-size: 7.5px !important; line-height: 1.35 !important; }

.m3-modal[hidden] { display: none !important; }
.m3-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 18px; }
.m3-modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(18,16,42,.58); backdrop-filter: blur(6px); }
.m3-modal-card { position: relative; z-index: 2; width: min(820px, 100%); max-height: min(88vh,760px); overflow-y: auto; border-radius: 26px; background: #fff; box-shadow: 0 30px 80px rgba(8,18,37,.28); padding: 24px; }
.m3-modal-close { position: sticky; z-index: 5; top: 0; float: right; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--ink); color: white; font-size: 20px; }
.m3-modal-product { display: grid; grid-template-columns: 260px 1fr; gap: 22px; clear: both; }
.m3-modal-product > img { width: 100%; border-radius: 18px; object-fit: cover; object-position: top; }
.m3-modal-product small { color: var(--blue); font-weight: 900; }
.m3-modal-product h2 { margin: 5px 0 8px; font-size: 30px; letter-spacing: -.04em; }
.m3-modal-product > div > p { color: var(--muted); font-size: 11px; line-height: 1.55; }
.m3-modal .m3-swatches { max-height: 180px; }
.m3-modal .m3-swatch, .m3-modal .m3-swatch b { font-size: 9px; }
.m3-modal .m3-config-add { min-height: 46px; font-size: 11px; }

.m3-check-line { flex-direction: row !important; align-items: center; gap: 9px !important; border-radius: 11px; background: #f2f8f8; padding: 11px 13px; }
.m3-check-line input { width: 18px !important; min-height: 18px !important; margin: 0; }
.m3-check-line span { line-height: 1.4; }
.m3-quote-seller .m3-seller-identity { min-height: 0; display: grid; grid-template-columns: 78px 1fr; gap: 0 14px; margin-bottom: 20px; }
.m3-quote-seller .m3-seller-identity img { grid-row: 1/5; }
.m3-quote-seller .m3-seller-links { grid-column: 2; }

/* Seller operations */
.m3-seller-orders { width: min(1180px,100%); margin: 18px auto 0; display: grid; gap: 15px; }
.m3-seller-order-card { border: 1px solid rgba(255,255,255,.9); border-radius: 24px; background: rgba(255,255,255,.88); box-shadow: 0 18px 48px rgba(31,44,59,.09); padding: 20px; }
.m3-seller-order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 13px; }
.m3-seller-order-head h2 { margin: 6px 0 2px; font-size: 23px; }
.m3-seller-order-head p { margin: 0; color: var(--muted); font-size: 10px; }
.m3-seller-order-head > strong { font-size: 24px; }
.m3-attention-row { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px 0; }
.m3-attention-row span { border-radius: 99px; background: #fff1d1; color: #6a4815; padding: 6px 9px; font-size: 7.5px; font-weight: 900; text-transform: uppercase; }
.m3-seller-tabs-grid { display: grid; grid-template-columns: 1.35fr .85fr 1fr 1fr; gap: 10px; }
.m3-seller-tabs-grid > section, .m3-seller-workflow > section { border-radius: 15px; background: #f5f8f8; padding: 13px; min-width: 0; }
.m3-seller-tabs-grid h3, .m3-seller-workflow h3, .m3-timeline-details h3 { margin: 0 0 8px; font-size: 12px; }
.m3-seller-tabs-grid p { color: var(--muted); font-size: 9px; line-height: 1.45; }
.m3-order-lines { margin: 8px 0; padding: 0; list-style: none; }
.m3-order-lines li { border-bottom: 1px solid var(--line); padding: 7px 0; }
.m3-order-lines li:last-child { border-bottom: 0; }
.m3-order-lines b, .m3-order-lines span { display: block; font-size: 9px; }
.m3-order-lines span { margin-top: 2px; color: var(--muted); }
.m3-code-value { max-height: 58px; overflow: hidden; word-break: break-all; border-radius: 8px; background: white; padding: 7px; font-size: 7px !important; }
.m3-action-row { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.m3-action-row form { display: inline-flex; margin: 0; }
.m3-action-row button { cursor: pointer; }
.m3-seller-workflow { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; gap: 10px; margin-top: 10px; }
.m3-next-actions form button { background: var(--teal); color: #063d50; border-color: transparent; }
.m3-driver-form, .m3-note-form { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.m3-driver-form input, .m3-driver-form select, .m3-note-form input, .m3-note-form select, .m3-note-form textarea, .m3-admin-danger input, .m3-admin-danger select { width: 100%; min-height: 35px; border: 1px solid var(--line); border-radius: 8px; background: white; padding: 7px 8px; font-size: 9px; }
.m3-driver-form label { grid-column: 1/-1; color: var(--muted); font-size: 8px; }
.m3-driver-form button, .m3-note-form button { min-height: 36px; border: 0; border-radius: 8px; background: var(--ink); color: white; font-size: 9px; font-weight: 850; }
.m3-note-form textarea { min-height: 60px; grid-column: 1/-1; resize: vertical; }
.m3-timeline-details { margin-top: 11px; border-top: 1px solid var(--line); padding-top: 10px; }
.m3-timeline-details > summary { cursor: pointer; color: var(--blue); font-size: 10px; font-weight: 900; }
.m3-timeline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.m3-event-list { margin: 0; padding: 0; list-style: none; max-height: 250px; overflow-y: auto; }
.m3-event-list li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.m3-event-list b, .m3-event-list span { display: block; font-size: 8.5px; }
.m3-event-list span { margin-top: 2px; color: var(--muted); }
.m3-event-list p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.m3-admin-danger { margin-top: 14px; border-radius: 12px; background: #fff2f2; padding: 12px; }
.m3-admin-danger p { color: #8b5b63; font-size: 9px; }
.m3-admin-danger form { display: grid; grid-template-columns: 180px 1fr auto; gap: 6px; }
.m3-admin-danger button { border: 0; border-radius: 8px; background: #7b2937; color: white; padding: 0 12px; font-size: 9px; font-weight: 850; }
.m3-report-note.error { color: #7b2937; background: #fff1f1; border-radius: 10px; padding: 10px; }
.m3-inline-form { margin-top: 6px; }
.m3-inline-form button { min-height: 32px; border: 1px solid var(--line); border-radius: 8px; background: white; font-size: 8px; font-weight: 850; }

/* Customer tracking */
.m3-tracking-shell { width: min(1080px, calc(100% - 40px)); }
.m3-tracking-hero { margin: 44px 0 18px; border-radius: 28px; background: var(--ink); color: white; padding: 28px; display: flex; justify-content: space-between; align-items: end; gap: 20px; overflow: hidden; position: relative; }
.m3-tracking-hero::after { content:""; position:absolute; width:240px; height:240px; right:-80px; top:-100px; border-radius:50%; background:var(--teal); box-shadow:-120px 120px 0 var(--pink); opacity:.32; }
.m3-tracking-hero > * { position: relative; z-index: 2; }
.m3-tracking-hero h1 { margin: 7px 0 5px; font-size: clamp(32px,5vw,58px); letter-spacing: -.05em; }
.m3-tracking-hero p { margin:0; color:rgba(255,255,255,.7); }
.m3-tracking-hero aside span { display:block; color:rgba(255,255,255,.62); font-size:8px; text-transform:uppercase; }
.m3-tracking-hero aside strong { display:block; margin-top:4px; font-size:24px; }
.m3-tracking-grid { display:grid; grid-template-columns:1.35fr .65fr; gap:14px; }
.m3-tracking-sidebar { display:grid; gap:14px; align-content:start; }
.m3-tracking-card, .m3-feedback-card, .m3-delivery-confirm-card, .m3-review-card, .m3-driver-card { border:1px solid rgba(255,255,255,.9); border-radius:22px; background:rgba(255,255,255,.88); box-shadow:0 18px 48px rgba(31,44,59,.09); padding:20px; }
.m3-tracking-card h2, .m3-feedback-card h2, .m3-delivery-confirm-card h2, .m3-review-card h2, .m3-driver-card h2 { margin:3px 0 8px; font-size:22px; letter-spacing:-.035em; }
.m3-seller-public > img { width:85px; height:75px; object-fit:contain; object-position:left; }
.m3-progress-list { margin:15px 0 0; padding:0; list-style:none; }
.m3-progress-list li { display:grid; grid-template-columns:24px 1fr; gap:10px; min-height:58px; position:relative; opacity:.38; }
.m3-progress-list li::before { content:""; position:absolute; left:10px; top:22px; bottom:-8px; width:2px; background:#dfe5e6; }
.m3-progress-list li:last-child::before { display:none; }
.m3-progress-list li i { width:22px; height:22px; border-radius:50%; border:2px solid #cfd8da; background:white; }
.m3-progress-list li.reached { opacity:1; }
.m3-progress-list li.reached i { background:var(--teal); border-color:var(--teal); box-shadow:inset 0 0 0 5px white; }
.m3-progress-list b { display:block; font-size:11px; }
.m3-progress-list span { display:block; margin-top:2px; color:var(--muted); font-size:8px; }
.m3-progress-list p { margin:3px 0; color:var(--muted); font-size:8px; }
.m3-small-note { color:var(--muted); font-size:8px !important; line-height:1.45; }
.m3-feedback-card, .m3-delivery-confirm-card, .m3-review-card { width:min(760px,100%); margin:14px auto 0; text-align:center; }
.m3-feedback-card > p, .m3-delivery-confirm-card > p, .m3-review-card > p { color:var(--muted); font-size:11px; line-height:1.55; }
.m3-feedback-card form { max-width:540px; margin:0 auto; }
.m3-rating { display:flex; flex-direction:row-reverse; justify-content:center; gap:4px; }
.m3-rating input { display:none; }
.m3-rating label { color:#cfd2d4; font-size:31px; cursor:pointer; }
.m3-rating input:checked ~ label, .m3-rating label:hover, .m3-rating label:hover ~ label { color:#f0b93f; }
.m3-feedback-card textarea, .m3-delivery-confirm-card textarea, .m3-delivery-confirm-card select { width:100%; min-height:72px; margin-top:9px; border:1px solid var(--line); border-radius:10px; padding:10px; }
.m3-feedback-card button, .m3-delivery-confirm-card button { min-height:40px; margin-top:8px; border:0; border-radius:10px; background:var(--ink); color:white; padding:0 16px; font-weight:850; }
.m3-confirm-actions { display:flex; justify-content:center; gap:8px; align-items:flex-start; }
.m3-confirm-actions details { min-width:260px; border:1px solid var(--line); border-radius:10px; padding:10px; text-align:left; }
.m3-confirm-actions summary { cursor:pointer; font-size:10px; font-weight:850; }
.m3-review-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:12px; }
.m3-review-actions a { min-height:44px; display:inline-flex; align-items:center; border-radius:10px; background:var(--teal); color:#063d50; padding:0 15px; font-size:10px; font-weight:850; }
.m3-order-history-card { width:min(900px,100%); margin:14px auto 0; }

/* Driver */
.m3-driver-shell { width:min(900px,calc(100% - 40px)); }
.m3-driver-hero { margin:42px 0 16px; display:flex; justify-content:space-between; align-items:center; border-radius:25px; background:var(--ink); color:white; padding:24px 28px; }
.m3-driver-hero h1 { margin:5px 0; font-size:38px; letter-spacing:-.04em; }
.m3-driver-hero p { margin:0; color:rgba(255,255,255,.68); }
.m3-driver-hero img { width:95px; height:80px; object-fit:contain; filter:drop-shadow(0 6px 16px rgba(0,0,0,.15)); }
.m3-driver-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.m3-driver-card p { color:var(--muted); font-size:10px; line-height:1.55; }
.m3-driver-guidance { margin-top:14px; border-radius:12px; background:#edf9f7; padding:11px; }
.m3-driver-guidance b { font-size:10px; }
.m3-driver-main { width:100%; min-height:54px; }
.m3-driver-confirm, .m3-driver-failed { margin-top:10px; border:1px solid var(--line); border-radius:12px; padding:11px; }
.m3-driver-confirm summary, .m3-driver-failed summary { cursor:pointer; font-size:10px; font-weight:900; }
.m3-driver-confirm form, .m3-driver-failed form { display:grid; gap:8px; margin-top:10px; }
.m3-driver-confirm label, .m3-driver-failed label { color:var(--muted); font-size:9px; font-weight:850; }
.m3-driver-confirm input, .m3-driver-confirm textarea, .m3-driver-failed select, .m3-driver-failed textarea { width:100%; min-height:40px; margin-top:4px; border:1px solid var(--line); border-radius:9px; background:white; padding:8px; }
.m3-driver-done { border-radius:12px; background:#e9fbf1; padding:14px; }
.m3-driver-order { margin-top:14px; }

/* OrderFlow v2.2 — additive Live Delivery controlled pilot */
.m3-live-delivery {
  --live:#0f9b71;
  --delayed:#d98b13;
  --paused:#7b658f;
  --ended:#6e7781;
  width:min(1080px,100%);
  margin:14px auto;
  padding:20px;
  border:1px solid rgba(51,29,102,.10);
  border-radius:24px;
  background:rgba(255,255,255,.93);
  box-shadow:0 20px 54px rgba(31,44,59,.11);
}
.m3-driver-shell .m3-live-delivery { width:100%; }
.m3-live-head { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-bottom:14px; }
.m3-live-head h2 { margin:4px 0 6px; font-size:25px; letter-spacing:-.04em; }
.m3-live-head p { max-width:610px; margin:0; color:var(--muted); font-size:10px; line-height:1.5; }
.m3-live-state { min-width:170px; display:grid; grid-template-columns:10px 1fr; column-gap:8px; align-items:center; border-radius:14px; background:#f4f6f8; padding:11px 13px; }
.m3-live-state i { width:9px; height:9px; border-radius:50%; background:#b5bdc5; }
.m3-live-state strong { font-size:11px; }
.m3-live-state span { grid-column:2; margin-top:2px; color:var(--muted); font-size:8px; }
.m3-live-delivery[data-state="live"] .m3-live-state i { background:var(--live); box-shadow:0 0 0 5px rgba(15,155,113,.13); animation:m3-live-pulse 1.6s infinite; }
.m3-live-delivery[data-state="delayed"] .m3-live-state i { background:var(--delayed); }
.m3-live-delivery[data-state="paused"] .m3-live-state i { background:var(--paused); }
.m3-live-delivery[data-state="ended"] .m3-live-state i { background:var(--ended); }
.m3-live-delivery.is-nearby { border-color:rgba(15,155,113,.55); box-shadow:0 20px 54px rgba(15,155,113,.14); }
.m3-live-delivery.is-nearby .m3-live-head h2::after { content:" Driver nearby"; display:inline-flex; margin-left:8px; border-radius:999px; background:#dff7ef; color:#086849; padding:4px 8px; font-size:9px; letter-spacing:0; vertical-align:middle; }
.m3-live-layout { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(240px,.65fr); gap:14px; }
.m3-live-map { min-height:360px; overflow:hidden; border-radius:18px; background:#e8ecef; }
.m3-live-summary { border-radius:18px; background:#f6f7f9; padding:17px; }
.m3-live-summary>span { display:block; margin-top:13px; color:var(--muted); font-size:8px; font-weight:900; letter-spacing:.07em; text-transform:uppercase; }
.m3-live-summary>span:first-child { margin-top:0; }
.m3-live-summary>strong { display:block; margin:5px 0 10px; color:var(--ink); font-size:20px; letter-spacing:-.025em; }
.m3-live-summary>p { color:var(--muted); font-size:9px; line-height:1.55; }
.m3-current-direction { margin:7px 0 12px; color:var(--ink) !important; font-size:12px !important; font-weight:900; line-height:1.35 !important; }
.m3-route-cards { display:grid; gap:7px; margin-top:10px; }
.m3-route-cards>p { margin:0; border:1px dashed var(--line); border-radius:11px; padding:10px; color:var(--muted); font-size:9px; line-height:1.45; }
.m3-route-cards article { display:grid; grid-template-columns:34px 1fr; gap:9px; align-items:center; border:1px solid var(--line); border-radius:12px; background:#fff; padding:9px; }
.m3-route-cards article.is-current { border-color:#13bfc4; background:#eefcfc; box-shadow:0 8px 18px rgba(19,191,196,.12); }
.m3-route-cards article>i { display:flex; width:34px; height:34px; align-items:center; justify-content:center; border-radius:10px; background:#eeeff4; color:var(--ink); font-size:21px; font-style:normal; font-weight:900; }
.m3-route-cards article.is-current>i { background:#13bfc4; color:#082c3a; }
.m3-route-cards article span,.m3-route-cards article b,.m3-route-cards article small { display:block; }
.m3-route-cards article span { color:#087fae; font-size:7px; font-weight:900; letter-spacing:.08em; }
.m3-route-cards article b { margin:2px 0; color:var(--ink); font-size:9px; line-height:1.3; }
.m3-route-cards article small { color:var(--muted); font-size:8px; }
.m3-live-actions { display:grid; gap:8px; margin-top:15px; }
.m3-live-actions button,.m3-live-actions a,.m3-live-summary>[data-arrival-alert] { width:100%; min-height:44px; display:flex; align-items:center; justify-content:center; border-radius:11px; padding:9px 12px; font-size:9px; font-weight:900; text-align:center; }
.m3-live-actions button { border:0; cursor:pointer; }
.m3-live-actions .m3-primary { background:var(--ink); color:#fff; }
.m3-live-actions .m3-secondary,.m3-live-summary>[data-arrival-alert] { border:1px solid var(--line); background:#fff; color:var(--ink); }
.m3-live-actions .m3-live-stop { border:1px solid #efc4ca; background:#fff5f6; color:#8d2434; }
.m3-live-summary>[data-arrival-alert] { margin-top:14px; cursor:pointer; }
.m3-live-error { border-radius:10px; background:#fff0f1; color:#8d2434 !important; padding:9px 10px; font-weight:800; }
.m3-live-privacy { margin-top:13px; border-top:1px solid var(--line); padding-top:11px; font-size:8px !important; }
.m3-live-driver.wake-lock-active .m3-live-privacy::before { content:"Screen awake · "; color:#08724f; font-weight:900; }
.m3-live-driver.wake-lock-unavailable .m3-live-privacy::before { content:"Keep this screen open · "; color:#9a6200; font-weight:900; }
.leaflet-container { font-family:inherit; }
.leaflet-control-attribution { font-size:8px; }
@keyframes m3-live-pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(.78);opacity:.68} }

@media (max-width: 950px) {
  .m3-catalogue-intro-grid { grid-template-columns: 220px 1fr; }
  .m3-seller-tabs-grid { grid-template-columns: 1fr 1fr; }
  .m3-seller-workflow { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .m3-orderflow-brand img { width: 278px; height: 60px; }
  .m3-catalogue-intro-grid { grid-template-columns: 1fr; margin-top:18px; }
  .m3-seller-identity { min-height:0; }
  .m3-page-intro-embedded { display:block; }
  .m3-product-page-v2 { grid-template-rows: 30% 70%; }
  .m3-modal-product { grid-template-columns: 1fr; }
  .m3-modal-product > img { max-height:220px; }
  .m3-seller-tabs-grid, .m3-timeline-grid, .m3-tracking-grid, .m3-driver-grid { grid-template-columns:1fr; }
  .m3-admin-danger form { grid-template-columns:1fr; }
  .m3-tracking-hero { align-items:flex-start; flex-direction:column; }
  .m3-driver-hero h1 { font-size:30px; }
  .m3-driver-hero img { width:70px; height:60px; }
  .m3-confirm-actions { flex-direction:column; align-items:stretch; }
  .m3-live-delivery { padding:14px; border-radius:19px; }
  .m3-live-head { display:grid; gap:12px; }
  .m3-live-state { min-width:0; }
  .m3-live-layout { grid-template-columns:1fr; }
  .m3-live-map { min-height:310px; }
}

@media print {
  .m3-quote-seller { display:block !important; }
  .m3-quote-seller .m3-seller-links { display:none !important; }
  .m3-payment-card::before { content:"ORDERFLOW · BARMAAN DENTAL · QUOTATION"; }
}

.m3-commercial-intelligence{width:min(1080px,100%);margin:10px auto 0;display:grid;grid-template-columns:repeat(3,1fr) 1.5fr;gap:10px}
.m3-commercial-intelligence>article{border-radius:16px;background:rgba(255,255,255,.84);border:1px solid rgba(255,255,255,.9);padding:16px;box-shadow:0 12px 30px rgba(31,44,59,.06)}
.m3-commercial-intelligence span{display:block;color:var(--muted);font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.m3-commercial-intelligence strong{display:block;margin-top:6px;font-size:24px}
.m3-demand-card ol{margin:8px 0 0;padding-left:18px;color:var(--muted);font-size:8px;line-height:1.45}
.m3-demand-card li{margin:3px 0}.m3-demand-card li b{color:var(--ink)}
.m3-admin-actions{margin-bottom:10px}.m3-admin-actions form button{background:#fff;color:#7b2937;border:1px solid rgba(123,41,55,.25)}
@media(max-width:900px){.m3-commercial-intelligence{grid-template-columns:1fr 1fr}.m3-demand-card{grid-column:1/-1}}
@media(max-width:560px){.m3-commercial-intelligence{grid-template-columns:1fr}}

/* OrderFlow v2.1 funnel repair + mobile-first commerce */
.m3-catalogue-shell-v21{width:min(1540px,calc(100% - 36px))}
.m3-catalogue-intro-v21{display:grid;grid-template-columns:minmax(320px,620px) minmax(280px,430px);justify-content:space-between;gap:32px;align-items:start;margin:28px auto 14px}
.m3-catalogue-intro-left h1{font-size:clamp(44px,5.2vw,78px);line-height:.96;letter-spacing:-.055em;margin:8px 0 18px;max-width:620px}
.m3-catalogue-proof{justify-self:end;margin:76px 0 0;color:var(--muted);font-size:13px;line-height:1.65;max-width:390px}
.m3-catalogue-intro-v21 #seller-identity-slot{max-width:570px}
.m3-catalogue-intro-v21 .m3-seller-identity{display:grid;grid-template-columns:95px 1fr;gap:14px;padding:14px 16px;align-items:center}
.m3-catalogue-intro-v21 .m3-seller-identity img{width:82px;height:70px}
.m3-catalogue-intro-v21 .m3-seller-identity address{font-size:8.5px;line-height:1.42}
.m3-catalogue-commerce-grid{display:grid;grid-template-columns:minmax(620px,1fr) 340px;gap:24px;align-items:start;margin-top:8px}
.m3-catalogue-centre .m3-catalogue-wrap{margin-top:0}
.m3-catalogue-centre .m3-flipbook{width:min(650px,calc((100vh - 170px)*.705),calc(100vw - 430px));min-width:520px}
.m3-catalogue-side{position:sticky;top:18px;display:grid;gap:14px}
.m3-promo-live-panel,.m3-running-cart{background:rgba(255,255,255,.88);border:1px solid rgba(35,22,87,.09);border-radius:22px;padding:17px;box-shadow:0 16px 44px rgba(31,44,59,.08)}
.m3-panel-head{display:flex;align-items:end;justify-content:space-between;gap:10px;margin-bottom:10px}.m3-panel-head b{font-size:16px}
#live-promotions{display:grid;gap:8px}#live-promotions>p{font-size:10px;color:var(--muted)}#live-promotions article{position:relative;border-radius:14px;background:#fff4f4;border:1px solid #ffd6d6;padding:11px 12px}#live-promotions article>span{display:inline-flex;background:#d62828;color:#fff;border-radius:999px;padding:3px 7px;font-size:8px;font-weight:950}#live-promotions article b,#live-promotions article strong,#live-promotions article small{display:block;margin-top:4px}#live-promotions article b{font-size:11px}#live-promotions article strong{font-size:13px;color:#a0161b}#live-promotions article small{font-size:8px;color:var(--muted)}
#running-cart-lines{display:grid;gap:0;max-height:330px;overflow:auto}#running-cart-lines>div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}#running-cart-lines span{min-width:0}#running-cart-lines b,#running-cart-lines small,#running-cart-lines em{display:block}#running-cart-lines b{font-size:10px}#running-cart-lines small{font-size:8px;color:var(--muted);margin-top:2px}#running-cart-lines em{font-size:8px;color:#a0161b;font-style:normal;margin-top:3px}#running-cart-lines strong{font-size:11px;white-space:nowrap}.m3-running-cart-total{display:flex;justify-content:space-between;align-items:end;padding:14px 0}.m3-running-cart-total span{font-size:9px;color:var(--muted)}.m3-running-cart-total strong{font-size:22px}.m3-running-cart .m3-primary-link{width:100%}
.m3-mobile-cart-bar{display:none}.m3-line-promo{display:block;color:#a0161b;font-size:8px;font-style:normal;font-weight:800;margin:3px 0 5px}
.m3-footer-acquisition{display:inline-flex;align-items:center;gap:7px;margin-top:5px;font-weight:800;color:var(--blue)}
.m3-seller-tabs{width:min(1180px,100%);margin:12px auto 18px;display:flex;gap:7px;flex-wrap:wrap}.m3-seller-tabs a{padding:9px 13px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:9px;font-weight:850;color:var(--ink)}.m3-seller-tabs a.active{background:var(--ink);color:#fff}
.m3-bulk-table-wrap,.m3-customer-history,.m3-commercial-settings-card,.m3-promotions-manager{width:min(1180px,100%);margin:0 auto 18px;background:rgba(255,255,255,.88);border-radius:20px;padding:18px;box-shadow:var(--shadow)}
.m3-bulk-table{width:100%;border-collapse:collapse;min-width:850px}.m3-bulk-table th,.m3-bulk-table td{padding:10px;border-bottom:1px solid var(--line);font-size:9px;text-align:left}.m3-bulk-table th{font-size:7.5px;color:var(--muted);text-transform:uppercase}.m3-bulk-scroll{overflow:auto}
.m3-promo-editor-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.m3-promo-editor-grid input,.m3-promo-editor-grid select{min-height:40px;border:1px solid var(--line);border-radius:9px;padding:8px;background:#fff}.m3-promo-editor-grid label{font-size:8px;font-weight:800;color:var(--muted)}.m3-promo-editor-grid label>*{display:block;width:100%;margin-top:4px}.m3-promo-row{border-top:1px solid var(--line);padding-top:14px;margin-top:14px}.m3-commercial-settings-card form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.m3-commercial-settings-card label{font-size:9px;font-weight:800}.m3-commercial-settings-card input[type=text]{min-height:40px;border:1px solid var(--line);border-radius:9px;padding:8px}
.m3-tracking-confirm-top{margin-bottom:12px;background:linear-gradient(135deg,#e7fbf8,#fff);border:2px solid var(--teal)}.m3-tracking-confirm-top h2{margin:5px 0 7px}.m3-review-window-note{font-size:9px;color:var(--muted)}
@media(max-width:1050px){.m3-catalogue-commerce-grid{grid-template-columns:1fr}.m3-catalogue-side{position:static;grid-template-columns:1fr 1fr}.m3-catalogue-centre .m3-flipbook{width:min(640px,94vw);min-width:0}.m3-promo-editor-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){
 .m3-orderflow-brand img{width:260px;height:58px}.m3-catalogue-shell-v21{width:calc(100% - 20px);padding-bottom:84px}.m3-catalogue-intro-v21{grid-template-columns:1fr;margin-top:14px;gap:4px}.m3-catalogue-intro-left h1{font-size:41px;margin-bottom:10px}.m3-catalogue-proof{justify-self:start;margin:4px 0 10px;font-size:10px}.m3-catalogue-intro-v21 #seller-identity-slot{order:3}.m3-catalogue-intro-v21 .m3-seller-identity{grid-template-columns:65px 1fr;padding:10px}.m3-catalogue-intro-v21 .m3-seller-identity img{width:58px;height:50px}.m3-catalogue-intro-v21 .m3-seller-identity address{font-size:7.5px}.m3-catalogue-commerce-grid{display:block}.m3-catalogue-side{display:block}.m3-running-cart{display:none}.m3-promo-live-panel{margin:10px 0}.m3-catalogue-centre .m3-flipbook{width:calc(100vw - 24px);max-width:none;min-width:0}.m3-product-page-v2{grid-template-rows:31% 69%}.m3-product-page-v2 .m3-product-copy>p{-webkit-line-clamp:8;font-size:9.5px}.m3-mobile-cart-bar{position:fixed;z-index:90;left:10px;right:10px;bottom:10px;display:flex;align-items:center;justify-content:space-between;border-radius:16px;background:var(--ink);color:#fff;padding:12px 15px;box-shadow:0 14px 36px rgba(35,22,87,.28);transform:translateY(130%);transition:.2s}.m3-mobile-cart-bar.has-items{transform:none}.m3-mobile-cart-bar span b,.m3-mobile-cart-bar span small{display:block}.m3-mobile-cart-bar small{opacity:.72;font-size:8px;margin-top:2px}.m3-mobile-cart-bar strong{font-size:17px}.m3-promo-editor-grid{grid-template-columns:1fr}.m3-tracking-hero{grid-template-columns:1fr}.m3-tracking-confirm-top{order:-1}
}

/* OrderFlow v2.1.1 — seller mutation response hardening */
.m3-seller-action-toast{
  position:fixed;z-index:9999;right:18px;top:18px;max-width:min(420px,calc(100vw - 36px));
  padding:12px 15px;border-radius:14px;background:#231657;color:#fff;font-size:11px;font-weight:800;
  box-shadow:0 18px 48px rgba(35,22,87,.25);opacity:0;transform:translateY(-10px);pointer-events:none;
  transition:opacity .16s ease,transform .16s ease
}
.m3-seller-action-toast.show{opacity:1;transform:none}
.m3-seller-action-toast.working{background:#087fae}
.m3-seller-action-toast.success{background:#12653d}
.m3-seller-action-toast.warning{background:#8a5a00}
.m3-seller-action-toast.error{background:#8d2434}
.m3-seller-page form[method="post"] button:disabled{opacity:.62;cursor:wait}
.m3-seller-order-card{scroll-margin-top:18px}

/* OrderFlow v2.1.2 — catalogue composition + live running total repair */
@media(min-width:701px){
  .m3-catalogue-intro-v21{
    grid-template-columns:minmax(0,1fr) 390px;
    gap:24px;
    align-items:start;
    margin:24px auto 8px;
  }
  .m3-catalogue-intro-left h1{
    margin-bottom:4px;
    max-width:690px;
  }
  .m3-catalogue-intro-right{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:10px;
  }
  .m3-catalogue-proof{
    justify-self:auto;
    margin:8px 0 0;
    max-width:360px;
    font-size:11px;
    line-height:1.5;
    text-align:left;
  }
  .m3-catalogue-intro-v21 #seller-identity-slot{
    width:360px;
    max-width:360px;
  }
  .m3-catalogue-intro-v21 .m3-seller-identity{
    width:100%;
    height:auto;
    min-height:0;
    display:grid;
    grid-template-columns:76px minmax(0,1fr);
    grid-template-areas:
      "logo role"
      "logo name"
      "logo address"
      "links links";
    column-gap:12px;
    row-gap:2px;
    padding:12px 14px;
    align-items:start;
    border-radius:18px;
  }
  .m3-catalogue-intro-v21 .m3-seller-identity>img{
    grid-area:logo;
    width:68px;
    height:58px;
    margin:0;
  }
  .m3-catalogue-intro-v21 .m3-seller-identity>span{grid-area:role;align-self:end}
  .m3-catalogue-intro-v21 .m3-seller-identity>h2{grid-area:name;margin:2px 0 2px;font-size:15px}
  .m3-catalogue-intro-v21 .m3-seller-identity>address{grid-area:address;font-size:7.6px;line-height:1.35}
  .m3-catalogue-intro-v21 .m3-seller-links{
    grid-area:links;
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-top:8px;
  }
  .m3-catalogue-intro-v21 .m3-seller-links a{font-size:7.5px;min-height:31px;padding:7px 9px}

  .m3-catalogue-commerce-grid{
    grid-template-columns:minmax(0,1fr) 300px;
    gap:18px;
    margin-top:2px;
  }
  .m3-catalogue-centre{
    display:flex;
    justify-content:center;
    min-width:0;
  }
  .m3-catalogue-centre .m3-catalogue-wrap{width:100%;margin:0 auto}
  .m3-catalogue-centre .m3-flipbook{
    width:min(800px,calc(100vw - 370px));
    min-width:600px;
  }
  .m3-catalogue-side{width:300px}
}

@media(max-width:1050px) and (min-width:701px){
  .m3-catalogue-intro-v21{grid-template-columns:minmax(0,1fr) 340px}
  .m3-catalogue-intro-v21 #seller-identity-slot{width:340px;max-width:340px}
  .m3-catalogue-commerce-grid{grid-template-columns:1fr}
  .m3-catalogue-side{width:auto;position:static;grid-template-columns:1fr 1fr}
  .m3-catalogue-centre .m3-flipbook{width:min(760px,94vw);min-width:0}
}

@media(max-width:700px){
  .m3-catalogue-intro-right{display:flex;flex-direction:column;gap:6px}
  .m3-catalogue-intro-v21 #seller-identity-slot{width:100%;max-width:none}
  .m3-catalogue-intro-v21 .m3-seller-identity{height:auto;min-height:0}
}

.m3-driver-handover-note{padding:14px 16px;border-radius:14px;background:rgba(14,190,190,.08);border:1px solid rgba(14,190,190,.18)}
.m3-driver-handover-note b{display:block;color:var(--ink);font-size:10px;margin-bottom:4px}
.m3-driver-handover-note p{margin:0;color:var(--muted);font-size:8px;line-height:1.5}

/* OrderFlow v2.3.0 · additive inventory controls */
.m3-stock-shell{padding-bottom:48px}.m3-inventory-master,.m3-inventory-notice,.m3-preorder-ready-panel,.m3-stock-alerts,.m3-inventory-table-card{background:#fff;border:1px solid #e4e8ed;border-radius:22px;padding:24px;margin:18px 0;box-shadow:0 12px 34px rgba(28,22,69,.06)}.m3-inventory-master{display:flex;justify-content:space-between;gap:28px;align-items:center}.m3-inventory-master.is-on{border-color:#76d6c8;background:linear-gradient(135deg,#fff,#f0fbf8)}.m3-inventory-master.is-off{border-color:#e6d7a8;background:linear-gradient(135deg,#fff,#fffaf0)}.m3-inventory-master h2,.m3-inventory-toolbar h2,.m3-preorder-ready-panel h2,.m3-stock-alerts h2{margin:5px 0 8px;color:#231657}.m3-inventory-master p,.m3-inventory-toolbar p,.m3-inventory-notice p{margin:0;color:#5f6870;line-height:1.55}.m3-inventory-readiness{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.m3-inventory-readiness article{background:#f5f8f9;border:1px solid #e7ecef;border-radius:18px;padding:18px}.m3-inventory-readiness span{display:block;color:#707a82;font-size:12px;text-transform:uppercase;letter-spacing:.05em}.m3-inventory-readiness strong{display:block;color:#231657;font-size:27px;margin-top:5px}.m3-inventory-notice{border-left:5px solid #e2ad37}.m3-stock-alert-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.m3-stock-alert-grid article{display:flex;flex-direction:column;gap:4px;background:#fff8e8;border:1px solid #f0deb4;border-radius:15px;padding:15px}.m3-stock-alert-grid article.out{background:#fff0f0;border-color:#efc5c5}.m3-stock-alert-grid b{color:#231657}.m3-stock-alert-grid span,.m3-stock-alert-grid small{color:#68727a}.m3-stock-alert-grid strong{color:#9b6710}.m3-stock-alert-grid article.out strong{color:#a52a2a}.m3-preorder-ready-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:15px 0;border-top:1px solid #eceff2}.m3-preorder-ready-row:first-of-type{border-top:0}.m3-preorder-ready-row div{display:flex;flex-direction:column;gap:3px}.m3-preorder-ready-row b{color:#231657}.m3-preorder-ready-row span,.m3-preorder-ready-row small{color:#667078}.m3-inventory-toolbar{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:20px}.m3-inventory-toolbar form{display:flex;gap:8px;min-width:min(430px,100%)}.m3-inventory-toolbar input{flex:1}.m3-inventory-scroll{overflow:auto}.m3-inventory-table{width:100%;border-collapse:separate;border-spacing:0;min-width:1120px}.m3-inventory-table th{padding:10px 10px;text-align:left;font-size:11px;letter-spacing:.045em;text-transform:uppercase;color:#69747c;border-bottom:1px solid #dfe5e8;white-space:nowrap}.m3-inventory-table td{padding:12px 10px;border-bottom:1px solid #edf0f2;vertical-align:middle}.m3-inventory-table td:first-child{min-width:270px}.m3-inventory-table td b{display:block;color:#231657}.m3-inventory-table td small{display:block;color:#758087;line-height:1.35;margin-top:3px}.m3-inventory-table input{width:100%;min-width:88px}.m3-inventory-table tr.not-configured{background:#fffaf0}.m3-money-input{display:flex;align-items:center;border:1px solid #d7dde2;border-radius:9px;background:#fff;overflow:hidden}.m3-money-input span{padding-left:10px;color:#667078}.m3-money-input input{border:0!important;box-shadow:none!important;padding-left:5px!important}.m3-stock-status{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:800;letter-spacing:.04em;white-space:nowrap;background:#f0f1f3;color:#59636b}.m3-stock-status.in_stock{background:#e9f8f4;color:#167460}.m3-stock-status.low_stock{background:#fff4d8;color:#95620c}.m3-stock-status.out_of_stock{background:#fdeaea;color:#a02626}.m3-preorder-disclosure{margin:14px 0;padding:15px 17px;border-radius:14px;background:#fff6df;border:1px solid #efd69a;color:#654915;line-height:1.5}.m3-preorder-disclosure b{display:block;color:#5b3b00;margin-bottom:4px}.m3-stock-inline{display:flex;align-items:center;gap:7px;margin-top:10px;font-size:12px;font-weight:700}.m3-stock-inline.in{color:#21705f}.m3-stock-inline.low{color:#9a6814}.m3-stock-inline.preorder{color:#9b3c2f}.m3-config-preorder{font-size:12px;line-height:1.45;padding:10px 12px;border-radius:11px;background:#fff7e6;color:#744c00;margin:9px 0}.m3-line-preorder{display:block;color:#9b5c11;font-size:11px;font-weight:700;margin-top:3px}
@media(max-width:820px){.m3-inventory-master,.m3-inventory-toolbar{align-items:stretch;flex-direction:column}.m3-inventory-readiness{grid-template-columns:repeat(2,minmax(0,1fr))}.m3-stock-alert-grid{grid-template-columns:1fr}.m3-inventory-toolbar form{min-width:0}.m3-preorder-ready-row{align-items:stretch;flex-direction:column}}

/* v2.4.0 · POS/CRM mobile-first surfaces used by seller-pos.php + seller-crm.php */
.m3-pos-intro p,.m3-crm-shell .m3-page-intro p{max-width:660px;color:var(--muted);line-height:1.55}.m3-pos-inventory-note{margin:0 auto 16px;padding:13px 16px;border-radius:14px;background:#fff7df;border:1px solid #efd89e;color:#674a0c}.m3-pos-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(330px,.72fr);gap:18px;align-items:start}.m3-pos-products,.m3-pos-cart,.m3-crm-list,.m3-crm-detail,.m3-prepared-card{background:#fff;border:1px solid #e6e8ed;border-radius:22px;box-shadow:0 12px 34px rgba(28,22,69,.06)}.m3-pos-products{padding:16px}.m3-pos-search{display:flex;gap:12px;align-items:center;margin-bottom:14px}.m3-pos-search input{flex:1;font-size:16px}.m3-pos-search span{font-size:11px;color:var(--muted);white-space:nowrap}.m3-pos-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.m3-pos-product{appearance:none;border:1px solid #e6e8ed;background:#fff;border-radius:17px;padding:10px;display:grid;grid-template-columns:66px minmax(0,1fr) 34px;gap:10px;align-items:center;text-align:left;color:#231657;cursor:pointer;min-height:88px}.m3-pos-product:hover{border-color:#10bec0;box-shadow:0 7px 22px rgba(16,190,192,.12)}.m3-pos-product-img{width:66px;height:66px;border-radius:13px;background:#f5f4f8;overflow:hidden;display:grid;place-items:center}.m3-pos-product-img img{width:100%;height:100%;object-fit:contain}.m3-pos-product-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.m3-pos-product-copy small{font-size:9px;color:#7b7f87;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.m3-pos-product-copy b{font-size:13px;line-height:1.22}.m3-pos-product-copy em{font-style:normal;font-weight:850;font-size:14px}.m3-pos-product-copy i{font-style:normal;font-size:9px;color:#19705e}.m3-pos-product-copy i.low{color:#95620c}.m3-pos-product-copy i.out{color:#a02626}.m3-pos-add{width:30px;height:30px;border-radius:50%;background:#231657;color:#fff;display:grid;place-items:center;font-size:20px}.m3-pos-cart{padding:17px;position:sticky;top:12px}.m3-pos-cart-head{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #eceff2;padding-bottom:12px}.m3-pos-cart-head small{font-size:8px;color:#777}.m3-pos-cart-head h2{margin:2px 0 0;font-size:20px}.m3-pos-cart-head button{padding:7px 9px;font-size:9px}.m3-pos-cart-lines{max-height:300px;overflow:auto}.m3-pos-empty{color:#7d858b;font-size:12px;padding:15px 0}.m3-pos-cart-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:11px 0;border-bottom:1px solid #edf0f2}.m3-pos-cart-line>span{display:flex;flex-direction:column;gap:2px}.m3-pos-cart-line b{font-size:12px}.m3-pos-cart-line small{font-size:9px;color:#7a8389}.m3-pos-cart-line>div{display:flex;align-items:center;gap:7px}.m3-pos-cart-line>div button{width:28px;height:28px;border-radius:50%;padding:0}.m3-pos-cart-line em{grid-column:1/-1;text-align:right;font-style:normal;font-weight:800;font-size:12px}.m3-pos-customer{display:grid;gap:8px}.m3-pos-customer h3{margin:3px 0 0}.m3-pos-actions{display:grid;gap:8px;margin-top:13px}.m3-pos-actions button{width:100%;min-height:46px}.m3-pos-dialog{width:min(560px,calc(100vw - 24px));border:0;border-radius:24px;padding:0;box-shadow:0 24px 80px rgba(15,11,35,.32)}.m3-pos-dialog::backdrop{background:rgba(16,11,35,.55);backdrop-filter:blur(4px)}.m3-pos-dialog>form{padding:24px;display:grid;gap:12px}.m3-pos-dialog h2{margin:0;color:#231657}.m3-dialog-close{position:absolute;right:13px;top:13px;width:34px;height:34px;border-radius:50%;padding:0}.m3-payment-options{display:grid;gap:8px}.m3-payment-options label{display:flex;gap:10px;align-items:flex-start;border:1px solid #e2e5e9;border-radius:14px;padding:12px;cursor:pointer}.m3-payment-options input{margin-top:3px}.m3-payment-options span{display:flex;flex-direction:column;gap:2px}.m3-payment-options small{color:#70777c;font-size:10px}.m3-pos-confirm{display:flex!important;align-items:flex-start;gap:8px!important;background:#f5f8f8;border-radius:12px;padding:11px!important}.m3-pos-confirm input{width:auto!important;margin-top:3px}.m3-pos-help{font-size:10px;color:#717980;line-height:1.45;margin:0}.m3-pos-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.m3-pos-dialog label{display:grid;gap:5px;font-size:11px;font-weight:750}.m3-pos-dialog input,.m3-pos-dialog textarea{width:100%}
.m3-crm-layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:16px;align-items:start}.m3-crm-list{padding:10px;max-height:78vh;overflow:auto;position:sticky;top:12px}.m3-crm-search{padding:4px 4px 10px}.m3-crm-search input{width:100%}.m3-crm-person{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;padding:10px;border-radius:13px;color:#231657;text-decoration:none;border:1px solid transparent}.m3-crm-person:hover,.m3-crm-person.active{background:#f5f3fa;border-color:#e1dceb}.m3-crm-person>span{width:38px;height:38px;border-radius:50%;background:#231657;color:#fff;display:grid;place-items:center;font-size:13px;font-weight:900}.m3-crm-person div{display:flex;flex-direction:column;gap:2px;min-width:0}.m3-crm-person b{font-size:12px}.m3-crm-person small{font-size:9px;color:#777;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.m3-crm-person em{font-size:9px;color:#0c807e;font-style:normal}.m3-crm-detail{padding:20px}.m3-crm-hero{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.m3-crm-hero h2{font-size:28px;margin:4px 0}.m3-crm-hero p{font-size:11px;color:#6d757c;line-height:1.5}.m3-crm-actions{display:flex;gap:7px;flex-wrap:wrap}.m3-crm-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:18px 0}.m3-crm-metrics article{background:#f6f8f9;border-radius:14px;padding:13px}.m3-crm-metrics span{font-size:8px;text-transform:uppercase;color:#707980;display:block}.m3-crm-metrics strong{font-size:18px;color:#231657;display:block;margin-top:4px}.m3-crm-compose,.m3-crm-timeline,.m3-crm-notes{margin-top:15px;border-top:1px solid #e8ebee;padding-top:15px}.m3-crm-compose h3,.m3-crm-timeline h3,.m3-crm-notes h3{margin:0 0 10px}.m3-crm-compose form,.m3-crm-notes form{display:grid;gap:8px}.m3-crm-compose label{display:grid;gap:4px;font-size:10px;font-weight:750}.m3-crm-compose input,.m3-crm-compose textarea,.m3-crm-notes textarea{width:100%}.m3-crm-timeline article{display:grid;grid-template-columns:80px minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid #edf0f2}.m3-crm-timeline article>span{font-size:8px;color:#777;text-transform:uppercase}.m3-crm-timeline article div{display:flex;flex-direction:column;gap:2px}.m3-crm-timeline article b{font-size:11px}.m3-crm-timeline article small{font-size:9px;color:#777}.m3-crm-timeline article>strong{font-size:11px}.m3-crm-notes blockquote{margin:10px 0 0;padding:10px 12px;border-left:3px solid #10bec0;background:#f6f8f9}.m3-crm-notes blockquote p{margin:0 0 5px;font-size:11px}.m3-crm-notes blockquote small{font-size:9px;color:#737c82}.m3-prepared-shell{max-width:760px;padding-top:28px}.m3-prepared-card{padding:25px}.m3-prepared-card>p{color:#687279;line-height:1.55}.m3-prepared-lines{margin:18px 0}.m3-prepared-lines>div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #edf0f2}.m3-prepared-lines span{display:flex;flex-direction:column;gap:2px}.m3-prepared-lines small{color:#777}.m3-prepared-card form{display:grid;gap:10px;margin-top:18px}.m3-prepared-card form label{display:grid;gap:4px;font-size:11px;font-weight:750}.m3-prepared-card input,.m3-prepared-card textarea{width:100%}#prepared-message.success{color:#167460}#prepared-message.error{color:#a02626}
@media(max-width:980px){.m3-pos-layout,.m3-crm-layout{grid-template-columns:1fr}.m3-pos-cart,.m3-crm-list{position:static}.m3-crm-list{max-height:340px}.m3-crm-metrics{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.m3-pos-product-grid{grid-template-columns:1fr}.m3-pos-products{padding:10px}.m3-pos-cart{padding:14px}.m3-pos-product{grid-template-columns:58px minmax(0,1fr) 32px}.m3-pos-product-img{width:58px;height:58px}.m3-pos-form-grid{grid-template-columns:1fr}.m3-crm-detail{padding:14px}.m3-crm-hero{flex-direction:column}.m3-crm-metrics{grid-template-columns:1fr 1fr}.m3-crm-timeline article{grid-template-columns:65px minmax(0,1fr)}.m3-crm-timeline article>strong{grid-column:2}.m3-pos-search{align-items:stretch;flex-direction:column}.m3-pos-search span{padding-left:3px}}

/* OrderFlow v2.4.1 · search-first mobile POS refinement */
.m3-pos-layout-searchfirst{grid-template-columns:minmax(0,1.35fr) minmax(330px,.65fr);gap:20px}
.m3-pos-search-panel{padding:22px;border-radius:40px;overflow:hidden}
.m3-pos-search-hero h2{font-size:clamp(25px,3vw,38px);margin:5px 0 6px;color:#231657;letter-spacing:-.035em}
.m3-pos-search-hero>p{margin:0 0 18px;color:#687279;line-height:1.5}
.m3-pos-searchbox{display:grid;grid-template-columns:28px minmax(0,1fr) 36px;align-items:center;gap:7px;background:#f7f8fa;border:1px solid #dfe4e8;border-radius:24px;padding:7px 9px 7px 14px;transition:.2s ease;box-shadow:inset 0 1px 0 rgba(255,255,255,.75)}
.m3-pos-searchbox:focus-within{background:#fff;border-color:#10bec0;box-shadow:0 0 0 4px rgba(16,190,192,.10),0 12px 28px rgba(35,22,87,.07)}
.m3-pos-searchbox>span{font-size:25px;color:#776f96;line-height:1}
.m3-pos-searchbox input{width:100%;border:0!important;background:transparent!important;box-shadow:none!important;font-size:16px;padding:13px 4px!important;color:#231657;outline:0}
.m3-pos-searchbox input::placeholder{color:#8e9298}
.m3-pos-searchbox button{width:34px;height:34px;border:0;border-radius:50%;padding:0;background:#eceaf2;color:#4e426e;font-size:22px;line-height:1;display:none;place-items:center;cursor:pointer}
.m3-pos-searchbox button.show{display:grid}
.m3-pos-search-meta{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:9px 5px 0;font-size:10px;color:#788087}
.m3-pos-search-results{margin-top:14px;max-height:63vh;overflow:auto;padding-right:3px;grid-template-columns:1fr}
.m3-pos-search-results .m3-pos-product{border-radius:22px;min-height:82px;grid-template-columns:58px minmax(0,1fr) 34px;background:#fff}
.m3-pos-search-results .m3-pos-product-img{width:58px;height:58px;border-radius:16px}
.m3-pos-search-results .m3-pos-product-copy b{font-size:13px}
.m3-pos-search-results .m3-pos-product-copy small{font-size:9px}
.m3-pos-search-results .m3-pos-product-copy em{font-size:14px}
.m3-pos-product.is-added{border-color:#10bec0;background:#f2fbfa;transform:scale(.995)}
.m3-pos-no-results{margin-top:14px;border:1px dashed #d9dde2;background:#fafbfc;border-radius:22px;padding:24px;text-align:center;display:grid;gap:5px;color:#6d757c}
.m3-pos-no-results b{color:#231657}
.m3-pos-cart{border-radius:40px;padding:22px}
.m3-pos-cart-lines{max-height:250px}
.m3-pos-customer input,.m3-pos-payment button{border-radius:18px}
.m3-pos-payment{display:grid;gap:10px;margin-top:14px}
.m3-fnb-pay{border-radius:22px;padding:15px 16px;background:#f7f8fa;border:1px solid #e7eaed}
.m3-fnb-pay b{color:#231657}.m3-fnb-pay p{margin:5px 0 0;color:#6d757c;font-size:10px;line-height:1.5}

.m3-pos-add-product-v241{margin:24px 0 10px;background:#fff;border:1px solid #e4e8ed;border-radius:40px;box-shadow:0 12px 34px rgba(28,22,69,.06);overflow:hidden}
.m3-pos-add-product-v241>summary{list-style:none;cursor:pointer;padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;color:#231657}
.m3-pos-add-product-v241>summary::-webkit-details-marker{display:none}
.m3-pos-add-product-v241>summary span{display:grid;gap:4px}.m3-pos-add-product-v241>summary b{font-size:18px}.m3-pos-add-product-v241>summary small{color:#778087;font-size:10px;font-weight:500}
.m3-pos-add-product-v241>summary i{font-style:normal;width:36px;height:36px;border-radius:50%;background:#f2f0f7;display:grid;place-items:center;font-size:20px;transition:.2s ease}
.m3-pos-add-product-v241[open]>summary i{transform:rotate(180deg)}
.m3-pos-product-create-form{padding:0 24px 24px;display:grid;gap:14px}
.m3-pos-form-section{background:#f7f8fa;border:1px solid #e8ebee;border-radius:28px;padding:18px;display:grid;gap:13px}
.m3-pos-form-section-last{padding:12px 18px}
.m3-pos-form-section-head{display:flex;align-items:center;gap:10px;padding-bottom:3px}.m3-pos-form-section-head>span{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:#231657;color:#fff;font-size:10px;font-weight:900}.m3-pos-form-section-head>div{display:grid;gap:2px}.m3-pos-form-section-head b{color:#231657;font-size:13px}.m3-pos-form-section-head small{color:#7b8389;font-size:9px;font-weight:500}
.m3-pos-product-create-form label{display:grid;gap:6px;color:#31265f;font-size:10px;font-weight:800}
.m3-pos-product-create-form input:not([type=checkbox]):not([type=file]),.m3-pos-product-create-form textarea{width:100%;border:1px solid #d9dee3;border-radius:18px;background:#fff;padding:13px 14px;font-size:14px;color:#231657;box-sizing:border-box;box-shadow:none}
.m3-pos-product-create-form textarea{resize:vertical;min-height:88px}
.m3-pos-product-create-form input:focus,.m3-pos-product-create-form textarea:focus{outline:0;border-color:#10bec0;box-shadow:0 0 0 4px rgba(16,190,192,.09)}
.m3-pos-image-field{gap:8px!important}.m3-pos-upload{position:relative;border:1.5px dashed #cfd4dc;background:#fff;border-radius:24px;min-height:92px;padding:18px;display:grid!important;place-items:center;text-align:center;gap:3px;color:#231657;cursor:pointer}.m3-pos-upload b{font-size:13px}.m3-pos-upload small{font-size:9px;color:#7e858a;font-weight:500}.m3-pos-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.m3-pos-publish{display:flex!important;align-items:flex-start;gap:11px!important;cursor:pointer}.m3-pos-publish input{margin-top:3px;width:18px;height:18px}.m3-pos-publish span{display:grid;gap:3px}.m3-pos-publish b{font-size:11px;color:#231657}.m3-pos-publish small{font-size:9px;color:#7b8389;font-weight:500;line-height:1.4}
.m3-pos-save-product{width:100%;min-height:54px;border-radius:22px!important;font-size:14px;font-weight:900}
.m3-pos-mobile-sale-bar{display:none}

@media(max-width:980px){.m3-pos-layout-searchfirst{grid-template-columns:1fr}.m3-pos-cart{position:static}}
@media(max-width:620px){
 body.m3-pos-page{padding-bottom:84px}
 .m3-pos-shell{padding-left:10px;padding-right:10px}
 .m3-pos-search-panel,.m3-pos-cart,.m3-pos-add-product-v241{border-radius:40px}
 .m3-pos-search-panel{padding:18px 14px}.m3-pos-search-hero h2{font-size:28px}.m3-pos-search-hero>p{font-size:11px}
 .m3-pos-searchbox{border-radius:22px;padding-left:12px}.m3-pos-searchbox input{font-size:15px;padding:12px 2px!important}.m3-pos-search-meta{font-size:8px}
 .m3-pos-search-results{max-height:52vh}.m3-pos-search-results .m3-pos-product{grid-template-columns:54px minmax(0,1fr) 32px;padding:9px;border-radius:20px}.m3-pos-search-results .m3-pos-product-img{width:54px;height:54px}
 .m3-pos-cart{padding:18px 14px}.m3-pos-cart-lines{max-height:none}
 .m3-pos-add-product-v241>summary{padding:20px 18px}.m3-pos-add-product-v241>summary b{font-size:16px}.m3-pos-product-create-form{padding:0 14px 18px}.m3-pos-form-section{border-radius:26px;padding:16px 13px}.m3-pos-form-grid{grid-template-columns:1fr}
 .m3-pos-mobile-sale-bar{position:fixed;z-index:80;left:10px;right:10px;bottom:10px;min-height:64px;border:0;border-radius:24px;background:#231657;color:#fff;padding:10px 14px;box-shadow:0 14px 40px rgba(17,10,51,.28);align-items:center;grid-template-columns:1fr auto auto;gap:12px;text-align:left}
 .m3-pos-mobile-sale-bar:not([hidden]){display:grid}.m3-pos-mobile-sale-bar span{display:grid;gap:2px}.m3-pos-mobile-sale-bar small{font-size:8px;opacity:.72}.m3-pos-mobile-sale-bar b{font-size:12px}.m3-pos-mobile-sale-bar strong{font-size:14px}.m3-pos-mobile-sale-bar i{font-style:normal;font-size:10px;opacity:.85}
}

/* External courier fulfilment (G0 candidate) */
.m3-courier-tracking-card{margin:18px 0;padding:22px;border:1px solid rgba(35,22,87,.14);border-radius:24px;background:#fff}
.m3-courier-tracking-card h2{margin:.35rem 0 .5rem}
.m3-courier-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
.m3-courier-status-grid>div{padding:14px;border-radius:16px;background:rgba(35,22,87,.045)}
.m3-courier-status-grid span{display:block;font-size:.78rem;opacity:.68;margin-bottom:5px}
.m3-courier-status-grid strong{display:block;overflow-wrap:anywhere}
@media(max-width:760px){.m3-courier-status-grid{grid-template-columns:1fr}}


/* G0 Step 4 · verified Courier Guy journey inside buyer OrderFlow tracking */
.m3-courier-events{margin-top:18px;padding-top:16px;border-top:1px solid rgba(35,22,87,.10)}
.m3-courier-events h3{margin:0 0 10px;color:#231657;font-size:1rem}
.m3-courier-events article{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:12px;align-items:start;padding:11px 0;border-bottom:1px solid rgba(35,22,87,.07)}
.m3-courier-events article:last-child{border-bottom:0}
.m3-courier-events article>i{width:10px;height:10px;border-radius:50%;background:#231657;margin-top:5px}
.m3-courier-events article>div{min-width:0}
.m3-courier-events b{display:block;color:#231657;font-size:.88rem}
.m3-courier-events p{margin:3px 0 0;color:#5f6870;font-size:.78rem;line-height:1.4}
.m3-courier-events small{display:block;margin-top:3px;color:#777f85;font-size:.72rem}
.m3-courier-events time{white-space:nowrap;color:#6e757b;font-size:.72rem;padding-top:2px}
@media(max-width:620px){
 .m3-courier-tracking-card{border-radius:28px;padding:18px 16px}
 .m3-courier-events article{grid-template-columns:10px minmax(0,1fr);gap:10px}
 .m3-courier-events time{grid-column:2;white-space:normal;margin-top:-7px}
}


/* G0 Step 4 repair · one continuous OrderFlow → third-party courier journey */
.m3-unified-journey{margin-top:16px}
.m3-unified-journey .m3-journey-owner{display:block;margin:0 0 3px;color:#66717a;font-size:7px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.m3-unified-journey .m3-journey-handover{margin:5px 0 12px;padding:12px 12px 10px;border:1px solid rgba(35,22,87,.10);border-radius:14px;background:rgba(35,22,87,.035);opacity:1}
.m3-unified-journey .m3-journey-handover i{background:var(--ink);border-color:var(--ink);box-shadow:inset 0 0 0 5px white}
.m3-unified-journey .m3-journey-handover b{font-size:12px;color:var(--ink)}
.m3-unified-journey .m3-journey-handover p{font-size:8.5px;line-height:1.5}
.m3-unified-journey .m3-journey-courier b{color:var(--ink)}
.m3-unified-journey .m3-journey-courier i{background:#fff;border-color:var(--ink);box-shadow:inset 0 0 0 5px white}
.m3-unified-journey .m3-journey-courier.reached i{background:var(--ink);border-color:var(--ink)}
.m3-unified-journey .m3-journey-future .m3-journey-owner{color:#8a9399}
@media (max-width:680px){
  .m3-unified-journey .m3-journey-handover{padding:11px 10px}
  .m3-unified-journey .m3-journey-owner{font-size:6.5px}
}

/* Step 5C · Courier Guy webhook setup/status inside seller operations. */
.m3-live-webhook-card { margin-top:10px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.m3-live-webhook-card > strong { display:block; margin-bottom:4px; }
