/* Compact application layout; Telegram safe area belongs to the header once. */
@media (max-width: 650px) {
  body .top {
    min-height: 56px;
    padding: calc(12px + var(--iness-content-safe-top, 0px)) 20px 12px;
  }
  body.is-telegram .top .brand { display: block; }
  body .top .brand { font-size: 25px; }
  body .app { width: 100%; }
  body #view-home, body #view-shop, body #view-booking,
  body #view-orders, body #view-profile { padding-top: 12px; }
  body #view-home { padding-inline: 20px; }
  body #view-shop, body #view-booking, body #view-orders, body #view-profile { padding-inline: 20px; }
  body .hero { padding: 14px 0 20px; }
  body .hero h1 { font-size: 36px; line-height: 1.12; }
  body .hero p { font-size: 14px; line-height: 1.6; }
  body .app-home-hero--compact { padding: 18px 0 22px; }
  body .app-home-hero--compact .app-home-kicker { margin-bottom: 10px; font-size: 9px; }
  body .app-home-hero--compact h1 { font-size: 44px; line-height: 1.02; }
  body .app-home-hero--compact p { font-size: 14px; line-height: 1.6; margin: 14px 0 8px; }
  body .app-home-hero-actions { margin-top: 8px; }
  body .app-home-hero-actions .iness-button { min-height: 44px; display: inline-flex; width: auto; }
  body .app-home-section { margin: 24px 0; }
  body .app-home-quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border-top: 0; }
  body .app-home-quick-action, body .app-home-quick-action:first-child {
    padding: 18px 14px; min-height: 155px; display: flex; flex-direction: column; text-align: left;
  }
  body .app-home-quick-action strong { font-size: 28px; line-height: 1.05; margin: 14px 0 10px; }
  body .app-home-quick-action small { font-size: 12px; line-height: 1.45; }
  body .app-home-quick-action small:first-child { font-size: 9px; letter-spacing: .1em; }
  body .app-home-section-head h2 { font-size: 28px; }
  body .app-home-editorial blockquote { font-size: 26px; }
  body #view-shop #appShopRoot { padding-inline: 0; }
  body #view-shop .shared-shop-toolbar { padding-inline: 0; }
  body #view-shop .shared-shop-filters { gap: 8px; padding-block: 8px; }
  body #view-shop .shared-shop-filter { min-height: 44px; padding: 8px 12px; }
  body #view-shop .catalog { gap: 20px; padding-inline: 0; }
  body #view-shop .visual { height: 220px; }
  body #view-shop .product-body { padding: 18px; }
  body #view-shop .product-title { font-size: 28px; line-height: 1.15; }
  body #view-shop .buy-row { padding-top: 16px; }
  body #view-shop .notes { gap: 10px; }
  body #view-shop .note-value { overflow-wrap: anywhere; }
  body .app-booking-service { border-color: var(--line); padding: 16px; }
  body .app-booking-context { border-radius: 8px; }
  body .booking-date-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  body .app-booking-date { min-height: 52px; padding: 10px 5px; font-size: 13px; }
  body #view-orders .iness-state, body #view-profile .iness-card { padding: 24px 20px; }
  body #view-orders .iness-state { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; margin-top: 8px; }
  body #view-orders .iness-state__title { font-family: var(--iness-font-display); font-weight: 400; font-size: 28px; }
  body #view-orders .iness-state__copy { font-size: 14px; line-height: 1.6; }
  body .iness-state .iness-button { margin-top: 18px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding: 12px 18px; }
  body .bottom-nav.iness-bottom-nav { gap: 4px; padding-inline: 10px; background: #fffdf9; box-shadow: 0 -1px 0 var(--line); }
  body .bottom-nav .nav-btn { min-height: 56px; border: 0; border-radius: 8px; box-shadow: none; }
  body .bottom-nav .nav-btn.active { background: #efe1e7; color: #6d4055; box-shadow: none; }
  body .bottom-nav .nav-btn .nav-icon { width: 22px; height: 22px; }
  body .bottom-nav .nav-btn .nav-icon svg { width: 22px; height: 22px; }
}
@media (max-width: 350px) {
  body #view-home, body #view-shop, body #view-booking, body #view-orders, body #view-profile { padding-inline: 16px; }
  body .app-home-quick-actions { gap: 8px; }
  body .app-home-quick-action, body .app-home-quick-action:first-child { padding: 16px 12px; }
  body .app-home-quick-action strong { font-size: 25px; }
}
