.buyer-unit-profit {
  display: block;
  margin-top: 3px;
  color: #168555;
  font-size: 11px;
  font-weight: 800;
}

.buyer-unit-profit.negative {
  color: #bd3e49;
}

.price-confirm-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.price-confirm-choice > div,
.price-confirm-choice > form {
  padding: 16px;
  border: 1px solid #dce6f1;
  border-radius: 12px;
  background: #f8fbff;
}

.price-confirm-choice strong {
  display: block;
  margin: 5px 0;
  font-size: 24px;
}

.price-confirm-choice p,
#individual-sale-profit {
  color: #667487;
  font-size: 12px;
}

#individual-sale-profit.negative {
  color: #bd3e49;
}

@media (max-width: 640px) {
  .price-confirm-choice { grid-template-columns: 1fr; }
}

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

.deal-actions button {
  width: 100%;
  min-width: 0;
  padding-left: 8px;
  padding-right: 8px;
}

.live-workspace .deal-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 13px;
}

.live-workspace .deal-card {
  box-sizing: border-box;
  min-width: 0;
  width: auto;
  border: 3px solid #aeb8c4;
  border-radius: 14px;
  overflow: hidden;
}

.live-workspace .deal-card.claimed { border-color: #f0aa35; }
.live-workspace .deal-card.paid { border-color: #32b879; }
.live-workspace .deal-card.delivery-ready { border-color: #1688df; }

.live-workspace .deal-card-image {
  width: 100%;
  height: 220px;
  min-height: 220px;
  max-height: 220px;
}

.live-workspace .deal-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-workspace .deal-card-copy,
.live-workspace .deal-card form,
.live-workspace .deal-card label,
.live-workspace .deal-card input {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .live-workspace .deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 720px) {
  .live-workspace .deal-grid { grid-template-columns: 1fr !important; }
}

.bundle-tools,
.single-products-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 12px;
}
.bundle-tools {
  position: sticky;
  top: 8px;
  z-index: 6;
  padding: 10px 12px;
  border: 1px solid #d9e4ef;
  border-radius: 12px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 5px 18px rgba(23,33,43,.12);
  backdrop-filter: blur(8px);
}
.bundle-tools h2,.single-products-title h2 { margin: 0; }
.bundle-tools p { margin: 3px 0 0; color: #738095; }
.bundle-collage { height: 220px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: #e7edf4; overflow: hidden; }
.bundle-collage img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; min-width: 0; min-height: 0; }
.bundle-collage span { display: grid; place-items: center; color: #98a3b2; background: #f3f6f9; font-size: 11px; }
.bundle-label { color: #7b50ca; font-size: 11px; font-weight: 900; letter-spacing: .06em; }
.bundle-card-price { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; }
.bundle-card-price strong { font-size: 20px; }
.bundle-components { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; }
.bundle-components span { padding: 5px 7px; border-radius: 7px; background: #f0f4f9; font-size: 11px; font-weight: 700; }
.bundle-profit { padding: 12px; border-radius: 10px; background: #f0f7ff; color: #536276; }
.bundle-profit strong { color: #168555; }
.bundle-profit strong.negative { color: #bd3e49; }
.ready-bundle-form select { width: 100%; min-width: 0; height: 42px; padding: 7px; border: 1px solid #ccd7e3; border-radius: 8px; background: #fff; }
.ready-bundle-form .deal-steps,.ready-bundle-profit { grid-column: 1/-1; }
.ready-bundle-profit { text-align: center; color: #168555; font-weight: 850; white-space: nowrap; }
.ready-bundle-profit.negative { color: #bd3e49; }
.ready-bundle-form label { overflow: hidden; }
@media (max-width: 640px) { .bundle-tools { align-items: flex-start; flex-direction: column; } }

.bundle-pick-mode {
  border-color: #9b6be0 !important;
  box-shadow: 0 0 0 2px rgba(123,80,202,.12);
}
.bundle-pick-mode form,
.bundle-pick-mode .deal-steps { display: none !important; }
.bundle-pick-button {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  width: auto;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid #8c5bd4;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  color: #6b3eb7;
  box-shadow: 0 3px 10px rgba(31,22,48,.18);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.bundle-pick-button.active { background: #6b3eb7; color: #fff; }
.live-workspace .deal-card { position: relative; }
.single-products-title p { margin: 0 0 0 auto; color: #758195; font-size: 12px; }
.bundle-draft-bar {
  position: fixed;
  z-index: 12;
  right: 22px;
  bottom: 18px;
  left: 267px;
  display: grid;
  grid-template-columns: minmax(280px,1fr) 190px 170px auto auto;
  align-items: end !important;
  gap: 10px !important;
  padding: 12px;
  border: 2px solid #8c5bd4;
  border-radius: 15px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 12px 35px rgba(31,22,48,.24);
}
.bundle-draft-items { display: flex; min-height: 58px; gap: 7px; overflow-x: auto; }
.bundle-draft-items p { align-self: center; margin: 0; color: #697588; }
.bundle-draft-items button { position: relative; display: grid; grid-template-columns: 44px minmax(72px,110px); align-items: center; gap: 6px; flex: none; padding: 5px 19px 5px 5px; border: 1px solid #d7c9ed; border-radius: 9px; background: #faf7ff; text-align: left; cursor: pointer; }
.bundle-draft-items button span { width: 44px; height: 44px; overflow: hidden; border-radius: 6px; background: #eef1f4; display: grid; place-items: center; font-size: 9px; }
.bundle-draft-items button img { width: 100%; height: 100%; object-fit: cover; }
.bundle-draft-items button b { font-size: 10px; line-height: 1.2; }
.bundle-draft-items button i { position: absolute; right: 5px; top: 3px; color: #9b3f58; font-style: normal; font-weight: 900; }
.bundle-draft-bar > input { height: 42px; padding: 9px; border: 1px solid #ccd7e3; border-radius: 8px; }
.bundle-draft-price { display: grid; gap: 3px; }
.bundle-draft-price label { display: grid; gap: 2px; font-size: 10px; color: #6b7789; }
.bundle-draft-price input { height: 29px !important; padding: 5px 7px !important; }
.bundle-draft-price strong { font-size: 11px; color: #168555; white-space: nowrap; }
.bundle-draft-price strong.negative { color: #bd3e49; }
@media (max-width: 950px) { .bundle-draft-bar { left: 100px; grid-template-columns: 1fr 160px 150px; } .bundle-draft-bar > button { grid-row: 2; } }
@media (max-width: 720px) { .bundle-draft-bar { left: 12px; right: 12px; grid-template-columns: 1fr 1fr; max-height: 55vh; overflow: auto; } .bundle-draft-items { grid-column: 1/-1; } }

/* Compact live cards: no artificial vertical gap between stock controls and progress. */
.live-workspace .deal-card-copy .deal-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  margin: 10px 0;
  padding-top: 0;
}
.live-workspace .deal-steps span {
  min-width: 0;
  padding: 5px 4px;
  text-align: center;
  white-space: nowrap;
  font-size: 10px;
}
.live-workspace .deal-card form { align-items: start; }
.live-workspace .deal-card form label { align-self: start; align-content: start; }
.live-workspace .deal-card form input { height: 42px; }
.live-workspace .buyer-unit-profit {
  grid-column: 1 / -1;
  min-height: 14px;
  margin: 0;
  line-height: 14px;
  text-align: center;
  white-space: nowrap;
}
.nav-count { margin-left: auto; min-width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 12px; background: #e34e5c; color: #fff; font-size: 11px; }
.nav-count.hidden { display: none; }
.access-requests { max-width: 920px; margin: 0 auto; }
.access-requests-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.access-requests-head h2,.access-requests-head p { margin: 0; }
.access-requests-head p { margin-top: 5px; color: #6f7c8e; }
.access-requests-head > span { display: grid; place-items: center; min-width: 42px; height: 42px; border-radius: 22px; background: #e8f2ff; color: #1769c2; font-weight: 900; }
#access-request-list { display: grid; gap: 10px; }
#access-request-list article { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid #dfe7f0; border-radius: 13px; background: #fff; }
.request-avatar { width: 46px; height: 46px; display: grid; place-items: center; flex: none; border-radius: 12px; background: #e8f2ff; color: #1769c2; font-size: 20px; font-weight: 900; }
.request-person { flex: 1; }
.request-person h3 { margin: 0 0 4px; }
.request-person a { color: #1769c2; font-weight: 750; text-decoration: none; }
.request-person small { display: block; margin-top: 5px; color: #788496; }
.request-actions { display: flex; gap: 8px; }
.access-empty { padding: 60px 20px; border: 1px dashed #cfd9e5; border-radius: 14px; background: #fff; text-align: center; color: #6f7c8e; }
.access-empty b { color: #1d2938; font-size: 18px; }
@media(max-width:700px){#access-request-list article{align-items:flex-start;flex-wrap:wrap}.request-actions{width:100%}.request-actions button{flex:1}}

.buyer-money-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 16px 0; }
.buyer-money-card { display: grid; gap: 7px; min-height: 132px; padding: 20px; border: 1px solid #dfe7f0; border-radius: 16px; background: #fff; }
.buyer-money-card.primary { border-color: #2563eb; background: linear-gradient(145deg,#102a56,#18447f); color: #fff; }
.buyer-money-card small { color: #718096; font-weight: 700; }
.buyer-money-card.primary small,.buyer-money-card.primary span { color: #cfe0ff; }
.buyer-money-card strong { font-size: clamp(26px,3vw,40px); letter-spacing: -.04em; }
.buyer-money-card span { align-self: end; color: #718096; font-size: 12px; }
.buyer-dashboard-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(280px,.75fr); gap: 14px; }
.buyer-chart-panel,.buyer-work-panel { padding: 18px; }
.buyer-chart-panel .panel-head p { margin: 3px 0 0; color: #718096; font-size: 12px; }
.buyer-earnings-chart { display: grid; grid-template-columns: repeat(14,minmax(9px,1fr)); align-items: end; gap: 8px; height: 210px; padding-top: 18px; border-bottom: 1px solid #dfe7f0; }
.buyer-earnings-chart > div { display: grid; grid-template-rows: 1fr 18px; align-items: end; height: 100%; min-width: 0; }
.buyer-earnings-chart span { display: block; width: 100%; min-height: 2px; border-radius: 7px 7px 2px 2px; background: linear-gradient(#2563eb,#8bb9ff); transition: height .2s ease; }
.buyer-earnings-chart small { padding-top: 5px; color: #8490a2; text-align: center; font-size: 9px; white-space: nowrap; }
.buyer-work-panel { align-content: start; }
.buyer-work-panel > button { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 9px; padding: 14px; border: 1px solid #dfe7f0; border-radius: 12px; background: #f8faff; color: #17263c; cursor: pointer; text-align: left; }
.buyer-work-panel > button span { display: grid; grid-template-columns: 42px 1fr; align-items: center; }
.buyer-work-panel > button b { grid-row: 1/3; font-size: 27px; color: #2563eb; }
.buyer-work-panel > button small { font-size: 12px; }
.buyer-work-panel > button i { color: #2563eb; font-size: 11px; font-style: normal; font-weight: 800; }
.buyer-work-panel > p { margin: 14px 2px 0; color: #718096; font-size: 11px; line-height: 1.5; }
@media(max-width:900px){.buyer-money-grid{grid-template-columns:1fr}.buyer-dashboard-grid{grid-template-columns:1fr}.buyer-earnings-chart{height:170px}}
.fulfillment-choice { display: grid; gap: 12px; margin-top: 18px; }
.fulfillment-choice button { display: grid; gap: 5px; width: 100%; padding: 18px; text-align: left; }
.fulfillment-choice button b { font-size: 16px; }
.fulfillment-choice button span { font-size: 12px; line-height: 1.45; opacity: .82; }
.pickup-preparation { display: grid; gap: 7px; margin: 14px 0; }
.pickup-order-action { display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid #e2e9f2; border-radius: 10px; background: #f8faff; }
.pickup-order-action > span:first-child { margin-right: auto; font-weight: 800; }
