/* Cleaned CSS: merged duplicate selectors & properties. Last declaration wins. */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --gap: 12px;
  --pad: 12px;
  --radius: 12px;
  --border: #e5e7eb;
  --bg: #ffffff;
  --muted: #6b7280;
  --brand: #0f62fe;
  --danger: #e66;
  --hover: #fafafa;
  --thead: #f7f7f7;
  --thead-2: #fffef7;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
  --col-vendor: 140px;
  --col-sku: 140px;
  --col-uom: 70px;
  --col-desc: minmax(240px, 1fr);
  --col-helper: 180px;
  --col-mult: 90px;
  --col-cost: 90px;
  --col-price: 100px;
  --col-actions: 180px;
}

.ds-row:has(#ds-price), .ds-row:has(#ds-helper), .ds-row:has(#ds-multiple) {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: #111827;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  line-height: 1.45;
  scroll-behavior: smooth;
}

body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
  overflow-x: hidden;
}

h1 {
  margin: 12px 0 6px;
  font-weight: 600;
}

.muted {
  color: var(--muted);
  opacity: .95;
  font-size: .92rem;
}

img, svg {
  max-width: 100%;
  height: auto;
}

.cart-fab {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: 0 6px 24px rgba(15, 98, 254, .25);
  cursor: pointer;
}

.cart-fab .badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 10px;
}

.auth-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

#controls {
  display: grid;
  grid-template-columns: 1fr 220px 200px 120px 160px;
  gap: var(--gap);
  align-items: center;
  margin: 10px 0 10px;
}

input[type="search"], select, input[type="number"] {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 80%;
  background: #fff;
  color: #111827;
  text-align: center !important;
  min-width: 0;
}

input[type="search"]:disabled, select:disabled, button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
  padding: 8px 6px;
}

.scroller {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  border: 1px dashed var(--border);
  border-radius: 12px;
  margin: 8px 0 12px;
}

.chip {
  white-space: nowrap;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  font-size: .92rem;
}

.chip.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: box-shadow .15s ease, transform .03s ease;
  user-select: none;
  max-width: 100%;
}

.btn:hover {
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 1.5px 6px rgba(0,0,0,.06);
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn.danger {
  background: #fff0f0;
  border-color: var(--danger);
  color: #9b1c1c;
}

.btn.ghost {
  background: transparent;
}

.row-gap {
  display: flex;
  gap: 10px;
  align-items: center;
}

#data-table tbody {
  overflow-anchor: none;
}

#table-container {
  margin-top: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  background: var(--thead);
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: center !important;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: .95rem;
}

tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
  text-align: center !important;
}

tbody tr:hover {
  background: var(--hover);
}

tbody tr:last-child td {
  border-bottom: none;
}

.qty-input {
  width: 80px;
  padding: 6px;
  border: 1px solid var(--border);
  text-align: center;
  border-radius: 8px;
}

#cart-section {
  margin: 18px 0;
  overflow: hidden;
  scroll-margin-top: 80px;
}

#cart-section header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--thead);
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

#cart-table thead th {
  background: var(--thead-2);
}

#cart-table tbody td {
  font-size: .95rem;
}

#cart-table thead th:nth-child(5), #cart-table tbody td:nth-child(5) {
  display: none !important;
}

.cell-text {
  display: block;
  min-width: 0;
}

#totals {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border-top: 1px dashed var(--border);
}

#totals .label {
  text-align: right;
  padding-right: 8px;
  color: #111827;
}

#totals .value {
  font-weight: 700;
  min-width: 140px;
  text-align: right;
}

#totals .grand {
  font-size: 1.15em;
}

#labor-list {
  padding: 10px 12px;
  border-top: 1px dashed var(--border);
}

.labor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.labor-row {
  display: grid;
  grid-template-columns: 1fr 120px 160px 90px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.labor-row input[type="number"] {
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 100%;
}

#toast {
  visibility: hidden;
  min-width: 180px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 14px;
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 30px;
  font-size: 17px;
  transform: translateX(-50%);
  transition: visibility 0s, opacity 0.5s linear;
  opacity: 0;
}

.hidden {
  display: none !important;
}

#data-table tbody tr, #cart-table tbody tr {
  content-visibility: auto;
  contain-intrinsic-size: 1200px 64px;
}

.row-skeleton td {
  padding: 10px;
}

.sk-line {
  height: 12px;
  background: #eee;
  border-radius: 8px;
  margin: 8px 0;
}

.sk-line.short {
  width: 40%;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--thead);
  color: #111827;
  font-size: .9rem;
}

.status-pill[data-state="loading"] {
  background: #fff7ed;
  border-color: #fed7aa;
}

.status-pill[data-state="stale"] {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.status-pill[data-state="fresh"] {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.status-pill[data-state="error"] {
  background: #fef2f2;
  border-color: #fecaca;
}

#table-viewport {
  height: 80vh;
  overflow: auto;
  position: relative;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 12px;
  margin-top: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  width: 100%;
}

#table-spacer {
  position: relative;
  width: 100%;
}

.vrow {
  position: absolute;
  left: 0;
  right: 0;
  height: 44px;
  display: grid;
  grid-template-columns: 160px 160px 90px 1fr 140px 100px 120px 140px;
  gap: 6px;
  align-items: center;
  padding: 4px 10px;
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
  will-change: transform;
  font-size: 0.95rem;
  line-height: 1.2;
  background: #fff;
}

.vrow > div {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.vrow > div:nth-child(6), .vrow > div:nth-child(7), .vrow > div:nth-child(8) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.vrow > div:nth-child(6) {
  display: none !important;
}

.vhead {
  display: grid;
  grid-template-columns: 160px 180px 80px 1fr 220px 90px 100px 110px;
  gap: 8px;
  align-items: center;
  padding: 8px;
  font-weight: 600;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.vrow:nth-child(2n) {
  background: #fafafa;
}

#data-table td.row-actions {
  vertical-align: middle;
  text-align: center;
}

#data-table td.row-actions .row-actions__inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#table-viewport .vhead {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: 160px 160px 90px 1fr 140px 100px 120px 140px;
  gap: 6px;
  background: linear-gradient(180deg, #fafafa, #f0f0f0);
  padding: 10px 12px;
  font-weight: 600;
  z-index: 5;
  border-bottom: 2px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  color: #111;
}

#table-viewport .vrow > div:nth-child(5) {
  display: none;
}

#table-viewport .vhead, #table-viewport .vrow {
  grid-template-columns: var(--col-vendor)
    var(--col-sku)
    var(--col-uom)
    var(--col-desc)
    var(--col-actions);
  display: grid;
  column-gap: 8px;
  align-items: center;
}

#table-viewport .vhead > div:nth-child(7), #table-viewport .vhead > div:nth-child(8), .vrow > div:nth-child(7), .vrow > div:nth-child(8) {
  text-align: right;
}

#table-viewport .vhead > div:nth-child(7), .vrow > div:nth-child(7) {
  display: none;
}

.vrow .vactions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 50px;
  min-width: 160px;
}

.vrow .qty-input {
  width: 64px;
  height: 28px;
  padding: 2px 6px;
}

.vrow .btn.add-to-cart {
  height: 28px;
  line-height: 26px;
  padding: 0 10px;
}

#table-viewport .vrow:hover {
  background: var(--hover);
}

#desc-sheet[hidden] {
  display: none !important;
}

#desc-sheet .ds-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
}

#desc-sheet .ds-panel {
  position: absolute;
  left: 50%;
  right: 0;
  bottom: 0;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  padding: 12px 14px 12px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 24px));
  max-height: min(80vh, 720px);
  border-radius: 14px;
  overflow: auto;
  will-change: transform;
  z-index: 9001;
}

#desc-sheet .ds-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

#desc-sheet .ds-close {
  min-width: 36px;
  height: 32px;
}

#desc-sheet .ds-body {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 10px;
  font-size: 14px;
}

#desc-sheet .ds-row {
  display: contents;
}

#desc-sheet .ds-row.big .k {
  align-self: start;
  margin-top: 4px;
}

#desc-sheet .k {
  color: #666;
}

#desc-sheet .v {
  color: #111;
  overflow-wrap: anywhere;
}

#desc-sheet .ds-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

#desc-sheet .ds-qty {
  width: 80px;
  height: 36px;
  padding: 6px 8px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

#desc-sheet .ds-add {
  height: 36px;
  padding: 0 14px;
  font-size: 16px;
  border-radius: 10px;
}

#table-viewport .cell-desc {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#desc-sheet {
  position: fixed;
  inset: 0;
  z-index: 9000;
}

body.no-scroll {
  overflow: hidden;
}

#table-viewport .vrow {
  cursor: pointer;
}

#table-viewport .vrow .vactions, #table-viewport .vrow .vactions * {
  cursor: default;
}

#table-viewport .vhead > div {
  padding: 6px 8px;
  text-align: left;
  border-right: 1px solid #eaeaea;
}

#table-viewport .vhead > div:first-child {
  text-align: left;
}

#table-viewport .vrow:nth-child(even) {
  background-color: #fafafa;
  background: #fafafa;
}

#table-viewport .vhead > div:last-child {
  border-right: none;
}

#table-viewport .vrow:nth-child(odd) {
  background: #fff;
}

#table-viewport .vhead > div.sort-active {
  color: var(--brand);
  border-bottom: 2px solid var(--brand);
}

@media (max-width: 720px) {
.full-width-mobile {
  width: 100%;
}

.auth-row {
  justify-content: center;
}

h1 {
  text-align: center;
  font-size: 1.25rem;
  margin: 8px 0;
}

#controls {
  grid-template-columns: 1fr;
  top: calc(56px + env(safe-area-inset-top));
  z-index: 900;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.1) blur(6px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

#categoryChips {
  top: calc(56px + env(safe-area-inset-top) + 140px);
  z-index: 800;
  background: linear-gradient(#fff, rgba(255,255,255,.96));
}

#table-container {
  overflow: visible;
}

#data-table, #data-table tbody, #data-table tr, #data-table td {
  display: block;
  width: 100%;
}

#data-table thead {
  display: none;
}

#data-table tbody tr {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 10px 12px;
  margin: 10px auto;
  background: #fff;
  box-shadow: var(--shadow);
  max-width: 640px;
}

#data-table tbody td {
  border: none;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 6px;
}

#data-table tbody td::before {
  content: attr(data-label);
  color: var(--muted);
  font-weight: 600;
}

.row-actions {
  justify-content: flex-end;
}

.qty-input {
  width: 68px;
}

header.cart-header {
  flex-wrap: wrap;
  gap: 8px;
}

#cart-table thead {
  display: none;
}

#cart-table, #cart-table tbody, #cart-table tr, #cart-table td {
  display: block;
  width: 100%;
}

#cart-table tbody tr {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 10px;
  margin: 10px auto;
  max-width: 640px;
}

#cart-table tbody td {
  border: none;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 8px;
  padding: 8px 6px;
  min-width: 0;
}

#cart-table tbody td::before {
  content: attr(data-label);
  color: var(--muted);
  font-weight: 600;
}

#cart-table tbody td .cell-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

#cart-table tbody td:nth-child(4) {
  align-items: center;
}

#cart-table tbody td:nth-child(7) {
  display: flex;
  justify-content: flex-end;
  padding-top: 6px;
}

#cart-section .row-gap {
  flex-wrap: wrap;
}

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

.labor-row .field {
  min-width: 0;
}

}

@media (max-width: 720px) {
@media (max-width: 720px) {
#cart-table tbody td[data-label="Qty"] {
  display: grid;
  grid-template-columns: 1fr;
}

#cart-table tbody td[data-label="Qty"]::before {
  content: "";
  display: none;
}

}

}

@media (max-width: 360px) {
#totals .value {
  min-width: 0;
}

}

@media (max-width: 960px) {
.vrow, .vhead {
  grid-template-columns: 18% 18% 10% 1fr 0 12% 16% 16%;
}

.vrow > div:nth-child(5), .vhead > div:nth-child(5) {
  display: none;
}

}

@media (max-width: 430px) {
#table-viewport {
  overflow-x: none;
}

#table-viewport .vhead {
  grid-template-columns: 1fr 140px !important;
  display: grid !important;
  column-gap: 6px !important;
  font-size: 0.8rem;
  letter-spacing: 0.4px;
  padding: 6px;
}

#table-viewport .vrow {
  grid-template-columns: 1fr 140px !important;
  display: grid !important;
  grid-template-rows: 1fr 1fr 1fr;
  grid-template-areas: "sku     actions"
      "vendor  actions"
      "uom     actions";
  align-items: center;
  column-gap: 6px;
  row-gap: 2px;
  height: 72px !important;
  min-height: 68px;
  padding: 6px 8px;
  position: absolute;
  left: 0;
  right: 0;
}

#table-viewport .vhead > :nth-child(5), #table-viewport .vhead > :nth-child(6), .vrow > :nth-child(5), .vrow > :nth-child(6) {
  display: none !important;
}

#table-viewport .vhead > :nth-child(2), #table-viewport .vrow > :nth-child(2) {
  grid-column: 1;
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--bg);
  border-right: 1px solid var(--border);
  box-shadow: 1px 0 0 rgba(0,0,0,.04);
}

#table-viewport .vhead > :nth-child(1), #table-viewport .vrow > :nth-child(1) {
  grid-column: 2;
}

#table-viewport .vhead > :nth-child(3), #table-viewport .vrow > :nth-child(3) {
  grid-column: 3;
}

#table-viewport .vhead > :nth-child(4), #table-viewport .vrow > :nth-child(4) {
  grid-column: 4;
}

#table-viewport .vhead > :nth-child(7), #table-viewport .vrow > :nth-child(7) {
  grid-column: 5;
  text-align: right;
}

#table-viewport .vhead > :nth-child(8), #table-viewport .vrow > :nth-child(8) {
  grid-column: 6;
  text-align: right;
}

#table-viewport .vhead > :nth-child(9), #table-viewport .vrow > :nth-child(9) {
  grid-column: 7;
  justify-self: end;
}

.vrow {
  height: 48px;
}

.vrow .qty-input {
  height: 32px;
  width: 60px;
  padding: 4px 6px;
  font-size: 16px;
}

.vrow .btn.add-to-cart {
  height: 32px;
  line-height: 30px;
  padding: 0 10px;
  font-size: 16px;
}

#table-viewport .vhead > :nth-child(2) {
  position: static !important;
  left: auto !important;
  z-index: auto !important;
  box-shadow: none !important;
  border-right: none !important;
  background: transparent !important;
  text-align: left;
  display: block !important;
}

#table-viewport .vrow > :nth-child(2) {
  position: static !important;
  left: auto !important;
  z-index: auto !important;
  background: transparent !important;
  border-right: 0 !important;
  box-shadow: none !important;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  -webkit-overflow-scrolling: touch;
  grid-area: sku !important;
  font-weight: 600;
  overflow: hidden;
  display: block !important;
}

#table-viewport .vhead, #table-viewport .vrow {
  grid-template-columns: 160px   
      120px   
      56px    
      1fr     
      90px    
      100px   
      132px;
}

#table-viewport .vhead > :not(:nth-child(2)):not(:nth-child(9)) {
  display: none !important;
}

#table-viewport .vhead > :nth-child(9) {
  text-align: right;
  display: block !important;
}

#table-viewport .vrow > :nth-child(4) {
  grid-area: desc;
  font-size: 12px;
  opacity: .8;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#table-viewport .vrow > :nth-child(9) {
  grid-area: actions !important;
  justify-self: end;
  display: block !important;
}

.vrow .vactions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 140px;
  justify-content: flex-end;
}

#table-viewport .vrow > :nth-child(1), #table-viewport .vrow > :nth-child(3), #table-viewport .vrow > :nth-child(5), #table-viewport .vrow > :nth-child(6), #table-viewport .vrow > :nth-child(7), #table-viewport .vrow > :nth-child(8) {
  display: none !important;
}

#table-viewport .vrow > :nth-child(1) {
  grid-area: vendor !important;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block !important;
}

#table-viewport .vrow > :nth-child(3) {
  grid-area: uom !important;
  justify-self: start;
  font-size: 11px;
  line-height: 1.8;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--chip, #f6f7f8);
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: inline-block !important;
}

#table-viewport .vrow > :nth-child(4), #table-viewport .vrow > :nth-child(5), #table-viewport .vrow > :nth-child(6), #table-viewport .vrow > :nth-child(7), #table-viewport .vrow > :nth-child(8) {
  display: none !important;
}

#table-viewport .vhead > * {
  display: none !important;
}

#table-viewport .vrow > * {
  display: none !important;
}

#desc-sheet .ds-panel {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

#table-viewport .vrow > :not(.cell-sku):not(.vactions) {
  pointer-events: none;
}

#table-viewport .vactions, #table-viewport .vactions * {
  pointer-events: auto;
}

#table-viewport .vrow > .cell-sku {
  position: static;
  left: auto;
  z-index: auto;
  box-shadow: none;
  background: transparent;
}

#table-viewport .vhead > div {
  padding: 4px;
}
}

@supports (-webkit-touch-callout: none) {
#table-viewport {
  -webkit-overflow-scrolling: touch;
}

}
.page-title {
  text-align: center;
  margin: 0.5rem 0 1rem;
  font-weight: 700;
}
/* Mode Toggle Styles */
.mode-toggle {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 0;
  border: 1px solid var(--border, #d0d5dd);
  border-radius: 999px;
  overflow: hidden;
  background: var(--card, #fff);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.mode-toggle .mode-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px 14px;
  font: inherit;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}

.mode-toggle .mode-btn:hover {
  background: rgba(16,24,40,.04);
}

.mode-toggle .mode-btn.is-active,
.mode-toggle .mode-btn[aria-pressed="true"] {
  background: var(--brand-soft, #eef2ff);
  color: var(--brand-ink, #3949ab);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .mode-toggle .mode-btn { transition: none; }
}
/* add to your css */
.cart-fab .badge { display:inline-block; min-width:1.25rem; text-align:center; }
/* Loading / status helpers (shared) */
.sel-status { font-size: .85rem; color: var(--muted, #6b7280); }
.sel-spinner { display:none; }
.sel-wrap[data-state="loading"] .sel-spinner { display:inline-block; }
