/* Public presentation only. Member permissions and all business actions stay unchanged. */
.public-page-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(76px, 1fr) minmax(0, 2fr) minmax(76px, 1fr);
  align-items: center;
  min-height: 56px;
  padding: env(safe-area-inset-top, 0px) 20px 0;
  background: #fffefa;
  border-bottom: 1px solid #e7e1d5;
  color: #30372e;
}
.public-page-back {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  min-width: 72px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
}
.public-page-back svg { flex-shrink: 0; }
.public-page-title {
  min-width: 0;
  margin: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.public-page-home {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  font: 14px Georgia, serif;
  letter-spacing: .12em;
}
body.public-app.has-page-back .register-back { display: none; }
.public-page-back:focus-visible, .public-page-home:focus-visible {
  outline: 2px solid #687557;
  outline-offset: 2px;
}
@media (max-width: 767px) {
  body.public-app .app-shell { min-height: 100svh; padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  body.public-app .app-shell:has(.auth-screen) { padding-bottom: 0; }
  body.public-app .public-page-bar { padding-left: 14px; padding-right: 14px; }
  body.public-app .content, body.public-app .mobile-screen, body.public-app .form-grid { min-width: 0; }
  body.public-app input, body.public-app select, body.public-app textarea { min-width: 0; max-width: 100%; font-size: 16px; }
  body.public-app .field-row input, body.public-app .field-row select { font-size: 16px; min-height: 44px; }
  body.public-app .wd-password-input { font-size: 16px !important; }
  body.public-app .phone-input { min-width: 0; }
  body.public-app .phone-input input { width: 0; flex: 1 1 0; }
  body.public-app.has-page-back .auth-screen { min-height: calc(100svh - 56px); }
  body.public-app .auth-top-image, body.public-app .register-hero { height: clamp(150px, 22svh, 200px); }
  body.public-app .auth-panel, body.public-app .register-panel { padding: 26px 22px 30px; }
  body.public-app .auth-panel .brand-logo { margin-bottom: 20px; }
  body.public-app .auth-screen .form-grid { gap: 16px; }
  body.public-app .auth-screen .screen-subtitle { margin-bottom: 22px; }
  body.public-app .auth-screen .primary-app-button { min-height: 48px; font-size: 13px; }
  body.public-app .auth-screen .copyright { margin-top: 24px !important; }
  body.public-app .bottom-nav {
    min-height: calc(68px + env(safe-area-inset-bottom, 0px));
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
  }
  body.public-app .bottom-nav-item { min-width: 0; flex: 1 1 0; min-height: 56px; padding: 7px 2px; }
  body.public-app .bottom-nav-label { font-size: 11px; line-height: 1.2; overflow-wrap: anywhere; text-align: center; }
  body.public-app .bottom-nav-icon svg { width: 22px; height: 22px; }
  body.public-app .bonia-home .hero-btn { min-height: 44px; font-size: 11px; }
  body.public-app .bonia-home .hero-buttons { flex-wrap: wrap; gap: 12px 18px; }
  body.public-app .bonia-home .hero-description { font-size: 13px; }
  body.public-app .bonia-home .product-card-label { font-size: 12px; }
  body.public-app .catalog-search input { font-size: 16px; }
  body.public-app .catalog-category { min-height: 44px; }
  body.public-app .simple-table { display: block; width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
  body.public-app .lux-modal-backdrop { padding: 16px; }
  body.public-app .lux-modal-card { max-width: 100%; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 28px 22px 22px; }
  body.public-app .toast-container { left: 12px; right: 12px; width: auto; max-width: none; top: calc(68px + env(safe-area-inset-top, 0px)); }
  body.public-app .toast { width: 100%; max-width: 100%; }
}
@media (max-width: 360px) {
  body.public-app .public-page-bar { padding-left: 10px; padding-right: 10px; }
  body.public-app .auth-panel, body.public-app .register-panel { padding-left: 18px; padding-right: 18px; }
  body.public-app .public-page-home { font-size: 12px; }
  body.public-app .bonia-home .hero-title { font-size: 43px; }
  body.public-app .bottom-nav-label { font-size: 10px; }
}
