/* Shared screen spacing: keep text sizes and controls readable. */
@media screen {
  body.app-frame { min-height:0; }
  body > main { padding:18px 14px; }
  .app-shell > .app-content-frame > main { padding:0 !important; }
  body .login-card { padding:20px; }
  body .login-card label { margin-top:10px; margin-bottom:5px; }
  body table caption { padding:8px; }
  .app-shell > .app-content-frame {
    margin:12px auto;
    padding:14px;
  }
  body header,
  .app-content-frame > header,
  .app-frame > header {
    gap:8px;
    padding-top:8px;
    padding-bottom:10px;
    margin-bottom:10px;
  }
  body main .card,
  body main .location-card,
  body main > section[style],
  body main > .tow-offers,
  #riderMapSlot > section {
    padding:12px !important;
    margin-block:8px !important;
  }
  body main :is(h1,h2,h3,h4) {
    margin-top:8px !important;
    margin-bottom:8px !important;
  }
  body main p { margin-block:6px; }
  body.driver-readable-text .app-content-frame > header h1 {
    font-size:33px;
    font-weight:700;
    color:#075fd8;
  }
  body.driver-readable-text :is(.navigation-label,.driver-empty-jobs) {
    font-size:36px;
    font-weight:600;
    line-height:1.3;
    color:#075fd8;
  }
  body.driver-readable-text .location-card > h3 {
    font-size:28.08px;
    font-weight:700;
    line-height:1.3;
    color:#075fd8;
  }

  .rider-feedback .rider-feedback-info {
    height:calc(2.8em + 14px);
    overflow-y:auto;
    padding:6px 8px;
    border:1px solid #cbd5e1;
    border-radius:6px;
    background:#f8fafc;
    color:#075fd8;
    font-size:21px;
    line-height:1.4;
  }
  .rider-feedback .rider-feedback-info p { margin:0; font-size:inherit; color:#075fd8; }
  .rider-feedback-info:focus-visible { outline:2px solid #075fd8; outline-offset:2px; }

  body main .card > :first-child { margin-top:0 !important; }
  body main .card > :last-child { margin-bottom:0 !important; }
  body #driverMsg:not(:empty) { margin:8px 0; padding:12px; }
  body #driverMsg:empty { display:none; }
  body table.fit-table th,
  body table.fit-table td { padding:6px; }
  #driverPageLinks { align-items:stretch !important; }
  #driverPageLinks :is(a,button) {
    flex:1 1 110px;
    min-height:48px !important;
    padding:9px 10px !important;
  }
  .app-content-frame > .rider-page-header { align-items:stretch; gap:6px !important; }
  .app-content-frame > .rider-page-header :is(a,button) {
    flex:1 1 110px;
    min-width:0;
    min-height:56px !important;
    padding:10px 14px !important;
  }
  #rideForm #summary {
    display:flex;
    flex-wrap:nowrap;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding:8px !important;
    overflow-x:auto;
    font-size:clamp(14px,2.6vw,20px);
    line-height:1.3;
  }
  #rideForm #summary[hidden] { display:none; }
  #rideForm #summary p {
    flex:0 0 auto;
    margin:0 !important;
    white-space:nowrap;
  }
  @media(max-width:600px) {
    .app-shell > .app-content-frame { margin:6px auto; padding:10px; }
    body.app-frame { padding:8px; }
    body main .card,
    body main .location-card,
    body main > section[style],
    body main > .tow-offers,
    #riderMapSlot > section { padding:10px !important; }
    #rideForm #summary { gap:6px; padding:6px !important; }
  }
  @media(max-width:380px) {
    #rideForm #summary { gap:4px; padding:4px !important; }
  }
  @media(max-width:340px) {
    #rideForm #summary { font-size:12px; gap:4px; }
    .app-shell > .app-content-frame { padding:6px; }
  }
}

/* A single readable sentence, moving slowly left in its own full-width box. */
.rider-comment-notice {
  width:100%;
  max-width:100%;
  min-width:0;
  margin:8px 0;
  padding:8px 10px;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:thin;
  border:2px solid #075fd8;
  border-radius:6px;
  color:#075fd8;
  font-size:31.5px;
  line-height:1.35;
}
.rider-comment-notice > span {
  display:inline-block;
  white-space:nowrap;
  color:inherit;
  font-size:inherit;
  animation:rider-comment-scroll-left 70s linear infinite;
}
.rider-comment-notice:hover > span { animation-play-state:paused; }
.rider-comment-notice:focus-visible { outline:2px solid #075fd8; outline-offset:2px; }
.rider-comment-notice:focus-within > span { animation:none; transform:none; }
@keyframes rider-comment-scroll-left {
  0% { transform:translateX(0); }
  100% { transform:translateX(-100%); }
}
@media(prefers-reduced-motion:reduce) {
  .rider-comment-notice > span { animation:none; transform:none; }
}
