/* UX refinements accumulated in V85–V92, merged in their original cascade order.
 * New design work goes in design-system.css, which loads after this file. */

/* ===== from soub-ux.css ===== */
/* SOUB v85 — responsive interface refinements. Presentation only; server authorization remains unchanged. */
:root {
  --soub-action: #075ee5;
  --soub-surface: #f5f8fe;
  --soub-outline: #dce8f8;
}
#syncStatus {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  color: #074d9f;
  background: #eef6ff;
  border: 1px solid #d1e2fa;
  border-radius: 999px;
  min-height: 42px;
  padding-inline: 14px;
}
#syncStatus::before {
  content: '◉';
  font-size: 11px;
  color: #188c72;
  flex: none;
}
#syncStatus:hover {
  background: #dfeeff;
}
.soubProfileIntro,
.soubSteps {
  border-radius: 12px;
  border: 1px solid #d7e6fc;
  background: #f1f7ff;
  padding: 12px 15px;
  margin: 10px 0 18px;
  color: #29486c;
  font-size: 14px;
  line-height: 1.8;
}
#accountDialog.soubVerifiedPhone #accountForm .fields > label:has(input[name='phone']) {
  display: none;
}
#accountForm button[type='submit'],
#carrierForm #saveCarrier {
  min-height: 48px;
}
#carrierForm .soubCarrierIdentity {
  display: none;
} /* Name and phone are inherited from verified account. */
#carrierDialog .fleetEditor {
  border: 1px solid #dfebfb;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-block: 16px;
  box-shadow: 0 4px 14px #184e9310;
}
#carrierDialog .fleetEditor > .dialoghead {
  margin-bottom: 12px;
}
#carrierDialog .fleetEditor .fields {
  align-items: start;
}
#carrierDialog .fleetEditor input[type='file'] {
  background: #f6faff;
  border: 1px dashed #86ace1;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  max-width: 100%;
}
#carrierDialog .fleetEditor label:has([data-files]) {
  order: 4;
  background: #f8fbff;
  padding: 12px;
  border-radius: 12px;
}
#carrierDialog .fleetEditor .fleetAdvanced {
  order: 10;
  margin-top: 8px;
  background: #fafcff;
  border: 1px solid #e0eafa;
  border-radius: 12px;
  padding: 10px 14px;
}
#carrierDialog .fleetAdvanced summary {
  cursor: pointer;
  color: #0c55a8;
  font-weight: 700;
  min-height: 35px;
}
#carrierDialog .fleetAdvanced .vehicleMapSetup {
  margin: 8px 0 0;
}
#carrierDialog #addFleetVehicle {
  width: 100%;
  border: 1px dashed #7fa9df;
  color: #0953ac;
  min-height: 48px;
}
#carrierDialog #saveCarrier {
  background: #1265da;
  color: white;
}
#carrierDialog #carrierError:empty,
#requestDialog [role='alert']:empty {
  display: none;
}
/* Messenger-style conversations, with existing server-side send and agreement confirmation. */
#detailsDialog .messageThread,
#bookingChatDialog .messageThread {
  background: #fff;
  border: 1px solid #d6e5ef;
  border-radius: 17px;
  padding: 15px;
  margin: 22px 0;
  overflow: visible;
}
.soubChatHeader {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.soubChatHeader h3 {
  margin: 0;
}
.chatJumpConfirm {
  border: 1px solid #9ac2f7 !important;
  color: #0755b3 !important;
  background: #eef6ff !important;
  font-size: 13px !important;
  padding: 8px 12px !important;
}
#detailsDialog .messageList,
#bookingChatDialog .messageList {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  min-height: 150px;
  max-height: min(48dvh, 440px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px 12px;
  margin: 12px 0;
  border-radius: 15px;
  background: linear-gradient(120deg, #eff6f3, #eef5fb);
  scrollbar-gutter: stable;
}
#detailsDialog .messageList article,
#bookingChatDialog .messageList article {
  display: block;
  max-width: min(83%, 530px);
  min-width: 64px;
  width: max-content;
  overflow-wrap: anywhere;
  border-radius: 15px;
  box-shadow: 0 1px 2px #16416819;
  padding: 10px 13px;
  margin: 0;
  line-height: 1.55;
}
#detailsDialog .messageList article.mineMessage,
#bookingChatDialog .messageList article.mineMessage {
  align-self: flex-start;
  background: #def5e7;
  border-end-start-radius: 5px;
}
#detailsDialog .messageList article.otherMessage,
#bookingChatDialog .messageList article.otherMessage {
  align-self: flex-end;
  background: white;
  border-end-end-radius: 5px;
}
#detailsDialog .messageList article b,
#bookingChatDialog .messageList article b {
  display: block;
  font-size: 12px;
  color: #28618f;
  line-height: 1.5;
}
#detailsDialog .messageList article p,
#bookingChatDialog .messageList article p {
  margin: 3px 0 2px !important;
  font-size: 15px !important;
  line-height: 1.6;
}
#detailsDialog .messageList article time,
#bookingChatDialog .messageList article time {
  display: block;
  font-size: 10px;
  color: #6a8296;
  text-align: end;
  margin-top: 3px;
}
#detailsDialog .messageThread form#agreementMessageForm {
  display: flex;
  align-items: end;
  gap: 9px;
  flex-wrap: wrap;
  border-top: 1px solid #e5edf5;
  margin-top: 12px;
  padding: 14px 0 0;
}
#agreementMessageForm > label[for='agreementMessageInput'] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#agreementMessageForm textarea {
  flex: 1 1 200px;
  min-width: 0;
  min-height: 47px !important;
  max-height: 130px;
  border-radius: 18px !important;
  resize: vertical;
  padding: 12px !important;
  margin: 0 !important;
  background: #fafcff;
  border: 1px solid #cadcf3;
}
#agreementMessageForm button[type='submit'] {
  min-height: 48px;
  border-radius: 15px;
  padding: 9px 16px;
  flex: none;
  margin: 0 !important;
}
#bookingChatDialog #bookingMessageForm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #dde9f6;
}
#bookingChatDialog .soubChatComposerLabel {
  display: block;
  font-size: 0;
  min-width: 0;
}
#bookingChatDialog .soubChatComposerLabel textarea {
  font-size: 15px;
  line-height: 1.5;
  min-height: 48px !important;
  max-height: 120px;
  width: 100%;
  border-radius: 16px;
  padding: 12px !important;
  resize: vertical;
}
#bookingChatDialog #bookingMessageForm button[type='submit'] {
  min-height: 48px;
  margin: 0 !important;
  border-radius: 15px;
}
#bookingChatDialog #bookingChatError {
  grid-column: 1/-1;
}
#detailsDialog .negotiationPanel {
  scroll-margin-top: 70px;
  background: #f9fcff;
  border: 1px solid #cfe0f6;
  border-radius: 15px;
  padding: 14px;
}
#detailsDialog .negotiationPanel .actions {
  position: sticky;
  bottom: 0;
  background: linear-gradient(0deg, #fff 84%, #ffffffec);
  padding: 12px 4px;
  z-index: 8;
  border-top: 1px solid #e3eefa;
}
#detailsDialog .negotiationPanel .actions #confirmFinalAgreement {
  min-height: 50px;
  flex: 1 1 220px;
}
/* Primary decisions remain visible when completing multi-field forms. */
#carrierDialog #carrierForm > .actions,
#requestDialog #requestForm > .actions,
#equipmentDialog #equipmentForm > .actions,
#accountDialog #accountForm > .actions {
  position: sticky;
  bottom: 0;
  z-index: 10;
  background: #fffffffa;
  box-shadow: 0 -8px 20px #fffaf7;
  border-top: 1px solid #e3eaf4;
  margin-top: 14px;
  padding: 12px 4px calc(12px + env(safe-area-inset-bottom));
  display: flex;
  gap: 9px;
}
#carrierDialog #carrierForm > .actions .primary,
#requestDialog #requestForm > .actions .primary,
#equipmentDialog #equipmentForm > .actions .primary,
#accountDialog #accountForm > .actions .primary {
  flex: 1;
  min-height: 50px;
  font-size: 16px;
  border-radius: 12px;
}
#requestDialog :is(button[type='submit'], button[data-confirm]),
#equipmentDialog button[type='submit'] {
  touch-action: manipulation;
}
@media (max-width: 900px) {
  body {
    overflow-x: hidden;
  }
  header {
    padding: 10px 14px;
    gap: 9px;
    flex-wrap: wrap;
  }
  main {
    padding: 20px 13px 60px;
    max-width: 100%;
  }
  .intro {
    flex-wrap: wrap;
    align-items: start;
    margin-bottom: 15px;
  }
  .intro h1 {
    font-size: clamp(22px, 5vw, 30px);
  }
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .layout aside {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
  }
  .board,
  .panel {
    min-width: 0;
    border-radius: 15px;
  }
  .cards {
    padding: 0 14px;
  }
  .toolbar {
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .requestActions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    width: 100%;
  }
  .requestActions button {
    flex: 1 1 160px;
    min-width: 0;
    min-height: 46px;
  }
  #homeSurface,
  .roleLanding {
    min-width: 0;
    max-width: 100%;
  }
  .roleChoiceGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .roleChoice {
    min-height: 150px;
    padding: 13px 8px;
  }
  .roleChoice b {
    font-size: 16px;
  }
  .roleChoice small {
    font-size: 12px;
  }
  dialog {
    max-width: min(96vw, 700px);
    width: min(96vw, 700px);
    max-height: 92dvh;
    padding: 15px;
  }
  dialog :is(input, select, textarea, button) {
    max-width: 100%;
  }
  .fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  #syncStatus {
    max-width: min(36vw, 190px);
  }
}
@media (max-width: 600px) {
  body {
    padding-bottom: 18px;
  }
  header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    padding: 10px 12px;
  }
  header .brand {
    margin-inline-end: auto;
    max-width: 40%;
  }
  header nav {
    position: static !important;
    inset: auto !important;
    box-shadow: none !important;
    border-top: 0 !important;
    border-bottom: 1px solid #e0eaf6;
    z-index: auto !important;
    order: 10;
    display: flex !important;
    overflow-x: auto;
    width: 100%;
    flex-wrap: nowrap;
    scrollbar-width: thin;
    gap: 6px;
    padding: 4px 0 !important;
    background: transparent !important;
  }
  header nav:not(:has(button:not([hidden]))) {
    display: none !important;
  }
  header nav button {
    flex: 0 0 auto;
    min-width: 76px;
    font-size: 12px;
    padding: 8px 10px;
    min-height: 41px;
  }
  header .notificationArea {
    margin: 0;
  }
  header #switchRole {
    padding: 7px 8px;
    min-height: 42px;
  }
  header #syncStatus {
    max-width: 130px;
    font-size: 12px;
    padding: 7px 9px;
    min-height: 41px;
  }
  header .siteLanguageControl {
    flex: 0 0 auto;
  }
  .roleLanding {
    padding: 15px 11px;
    margin: 10px auto 20px;
  }
  .roleLanding h2 {
    font-size: 21px;
  }
  .roleLanding .roleChoiceGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }
  .roleLanding .roleChoice:nth-child(3) {
    grid-column: 1/-1;
  }
  .roleChoice {
    min-height: 134px;
  }
  .roleChoice span {
    font-size: 31px;
  }
  .roleChoice small {
    line-height: 1.5;
  }
  .intro {
    padding: 2px 1px;
  }
  .requestActions button {
    flex: 1 1 44%;
    padding: 10px 8px;
    font-size: 13px;
  }
  .toast {
    bottom: 20px;
  }
  .cardtop,
  .cardfoot,
  .route {
    flex-wrap: wrap;
    gap: 9px;
  }
  .city {
    font-size: 19px;
  }
  .chips {
    gap: 5px;
  }
  .chip {
    font-size: 12px;
  }
  dialog {
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    min-height: 0;
    border-radius: 18px 18px 0 0 !important;
    padding: 14px 13px !important;
    margin: auto 0 0;
    inset: auto 0 0;
  }
  dialog[open].dialogPinnedLayout {
    max-height: 100dvh !important;
  }
  dialog::backdrop {
    background: #071d38a8;
  }
  dialog .fields {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 11px;
  }
  dialog .fields label,
  dialog .fields .full {
    grid-column: 1/-1;
    min-width: 0;
  }
  dialog .dialoghead h2 {
    font-size: 18px;
  }
  #carrierDialog .fleetEditor {
    padding: 12px;
  }
  #detailsDialog .messageThread,
  #bookingChatDialog .messageThread {
    padding: 9px;
    margin: 12px 0;
  }
  #detailsDialog .messageList,
  #bookingChatDialog .messageList {
    min-height: 180px;
    max-height: 43dvh;
    padding: 9px 7px;
  }
  #detailsDialog .messageList article,
  #bookingChatDialog .messageList article {
    max-width: 90%;
  }
  #agreementMessageForm textarea {
    flex-basis: 110px;
  }
  #agreementMessageForm button[type='submit'],
  #bookingMessageForm button[type='submit'] {
    padding: 8px 11px !important;
    font-size: 13px;
  }
  .chatJumpConfirm {
    width: 100%;
  }
  .soubChatHeader {
    align-items: stretch;
  }
  .chatDisclaimer {
    font-size: 11px !important;
    line-height: 1.5;
  }
  #carrierDialog #carrierForm > .actions .primary,
  #requestDialog #requestForm > .actions .primary,
  #equipmentDialog #equipmentForm > .actions .primary {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .soubChatHeader * {
    scroll-behavior: auto;
  }
}

/* ===== from soub-v86.css ===== */
/* SOUB v86 — carrier-focused navigation and fixed actions for negotiation chats. */
#signInLink {
  display: none !important;
} /* OTP sign-in uses the named account button only */
.carrierOfferTabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 20px;
  border-bottom: 1px solid #e2eaf6;
  background: #f9fbff;
}
.carrierOfferTabs[hidden] {
  display: none !important;
}
.carrierOfferTabs button {
  border: 1px solid #cbdcf2;
  background: #fff;
  color: #154a87;
  border-radius: 999px;
  min-height: 43px;
  padding: 9px 16px;
}
.carrierOfferTabs button[aria-pressed='true'] {
  background: #095dcc;
  color: #fff;
  border-color: #095dcc;
}
nav [data-nav-action] {
  min-height: 43px;
}
#detailsDialog.soubAgreementChat {
  width: min(790px, 96vw);
  padding: 14px 18px;
  max-height: 94dvh;
}
#detailsDialog.soubAgreementChat > .dialogPinnedHeader {
  display: block !important;
  padding: 4px 0 12px;
  margin-bottom: 0;
  border-bottom: 1px solid #dce7f4;
  flex: 0 0 auto;
}
#detailsDialog.soubAgreementChat > .dialogPinnedHeader > h2 {
  font-size: 15px;
  font-weight: 700;
  margin-inline-end: 48px;
  color: #56718a;
}
#detailsDialog.soubAgreementChat > .dialogPinnedHeader > button.close {
  position: absolute;
  top: 2px;
  inset-inline-end: 0;
  min-height: 42px;
  min-width: 42px;
}
.soubDealHeader {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding-top: 8px;
  flex-wrap: wrap;
}
.soubDealRoute {
  flex: 1 1 210px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.soubDealRoute strong {
  color: #173c66;
  font-size: 17px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.soubDealRoute small {
  font-size: 12px;
  color: #67809b;
}
.soubDealPrice {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}
.soubDealPrice strong {
  color: #0d6a48;
  font-size: 20px;
  white-space: nowrap;
}
.soubDealPrice small {
  font-size: 11px;
  color: #54687c;
}
.soubDealPrice .soubPriceEdit {
  padding: 6px 8px;
  min-height: 33px;
  font-size: 12px;
  background: #f1f7ff;
  border-color: #afd3f4;
}
.soubInlinePrice {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}
.soubInlinePrice input {
  width: 105px;
  max-width: 100%;
  margin: 0;
  min-height: 39px;
  padding: 4px 8px;
}
.soubInlinePrice button {
  min-height: 39px;
  padding: 5px 9px;
}
.soubInlineError {
  flex: 1 0 100%;
  color: #b42335;
}

#detailsDialog.soubAgreementChat > .dialogScrollBody {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: 0 2px;
  overscroll-behavior: contain;
}
#detailsDialog.soubAgreementChat .contact {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
#detailsDialog.soubAgreementChat .messageThread {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 230px;
  min-width: 0;
  margin: 0;
  padding: 10px 0 4px;
  border: 0;
  background: transparent;
}
#detailsDialog.soubAgreementChat .soubChatHeader {
  padding: 0 2px 2px;
  margin-bottom: 0;
}
#detailsDialog.soubAgreementChat .soubChatHeader h3 {
  font-size: 14px;
  color: #57728b;
}
#detailsDialog.soubAgreementChat .messageThread > p.privacyHint {
  display: none;
}
#detailsDialog.soubAgreementChat .messageThread > .messageList {
  flex: 1 1 auto;
  min-height: 210px;
  max-height: none;
  height: clamp(260px, 48dvh, 530px);
  padding: 14px 12px;
  background: #e9f2ed
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="62" height="62"%3E%3Cpath d="M2 40l7-5m24-21l5 8" fill="none" stroke="%23cce0d1" stroke-width="2" opacity=".45"/%3E%3C/svg%3E');
  scrollbar-gutter: stable;
  border-radius: 12px;
  overscroll-behavior: contain;
}
#detailsDialog.soubAgreementChat .messageThread > .chatDisclaimer {
  font-size: 10px;
  line-height: 1.4;
  padding: 5px 8px;
  color: #61778c;
}
#detailsDialog.soubAgreementChat form#agreementMessageForm {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: end;
  gap: 7px;
  flex: 0 0 auto;
  padding: 9px 2px 4px;
  margin: 0;
  border: 0;
  background: #fff;
}
#detailsDialog.soubAgreementChat form#agreementMessageForm[hidden] {
  display: none !important;
}
#detailsDialog.soubAgreementChat #agreementMessageInput {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  min-height: 46px !important;
  height: 46px;
  margin: 0;
  padding: 9px 12px !important;
  border-radius: 18px !important;
  resize: vertical;
}
#detailsDialog.soubAgreementChat form#agreementMessageForm > .voiceComposer {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  min-width: 40px;
}
#detailsDialog.soubAgreementChat form#agreementMessageForm > .imageComposer {
  grid-column: 3;
  grid-row: 1;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  min-width: 75px;
  display: flex;
  gap: 3px;
  align-items: center;
  flex-wrap: wrap;
}
#detailsDialog.soubAgreementChat form#agreementMessageForm > button[type='submit'] {
  grid-column: 4;
  grid-row: 1;
  margin: 0 !important;
  min-height: 46px;
  white-space: nowrap;
}
#detailsDialog.soubAgreementChat .voiceComposer .voiceRecord,
#detailsDialog.soubAgreementChat .imageComposer :is(.imageChoose, .imageCapture) {
  min-width: 40px;
  width: 40px;
  height: 45px;
  display: inline-grid;
  place-items: center;
  padding: 4px !important;
  margin: 0;
  background: #f2f7ff;
  border: 1px solid #d2e1ee;
  border-radius: 12px;
}
#detailsDialog.soubAgreementChat .voiceComposer .voiceStatus {
  display: none;
}
#detailsDialog.soubAgreementChat .voiceComposer:has(.isRecording) .voiceStatus,
#detailsDialog.soubAgreementChat .voiceComposer:has(.voiceDraft:not([hidden])) .voiceStatus,
#detailsDialog.soubAgreementChat .voiceComposer:has(.voiceError:not(:empty)) .voiceStatus {
  display: block;
  position: absolute;
  bottom: 100%;
  right: 0;
  background: white;
  border: 1px solid #e1eaf1;
  z-index: 5;
  padding: 6px;
  white-space: nowrap;
  border-radius: 8px;
}
#detailsDialog.soubAgreementChat :is(.voiceDraft, .voiceError, .imageDraft, .imageStatus:not(:empty)) {
  grid-column: 1/-1;
  width: min(360px, 85vw);
  max-width: 100%;
  background: #fff;
  border-radius: 12px;
}
#detailsDialog.soubAgreementChat .voiceComposer:has(.voiceDraft:not([hidden])) .voiceDraft,
#detailsDialog.soubAgreementChat .imageComposer:has(.imageDraft:not([hidden])) .imageDraft {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 6;
  padding: 9px;
  border: 1px solid #c8daea;
  box-shadow: 0 8px 20px #20395133;
}
#detailsDialog.soubAgreementChat #agreementMessageForm > .voiceComposer,
#detailsDialog.soubAgreementChat #agreementMessageForm > .imageComposer {
  position: relative;
}
#detailsDialog.soubAgreementChat .soubDealMore {
  margin-top: 8px;
  border: 1px solid #dce7f4;
  border-radius: 12px;
  padding: 10px 13px;
  background: #f9fbfd;
}
#detailsDialog.soubAgreementChat .soubDealMore summary {
  cursor: pointer;
  color: #275784;
  font-weight: 700;
}
#detailsDialog.soubAgreementChat .soubDealMore > :not(summary) {
  margin-top: 10px;
}
#detailsDialog.soubAgreementChat > .soubDealFooter {
  display: flex !important;
  flex: 0 0 auto;
  gap: 7px;
  justify-content: stretch;
  align-items: center;
  margin: 0;
  padding: 10px 0 calc(8px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #d9e7ef;
  z-index: 20;
}
#detailsDialog.soubAgreementChat > .soubDealFooter > .soubDealAction {
  min-height: 48px;
  flex: 1 1 0;
  padding: 9px 8px;
  font-size: 14px;
  margin: 0;
}
#detailsDialog.soubAgreementChat > .soubDealFooter > .dialogBottomClose {
  min-height: 48px;
  min-width: 76px;
  flex: 0 1 auto;
  padding: 8px 11px;
}
#detailsDialog.soubAgreementChat > .soubDealFooter > #endNegotiation {
  border-color: #f2b2b7;
  color: #b42335;
  background: #fff6f6;
}
#detailsDialog.soubAgreementChat > .soubDealFooter > #confirmFinalAgreement {
  background: #1265da;
  color: white;
}
@media (max-width: 600px) {
  .carrierOfferTabs {
    padding: 10px 12px;
  }
  .carrierOfferTabs button {
    flex: 1 1 auto;
    font-size: 13px;
  }
  #detailsDialog.soubAgreementChat {
    height: 100dvh;
    max-height: 100dvh !important;
    padding: 7px 9px !important;
    border-radius: 0 !important;
  }
  #detailsDialog.soubAgreementChat > .dialogPinnedHeader {
    padding: 8px 2px 10px;
  }
  .soubDealHeader {
    gap: 5px;
  }
  .soubDealRoute {
    flex-basis: 180px;
  }
  .soubDealRoute strong {
    font-size: 15px;
  }
  .soubDealPrice strong {
    font-size: 16px;
  }
  #detailsDialog.soubAgreementChat .messageThread > .messageList {
    height: auto;
    min-height: 38dvh;
    max-height: none;
    padding: 10px 7px;
  }
  #detailsDialog.soubAgreementChat form#agreementMessageForm {
    grid-template-columns: minmax(0, 1fr) 38px 75px 46px;
    gap: 3px;
    padding: 7px 0;
  }
  #detailsDialog.soubAgreementChat .voiceComposer .voiceRecord,
  #detailsDialog.soubAgreementChat .imageComposer :is(.imageChoose, .imageCapture) {
    height: 43px;
    width: 36px;
    min-width: 36px;
  }
  #detailsDialog.soubAgreementChat form#agreementMessageForm > button[type='submit'] {
    padding: 8px 6px !important;
    font-size: 12px;
    min-height: 43px;
  }
  #detailsDialog.soubAgreementChat .soubDealFooter > .soubDealAction {
    font-size: 12px;
    padding: 9px 5px;
  }
  #detailsDialog.soubAgreementChat > .soubDealFooter > .dialogBottomClose {
    font-size: 12px;
    min-width: 62px;
  }
}

nav button[hidden],
.carrierCityFilters[hidden] {
  display: none !important;
}
#detailsDialog.soubAgreementChat > .soubDealFooter {
  flex-wrap: wrap;
}
#detailsDialog.soubAgreementChat > .soubDealFooter #negotiationError {
  order: 10;
  flex-basis: 100%;
  text-align: center;
  margin: 0;
  color: #b42335;
}
#detailsDialog.soubAgreementChat > .soubDealFooter #negotiationError:empty {
  display: none;
}

/* ===== from soub-v87.css ===== */
/* SOUB V87: one focused agreement and chat view. No API or authorization changes. */
#detailsDialog.soubAgreementChat > .dialogPinnedHeader > h2 {
  font-size: 12px;
  color: #75869a;
  margin-bottom: 0;
}
#detailsDialog.soubAgreementChat .soubDealHeader {
  padding-top: 5px;
}
#detailsDialog.soubAgreementChat .soubDealProgress {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
  padding-top: 7px;
  font-size: 12px;
}
#detailsDialog.soubAgreementChat .soubDealPhase {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #e8f4ec;
  color: #145a36;
  padding: 5px 11px;
  white-space: nowrap;
}
#detailsDialog.soubAgreementChat .soubDealHint {
  color: #64778c;
  line-height: 1.5;
}
#detailsDialog.soubAgreementChat .soubChatHeader {
  display: none;
}
#detailsDialog.soubAgreementChat .messageThread {
  padding: 5px 0 0;
  min-height: 0;
  overflow: hidden;
}
#detailsDialog.soubAgreementChat .messageThread > .messageList {
  min-height: 165px;
  height: clamp(230px, 45dvh, 520px);
  max-height: 100%;
  margin: 4px 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#detailsDialog.soubAgreementChat .messageThread > .messageList > p {
  color: #53677d;
  text-align: center;
  align-self: center;
  margin: auto;
}
#detailsDialog.soubAgreementChat .soubDealMore {
  margin-top: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  background: #fafcff;
  flex: 0 0 auto;
}
#detailsDialog.soubAgreementChat .soubDealMore > summary {
  font-size: 13px;
  min-height: 30px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
#detailsDialog.soubAgreementChat .soubDealMore .negotiationPanel .actions:empty {
  display: none;
}
#detailsDialog.soubAgreementChat form#agreementMessageForm {
  border-top: 1px solid #e0e8f0;
  margin: 0;
  gap: 5px;
  align-items: center;
  padding: 9px 2px 3px;
  background: #fff;
}
#detailsDialog.soubAgreementChat #agreementMessageInput {
  height: 44px;
  min-height: 44px !important;
  resize: none;
  font-size: 15px;
}
#detailsDialog.soubAgreementChat > .soubDealFooter {
  gap: 6px;
  padding: 8px 2px calc(7px + env(safe-area-inset-bottom));
}
#detailsDialog.soubAgreementChat > .soubDealFooter > .soubDealAction {
  min-height: 46px;
  font-weight: 700;
}
#detailsDialog.soubAgreementChat > .soubDealFooter > #confirmFinalAgreement:disabled {
  background: #e7f3ec !important;
  border-color: #badfcb !important;
  color: #1b6b44 !important;
  opacity: 1;
}
#detailsDialog.soubAgreementChat > .soubDealFooter > #endNegotiation {
  background: transparent;
  color: #a12b31;
  border-color: #edd1d2;
}
#detailsDialog.soubAgreementChat > .soubDealFooter > .dialogBottomClose {
  min-height: 46px;
  font-weight: 600;
}
@media (max-width: 600px) {
  #detailsDialog.soubAgreementChat > .dialogPinnedHeader {
    padding-bottom: 8px;
  }
  #detailsDialog.soubAgreementChat .soubDealProgress {
    gap: 4px 9px;
    font-size: 11px;
    padding-top: 5px;
  }
  #detailsDialog.soubAgreementChat .soubDealHeader {
    gap: 4px;
  }
  #detailsDialog.soubAgreementChat .soubDealRoute strong {
    font-size: 14px;
  }
  #detailsDialog.soubAgreementChat .soubDealPrice strong {
    font-size: 16px;
  }
  #detailsDialog.soubAgreementChat .messageThread > .messageList {
    height: 100%;
    min-height: 140px;
    flex: 1 1 auto;
    max-height: none;
  }
  #detailsDialog.soubAgreementChat > .dialogScrollBody {
    overflow: auto;
    min-height: 0;
  }
  #detailsDialog.soubAgreementChat .contact {
    min-height: 0;
  }
  #detailsDialog.soubAgreementChat form#agreementMessageForm {
    gap: 3px;
    padding-top: 7px;
  }
  #detailsDialog.soubAgreementChat > .soubDealFooter > .soubDealAction {
    font-size: 12px;
    min-height: 46px;
  }
}

#detailsDialog.soubAgreementChat > .soubDealFooter > .soubNextAction {
  background: #1265da !important;
  color: #fff;
  flex: 2 1 190px;
}

/* ===== from soub-v88.css ===== */
/* SOUB V88 — more usable maps and compact forms, no changes to API/security behavior. */
#carrierMapCanvas,
.locationPickerMap {
  touch-action: none;
  overscroll-behavior: contain;
}
#carrierMapCanvas .soubV88MapHint {
  position: absolute;
  top: 13px;
  right: 12px;
  z-index: 4;
  pointer-events: none;
  max-width: 48%;
  background: #ffffffed;
  color: #1e496c;
  border: 1px solid #d9e4ed;
  border-radius: 9px;
  padding: 6px 9px;
  line-height: 1.5;
  font-size: 11px;
  text-align: center;
  box-shadow: 0 1px 6px #193b5615;
}
.soubV88Flow {
  display: flex;
  align-items: center;
  gap: 5px 7px;
  flex-wrap: wrap;
  margin: 0 0 13px;
  padding: 8px 11px;
  border-radius: 11px;
  background: #f1f7ff;
  border: 1px solid #d6e6fa;
  color: #345c88;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}
.soubV88Flow span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.soubV88Flow span + span:before {
  content: '›';
  color: #5f90cb;
  font-weight: bold;
  padding-inline: 3px;
}
.soubV88Contact {
  grid-column: 1/-1;
  border: 1px solid #dce7f5;
  border-radius: 12px;
  background: #f9fbfe;
  margin: 2px 0 7px;
  padding: 2px 12px;
}
.soubV88Contact > summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #23558d;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 2px;
}
.soubV88Contact > summary::before {
  content: '⌄';
  font-size: 17px;
  line-height: 1;
  margin-inline-end: 5px;
}
.soubV88Contact[open] > summary::before {
  content: '⌃';
}
.soubV88Contact > label {
  display: block;
  margin: 7px 0 11px;
  min-width: 0;
}
.soubV88Contact :is(input, select) {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
}
#carrierForm > h3,
#carrierForm > h3 + p {
  display: none;
} /* The dialog heading and concise instructions already identify the step. */
#requestDialog .locationBox,
#equipmentDialog .locationBox {
  border-radius: 12px;
  border: 1px solid #d8e6f6;
  padding: 10px;
  background: #fbfdff;
}
#requestDialog .locationBox button,
#equipmentDialog .locationBox button {
  min-height: 48px;
}
#requestDialog :is(input, select, textarea),
#equipmentDialog :is(input, select, textarea),
#carrierDialog :is(input, select, textarea) {
  font-size: max(16px, 1em);
}
@media (max-width: 600px) {
  .soubV88Flow {
    font-size: 11px;
    padding: 7px 9px;
    margin-bottom: 10px;
    gap: 3px 5px;
  }
  .soubV88Flow span + span:before {
    padding-inline: 0;
  }
  #carrierMapCanvas .soubV88MapHint {
    top: 8px;
    right: 8px;
    padding: 5px 6px;
    max-width: 51%;
    font-size: 10px;
  }
  #requestDialog .locationBox button,
  #equipmentDialog .locationBox button {
    width: 100%;
    font-weight: 700;
  }
  .soubV88Contact > summary {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #carrierMapCanvas,
  .locationPickerMap {
    scroll-behavior: auto;
  }
}

/* Make the active service obvious without adding another menu. */
header nav button.soubCurrentNav,
header nav button[aria-current='page'] {
  background: #e9f2ff !important;
  color: #0755b3 !important;
  border-color: #91bcf5 !important;
  font-weight: 800 !important;
  box-shadow: inset 0 -3px #176ad8;
}
@media (max-width: 600px) {
  header nav {
    scroll-snap-type: x proximity;
  }
  header nav button {
    scroll-snap-align: start;
  }
}

/* ===== from soub-v89.css ===== */
/* SOUB V89: optional city search. Native city selects remain visible and usable. */
.soubV89CitySearch {
  grid-column: 1/-1;
  width: 100%;
  margin: 3px 0 5px;
  position: relative;
}
.soubV89CityToggle {
  border: 1px solid #bad3ee !important;
  background: #f2f7ff !important;
  color: #1c548b !important;
  min-height: 44px !important;
  border-radius: 11px !important;
  font-weight: 650 !important;
  text-align: start !important;
  max-width: 100%;
  white-space: normal !important;
  padding: 8px 12px !important;
}
.soubV89CityToggle:focus-visible,
.soubV89CityResult:focus-visible {
  outline: 3px solid #2677db;
  outline-offset: 2px;
}
.soubV89CityPanel {
  margin-top: 5px;
  max-width: 100%;
  background: #fff;
  border: 1px solid #d2e1f2;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 5px 20px #152d4614;
}
.soubV89CityPanel[hidden] {
  display: none !important;
}
.soubV89CityPanel > .soubV89CityInput {
  width: 100% !important;
  min-height: 46px !important;
  font-size: 16px !important;
  border-radius: 10px;
  padding: 9px 12px;
}
.soubV89CityHint {
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: #546e88 !important;
  margin: 6px 0 !important;
}
.soubV89CityResults {
  display: grid;
  gap: 4px;
  max-height: min(32dvh, 260px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.soubV89CityResult {
  width: 100%;
  text-align: start !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  min-height: 44px !important;
  padding: 9px 12px !important;
  background: #f6faff !important;
  color: #173e64 !important;
}
.soubV89CityResult:hover {
  border-color: #94b7e4 !important;
  background: #eaf2fd !important;
}
.soubV89CityMessage {
  font-size: 12px !important;
  color: #697e91 !important;
  margin: 7px 0 0 !important;
}
.soubV89CityMessage:empty {
  display: none;
}
@media (max-width: 600px) {
  .soubV89CityToggle {
    width: 100%;
  }
  .soubV89CityPanel {
    padding: 8px;
  }
  .soubV89CityResults {
    max-height: 28dvh;
  }
}

/* ===== from soub-v90-live-chat.css ===== */
/* SOUB V90 — message arrival while the agreement remains open. */
#detailsDialog.soubAgreementChat .soubLiveChatNotice {
  display: block;
  align-self: center;
  position: relative;
  z-index: 2;
  margin: 4px auto;
  padding: 6px 13px;
  border: 1px solid #abd5c0;
  border-radius: 999px;
  background: #e5f4ec;
  color: #146244;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  min-height: 32px;
}
#detailsDialog.soubAgreementChat .soubLiveChatNotice:hover {
  background: #d4ebdf;
}

/* ===== from soub-v92.css ===== */
/* SOUB V92 - compact accessible native UI; no authentication or pricing changes. */
/* One city control, still backed by the original required native select. */
.soubV92NativeCity {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}
.soubV92CityPicker {
  grid-column: auto;
  position: relative;
  margin: 4px 0 10px;
  min-width: 0;
  width: 100%;
}
.soubV92CityPicker .soubV89CityToggle {
  display: block;
  width: 100% !important;
  min-height: 48px !important;
  border: 1px solid #c4d5e5 !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: #173650 !important;
  position: relative;
  padding: 12px 14px !important;
  padding-inline-start: 35px !important;
}
.soubV92CityPicker .soubV89CityToggle::before {
  content: '⌕';
  position: absolute;
  inset-inline-start: 12px;
  font-weight: 700;
  font-size: 19px;
  line-height: 22px;
  color: #276dbd;
}
.soubV92CityPicker .soubV89CityPanel {
  position: relative;
  z-index: 8;
  padding: 10px;
  margin-top: 3px;
  box-shadow: 0 8px 20px #122a4121;
}
.soubV92CityPicker .soubV89CityInput {
  font-size: 16px !important;
}
#requestForm .soubV92CityPicker,
#equipmentForm .soubV92CityPicker {
  max-width: 100%;
}
/* The account controls can wrap without becoming narrow vertical buttons. */
#accountSurface .panel > .actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 9px;
}
#accountSurface .panel > .actions > :is(button, a) {
  box-sizing: border-box;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  white-space: normal;
  overflow-wrap: normal;
  line-height: 1.55;
  text-align: center;
  display: grid;
  place-items: center;
}
#accountSurface .panel .privacyHint {
  line-height: 1.75;
}
/* An agreement is one chat screen: compact status header, scrolling conversation, pinned actions. */
#detailsDialog.soubAgreementChat {
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#detailsDialog.soubAgreementChat:not([open]) {
  display: none;
}
#detailsDialog.soubAgreementChat > .dialogPinnedHeader {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  padding: 7px 45px 8px 5px !important;
}
#detailsDialog.soubAgreementChat > .dialogPinnedHeader > h2 {
  font-size: 12px !important;
  margin: 0 0 4px !important;
}
#detailsDialog.soubAgreementChat .soubDealHeader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 2px 0 !important;
}
#detailsDialog.soubAgreementChat .soubDealRoute {
  flex: initial;
  min-width: 0;
  gap: 2px;
  line-height: 1.3;
}
#detailsDialog.soubAgreementChat .soubDealRoute strong {
  font-size: 14px !important;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
#detailsDialog.soubAgreementChat .soubDealRoute small {
  font-size: 11px !important;
  line-height: 1.45;
}
#detailsDialog.soubAgreementChat .soubDealPrice {
  min-width: 0;
  max-width: 160px;
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
#detailsDialog.soubAgreementChat .soubDealPrice strong {
  font-size: 16px !important;
  line-height: 1.4;
  white-space: nowrap;
}
#detailsDialog.soubAgreementChat .soubDealPrice .soubPriceEdit {
  min-height: 32px;
  padding: 5px 8px;
}
#detailsDialog.soubAgreementChat .soubDealProgress {
  padding-top: 4px;
  gap: 5px;
  line-height: 1.35;
}
#detailsDialog.soubAgreementChat .soubDealHint {
  font-size: 11px;
  line-height: 1.4;
}
#detailsDialog.soubAgreementChat > .dialogScrollBody {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#detailsDialog.soubAgreementChat .contact {
  min-height: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
#detailsDialog.soubAgreementChat .messageThread {
  min-height: 0 !important;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 2px 0 0;
}
#detailsDialog.soubAgreementChat .messageThread > .messageList {
  flex: 1 1 auto;
  min-height: 0 !important;
  height: auto !important;
  max-height: 100% !important;
  overflow-y: auto;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  padding: 9px 10px !important;
}
#detailsDialog.soubAgreementChat .messageList :is(article, figure, img, video, a) {
  max-width: 100%;
  box-sizing: border-box;
}
#detailsDialog.soubAgreementChat .messageList img {
  max-height: 235px;
  object-fit: contain;
}
/* No floating, narrow photo controls: every draft occupies its own full-width row. */
#detailsDialog.soubAgreementChat form#agreementMessageForm {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px !important;
  margin: 0 !important;
  padding: 8px 2px 6px !important;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  flex: 0 0 auto;
}
#detailsDialog.soubAgreementChat #agreementMessageInput {
  grid-row: auto !important;
  grid-column: auto !important;
  order: 2;
  flex: 1 1 90px;
  min-width: 72px;
  max-width: 100%;
  width: 0;
  height: 45px !important;
  min-height: 45px !important;
  line-height: 1.5;
  padding: 10px 10px !important;
  resize: none;
}
#detailsDialog.soubAgreementChat #agreementMessageForm > .voiceComposer {
  grid-row: auto !important;
  grid-column: auto !important;
  order: 3;
  flex: 0 0 37px;
  min-width: 37px;
  width: 37px;
  position: static !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent;
  border: 0;
  display: flex;
  justify-content: center;
}
#detailsDialog.soubAgreementChat #agreementMessageForm > .imageComposer {
  grid-row: auto !important;
  grid-column: auto !important;
  order: 4;
  flex: 0 0 77px;
  min-width: 77px;
  width: 77px;
  position: static !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent;
  border: 0;
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 3px;
  align-items: center;
}
#detailsDialog.soubAgreementChat #agreementMessageForm > button[type='submit'] {
  grid-row: auto !important;
  grid-column: auto !important;
  order: 5;
  flex: 0 0 auto;
  min-width: 46px !important;
  min-height: 43px !important;
  padding: 7px !important;
  font-size: 12px !important;
  white-space: nowrap;
}
#detailsDialog.soubAgreementChat .voiceComposer .voiceRecord,
#detailsDialog.soubAgreementChat .imageComposer :is(.imageChoose, .imageCapture) {
  width: 36px !important;
  min-width: 36px !important;
  height: 43px !important;
  min-height: 43px !important;
  margin: 0 !important;
  padding: 4px !important;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
#detailsDialog.soubAgreementChat #agreementMessageForm > .soubV92ImageDraft,
#detailsDialog.soubAgreementChat #agreementMessageForm > .soubV92VoiceDraft {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  box-sizing: border-box;
  flex: 1 1 100%;
  order: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 4px !important;
  padding: 9px !important;
  border: 1px solid #c8dbea;
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 3px 12px #152e4515;
  z-index: auto !important;
  overflow: auto;
}
#detailsDialog.soubAgreementChat #agreementMessageForm > .soubV92ImageDraft[hidden],
#detailsDialog.soubAgreementChat #agreementMessageForm > .soubV92VoiceDraft[hidden] {
  display: none !important;
}
#detailsDialog.soubAgreementChat .soubV92ImageDraft img {
  width: 76px !important;
  min-width: 76px !important;
  height: 76px !important;
  object-fit: contain;
  border-radius: 7px;
  background: #f7fafc;
}
#detailsDialog.soubAgreementChat .soubV92ImageDraft > div {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
#detailsDialog.soubAgreementChat .soubV92ImageDraft button {
  min-height: 43px !important;
  flex: 1 1 80px;
  padding: 7px 9px !important;
  font-size: 13px !important;
  white-space: normal;
}
#detailsDialog.soubAgreementChat .soubV92VoiceDraft {
  flex-direction: column;
  align-items: stretch;
}
#detailsDialog.soubAgreementChat .soubV92VoiceDraft audio {
  max-width: 100%;
  width: 100%;
}
#detailsDialog.soubAgreementChat #agreementMessageForm > .soubV92ImageStatus {
  order: 1;
  flex: 1 1 100%;
  width: 100%;
  margin: 0 !important;
  padding: 2px 5px;
  color: #47627b;
  font-size: 12px;
  line-height: 1.4;
}
#detailsDialog.soubAgreementChat #agreementMessageForm > .soubV92ImageStatus:empty {
  display: none !important;
}
#detailsDialog.soubAgreementChat .voiceComposer .voiceStatus {
  display: none;
  position: static !important;
}
#detailsDialog.soubAgreementChat .voiceComposer:has(.isRecording) .voiceStatus {
  display: block;
  position: absolute !important;
  bottom: calc(100% + 4px) !important;
  inset-inline-start: 0;
  background: #fff;
  border-radius: 8px;
  padding: 7px;
  max-width: 100%;
  white-space: normal;
  z-index: 5;
}
#detailsDialog.soubAgreementChat .soubDealMore {
  flex: 0 0 auto;
  margin: 4px 0 0;
  padding: 8px 10px;
}
#detailsDialog.soubAgreementChat > .soubDealFooter {
  flex: 0 0 auto;
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: stretch;
  gap: 7px;
  min-height: 54px;
  box-sizing: border-box;
  padding: 8px 3px calc(9px + env(safe-area-inset-bottom)) !important;
  border-top: 1px solid #d9e5f1;
  background: white;
  z-index: 6;
}
#detailsDialog.soubAgreementChat > .soubDealFooter button {
  min-height: 45px !important;
  min-width: 0;
}
#detailsDialog.soubAgreementChat > .soubDealFooter .soubNextAction {
  flex: 2 1 auto;
}
#detailsDialog.soubAgreementChat > .soubDealFooter > .dialogBottomClose {
  flex: 0 0 72px !important;
  font-size: 13px !important;
}
#detailsDialog.soubAgreementChat .soubV92DeliveryActions .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#detailsDialog.soubAgreementChat .soubV92DeliveryActions button {
  min-height: 46px;
  white-space: normal;
}
/* Compress carrier landing and preserve access to full commission information on demand. */
body.soubV92Carrier main > .intro {
  padding-block: 8px !important;
  margin-bottom: 8px !important;
  min-height: 0 !important;
}
body.soubV92Carrier main > .intro h1,
body.soubV92Carrier main > .intro #heading {
  font-size: 21px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.5 !important;
}
body.soubV92Carrier main > .intro #subheading {
  font-size: 12px !important;
  margin: 3px 0 0 !important;
}
body.soubV92Carrier #homeSurface .carrierSignup {
  padding: 10px 12px !important;
  gap: 8px;
  min-height: 0 !important;
  margin: 0 0 10px !important;
  align-items: center;
}
body.soubV92Carrier #homeSurface .carrierSignup h2 {
  font-size: 15px !important;
  margin: 0 !important;
}
body.soubV92Carrier #homeSurface .carrierSignup p {
  font-size: 12px !important;
  line-height: 1.4 !important;
  margin: 3px 0 !important;
}
body.soubV92Carrier #homeSurface .carrierSignup button {
  min-height: 42px !important;
}
body.soubV92Carrier .topCommission {
  padding: 0 !important;
  margin: 8px 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  min-height: 0 !important;
}
.soubV92Commission {
  border: 1px solid #e0e7ef;
  border-radius: 10px;
  padding: 6px 11px;
  background: #fbfcfd;
  color: #244867;
}
.soubV92Commission > summary {
  min-height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 13px;
}
.soubV92Commission > summary span {
  font-size: 11px;
  font-weight: 500;
  color: #60758b;
}
.soubV92Commission[open] {
  padding: 10px;
}
.soubV92Commission .commission {
  max-width: 100%;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  #detailsDialog.soubAgreementChat {
    width: 100vw !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 8px 10px 0 !important;
    inset: 0 !important;
  }
  #detailsDialog.soubAgreementChat > .dialogPinnedHeader {
    padding-inline-start: 45px !important;
    padding-inline-end: 4px !important;
  }
  #detailsDialog.soubAgreementChat > .dialogPinnedHeader > button.close {
    inset-inline-start: 0 !important;
    inset-inline-end: auto !important;
    top: 3px !important;
  }
  #detailsDialog.soubAgreementChat .soubDealPrice {
    max-width: 120px;
  }
  #detailsDialog.soubAgreementChat .soubDealPrice strong {
    font-size: 15px !important;
  }
  #detailsDialog.soubAgreementChat .soubDealProgress {
    font-size: 11px;
  }
  #detailsDialog.soubAgreementChat .soubDealHint {
    font-size: 10px;
  }
  #detailsDialog.soubAgreementChat form#agreementMessageForm {
    gap: 4px !important;
  }
  #detailsDialog.soubAgreementChat #agreementMessageForm > .imageComposer {
    flex-basis: 75px;
    min-width: 75px;
  }
  #detailsDialog.soubAgreementChat > .soubDealFooter > .soubDealAction {
    font-size: 12px !important;
    padding: 7px !important;
    line-height: 1.4;
  }
  body.soubV92Carrier #homeSurface .carrierSignup {
    flex-direction: column;
    align-items: stretch;
  }
  body.soubV92Carrier #homeSurface .carrierSignup .driverHireButton {
    min-height: 44px !important;
  }
  #accountSurface .panel > .actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 340px) {
  #detailsDialog.soubAgreementChat #agreementMessageInput {
    flex-basis: 78px;
    padding: 8px !important;
  }
  #detailsDialog.soubAgreementChat #agreementMessageForm > .voiceComposer {
    flex-basis: 34px;
    min-width: 34px;
  }
  #detailsDialog.soubAgreementChat #agreementMessageForm > .imageComposer {
    flex-basis: 69px;
    min-width: 69px;
    gap: 1px;
  }
  #detailsDialog.soubAgreementChat .voiceComposer .voiceRecord,
  #detailsDialog.soubAgreementChat .imageComposer :is(.imageChoose, .imageCapture) {
    width: 33px !important;
    min-width: 33px !important;
  }
  #detailsDialog.soubAgreementChat #agreementMessageForm > button[type='submit'] {
    min-width: 42px !important;
    font-size: 11px !important;
  }
}
