/* HUA.RS mobile task shell: navigation, focused auth and result-first search. */
.hua-auth-side h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  color: #fff;
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: -.035em;
}

@media (max-width: 767px) {
  body.search .hua-growth-bar,
  body.login .hua-growth-bar,
  body.register .hua-growth-bar,
  body.recover .hua-growth-bar,
  body.item-post .hua-growth-bar,
  body.search .hua-pwa-footer,
  body.login .hua-pwa-footer,
  body.register .hua-pwa-footer,
  body.recover .hua-pwa-footer,
  body.item-post .hua-pwa-footer {
    display: none !important;
  }

  body.search .hua-breadcrumb,
  body.login .hua-breadcrumb,
  body.register .hua-breadcrumb,
  body.recover .hua-breadcrumb {
    display: none;
  }

  .hua-menu-toggle,
  .hua-mobile-location,
  .hua-language-menu > summary,
  .hua-header-messages,
  .hua-login-link {
    min-width: 44px;
    min-height: 44px;
  }

  .hua-bottom-nav {
    height: calc(72px + env(safe-area-inset-bottom));
    padding: 6px 6px env(safe-area-inset-bottom);
  }

  .hua-bottom-nav > a {
    min-width: 0;
    min-height: 56px;
    justify-content: center;
    gap: 3px;
    font-size: 11px;
    line-height: 1.15;
  }

  .hua-bottom-nav > a > span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hua-bottom-nav > a > .hua-icon {
    width: 23px;
    height: 23px;
  }

  .hua-bottom-badge {
    position: absolute;
    top: 2px;
    left: calc(50% + 8px);
    display: grid;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: var(--hua-red);
    font-size: 9px;
    line-height: 1;
    place-items: center;
  }

  .hua-bottom-badge[hidden] {
    display: none;
  }

  body.search .hua-page-content {
    padding-top: 10px;
  }

  body.search .hua-global-search-strip {
    position: sticky;
    z-index: 70;
    top: 0;
  }

  body.search .hua-mobile-filter-bar {
    position: sticky;
    z-index: 69;
    top: 64px;
    margin: 0 -2px 10px;
    padding: 8px 2px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 18px rgba(17, 34, 58, .05);
    backdrop-filter: blur(14px);
  }

  body.search .hua-mobile-filter-bar .hua-button,
  body.search .hua-mobile-sort select {
    min-height: 46px;
    border-radius: 12px;
    font-size: 13px;
  }

  body.search .hua-results-panel {
    scroll-margin-top: 126px;
  }

  body.search .hua-results-toolbar {
    min-height: 38px;
    margin-bottom: 8px;
  }

  body.search .hua-sort-explanation {
    display: none;
  }

  body.search .hua-results-list {
    min-width: 0;
  }

  body.search .hua-search-secondary-rail,
  body.search .hua-map-panel,
  body.search .hua-search-alert {
    margin-top: 18px;
  }

  body.search .hua-search-alert {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 13px;
    border-radius: 14px;
  }

  body.search .hua-search-alert-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  body.search .hua-search-alert-copy strong {
    font-size: 14px;
  }

  body.search .hua-search-alert-copy span {
    font-size: 12px;
  }

  .hua-filter-panel {
    top: max(56px, env(safe-area-inset-top));
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - max(56px, env(safe-area-inset-top)));
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -16px 48px rgba(17, 34, 58, .22);
    transform: translateY(105%);
  }

  .hua-filter-panel.is-open {
    transform: translateY(0);
  }

  .hua-filter-mobile-head {
    min-height: 62px;
    flex: 0 0 auto;
    padding: 10px 14px 10px 18px;
  }

  .hua-filter-mobile-head strong {
    min-width: 0;
    flex: 1;
    color: #15233a;
    font-size: 17px;
  }

  .hua-filter-mobile-head > a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 12px;
    color: var(--hua-red);
    font-size: 13px;
    font-weight: 800;
  }

  .hua-filter-mobile-head button {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  .hua-filter-panel .hua-filter-form {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 18px 18px calc(96px + env(safe-area-inset-bottom));
    overscroll-behavior: contain;
  }

  .hua-filter-field input,
  .hua-filter-field select,
  .hua-filter-check {
    min-height: 46px;
  }

  .hua-filter-check input {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
  }

  .hua-filter-actions {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-height: calc(78px + env(safe-area-inset-bottom));
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--hua-border);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -10px 24px rgba(17, 34, 58, .08);
    backdrop-filter: blur(16px);
  }

  .hua-filter-actions > a {
    display: inline-flex;
    min-width: 62px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    color: #526174;
    font-size: 13px;
    font-weight: 800;
  }

  .hua-filter-actions .hua-filter-submit {
    min-width: 0;
    min-height: 50px;
    margin: 0;
    border-radius: 13px;
    font-size: 14px;
  }

  body.login .hua-bottom-nav,
  body.register .hua-bottom-nav,
  body.recover .hua-bottom-nav,
  body.login .hua-site-footer,
  body.register .hua-site-footer,
  body.recover .hua-site-footer {
    display: none;
  }

  body.login .hua-auth-side,
  body.register .hua-auth-side,
  body.recover .hua-auth-side {
    display: none;
  }

  body.login .hua-auth-shell,
  body.register .hua-auth-shell,
  body.recover .hua-auth-shell {
    width: calc(100% - 28px);
    margin: 14px auto 32px;
    border-top-width: 3px;
    border-radius: 17px;
    box-shadow: 0 16px 42px rgba(18, 35, 59, .09);
  }

  body.login .hua-auth-shell .form-container-box,
  body.register .hua-auth-shell .form-container-box,
  body.recover .hua-auth-shell .form-container-box {
    padding: 25px 20px 28px;
  }

  body.login .hua-auth-shell .form-container-box .header h1,
  body.register .hua-auth-shell .form-container-box .header h1,
  body.recover .hua-auth-shell .form-container-box .header h1 {
    margin-bottom: 20px;
    font-size: 26px;
  }

  body.login .hua-auth-shell .form-container-box input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  body.register .hua-auth-shell .form-container-box input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  body.recover .hua-auth-shell .form-container-box input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  body.register .hua-auth-shell .form-container-box select {
    min-height: 50px;
    font-size: 16px;
  }

  .hua-auth-shell .form-container-box .controls.checkbox input {
    width: 20px;
    height: 20px;
    min-height: 0;
    margin: 0 8px 0 0;
    vertical-align: middle;
  }

  body.login .hua-auth-shell .btn-primary,
  body.register .hua-auth-shell .btn-primary,
  body.recover .hua-auth-shell .btn-primary {
    min-height: 50px;
    font-size: 15px;
  }
}

@media (min-width: 768px) {
  .hua-filter-actions > a {
    display: none;
  }
}

@media (max-width: 350px) {
  .hua-bottom-nav > a {
    font-size: 9px;
  }

  body.search .hua-global-search-strip > .hua-search-command {
    width: calc(100% - 18px);
  }

  body.search .hua-mobile-filter-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .hua-menu-toggle,
  .hua-mobile-location,
  .hua-language-menu > summary,
  .hua-header-messages,
  .hua-login-link { min-width: 48px; min-height: 48px; }

  body.search .hua-mobile-filter-bar .hua-button,
  body.search .hua-mobile-sort select,
  .hua-filter-field input,
  .hua-filter-field select,
  .hua-filter-check { min-height: 48px; }

  .hua-filter-mobile-head > a { min-height: 48px; }
  .hua-filter-mobile-head button { width: 48px; height: 48px; flex-basis: 48px; }
}
