/* Shared header popovers and footer from the owner-feedback release. The
   request feed remains governed by the restored styles-13.css. */
.header-popover { position: relative; display: inline-flex; }
.header-popover__trigger { cursor: pointer; }
.header-popover__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 45;
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  color: var(--ink);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(24, 28, 38, .18);
  animation: header-panel-in .16s cubic-bezier(.16, 1, .3, 1);
}
.header-popover__panel[hidden] { display: none; }
.header-popover__heading { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.header-popover__heading h2 { margin: 0; font-size: 17px; letter-spacing: -.025em; }
.header-popover__heading button { min-height: 44px; padding: 0; border: 0; color: var(--accent-strong); background: transparent; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.notification-popover-list { max-height: min(58dvh, 430px); overflow-y: auto; overscroll-behavior: contain; }
.notification-popover-item { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: inherit; transition: background .15s ease; }
.notification-popover-item:hover, .notification-popover-item:focus-visible { background: #f6f7f9; }
.notification-popover-item.is-unread { background: var(--accent-wash); }
.notification-popover-item.is-unread:hover, .notification-popover-item.is-unread:focus-visible { background: #d9f5fb; }
.notification-popover-item__mark { width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: transparent; }
.notification-popover-item.is-unread .notification-popover-item__mark { background: var(--accent); }
.notification-popover-item > span:last-child { display: grid; gap: 4px; min-width: 0; }
.notification-popover-item strong { font-size: 13px; line-height: 1.35; }
.notification-popover-item small { color: #656975; font-size: 12px; line-height: 1.45; }
.notification-popover-item time { color: #8a8d97; font-size: 10px; }
.header-popover__footer { padding: 11px 18px; }
.header-popover__footer a { display: inline-flex; min-height: 44px; align-items: center; color: var(--accent-strong); font-size: 12px; font-weight: 700; }
.account-menu-trigger { display: inline-flex; min-width: 54px; min-height: 44px; align-items: center; justify-content: center; gap: 3px; padding: 0 7px; border: 0; border-radius: 13px; color: #656875; background: transparent; cursor: pointer; }
.account-menu-trigger:hover, .account-menu-trigger:focus-visible, .account-menu-trigger[aria-expanded="true"] { color: var(--ink); background: #f2f3f6; }
.account-menu-trigger:focus-visible, .header-popover__heading button:focus-visible, .profile-menu__signout:focus-visible { outline: 3px solid rgba(8, 167, 215, .32); outline-offset: 2px; }
.account-menu-trigger > svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; transition: transform .16s ease; }
.account-menu-trigger[aria-expanded="true"] > svg { transform: rotate(180deg); }
.header-popover__panel--profile { width: 258px; padding: 8px; }
.profile-menu__summary { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px; border-bottom: 1px solid var(--line); }
.profile-menu__summary .account-link__avatar { width: 40px; height: 40px; }
.profile-menu__summary > span:last-child { display: grid; gap: 2px; }
.profile-menu__summary strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu__summary small { color: #7c7f8a; font-size: 11px; }
.header-popover__panel--profile nav { display: grid; padding: 6px 0; }
.header-popover__panel--profile nav a, .profile-menu__signout { display: flex; min-height: 44px; align-items: center; padding: 0 11px; border: 0; border-radius: 10px; color: #454852; background: transparent; font: inherit; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
.header-popover__panel--profile nav a:hover, .header-popover__panel--profile nav a:focus-visible, .profile-menu__signout:hover, .profile-menu__signout:focus-visible { color: var(--ink); background: #f2f3f6; }
.profile-menu__signout { width: 100%; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: #a3333d; }
@keyframes header-panel-in { from { opacity: .72; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

.site-footer { color: #5e626e; border-top: 1px solid #dfe2e8; background: #f5f6f8; }
.site-footer__inner { grid-template-columns: minmax(240px, 1.25fr) minmax(130px, .64fr) minmax(140px, .68fr) minmax(220px, 1fr); gap: clamp(24px, 3.4vw, 46px); padding-top: 34px; padding-bottom: 30px; }
.site-footer__brand--image { width: 184px; height: 54px; min-height: 54px; overflow: visible; }
.site-footer__logo { width: 184px; height: 54px; background: transparent url("/assets/nadomogu-logo-blue-on-white.svg") -10px center / auto 100% no-repeat; mix-blend-mode: multiply; }
.site-footer__intro p { max-width: 320px; margin: 10px 0 0; color: #4f535e; font-size: 13px; line-height: 1.55; }
.site-footer__intro small { display: block; max-width: 330px; margin-top: 9px; color: #80838d; font-size: 11px; line-height: 1.5; }
.footer-details summary { min-height: 36px; margin: 5px 0 8px; color: var(--ink); font-size: 11px; letter-spacing: .07em; }
.site-footer__nav { gap: 8px; font-size: 13px; }
.site-footer__nav a:hover, .site-footer__nav a:focus-visible, .site-footer__legal a:hover, .site-footer__legal a:focus-visible { color: var(--accent-strong); }
.site-footer__apps p { margin: 7px 0 0; color: #686c77; font-size: 12px; line-height: 1.45; }
.site-footer__stores { grid-template-columns: 1fr 1fr; max-width: 300px; gap: 7px; margin-top: 10px; }
.store-button { min-height: 54px; color: var(--ink); border-color: #d9dce3; background: #fff; }
.store-button:hover { border-color: #bfc3cd; background: #fff; }
.store-button__eyebrow { color: #737782; }
.site-footer__bottom { border-top-color: #dfe2e8; }
.site-footer__bottom-inner { padding-top: 13px; padding-bottom: max(15px, calc(15px + env(safe-area-inset-bottom))); color: #767a85; }
.site-footer__legal { gap: 7px 16px; }

@media (max-width: 920px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__intro, .site-footer__apps { grid-column: 1 / -1; }
  .site-footer__stores { max-width: 330px; }
}

@media (max-width: 640px) {
  .header-popover__panel { position: fixed; top: max(68px, calc(68px + env(safe-area-inset-top))); right: 12px; left: 12px; width: auto; }
  .header-popover__panel--profile { left: auto; width: min(258px, calc(100vw - 24px)); }
  .site-footer__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; padding: 24px 0 22px; }
  .site-footer__inner > * + * { margin-top: 0; }
  .site-footer__intro, .site-footer__apps { grid-column: 1 / -1; }
  .site-footer__brand--image, .site-footer__logo { width: 170px; height: 50px; }
  .site-footer__logo { background-position: -9px center; }
  .footer-details { border-top: 0; }
  .footer-details summary { min-height: 32px; cursor: pointer; }
  .footer-details summary::after { display: none; }
  .site-footer__stores { grid-template-columns: 1fr 1fr; max-width: 100%; }
  .site-footer__bottom-inner { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .header-popover__panel { animation: none; }
}

/* Homepage-only owner changes. Keep the restored request feed and shared shell intact. */
.hero h1 { line-height: 1.02; }
.hero h1 > span { display: block; }
.hero__lead { color: #484c56; }
.hero__meta, .journey__heading p { color: #515560; }
.hero__inner { padding-bottom: 32px; }
.hero .route-fields { grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr) minmax(170px, .78fr); }
.hero .search-field { padding-inline: 18px; }
.hero .search-field.search-field--date { position: relative; padding-right: 50px; border-left: 1px solid #d5d8e1; }
.hero .search-field--date > label { color: #656875; font-size: 12px; font-weight: 600; }
.hero .search-date__value { position: relative; display: flex; min-width: 0; align-items: center; }
.hero .search-field--date input { min-height: 27px; color-scheme: light; }
.hero .search-field--date input::-webkit-calendar-picker-indicator { display: none; }
.hero .search-date__picker {
  position: absolute;
  top: 50%;
  right: 3px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  place-items: center;
  color: #3b3e49;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}
.hero .search-date__picker:hover { background: #e4e8ed; }
.hero .search-date__picker:focus-visible { outline: 2px solid #08a7d7; outline-offset: -2px; }
.hero .search-date__picker .ui-icon { width: 22px; height: 22px; }
.hero .search-field--date input:not(.has-date):not(:focus) { color: transparent; }
.hero .search-field--date input:not(.has-date):not(:focus)::-webkit-datetime-edit { color: transparent; }
.hero .search-date__value .search-date__empty { position: absolute; top: 50%; left: 0; bottom: auto; color: #666b78; font-size: 18px; font-weight: 500; line-height: 1.2; white-space: nowrap; transform: translateY(-50%); pointer-events: none; }
.hero .search-field--date input:focus + .search-date__empty,
.hero .search-field--date input.has-date + .search-date__empty { display: none; }
.hero .route-arrow { border: 0; background: transparent; }
.hero .button--create-outline {
  min-width: 236px;
  min-height: 48px;
  justify-content: center;
  padding: 10px 22px;
  border: 1.5px solid #2502cd;
  border-radius: 12px;
  color: #2502cd;
  background: #fff;
  box-shadow: none;
  font-size: 15px;
  text-decoration: none;
}
.hero .button--create-outline:hover { color: #1e02a5; border-color: #1e02a5; background: #f3f1ff; transform: none; }
.hero .button--create-outline:focus-visible { outline: 3px solid #2502cd; outline-offset: 3px; }
.hero .button--create-outline:active { background: #eae6ff; }
.journey__steps { gap: 24px; }
.journey__steps li { position: relative; padding: 0; border: 0; }
.journey__steps li::before { display: none; content: none; }
.journey__steps li:not(:last-child)::after {
  position: absolute;
  top: 23px;
  left: 62px;
  width: calc(100% - 52px);
  height: 7px;
  background: #b6cbdc;
  clip-path: polygon(0 43%, calc(100% - 5px) 43%, calc(100% - 5px) 0, 100% 50%, calc(100% - 5px) 100%, calc(100% - 5px) 57%, 0 57%);
  content: "";
}
.journey-step__icon { display: grid; width: 52px; height: 52px; margin-bottom: 16px; place-items: center; border-radius: 15px; color: #3b3e49; background: #e7f7fc; }
.journey-step__icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.task-icon, .task-icon--truck, .task-icon--van, .task-icon--crane { color: #3b3e49; border-color: #d0eaf3; background: #e7f7fc; }
.task-icon .task-transport-icon { width: 25px; height: 25px; }
.journey__steps strong { line-height: 1.3; }
.journey__steps li > span { color: #515560; font-size: 13px; line-height: 1.5; }

@media (min-width: 821px) and (max-width: 1100px) {
  .hero .search-form .button { min-width: 190px; }
  .hero .button--create-outline { min-width: 190px; }
  .hero .search-field { padding-inline: 14px; }
  .hero .search-field input { font-size: 16px; }
  .hero .search-date__value .search-date__empty { font-size: 16px; }
  .journey__inner { grid-template-columns: minmax(210px, .52fr) minmax(0, 1.48fr); gap: 32px; }
  .journey__steps { gap: 20px; }
  .journey__steps strong { font-size: 15px; }
}
@media (min-width: 641px) and (max-width: 820px) {
  .hero h1 { font-size: 52px; }
  .hero .search-form { flex-wrap: wrap; gap: 12px; }
  .hero .route-fields { flex-basis: 100%; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr) 175px; }
  .hero .route-arrow { width: 32px; }
  .hero .search-field { padding-inline: 14px; }
  .hero .search-field input { font-size: 16px; }
  .hero .search-date__value .search-date__empty { font-size: 16px; }
  .hero .search-form .button { width: 100%; min-height: 54px; margin: 0; }
  .hero__meta { flex-wrap: wrap; }
  .hero .button--create-outline { min-width: 190px; }
}
@media (max-width: 640px) {
  .hero h1 > span { display: inline; }
  .hero .route-fields { position: relative; grid-template-columns: 1fr; }
  .hero .search-field { padding-inline: 46px 16px; }
  .hero .search-field.search-field--date { border-left: 0; border-top: 1px solid #d5d8e1; }
  .hero .search-date__value .search-date__empty { font-size: 16px; }
  .hero .route-arrow { top: 51px; align-self: start; margin: 0 0 0 9px; }
  .hero .button--create-outline { min-height: 50px; margin-top: 12px; }
  .journey__steps { gap: 0; }
  .journey__steps li { grid-template-columns: 52px minmax(0, 1fr); gap: 4px 16px; padding: 14px 0; }
  .journey-step__icon { grid-column: 1; grid-row: 1 / 3; margin: 0; }
  .journey__steps strong { grid-column: 2; grid-row: 1; font-size: 16px; }
  .journey__steps li > span:not(.journey__signal) { grid-row: 2; margin-top: 0; }
  .journey__steps li:not(:last-child)::after { top: 73px; left: 25px; width: 1px; height: calc(100% - 68px); background: #b6cbdc; clip-path: none; }
}
