/* Responsive refinements requested 2026-09-11. Keep the current visual system. */
.chat-empty__illustration {
  display: block;
  width: 76px;
  height: 76px;
  margin: 0 0 16px;
  object-fit: contain;
}
.freeze-note { margin-top: 18px; font-size: 14px; line-height: 1.55; }
.freeze-note > div { display: grid; gap: 4px; }
.freeze-note strong, .freeze-note span { display: block; }
.freeze-note span { color: #626571; }

.site-footer__bottom-inner {
  align-items: center;
  padding-top: 8px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}
.site-footer__legal { align-items: center; gap: 4px 16px; }
.site-footer__legal a { display: inline-flex; align-items: center; min-height: 32px; }
.site-footer__nav { gap: 0; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 36px; }
.site-footer__stores { grid-template-columns: 1fr; max-width: 200px; }
.store-button__name { white-space: nowrap; }
.footer-details summary::after { display: none; }

@media (min-width: 641px) and (max-width: 1100px) {
  .hero .search-form { flex-wrap: wrap; gap: 12px; }
  .hero .route-fields { flex-basis: 100%; }
  .hero .search-form .button { width: 100%; min-height: 54px; margin: 0; }
}
@media (min-width: 641px) and (max-width: 980px) {
  .journey__inner { display: block; }
  .journey__details { margin-top: 26px; }
  .journey__steps { margin: 0; }
  .task-card {
    grid-template-columns: minmax(0, 1fr) 174px;
    grid-template-rows: auto auto auto auto auto;
    gap: 8px 22px;
  }
  .task-card__facts {
    grid-column: 1;
    grid-row: 5;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 6px 0 0 57px;
    padding: 12px 0 0;
    border: 0;
    border-top: 1px solid #eceef1;
  }
  .task-card__facts > div:last-child { grid-column: 1 / -1; }
  .task-offer { grid-column: 2; grid-row: 1 / 6; }
  .task-description, .task-requirement, .task-service { margin-right: 0; }
  .task-card__route-zone .task-route__address { white-space: normal; }
}
@media (min-width: 641px) and (max-width: 920px) {
  .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
  .site-footer__intro, .site-footer__apps { grid-column: auto; }
  .site-footer__intro { grid-column: 1; grid-row: 1; }
  .site-footer__apps { grid-column: 1; grid-row: 2; }
  .site-footer__inner > .footer-details:nth-child(2) { grid-column: 2; grid-row: 1; }
  .site-footer__inner > .footer-details:nth-child(3) { grid-column: 2; grid-row: 2; }
}
@media (max-width: 820px) {
  .site-footer__bottom-inner { align-items: flex-start; flex-direction: column; gap: 4px; }
}
@media (max-width: 640px) {
  /* The arrow shares the second route row instead of straddling its divider. */
  .hero .route-arrow {
    position: static;
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    justify-self: start;
    width: 28px;
    height: 28px;
    margin: 0 0 0 10px;
    transform: rotate(90deg);
    pointer-events: none;
  }
  .hero .search-field:first-child { grid-column: 1; grid-row: 1; }
  .hero .search-field:nth-of-type(2) { grid-column: 1; grid-row: 2; }
  .hero .search-field--date { grid-column: 1; grid-row: 3; }
  .hero .route-arrow .ui-icon { width: 18px; height: 18px; }
  .hero .search-field input { min-height: 28px; }
  .hero .search-date__empty { bottom: 13px; }
  .site-footer__inner { gap: 16px 20px; }
  .footer-details summary { min-height: 44px; }
  .footer-details summary::after {
    position: static;
    display: inline;
    width: auto;
    height: auto;
    margin-left: 7px;
    border: 0;
    transform: none;
    font-size: 20px;
    line-height: 1;
    content: "+";
  }
  .footer-details[open] summary::after { content: "−"; }
  .site-footer__stores { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 100%; }
  .site-footer__legal { display: grid; gap: 0; }
  .site-footer__legal a { min-height: 40px; }
}
@media (pointer: coarse) {
  .site-footer__legal a, .site-footer__nav a { min-height: 44px; }
}

/* 2026-09-15 — compact workspace: stable inputs, one focused task and a real
   modal navigation layer rather than a floating menu over a scrollable page. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body.is-mobile-menu-open {
  position: fixed;
  top: calc(-1 * var(--mobile-menu-scroll-y, 0px));
  right: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(18, 23, 32, .48);
  backdrop-filter: blur(2px);
}

.mobile-menu-backdrop[hidden] { display: none !important; }

@media (min-width: 561px) {
  .workspace-record--deal .record-details > summary { display: none; }
}

@media (max-width: 820px) {
  .topbar { z-index: 70; }
  .topbar__actions .topbar__create { display: none !important; }
  .topbar__actions > .header-popover:first-of-type,
  .topbar__account-actions > .header-popover:first-child { display: inline-flex !important; }
  .topbar__actions > .header-popover:nth-of-type(2),
  .topbar__account-actions > .header-popover:not(:first-child) { display: none !important; }

  .topbar .header-popover__panel--notifications {
    position: fixed;
    top: max(72px, calc(72px + env(safe-area-inset-top)));
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100dvh - 96px - env(safe-area-inset-top));
    overflow: auto;
    animation: none;
    opacity: 1;
    transform: none;
  }

  .mobile-menu {
    z-index: 60;
    max-height: calc(100dvh - 72px - env(safe-area-inset-top));
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }
  .mobile-menu a,
  .mobile-menu button { display: flex; width: 100%; align-items: center; border-radius: 9px; }
  .mobile-menu > a:not(.mobile-menu__create):not(.mobile-menu__account) { padding-inline: 14px; }
  .mobile-menu__primary-action { display: grid; gap: 7px; margin: 26px 0 10px; padding-top: 15px; border-top: 1px solid var(--line, #e0e3e9); }
  .mobile-menu__section-label { padding-inline: 4px; color: #747984; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .mobile-menu .mobile-menu__create { min-height: 52px; align-items: center; justify-content: center; padding-inline: 18px; color: #fff !important; background: var(--accent, #11b2fd) !important; box-shadow: 0 8px 18px rgba(17, 178, 253, .18); font-weight: 700; line-height: 1.2; text-align: center; }
  .mobile-menu__account { display: grid !important; grid-template-columns: 40px minmax(0, max-content); min-height: 72px !important; align-items: center; justify-content: end; gap: 11px; margin-top: 14px; padding: 12px 14px !important; border: 1px solid #e1e5ea; background: #f7f9fb; color: var(--ink, #101114) !important; font-weight: 700; }
  .mobile-menu__account-avatar { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: #08759b; background: var(--accent-wash, #e6f8fe); }
  .mobile-menu__account-avatar .ui-icon { width: 20px; height: 20px; }
  .mobile-menu__account-copy { display: grid; min-width: 0; gap: 2px; justify-items: start; }
  .mobile-menu__account-copy strong { overflow: hidden; color: var(--ink, #101114); font-size: 14px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-menu__account-copy small { color: #737783; font-size: 12px; font-weight: 500; line-height: 1.25; }
  .mobile-menu__signout { color: #b23a3a !important; font-weight: 700; }

  .nado-product input,
  .nado-product select,
  .nado-product textarea,
  .registration-card input,
  .registration-card select,
  .registration-card textarea { font-size: 16px; }

  body[data-page="create"] .page-heading { gap: 10px; }
  body[data-page="create"] .page-heading h1 { font-size: clamp(30px, 8.5vw, 38px); }
  body[data-page="create"] .page-heading p { font-size: 14px; line-height: 1.45; }
  .nado-product .p-grid--aside { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .nado-product .p-grid--aside > .app-card:last-child { padding: 16px; }
  .nado-product .p-form-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .nado-product .p-form-grid > .field--wide { grid-column: auto; }
  .nado-product .p-form-grid + .row-actions,
  .nado-product form > .row-actions { margin-top: 18px; }
  .nado-product .p-stepper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 16px;
  }
  .nado-product .p-stepper li {
    min-width: 0;
    min-height: 58px;
    justify-content: center;
    gap: 4px;
    padding: 7px 2px;
    text-align: center;
    font-size: 10px;
    line-height: 1.15;
  }
  .nado-product .p-stepper li span { width: 24px; height: 24px; font-size: 11px; }
  .nado-product .p-stepper li[aria-current="step"] { box-shadow: inset 0 -2px 0 var(--accent, #11b2fd); }

  .account-rail { display: none; }
  .account-workspace { display: block; }
  .account-content > .page-heading { margin-bottom: 18px; }

  .nado-product .workspace-record { gap: 14px; padding: 18px 16px; }
  .workspace-record__summary { margin-top: 5px; font-size: 14px; line-height: 1.4; }
  .workspace-record__facts { gap: 12px; margin-top: 14px; }
  .workspace-record__aside { gap: 14px; padding-top: 14px; }
  .workspace-record__price strong { font-size: 20px; }
  .nado-product .workspace-record .p-status {
    width: fit-content;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1.3;
  }
}

@media (max-width: 560px) {
  .topbar__inner { width: calc(100% - 28px); }
  .brand__logo { width: 118px; }
  .topbar .header-popover__panel--notifications { top: max(72px, calc(72px + env(safe-area-inset-top))); }
  .mobile-menu { top: max(72px, calc(72px + env(safe-area-inset-top))); max-height: calc(100dvh - 72px - env(safe-area-inset-top)); padding-inline: 14px; }
  .mobile-menu-backdrop { z-index: 55; }

  .nado-product .p-grid--aside > .app-card:last-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }
  .nado-product .p-grid--aside > .app-card:last-child h2,
  .nado-product .p-grid--aside > .app-card:last-child p { display: none; }
  .nado-product .p-grid--aside > .app-card:last-child .button { min-height: 44px; padding-inline: 12px; font-size: 12px; }

  .workspace-record:not(.workspace-record--deal) .workspace-record__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-record:not(.workspace-record--deal) .workspace-record__facts > div:nth-child(3) { display: none; }
  .workspace-record--deal .record-details { margin-top: 12px; }
  .workspace-record--deal .record-details > summary {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border: 1px solid #e1e4e9;
    border-radius: 10px;
    color: #343742;
    background: #fafbfc;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    list-style: none;
  }
  .workspace-record--deal .record-details > summary::-webkit-details-marker { display: none; }
  .workspace-record--deal .record-details > summary::after { color: #656b78; content: "+"; font-size: 18px; font-weight: 500; }
  .workspace-record--deal .record-details[open] > summary::after { content: "−"; }
  .workspace-record--deal .record-details .workspace-record__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0 0; }
  .workspace-record--deal .record-details .workspace-record__facts > div:last-child { grid-column: 1 / -1; }
  .workspace-record--deal .record-details .workspace-record__partner { margin: 12px 0 0; }
}

/* Keep the compact header visible while the page scrolls.  Before sign-in it
   exposes one clear entry point instead of duplicating actions from the menu. */
@media (max-width: 820px) {
  .topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 80;
    height: max(72px, calc(72px + env(safe-area-inset-top)));
  }
  .topbar__inner { height: 72px; }
  body { padding-top: max(72px, calc(72px + env(safe-area-inset-top))); }
  .mobile-menu {
    top: max(72px, calc(72px + env(safe-area-inset-top)));
    max-height: calc(100dvh - 72px - env(safe-area-inset-top));
  }

  body:not(.is-authenticated) .topbar__guest-actions,
  body:not(.is-authenticated) .topbar__guest-actions .text-action {
    display: inline-flex !important;
  }
  body:not(.is-authenticated) .topbar__guest-actions .text-action {
    min-height: 44px;
    align-items: center;
    padding-inline: 12px;
    border: 1px solid #d9dce3;
    border-radius: 12px;
    color: var(--ink, #101114);
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
  }
  body:not(.is-authenticated) .topbar__actions .topbar__create { display: none !important; }
  body:not(.is-authenticated) .mobile-menu .guest-only { display: none !important; }
}

@media (max-width: 360px) {
  body:not(.is-authenticated) .topbar__guest-actions .text-action {
    padding-inline: 10px;
    font-size: 11px;
  }
}
