:root {
  color-scheme: light;
  --ink: #17191c;
  --muted: #626970;
  --line: #d9dde1;
  --soft: #f4f6f7;
  --paper: #ffffff;
  --red: #ba1d2c;
  --red-dark: #8f1420;
  --green: #1f6b4f;
  --green-soft: #eaf4ef;
  --amber: #8a5a00;
  --amber-soft: #fff5dc;
  --danger-soft: #fff0f1;
  --shadow: 0 12px 30px rgba(25, 28, 31, 0.09);
}

/* Reviewed buyer dashboard */
.portal-view-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 520px);
  margin: 0 0 22px;
  padding: 4px;
  border: 1px solid #d9ddd9;
  background: #fff;
}
.portal-view-tabs button {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: #48504a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.portal-view-tabs button.active { background: #163d2a; color: #fff; }
.cart-count {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  margin-left: 5px;
  place-items: center;
  border-radius: 50%;
  background: #e8c55a;
  color: #1b291f;
  font-size: 0.75rem;
}
.portal-view { display: none; }
.portal-view.active { display: block; }
.portal-overview-grid {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.55fr);
  gap: 20px;
  align-items: start;
}
.portal-overview-main { display: grid; gap: 20px; }
.portal-overview-grid > *,
.portal-overview-main,
.dashboard-section,
.status-box > div { min-width: 0; }
.portal-overview-grid .summary-list dd { min-width: 0; overflow-wrap: anywhere; }
.metric-grid,
.statement-grid,
.document-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.metric {
  min-height: 104px;
  padding: 16px;
  border: 1px solid #d9ddd9;
  background: #fff;
}
.metric span { display: block; color: #6c746f; font-size: 0.78rem; }
.metric strong { display: block; margin-top: 8px; font-size: clamp(1rem, 2vw, 1.35rem); }
.dashboard-section { padding: 22px; }
.saved-payment-method {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.saved-payment-methods {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.saved-payment-methods .saved-payment-method {
  margin-top: 0;
  padding: 12px;
  border: 1px solid #d9ddd9;
  background: #f7f8f9;
}
.saved-payment-method .icon-tile { flex: 0 0 auto; }
.saved-payment-method strong,
.saved-payment-method small { display: block; }
.saved-payment-method small { color: #59615d; margin-top: 3px; }
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-heading h2, .dashboard-section h2 { margin: 0; }
.activity-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}
.activity-controls label {
  display: grid;
  gap: 4px;
  color: #6c746f;
  font-size: 0.74rem;
  font-weight: 700;
}
.activity-controls select {
  min-width: 132px;
  min-height: 38px;
  padding: 7px 34px 7px 10px;
  border: 1px solid #cfd5d1;
  background: #fff;
  color: #161a17;
  font: inherit;
  font-size: 0.88rem;
}
.activity-controls button:disabled,
.activity-controls select:disabled { cursor: wait; opacity: 0.6; }
.history-freshness {
  min-height: 18px;
  margin: -6px 0 14px;
  color: #6c746f;
  font-size: 0.76rem;
}
.history-freshness[data-state="warning"],
.history-freshness[data-state="error"] { color: #963a36; }
.activity-summary { margin: 0 0 14px; color: #6c746f; font-size: 0.8rem; }
.activity-subheading { margin: 24px 0 8px; font-size: 1rem; }
.activity-table-scroll { max-height: 480px; }
.statement-grid { margin-bottom: 14px; }
.table-scroll { overflow-x: auto; }
.order-history-table { width: 100%; border-collapse: collapse; }
.order-history-table th,
.order-history-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e3e6e3;
  text-align: left;
  white-space: nowrap;
}
.order-history-table th { color: #6c746f; font-size: 0.76rem; }
.order-history-table th:last-child,
.order-history-table td:last-child { text-align: right; }
.document-link,
.insight-product-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #161a17;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.insight-product-link { display: block; width: 100%; line-height: 1.25; text-align: left; }
.document-link:hover,
.document-link:focus-visible,
.insight-product-link:hover,
.insight-product-link:focus-visible { color: #245f42; text-decoration: underline; }
.mobile-cell-meta { display: none; }
.status-chip { color: #245f42; font-size: 0.82rem; font-weight: 700; }
.insight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.insight-list { display: grid; margin-top: 14px; }
.insight-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #e3e6e3;
}
.insight-row div { min-width: 0; }
.insight-row strong, .insight-row small { display: block; }
.insight-row small { margin-top: 3px; color: #6c746f; }
.insight-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.insight-actions > span { color: #245f42; font-size: 0.8rem; font-weight: 800; text-align: right; }
.catalog-unavailable { color: #6c746f; font-size: 0.76rem; font-weight: 700; }
.product-card.quick-target {
  outline: 3px solid #d7b548;
  outline-offset: 3px;
  background: #fffbea;
}
.analytics-disclosure { margin: 16px 0 0; color: #6c746f; font-size: 0.76rem; line-height: 1.45; }
.portal-cart-panel { max-width: 900px; }
.cart-lines { display: grid; }
.cart-line {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 84px auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #e3e6e3;
}
.cart-line small { display: block; margin-top: 3px; color: #6c746f; }
.cart-quantity-field { display: grid; gap: 4px; color: #6c746f; font-size: 0.72rem; font-weight: 700; }
.cart-quantity-input { width: 100%; min-height: 38px; padding: 7px 8px; border: 1px solid #cfd5d1; font: inherit; }
.cart-rate { color: #6c746f; font-size: 0.8rem; white-space: nowrap; }
.cart-remove { margin: 0; color: #963a36; }
.cart-total { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0 0; font-size: 1.05rem; }
.cart-submit { margin-top: 18px; }
.empty-cart { padding: 28px 0; text-align: center; }
.cart-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-left: 4px solid #d7b548;
  background: #fffbea;
  color: #344039;
  font-size: 0.84rem;
}
.portal-document-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(84vh, 820px);
  padding: 0;
  border: 1px solid #cfd5d1;
  background: #f7f8f6;
  color: #161a17;
  box-shadow: 0 22px 70px rgba(15, 26, 19, 0.28);
  overflow: hidden;
}
.portal-document-dialog::backdrop { background: rgba(11, 20, 15, 0.68); }
.document-dialog-shell { max-height: min(84vh, 820px); overflow-y: auto; }
.document-dialog-header,
.document-dialog-actions {
  position: sticky;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  background: #fff;
}
.document-dialog-header { top: 0; border-bottom: 1px solid #d9ddd9; }
.document-dialog-header h2 { margin: 0; font-size: 1.35rem; }
.document-dialog-close {
  width: 38px;
  height: 38px;
  border: 1px solid #cfd5d1;
  border-radius: 50%;
  background: #fff;
  color: #161a17;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.document-dialog-body { display: grid; gap: 20px; padding: 22px; }
.document-dialog-body > *, .document-section { min-width: 0; }
.document-meta-grid .metric { min-height: 86px; padding: 13px; }
.document-meta-grid .metric strong { overflow-wrap: anywhere; }
.document-section h3 { margin: 0 0 10px; font-size: 1rem; }
.document-item-name small { display: block; margin-top: 3px; color: #6c746f; }
.document-copy-status { color: #6c746f; font-size: 0.76rem; font-weight: 700; }
.shipment-list { display: grid; gap: 10px; }
.shipment-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 16px;
  padding: 14px;
  border: 1px solid #d9ddd9;
  background: #fff;
}
.shipment-card strong, .shipment-card small { display: block; }
.shipment-card small { margin-top: 3px; color: #6c746f; }
.shipment-card a { align-self: center; color: #245f42; font-weight: 800; }
.document-dialog-actions {
  bottom: 0;
  align-items: center;
  padding: 16px 22px;
  border-top: 1px solid #d9ddd9;
}
.document-dialog-actions p { margin: 0; color: #6c746f; font-size: 0.76rem; }

@media (max-width: 920px) {
  .portal-overview-grid { grid-template-columns: 1fr; }
  .metric-grid, .statement-grid, .document-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insight-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .portal-view-tabs { width: 100%; margin-bottom: 16px; }
  .portal-view-tabs button { min-width: 0; padding-inline: 5px; font-size: 0.82rem; }
  .metric { min-height: 94px; padding: 13px; }
  .dashboard-section { padding: 18px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .activity-controls { width: 100%; align-items: stretch; }
  .activity-controls label { flex: 1; }
  .activity-controls select { width: 100%; }
  .order-history-table th, .order-history-table td { padding: 10px 8px; }
  .statement-detail-scroll { overflow-x: visible; }
  .statement-detail-table { table-layout: fixed; }
  .statement-detail-table .mobile-optional { display: none; }
  .statement-detail-table th, .statement-detail-table td { white-space: normal; }
  .statement-detail-table th:first-child,
  .statement-detail-table td:first-child { width: 42%; overflow-wrap: anywhere; }
  .mobile-cell-meta { display: block; margin-top: 3px; color: #6c746f; font-size: 0.7rem; font-weight: 600; }
  .cart-line { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; }
  .cart-line > div:first-child { grid-column: 1 / -1; }
  .cart-quantity-field { min-width: 92px; }
  .cart-rate { text-align: right; }
  .cart-line > strong { grid-column: 1; }
  .cart-remove { grid-column: 2; justify-self: end; }
  .insight-row { align-items: flex-start; flex-direction: column; }
  .insight-actions { width: 100%; justify-content: space-between; }
  .portal-document-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .document-dialog-shell { max-height: calc(100vh - 16px); }
  .document-dialog-header, .document-dialog-body, .document-dialog-actions { padding-inline: 16px; }
  .document-meta-grid .metric strong { font-size: 1rem; }
  .document-items-table,
  .document-items-table tbody,
  .document-items-table tr,
  .document-items-table td { display: block; width: 100%; }
  .document-items-table thead { display: none; }
  .document-items-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 10px 0;
    border-bottom: 1px solid #e3e6e3;
  }
  .document-items-table td {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 8px;
    border: 0;
    text-align: left !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .document-items-table td::before {
    content: attr(data-label);
    color: #6c746f;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
  }
  .document-items-table .document-item-name { grid-column: 1 / -1; }
  .document-dialog-actions { align-items: stretch; flex-direction: column; }
  .document-dialog-actions p { overflow-wrap: anywhere; }
  .document-dialog-actions .button { width: 100%; }
  .shipment-card { grid-template-columns: 1fr; }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  letter-spacing: 0;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--soft);
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
select,
input[type="checkbox"] {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(186, 29, 44, 0.24);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: 10px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-actions,
.toolbar,
.button-row,
.segmented,
.status-row,
.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 132px);
  margin: 0 auto;
  padding: 34px 0 54px;
}

.page-heading {
  max-width: 780px;
  margin-bottom: 26px;
}

.eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.08;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.28rem;
}

h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.grid {
  display: grid;
  gap: 18px;
}

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

.two-column {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.dashboard-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
}

.staff-grid {
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
}

.panel,
.choice-card,
.product-card,
.list-row {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.panel {
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow);
}

.panel-width-620 {
  max-width: 620px;
}

.panel-width-680 {
  max-width: 680px;
}

.panel-width-720 {
  max-width: 720px;
}

.panel-width-760 {
  max-width: 760px;
}

.flush {
  margin: 0;
}

.space-top-10 {
  margin-top: 10px;
}

.space-top-12 {
  margin-top: 12px;
}

.space-top-14 {
  margin-top: 14px;
}

.space-top-16 {
  margin-top: 16px;
}

.space-top-18 {
  margin-top: 18px;
}

.space-top-20 {
  margin-top: 20px;
}

.space-top-22 {
  margin-top: 22px;
}

.space-bottom-18 {
  margin-bottom: 18px;
}

.choice-card {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  text-align: left;
  transition: border-color 150ms ease, transform 150ms ease;
}

.choice-card:hover {
  transform: translateY(-2px);
  border-color: #aeb4b9;
}

.choice-card .icon-tile {
  margin-bottom: 26px;
}

.choice-card p {
  margin-bottom: 16px;
}

.choice-card .text-link {
  margin-top: auto;
}

.icon-tile {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 6px;
  background: #262a2e;
  color: white;
}

.icon-tile.red {
  background: var(--red);
}

.icon-tile.green {
  background: var(--green);
}

.icon-tile svg,
.button svg,
.icon-button svg,
.status-icon svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.button,
.icon-button,
.text-link {
  border: 0;
  background: transparent;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  border-radius: 6px;
  background: var(--red);
  color: white;
  font-weight: 750;
}

.button:hover {
  background: var(--red-dark);
}

.button.secondary {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.button.secondary:hover {
  border-color: #abb1b6;
  background: #f9fafb;
}

.button.quiet {
  background: #282c30;
}

.button.danger {
  background: #98202b;
}

.button.compact {
  min-height: 38px;
  padding: 7px 12px;
  font-size: 0.9rem;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 6px;
  color: var(--ink);
}

.icon-button:hover {
  background: var(--soft);
}

.text-link {
  padding: 0;
  color: var(--red);
  font-weight: 750;
  text-align: left;
}

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

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.field-label {
  font-size: 0.87rem;
  font-weight: 720;
  color: #33383d;
}

.field small,
.helper {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #bfc5ca;
  border-radius: 5px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

input[readonly] {
  background: #f5f6f7;
  color: #555c62;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.form-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.segmented {
  width: fit-content;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.segmented button {
  min-height: 36px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  padding: 7px 13px;
  font-weight: 700;
}

.segmented button.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(20, 25, 28, 0.12);
}

.check-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 12px 0;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.check-row label {
  color: #3d4348;
  font-size: 0.88rem;
  line-height: 1.5;
}

.status-box {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  background: var(--amber-soft);
}

.status-box.success {
  border-left-color: var(--green);
  background: var(--green-soft);
}

.status-box.error {
  border-left-color: var(--red);
  background: var(--danger-soft);
}

.status-box p {
  margin-bottom: 0;
}

.status-icon {
  flex: 0 0 auto;
  color: var(--amber);
}

.status-box.success .status-icon {
  color: var(--green);
}

.status-box.error .status-icon {
  color: var(--red);
}

.summary-list {
  display: grid;
  margin: 0;
  gap: 0;
}

.summary-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.summary-list dt {
  color: var(--muted);
}

.summary-list dd {
  margin: 0;
  font-weight: 700;
}

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

.product-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}

.product-card img {
  width: 116px;
  height: 116px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  object-fit: contain;
}

.package-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.package-row:first-of-type {
  border-top: 0;
}

.package-row label strong,
.package-row label small {
  display: block;
}

.package-row label small {
  margin-top: 2px;
  color: var(--muted);
  line-height: 1.35;
}

.pricing-label {
  color: var(--green);
  font-weight: 780;
}

.package-price {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 780;
}

.order-total {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.order-total > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.05rem;
}

.order-total small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

.quantity {
  min-height: 38px;
  text-align: center;
}

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

.list-row {
  padding: 14px;
}

.list-row.active {
  border-color: var(--red);
}

.list-row button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.list-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.staff-detail {
  min-width: 0;
}

.code-block {
  overflow-wrap: anywhere;
  padding: 12px;
  border: 1px solid var(--line);
  background: #f7f8f9;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
}

.divider {
  height: 1px;
  margin: 22px 0;
  background: var(--line);
}

.site-footer {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  background: #24282c;
  color: #f3f4f5;
  font-size: 0.82rem;
}

.payment-acceptance {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}

.payment-acceptance svg {
  width: 18px;
  height: 18px;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100% - 36px));
  transform: translateY(120%);
  border-radius: 6px;
  background: #24282c;
  color: white;
  padding: 13px 16px;
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
  box-shadow: var(--shadow);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 880px) {
  .choice-grid,
  .dashboard-grid,
  .staff-grid {
    grid-template-columns: 1fr;
  }

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

  .staff-grid > .panel:first-child {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 62px;
    padding: 8px 14px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand span {
    max-width: 132px;
    font-size: 0.9rem;
  }

  .app-shell {
    width: min(100% - 22px, 1180px);
    padding-top: 22px;
  }

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

  .field.full {
    grid-column: auto;
  }

  .product-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .product-card img {
    width: 88px;
    height: 88px;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
