.collection-portal {
  width: min(1500px, calc(100% - 32px));
  margin: 24px auto 80px;
  color: #111;
}

.collection-hero,
.collection-pull-panel,
.collection-upload {
  border: 1px solid #ddd8c7;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(29, 35, 31, .07);
}

.collection-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 38px 42px;
  background: #ffd100;
}

.collection-hero h1 {
  margin: 4px 0 8px;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: .96;
}

.collection-hero p { max-width: 760px; margin: 0; font-size: 1.08rem; }
.collection-hero > div:last-child { min-width: 180px; padding: 20px; border: 1px solid rgba(0,0,0,.18); border-radius: 20px; }
.collection-hero > div:last-child strong { display: block; font-size: 2.25rem; }
.collection-hero > div:last-child span { display: block; margin-top: 4px; }

.collection-pull-panel { margin-top: 20px; padding: 28px; }
.collection-pull-controls { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 18px; align-items: end; }
.collection-pull-controls label span,
.collection-fixed-store span,
.collection-date span { display: block; margin-bottom: 7px; font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.collection-pull-controls select,
.collection-date input { width: 100%; min-height: 54px; padding: 0 16px; border: 1px solid #cfd8d2; border-radius: 14px; background: #fff; color: #111; font: inherit; }
.collection-fixed-store { min-height: 54px; padding: 10px 16px; border: 1px solid #cfd8d2; border-radius: 14px; }
.collection-fixed-store span { margin: 0 0 2px; }
.collection-fixed-store strong { font-size: 1.08rem; }
.collection-pull-button,
.collection-send-button,
.collection-upload button { min-height: 54px; padding: 0 26px; border: 0; border-radius: 14px; background: #ffd100; color: #111; font: inherit; font-weight: 900; cursor: pointer; }
.collection-pull-button:disabled,
.collection-send-button:disabled,
.collection-upload button:disabled { cursor: wait; opacity: .55; }
.collection-queue-actions { display: flex; gap: 10px; align-items: center; }
.collection-send-button { border: 2px solid #111; background: #fff; }

.collection-ready,
.collection-empty { margin: 26px 0 0; padding: 28px; border-radius: 18px; background: #f2f5f2; text-align: center; }
.collection-ready strong,
.collection-ready span { display: block; }
.collection-ready strong { font-size: 1.25rem; }
.collection-ready span { margin-top: 5px; color: #65706a; }

.collection-call-card { margin-top: 24px; padding: 30px; border: 2px solid #ffd100; border-radius: 22px; background: #fffdf2; }
.collection-overflow-banner { margin: -10px 0 20px; padding: 12px 16px; border-radius: 12px; background: #111; color: #ffd100; font-weight: 900; }
.collection-call-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.collection-call-heading h2 { margin: 4px 0 0; font-size: clamp(2rem, 4vw, 3.6rem); }
.collection-customer-number { min-width: 250px; padding: 16px 18px; border-radius: 16px; background: #111; color: #fff; }
.collection-customer-number { text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.collection-customer-number:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.collection-customer-number span,
.collection-customer-number small { display: block; }
.collection-customer-number strong { display: block; margin: 4px 0 6px; color: #ffd100; font-size: 1.55rem; }
.collection-customer-number small { max-width: 300px; color: #d8ddd9; line-height: 1.35; }

.collection-call-highlights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.collection-call-highlights > div { min-width: 0; padding: 18px; border: 1px solid #dce3df; border-radius: 16px; background: #f1f4f1; }
.collection-call-highlights span,
.collection-account-grid h3 { display: block; margin: 0 0 7px; font-size: .76rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.collection-call-highlights strong { display: block; overflow-wrap: anywhere; font-size: 1.3rem; }
.collection-account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.collection-account-grid section { padding: 20px; border: 1px solid #dce3df; border-radius: 16px; background: #fff; }
.collection-account-grid p { display: flex; justify-content: space-between; gap: 18px; margin: 10px 0 0; }
.collection-account-grid p span { color: #65706a; }
.collection-account-grid p strong { text-align: right; overflow-wrap: anywhere; }
.collection-call-actions { display: grid; grid-template-columns: auto auto 1fr; gap: 12px; align-items: center; margin-top: 18px; }
.collection-call-actions a,
.collection-call-actions button { min-height: 52px; padding: 0 22px; border-radius: 13px; font: inherit; font-weight: 900; }
.collection-call-actions a { display: inline-flex; align-items: center; justify-content: center; border: 2px solid #111; color: #111; text-decoration: none; }
.collection-call-actions button { border: 0; background: #ffd100; color: #111; cursor: pointer; }
.collection-call-actions button:disabled { cursor: wait; opacity: .6; }
.collection-call-actions small { color: #65706a; line-height: 1.35; }

.collection-source { margin: 12px 4px 0; color: #65706a; font-size: .9rem; }
.collection-error,
.collection-success { margin: 16px 0 0; padding: 15px 18px; border-radius: 14px; font-weight: 800; }
.collection-error { background: #ffebe7; color: #8f1f11; }
.collection-success { grid-column: 1 / -1; background: #e6f7ec; color: #174d2f; }

.collection-upload { display: grid; grid-template-columns: 1.15fr 1fr 210px auto; gap: 18px; align-items: end; margin-top: 24px; padding: 28px; }
.collection-upload h2 { margin: 4px 0 8px; font-size: 1.7rem; }
.collection-upload p { margin: 0; line-height: 1.45; }
.collection-dropzone { display: grid; place-items: center; min-height: 116px; padding: 18px; border: 2px dashed #b9b7aa; border-radius: 16px; background: #faf9f2; text-align: center; cursor: pointer; }
.collection-dropzone.is-dragging { border-color: #111; background: #fff4b8; }
.collection-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.collection-dropzone strong,
.collection-dropzone span { display: block; overflow-wrap: anywhere; }
.collection-dropzone span { margin-top: 5px; color: #65706a; font-size: .82rem; }
.collection-date { align-self: center; }
.collection-loading { padding: 80px 24px; font-size: 1.25rem; font-weight: 800; }

@media (max-width: 980px) {
  .collection-upload { grid-template-columns: 1fr 1fr; }
  .collection-upload > div:first-child,
  .collection-dropzone { grid-column: 1 / -1; }
  .collection-call-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .collection-portal { width: min(100% - 18px, 1500px); margin-top: 10px; }
  .collection-hero { display: block; padding: 26px 22px; }
  .collection-hero > div:last-child { margin-top: 20px; }
  .collection-pull-panel,
  .collection-upload { padding: 18px; }
  .collection-pull-controls,
  .collection-upload { grid-template-columns: 1fr; }
  .collection-queue-actions { display: grid; grid-template-columns: 1fr; }
  .collection-upload > * { grid-column: auto; }
  .collection-call-card { padding: 18px; }
  .collection-call-heading { display: block; }
  .collection-customer-number { min-width: 0; margin-top: 18px; }
  .collection-call-highlights { grid-template-columns: 1fr; }
  .collection-call-actions { grid-template-columns: 1fr; }
}
