:root {
  --ink: #1f2933;
  --muted: #667085;
  --line: #d8dee6;
  --paper: #f6f8f7;
  --panel: #ffffff;
  --green: #1f7a5a;
  --blue: #2f5f9f;
  --red: #b42318;
  --gold: #b7791f;
  --navy: #20302f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  padding: 0;
  background: var(--paper);
}

.auth-grid {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
  position: relative;
}

.public-products {
  min-width: 0;
  min-height: 100vh;
  background-color: #f8faf7;
  background-image: url("/assets/storefront-background.png");
  background-position: center top;
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-attachment: fixed;
}

.product-browser {
  min-height: 100vh;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  padding: 58px 28px 28px;
  align-content: start;
  background: transparent;
}

.storefront-hero {
  position: relative;
  min-height: 390px;
  margin: 18px 0 34px;
  overflow: hidden;
  border-radius: 8px;
  background-image: linear-gradient(90deg, rgba(8, 35, 25, 0.9) 0%, rgba(8, 35, 25, 0.62) 37%, rgba(8, 35, 25, 0.06) 68%), url("/assets/storefront-hero.png");
  background-position: center;
  background-size: cover;
  color: white;
}

.hero-copy {
  position: absolute;
  left: 36px;
  bottom: 38px;
  width: min(470px, calc(100% - 72px));
}

.hero-copy .eyebrow {
  color: #d9f3e7;
}

.hero-copy h2 {
  margin: 8px 0 12px;
  max-width: 420px;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 410px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
}

.hero-shop-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 11px 17px;
  border-radius: 6px;
  background: white;
  color: #103d2e;
  font-weight: 900;
  text-decoration: none;
}

.hero-actions {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
}

.hero-actions .signin-link-button {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.94);
}

.menu-section-heading {
  display: grid;
  place-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 22px;
  padding: 14px 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  text-align: center;
  box-shadow: 0 8px 24px rgba(31, 41, 51, 0.06);
}

.store-announcement {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  background: #103d2e;
  color: white;
  font-weight: 800;
}

.store-announcement a {
  color: white;
  text-decoration: underline;
  white-space: nowrap;
}

.storefront-intro {
  margin: 7px 0 0;
  color: var(--muted);
  max-width: 760px;
}

.storefront-heading {
  min-width: min(100%, 420px);
}

.menu-title-row {
  display: grid;
  grid-template-columns: minmax(28px, 72px) auto minmax(28px, 72px);
  align-items: center;
  gap: 14px;
  width: fit-content;
}

.menu-title-row span {
  height: 2px;
  background: var(--green);
}

.menu-title-row h1 {
  margin: 0;
  color: var(--ink);
  font-size: 44px;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.product-browser h2 {
  margin-top: 8px;
}

.public-product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.daily-food-section {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid #d9b66f;
  border-left: 5px solid #c7861b;
  border-radius: 8px;
  background: #fffaf0;
}

.daily-food-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.daily-food-heading h2 {
  margin: 3px 0 0;
  color: #593b0b;
}

.daily-food-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.weekday-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.weekday-picker legend {
  padding: 0 6px;
  color: var(--muted);
  font-weight: 800;
}

.weekday-picker .check {
  min-width: 62px;
}

.cooked-food-toggle {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff7e6;
  color: #593b0b;
  font-weight: 800;
}

.product-shop-card {
  min-height: 100%;
  grid-template-columns: 1fr;
  align-items: start;
  grid-template-rows: auto 1fr auto auto;
  padding: 14px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(31, 41, 51, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.product-shop-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(31, 41, 51, 0.12);
}

.product-shop-card.sold-out {
  opacity: 0.72;
}

.product-shop-card .item-head,
.product-shop-card > .meta,
.product-shop-card .product-actions {
  grid-column: 1;
}

.product-actions button {
  background: var(--green);
  color: white;
}

.product-actions button:last-child {
  border: 1px solid #b7d3c8;
  background: white;
  color: var(--green);
}

.product-actions button:disabled {
  background: #d0d5dd;
  color: #667085;
  cursor: not-allowed;
}

.search-field {
  display: grid;
  gap: 8px;
  width: min(680px, 100%);
  font-weight: 800;
  margin: 22px auto 26px;
}

.search-label {
  color: #344054;
  font-size: 14px;
}

.search-control {
  position: relative;
  display: block;
}

.search-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
}

.search-control input {
  min-height: 58px;
  padding: 14px 48px;
  border: 1px solid #b9c9c2;
  border-radius: 8px;
  background: #fbfdfc;
  box-shadow: 0 8px 22px rgba(31, 41, 51, 0.07);
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.search-control input::placeholder {
  color: #7a858f;
}

.search-control input:focus {
  outline: none;
  border-color: var(--green);
  background: white;
  box-shadow: 0 0 0 4px rgba(31, 122, 90, 0.14), 0 10px 26px rgba(31, 41, 51, 0.1);
}

.product-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 24, 40, 0.66);
}

.product-detail-modal {
  width: min(920px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 0.9fr);
  gap: 18px;
  position: relative;
  padding: 18px;
  border-radius: 8px;
  background: white;
  cursor: default;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.product-detail-media {
  aspect-ratio: 4 / 3;
  min-height: 260px;
}

.product-detail-media img,
.product-detail-media .product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.product-detail-body {
  display: grid;
  align-content: start;
  gap: 14px;
  padding-top: 32px;
}

.product-detail-body dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.product-detail-body dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.product-detail-body dt {
  color: var(--muted);
  font-weight: 800;
}

.product-detail-body dd {
  margin: 0;
  text-align: right;
}

.product-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.stock-ribbon {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 999px;
  background: #fee4e2;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.cart-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.cart-page {
  align-content: start;
}

.cart-page .cart-panel {
  max-width: 980px;
  width: 100%;
}

.cart-summary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
}

.checkout-icon-button::before {
  content: ">";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.cart-row input {
  min-width: 0;
}

.cart-icon-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: white;
  white-space: nowrap;
}

.cart-icon-button strong {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: white;
  color: var(--green);
  font-size: 13px;
}

.storefront-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.signin-link-button {
  min-height: 42px;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}

.product-thumb {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #ecfdf3;
  color: var(--green);
  font-weight: 900;
  border: 1px solid #b7e4ca;
}

.product-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f7f9fb;
  z-index: 1;
}

.category-browser {
  margin: 24px 0 8px;
  padding: 18px;
  border: 1px solid #dde7e2;
  border-radius: 8px;
  background: #f8fbf9;
}

.category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.category-heading p {
  margin: 0;
  color: #285c48;
}

.category-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.category-strip span,
.category-strip button {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid #c7d9d1;
  border-radius: 8px;
  background: white;
  color: #285c48;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.category-strip button:hover {
  transform: translateY(-2px);
  border-color: #d09a39;
  background: #fffaf0;
  color: #6d470b;
}

.category-strip button.active {
  border-color: var(--green);
  background: var(--green);
  color: white;
  box-shadow: 0 6px 16px rgba(31, 122, 90, 0.2);
}

.button-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--green);
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.marketing-panel {
  display: grid;
  gap: 16px;
}

.marketing-output {
  display: grid;
  gap: 10px;
}

.marketing-output textarea {
  width: 100%;
  resize: vertical;
}

.marketing-ideas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.marketing-ideas article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fb;
}

.marketing-ideas span {
  color: var(--muted);
  font-size: 13px;
}

.login-card {
  width: 100%;
  display: grid;
  gap: 16px;
  padding: 26px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(12, 20, 28, 0.28);
}

.login-card.product-browser {
  background: transparent;
}

.login-card h1 {
  color: var(--ink);
}

.signin-panel {
  position: absolute;
  top: 78px;
  right: 28px;
  z-index: 3;
  display: grid;
  gap: 12px;
  justify-items: end;
}

.signin-panel .login-card {
  width: min(360px, calc(100vw - 32px));
}

.signin-panel > button {
  display: none;
}

.single-auth {
  width: min(460px, 100%);
}

.text-link {
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.app-shell {
  min-height: 100vh;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.15;
}

h2 {
  font-size: 21px;
}

h3 {
  font-size: 16px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--navy);
  color: white;
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-bottom: 4px solid #d7b46a;
}

.eyebrow {
  color: #b88c2d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar .eyebrow {
  color: #d7b46a;
}

.role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

button {
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  min-height: 42px;
  background: #e7edf3;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  filter: brightness(0.97);
}

.danger-button {
  background: #fee4e2;
  color: var(--red);
}

.role-tabs button {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.role-tabs button.active {
  background: white;
  color: var(--navy);
}

.role-tabs button:disabled {
  cursor: default;
  filter: none;
  opacity: 0.86;
}

.role-tabs button[data-logout] {
  background: #fee4e2;
  color: var(--red);
  border-color: transparent;
}

main {
  padding: 28px;
  display: grid;
  gap: 22px;
}

.hidden {
  display: none !important;
}

.role-view {
  display: grid;
  gap: 20px;
}

.interface-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  border-left: 6px solid var(--blue);
  box-shadow: 0 10px 34px rgba(31, 41, 51, 0.07);
}

.customer-panel {
  border-left-color: var(--green);
}

.driver-panel {
  border-left-color: var(--blue);
}

.worker-panel {
  border-left-color: var(--gold);
}

.owner-panel {
  border-left-color: var(--navy);
}

.section-title,
.panel-heading,
.checkout-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

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

.metrics article,
.workbench,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metrics article {
  padding: 18px;
  min-height: 94px;
}

.metrics span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metrics strong {
  display: block;
  margin-top: 10px;
  font-size: 30px;
}

.workbench,
.panel {
  padding: 18px;
}

.owner-workspace {
  display: grid;
  gap: 16px;
}

.owner-page-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

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

.owner-page-grid button {
  min-height: 118px;
  display: grid;
  gap: 8px;
  align-content: center;
  justify-items: start;
  text-align: left;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
}

.owner-page-grid strong {
  font-size: 18px;
}

.owner-page-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.owner-split {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
  align-items: start;
}

.scanner-panel {
  border-left: 4px solid var(--green);
}

.scanner-result {
  padding: 10px;
  border-radius: 6px;
  background: #ecfdf3;
  color: var(--green);
  font-weight: 800;
}

.pricing-summary {
  padding: 10px;
  border-radius: 6px;
  background: #fef7e7;
  color: #7a4c08;
  font-weight: 800;
}

.muted-field {
  opacity: 0.55;
}

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

.owner-grid {
  align-items: start;
}

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

.compact-form {
  margin-top: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c9d2dc;
  border-radius: 6px;
  padding: 10px;
  color: var(--ink);
  font: inherit;
  background: white;
}

textarea {
  resize: vertical;
}

.wide {
  grid-column: span 2;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.check input {
  width: auto;
}

.primary {
  background: var(--green);
  color: white;
}

.panel h2,
.workbench h2 {
  margin-bottom: 14px;
}

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

.item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 8px;
  background: white;
}

.item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.meta,
.route-list {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.route-list {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 6px;
  background: #f7f9fb;
}

.route-list span {
  color: #344054;
}

.route-stop {
  display: grid;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.route-stop:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.proof-upload {
  max-width: 320px;
}

.proof-photo {
  width: min(220px, 100%);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.product-image-preview img,
.product-video-preview video,
.product-video {
  width: min(260px, 100%);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #101828;
}

.bulk-product-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

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

.bulk-product-row {
  display: grid;
  grid-template-columns: 120px repeat(4, minmax(120px, 1fr));
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fb;
}

.bulk-product-row img,
.bulk-product-row video {
  width: 120px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.bulk-product-row .wide {
  grid-column: 2 / -1;
}

.item a.text-link {
  width: fit-content;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  background: #eef4ff;
  color: var(--blue);
  white-space: nowrap;
}

.badge.info {
  background: #eef4ff;
  color: var(--blue);
}

.badge.paid {
  background: #dcfae6;
  color: var(--green);
}

.badge.pending {
  background: #fef0c7;
  color: var(--gold);
}

.badge.urgent {
  background: #fee4e2;
  color: var(--red);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 980px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: start;
    display: grid;
  }

  .role-tabs {
    justify-content: start;
  }

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

  .two-col,
  .owner-grid,
  .owner-split {
    grid-template-columns: 1fr;
  }

  .owner-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .topbar,
  main {
    padding: 16px;
  }

  .product-browser {
    padding: 18px 16px 16px;
    background: transparent;
  }

  .public-products {
    background-attachment: scroll;
    background-position: left top;
    background-size: auto 760px;
    background-repeat: repeat-y;
  }

  .storefront-hero {
    min-height: 460px;
    background-image: linear-gradient(0deg, rgba(8, 35, 25, 0.94) 0%, rgba(8, 35, 25, 0.54) 52%, rgba(8, 35, 25, 0.03) 78%), url("/assets/storefront-hero.png");
    background-position: 62% center;
  }

  .hero-copy {
    left: 22px;
    bottom: 24px;
    width: calc(100% - 44px);
  }

  .hero-copy h2 {
    font-size: 36px;
  }

  .hero-actions {
    top: 14px;
    right: 14px;
  }

  .menu-title-row h1 {
    font-size: 36px;
  }

  .daily-food-section {
    padding: 16px;
  }

  .category-browser {
    padding: 14px;
  }

  .category-heading {
    align-items: start;
  }

  .category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .category-strip button {
    min-height: 64px;
    padding: 9px;
    font-size: 12px;
  }

  h1 {
    font-size: 22px;
  }

  .metrics,
  .grid-form {
    grid-template-columns: 1fr;
  }

  .public-product-list {
    grid-template-columns: 1fr;
  }

  .product-detail-modal {
    grid-template-columns: 1fr;
  }

  .bulk-product-row {
    grid-template-columns: 1fr;
  }

  .bulk-product-row img {
    width: min(220px, 100%);
  }

  .bulk-product-row .wide {
    grid-column: 1;
  }

  .cart-row {
    grid-template-columns: 1fr;
  }

  .owner-page-header {
    display: grid;
  }

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

  .signin-panel {
    right: 16px;
    top: 92px;
  }

  .product-browser > .item-head {
    display: grid;
  }

  .storefront-actions {
    justify-content: start;
    flex-wrap: wrap;
  }

  .wide {
    grid-column: span 1;
  }

  .section-title {
    display: grid;
  }

  .role-tabs button {
    flex: 1 1 140px;
  }
}

body[data-portal="staff"] .auth-grid { grid-template-columns: minmax(0, 480px); justify-content: center; }
body[data-portal="staff"] .signin-panel { width: 100%; }
body[data-portal="staff"] [data-show-signin] { display: none; }

.preview-banner { margin: 0; padding: 12px; background: #fff3cd; color: #664d03; text-align: center; }
