/* Phone / APK only (html.phone-ui). Desktop styles.css unchanged. */

html.phone-ui {
  height: 100%;
}

html.phone-ui body {
  font-size: 14px;
  line-height: 1.4;
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  -webkit-tap-highlight-color: rgba(107, 29, 29, 0.1);
  overscroll-behavior-y: contain;
}

/* Webpage chrome → hide on phone */
html.phone-ui .top-strip,
html.phone-ui .nav-cats-scroll,
html.phone-ui .footer,
html.phone-ui .fine,
html.phone-ui .hero-ornament {
  display: none !important;
}

/* Keep gear for APK server settings; hide other header actions */
html.phone-ui .header-actions .icon-btn:not(.m-server-btn) {
  display: none !important;
}

html.phone-ui .header-actions {
  display: flex !important;
  gap: 0;
}

html.phone-ui .m-server-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 34px;
  padding: 0 8px;
  font-size: 16px;
  color: var(--gold-soft);
}

/* —— Compact app header —— */
html.phone-ui .header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

html.phone-ui .header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  padding-top: calc(6px + env(safe-area-inset-top, 0px));
}

html.phone-ui .logo-mark img {
  width: 28px;
  height: 28px;
}

html.phone-ui .logo-word {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

html.phone-ui .logo-word .ritual-name {
  font-size: 18px;
  line-height: 1;
}

html.phone-ui .logo-word small,
html.phone-ui .logo-tagline {
  display: none;
}

html.phone-ui .logo-city {
  display: block !important;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: var(--maroon, #7a2016);
  line-height: 1.2;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42vw;
}

html.phone-ui .logo-city[hidden] {
  display: none !important;
}

/* Boot splash: logo + city while GPS runs at app open */
html.phone-ui .boot-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255, 214, 160, 0.55), transparent 55%),
    linear-gradient(165deg, #fff8ec 0%, #f3e0c4 48%, #e8c9a0 100%);
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

html.phone-ui .boot-splash.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html.phone-ui .boot-splash__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  animation: boot-splash-rise 0.45s ease both;
}

html.phone-ui .boot-splash__logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(74, 28, 18, 0.18));
}

html.phone-ui .boot-splash__brand {
  margin: 0;
  font-family: var(--display, var(--font));
  font-size: 28px;
  color: var(--maroon-deep, #5c1810);
  line-height: 1.1;
}

html.phone-ui .boot-splash__city {
  margin: 4px 0 0;
  min-height: 1.3em;
  font-size: 15px;
  font-weight: 600;
  color: var(--maroon, #7a2016);
  letter-spacing: 0.02em;
}

@keyframes boot-splash-rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

html.phone-ui .search {
  order: unset;
  flex: unset;
  min-height: 34px;
  border-radius: 10px;
}

html.phone-ui .search input {
  padding: 7px 10px;
  font-size: 14px;
}

html.phone-ui .search button {
  padding: 0 12px;
  min-width: 0;
  font-size: 12px;
}

/* Category chips: hide on phone — family tile grid is enough (avoids tall wrap + scroll) */
html.phone-ui .nav-cats-wrap {
  display: none !important;
}

html.phone-ui .wrap {
  padding: 8px 10px 16px;
}

/* —— Animated photo banner —— */
html.phone-ui .m-banner {
  position: relative;
  height: 168px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 4px;
  background: #2b120c;
}

html.phone-ui .m-banner--plain {
  background: linear-gradient(120deg, #2b120c 0%, #6b1d1d 55%, #3a1010 100%);
}

html.phone-ui .m-banner__slides {
  position: absolute;
  inset: 0;
}

html.phone-ui .m-banner__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.85s ease;
  z-index: 0;
}

html.phone-ui .m-banner__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.06);
  transition: transform 6s ease-out;
}

html.phone-ui .m-banner__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

html.phone-ui .m-banner__slide.is-active img {
  transform: scale(1);
}

html.phone-ui .m-banner__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(20, 8, 6, 0.05) 0%,
    rgba(20, 8, 6, 0.25) 45%,
    rgba(20, 8, 6, 0.78) 100%
  );
  pointer-events: none;
}

html.phone-ui .m-banner__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 10px 12px 8px;
  color: #f7ecda;
}

html.phone-ui .m-banner__kicker {
  margin: 0 0 2px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

html.phone-ui .m-banner__copy h1 {
  margin: 0 0 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

html.phone-ui .m-banner__actions {
  display: flex;
  gap: 6px;
}

html.phone-ui .m-banner__actions .saffron-btn,
html.phone-ui .m-banner__actions .ghost-btn {
  flex: 1;
  min-height: 32px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 12px;
}

html.phone-ui .m-banner__actions .ghost-btn {
  color: #f7ecda;
  border-color: rgba(247, 236, 218, 0.45);
}

html.phone-ui .m-banner__dots {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 8px;
}

html.phone-ui .m-banner__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(247, 236, 218, 0.35);
  cursor: pointer;
}

html.phone-ui .m-banner__dot.is-active {
  background: var(--gold);
}

/* Old hero unused on phone home */
html.phone-ui .hero {
  display: none;
}

html.phone-ui .section-h {
  margin: 10px 0 6px;
  align-items: center;
}

html.phone-ui .section-h h2 {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--maroon);
}

html.phone-ui .section-h a {
  font-size: 12px;
}

/* —— Clearer, larger tile images (cover fill) —— */
html.phone-ui .cat-marquee {
  margin: 0;
  width: 100%;
}

html.phone-ui .cat-marquee::before,
html.phone-ui .cat-marquee::after {
  display: none !important;
}

html.phone-ui .cat-marquee__viewport {
  overflow: visible !important;
}

html.phone-ui .cat-marquee__track {
  display: block;
  width: 100%;
}

html.phone-ui .cat-marquee__set {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  width: 100%;
  flex-shrink: 1;
}

html.phone-ui .cat-marquee__set[aria-hidden="true"],
html.phone-ui .cat-marquee__track > .cat-marquee__set:nth-child(2) {
  display: none !important;
}

html.phone-ui .cat-marquee .cat-tile,
html.phone-ui .cat-tile {
  flex: unset;
  flex-basis: auto;
  width: auto;
  padding: 0 0 6px;
  border-radius: 10px;
  box-shadow: none;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
}

html.phone-ui .cat-tile .art {
  height: 92px;
  margin-bottom: 5px;
  border-radius: 0;
  font-size: 22px;
  width: 100%;
}

html.phone-ui .cat-tile .art.art--photo {
  height: 92px;
  background: #1a100c;
  padding: 0;
}

html.phone-ui .cat-tile .art.art--photo .photo-fit,
html.phone-ui .photo-fit--cover {
  object-fit: cover !important;
  object-position: center;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
}

html.phone-ui .cat-tile .cat-name {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  padding: 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html.phone-ui .cat-tile .cat-time {
  display: none !important;
}

html.phone-ui .cat-marquee .cat-tile:hover,
html.phone-ui .cat-marquee .cat-tile:focus-visible {
  transform: none;
}

/* —— Service / fest: compact list rows —— */
html.phone-ui .cat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

html.phone-ui .fest-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

html.phone-ui .svc-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

html.phone-ui .svc-card,
html.phone-ui .fest-card,
html.phone-ui .panel {
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(74, 28, 18, 0.08);
  border: 1px solid rgba(139, 69, 46, 0.14);
  background: #fffdf8;
}

html.phone-ui a.svc-card {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

html.phone-ui .svc-card,
html.phone-ui .svc-card--tile {
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

html.phone-ui .svc-card--tile:active {
  transform: scale(0.985);
  box-shadow: 0 4px 12px rgba(74, 28, 18, 0.1);
}

html.phone-ui .svc-card > .svc-art {
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 10;
  margin: 0;
  border-radius: 0;
  padding: 0 !important;
  border: 0 !important;
}

html.phone-ui .svc-card > .svc-art.svc-art--photo {
  height: auto;
  aspect-ratio: 16 / 10;
}

html.phone-ui .svc-card > .svc-art .photo-fit {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  display: block;
}

html.phone-ui .svc-art .diya {
  width: 52px;
  height: 52px;
  box-shadow: 0 0 16px rgba(201, 162, 39, 0.4);
}

html.phone-ui .svc-card .body {
  padding: 12px 14px 14px;
  justify-content: flex-start;
  gap: 6px;
  min-height: 0;
}

html.phone-ui .svc-card h3 {
  font-family: var(--display, var(--font));
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  color: var(--maroon-deep, var(--maroon));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html.phone-ui .svc-card .note {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted, #6b5a4e);
}

html.phone-ui .svc-meta {
  margin-top: 4px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

html.phone-ui .svc-card__modes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

html.phone-ui .price {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

html.phone-ui .chip {
  font-size: 11px;
  padding: 3px 8px;
  margin-right: 0;
}

html.phone-ui .fest-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
}

html.phone-ui .fest-card-art {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

html.phone-ui .fest-card h3 {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}

html.phone-ui .fest-card .when {
  font-size: 11px;
}

html.phone-ui .filters {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

html.phone-ui .filters select,
html.phone-ui .filters input {
  flex: 1 1 40%;
  width: auto;
  min-width: 0;
  min-height: 34px;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 8px;
}

html.phone-ui .filters .primary-btn {
  flex: 1 1 100%;
  width: 100%;
  min-height: 36px;
  font-size: 13px;
}

html.phone-ui .two {
  grid-template-columns: 1fr;
  gap: 8px;
}

html.phone-ui .primary-btn,
html.phone-ui .saffron-btn,
html.phone-ui .ghost-btn {
  min-height: 36px;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
}

html.phone-ui .field input,
html.phone-ui .field select,
html.phone-ui .field textarea {
  min-height: 36px;
  font-size: 14px;
  border-radius: 8px;
  padding: 8px 10px;
}

html.phone-ui .pkg {
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 6px;
}

html.phone-ui .panel {
  padding: 12px;
}

/* Bottom tabs */
html.phone-ui .m-tabbar {
  display: grid !important;
  grid-template-columns: repeat(var(--m-tab-cols, 4), 1fr);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: #1c0c08;
  border-top: 1px solid rgba(201, 162, 39, 0.35);
  padding: 4px 2px calc(4px + env(safe-area-inset-bottom, 0px));
}

html.phone-ui .m-tabbar a,
html.phone-ui .m-tabbar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 48px;
  padding: 2px;
  color: #cbb48a;
  font-size: 10px;
  font-weight: 600;
  border-radius: 8px;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

html.phone-ui .m-tabbar a .m-tabbar__ico,
html.phone-ui .m-tabbar button .m-tabbar__ico {
  font-size: 16px;
  line-height: 1;
  font-family: var(--font);
  color: var(--gold-soft);
}

html.phone-ui .m-tabbar a.active,
html.phone-ui .m-tabbar button.active {
  color: #fff;
  background: rgba(201, 162, 39, 0.16);
}

html.phone-ui .m-tabbar a.active .m-tabbar__ico,
html.phone-ui .m-tabbar button.active .m-tabbar__ico {
  color: var(--gold);
}

html.phone-ui .account-dash,
html.phone-ui .account-guest {
  padding: 8px 10px 12px;
  max-width: none;
  margin: 0;
  min-height: calc(100dvh - 120px - env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

html.phone-ui .account-dash {
  grid-template-columns: 1fr;
}

html.phone-ui .account-dash-side {
  position: static;
}

html.phone-ui .auth-hub.panel {
  padding: 14px 12px 12px;
  border-radius: 12px;
  box-shadow: none;
}

html.phone-ui .auth-hub__head {
  margin-bottom: 12px;
}

html.phone-ui .auth-hub__head .dash-kicker {
  margin: 0 0 2px;
  font-size: 11px;
}

html.phone-ui .auth-hub__head h1,
html.phone-ui .auth-hub__title {
  font-family: var(--font) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin: 0 0 4px !important;
  color: var(--maroon);
}

/* Compact login: hide bulky OAuth + developer blocks on phone */
html.phone-ui .auth-hub__social,
html.phone-ui .auth-hub__social-note,
html.phone-ui .auth-hub__or,
html.phone-ui .auth-hub__dev {
  display: none !important;
}

html.phone-ui .account-guest {
  min-height: 0;
  padding: 8px 10px 8px;
}

html.phone-ui .auth-hub.panel {
  padding: 12px 12px 10px;
}

html.phone-ui .auth-hub__head .hint {
  margin: 0;
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html.phone-ui .auth-hub__audience,
html.phone-ui .auth-hub__flow {
  gap: 6px;
  margin-bottom: 10px;
}

html.phone-ui .auth-hub__tab,
html.phone-ui .auth-hub__flow-btn {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  font-size: 12px;
  min-height: 36px;
  border-radius: 10px;
}

html.phone-ui .auth-hub__social {
  gap: 6px;
  margin-bottom: 8px;
}

html.phone-ui .auth-hub__social-btn {
  padding: 10px 12px;
  font-size: 13px;
  border-radius: 10px;
  min-height: 40px;
}

html.phone-ui .auth-hub__social-note {
  font-size: 11px;
  margin: 0 0 6px;
}

html.phone-ui .auth-hub__or {
  margin: 8px 0;
  font-size: 11px;
}

html.phone-ui .auth-hub__form .field {
  margin-bottom: 8px;
}

html.phone-ui .auth-hub__form .field label {
  font-size: 12px;
  margin-bottom: 2px;
}

html.phone-ui .auth-hub__form .hint {
  font-size: 11px;
  margin: 0 0 6px;
}

html.phone-ui .auth-hub__form .primary-btn,
html.phone-ui .auth-hub__form .saffron-btn,
html.phone-ui .auth-hub__form .ghost-btn {
  margin-top: 6px;
  min-height: 40px;
  font-size: 13px;
}

html.phone-ui .auth-hub__dev {
  margin-top: 10px;
  padding-top: 8px;
}

html.phone-ui .auth-hub__dev summary {
  font-size: 12px;
}

html.phone-ui .empty[data-testid="login-required"] {
  padding: 24px 12px;
}

html.phone-ui .empty[data-testid="login-required"] h2 {
  font-size: 20px;
}

html.phone-ui .account-dash {
  grid-template-columns: 1fr;
}

html.phone-ui .account-dash-side {
  position: static;
}

html.phone-ui .account-dash--phone {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 10px 16px;
}

html.phone-ui .account-dash--phone .account-dash-side,
html.phone-ui .account-dash--phone .account-logout-bar {
  display: none !important;
}

html.phone-ui .account-hub-head {
  display: block;
  margin: 0 0 4px;
}

html.phone-ui .account-hub-head__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

html.phone-ui .account-hub-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--maroon-deep, var(--maroon));
  line-height: 1.2;
}

html.phone-ui .account-hub-city {
  margin: 2px 0 0;
  font-size: 12px;
}

html.phone-ui .account-logout-btn {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 700;
  width: auto;
  margin: 0;
}

html.phone-ui .account-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  scrollbar-width: none;
}

html.phone-ui .account-chips::-webkit-scrollbar {
  display: none;
}

html.phone-ui .account-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(139, 69, 46, 0.2);
  background: #fffdf8;
  color: var(--maroon, #7a2016);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

html.phone-ui .account-chip.is-active {
  background: var(--maroon, #7a2016);
  border-color: var(--maroon, #7a2016);
  color: #fff8ec;
}

html.phone-ui .account-page-title {
  font-family: var(--font) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin: 0 0 4px !important;
}

html.phone-ui .account-dash--phone .dash-head {
  margin: 4px 0 8px;
}

html.phone-ui .account-dash--phone .dash-stats {
  display: none;
}

html.phone-ui .account-hub-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

html.phone-ui .account-hub-card {
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: none;
}

html.phone-ui .account-hub-card__title {
  font-size: 16px;
}

html.phone-ui .account-order-card {
  flex-direction: column;
  gap: 10px;
}

html.phone-ui .account-order-card__act {
  width: 100%;
}

html.phone-ui .account-order-card__act .saffron-btn,
html.phone-ui .account-order-card__act .ghost-btn,
html.phone-ui .account-order-card__act form {
  width: 100%;
}

html.phone-ui .account-dash--phone .dash-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

html.phone-ui .dash,
html.phone-ui .dash-stats,
html.phone-ui .dash-tools-grid {
  grid-template-columns: 1fr;
}

html.phone-ui body.desk-mode .desk-frame {
  grid-template-columns: 1fr;
  padding: 8px;
}

/* Phone desk uses bottom tabs + More sheet — hide desktop rail */
html.phone-ui body.desk-mode .desk-rail {
  display: none !important;
}

html.phone-ui .ops-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

html.phone-ui .ops-tabs::-webkit-scrollbar {
  display: none;
}

html.phone-ui .ops-tabs a {
  flex: 0 0 auto;
  white-space: nowrap;
}

html.phone-ui .ops-tabs--select {
  overflow: visible;
}

html.phone-ui .ops-entity-pick {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

html.phone-ui .ops-entity-pick__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--maroon, #7a2016);
}

html.phone-ui .ops-entity-pick select {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(139, 69, 46, 0.25);
  background: #fffdf8;
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
  color: var(--ink, #2a1810);
}

html.phone-ui .desk-phone-hub .dash-head {
  margin-bottom: 8px;
}

html.phone-ui .desk-phone-stat {
  margin: 4px 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--maroon, #7a2016);
  line-height: 1.1;
}

html.phone-ui .desk-phone-panel {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

html.phone-ui .desk-phone-recent {
  display: grid;
  gap: 8px;
}

html.phone-ui .desk-phone-booking {
  text-decoration: none;
  color: inherit;
}

html.phone-ui .desk-more-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
}

html.phone-ui .desk-more-sheet[hidden] {
  display: none !important;
}

html.phone-ui .desk-more-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 12, 8, 0.45);
}

html.phone-ui .desk-more-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(72vh, 520px);
  overflow: auto;
  padding: 14px 14px calc(16px + env(safe-area-inset-bottom, 0px));
  border-radius: 16px 16px 0 0;
  background: #fff8ec;
  box-shadow: 0 -8px 28px rgba(28, 12, 8, 0.18);
}

html.phone-ui .desk-more-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

html.phone-ui .desk-more-sheet__who {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--maroon, #7a2016);
}

html.phone-ui .desk-more-sheet__nav {
  display: grid;
  gap: 6px;
}

html.phone-ui .desk-more-sheet__nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(139, 69, 46, 0.14);
  background: #fffdf8;
  color: var(--maroon, #7a2016);
  font-weight: 600;
  text-decoration: none;
}

html.phone-ui .desk-more-sheet__signout {
  width: 100%;
  margin-top: 12px;
  min-height: 44px;
}

html.phone-ui .book-cal-cell {
  min-height: 52px;
  padding: 3px;
}

html.phone-ui .banner {
  margin: 6px 10px 0;
  padding: 8px 10px;
  flex-direction: column;
  align-items: stretch;
  border-radius: 8px;
}

html.phone-ui [data-location-picker] {
  min-height: 180px;
}

html.phone-ui .empty {
  padding: 24px 12px;
}

html.phone-ui .empty h2 {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
}

/* —— Rites catalog / service detail / booking form —— */
html.phone-ui .catalog-page .section-h {
  margin: 4px 0 10px;
}

html.phone-ui .catalog-page .section-h h2 {
  font-size: 22px;
  letter-spacing: 0.01em;
}

html.phone-ui .catalog-page .filters {
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 248, 236, 0.9);
  border: 1px solid rgba(139, 69, 46, 0.1);
}

html.phone-ui .catalog-page .filters--rites {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

html.phone-ui .catalog-page .filters--rites .rite-combo {
  grid-column: 1 / -1;
  position: relative;
}

html.phone-ui .catalog-page .filters--rites select[name="city_id"] {
  flex: none;
  width: 100%;
  min-height: 40px;
  font-size: 14px;
}

html.phone-ui .catalog-page .filters--rites .primary-btn {
  flex: none;
  min-width: 78px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
}

html.phone-ui .rite-combo__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--maroon, #7a2016);
  margin: 0 0 4px;
}

html.phone-ui .rite-combo__input {
  display: block !important;
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(139, 69, 46, 0.22);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  background: #fff;
}

html.phone-ui .rite-combo__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  max-height: 240px;
  overflow: auto;
  background: #fffdf8;
  border: 1px solid rgba(139, 69, 46, 0.18);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(74, 28, 18, 0.14);
  padding: 6px;
}

html.phone-ui .rite-combo__panel[hidden] {
  display: none !important;
}

html.phone-ui .rite-combo__opt {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--maroon-deep, #5c1810);
  cursor: pointer;
}

html.phone-ui .rite-combo__opt:hover,
html.phone-ui .rite-combo__opt:focus-visible {
  background: rgba(196, 92, 38, 0.1);
  outline: none;
}

html.phone-ui .rite-combo__opt[hidden] {
  display: none !important;
}

html.phone-ui .rite-combo__empty {
  margin: 8px 10px;
}

html.phone-ui .catalog-page .filters input[name="q"]:not(.rite-combo__input) {
  display: none;
}

html.phone-ui .catalog-page .filters:not(.filters--rites) select {
  flex: 1 1 calc(50% - 4px);
  min-height: 40px;
  font-size: 14px;
}

html.phone-ui .catalog-page .filters:not(.filters--rites) .primary-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 78px;
  padding: 8px 14px;
  min-height: 40px;
  border-radius: 10px;
}

html.phone-ui .catalog-page .svc-grid {
  gap: 16px;
}

html.phone-ui .catalog-more {
  margin-top: 10px;
}

html.phone-ui .svc-detail__title,
html.phone-ui .book-page__title {
  font-family: var(--font) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin: 4px 0 4px !important;
  color: var(--maroon);
}

html.phone-ui .svc-detail__purpose {
  font-size: 12px;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html.phone-ui .svc-detail__chips {
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

html.phone-ui .svc-detail__chips .chip {
  font-size: 11px;
  padding: 2px 8px;
}

html.phone-ui .svc-detail__book {
  display: block;
  width: 100%;
  text-align: center;
  min-height: 44px;
  margin: 10px 0 0;
  position: sticky;
  bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  z-index: 25;
  box-shadow: 0 -6px 16px rgba(20, 8, 6, 0.12);
}

html.phone-ui .panel-title {
  font-family: var(--font) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 6px !important;
}

html.phone-ui .panel {
  padding: 8px 10px;
  margin: 0;
}

html.phone-ui .panel--spaced {
  margin-top: 8px;
}

html.phone-ui .svc-detail .svc-art,
html.phone-ui .svc-detail .svc-art--photo {
  width: 100%;
  height: 96px;
  min-height: 96px;
  max-height: 96px;
  margin: 0 0 6px;
  border-radius: 10px;
  overflow: hidden;
}

html.phone-ui .svc-detail .svc-art .photo-fit,
html.phone-ui .svc-detail .photo-fit {
  width: 100%;
  height: 100%;
  max-height: 96px;
  object-fit: cover !important;
}

html.phone-ui .svc-detail__checks {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(90, 40, 30, 0.12);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.7);
}

html.phone-ui .svc-detail__checks summary {
  font-size: 13px;
  font-weight: 700;
  color: var(--maroon);
  cursor: pointer;
  list-style: none;
}

html.phone-ui .svc-detail__checks summary::-webkit-details-marker {
  display: none;
}

html.phone-ui .svc-detail__checklist {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 12px;
}

html.phone-ui .pkg {
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 8px;
  font-size: 13px;
}

html.phone-ui .pkg--compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 4px;
}

html.phone-ui .pkg--compact .pkg__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

html.phone-ui .pkg--compact .pkg__main .hint {
  font-size: 11px;
  margin: 0;
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

html.phone-ui .pkg--compact .price {
  font-size: 14px;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

html.phone-ui .pkg .hint {
  font-size: 11px;
  margin: 4px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html.phone-ui .pkg .price {
  font-size: 14px;
  margin-top: 2px;
}

html.phone-ui .book-page {
  padding-bottom: 8px;
}

html.phone-ui .book-page.book-wizard {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 108px - env(safe-area-inset-bottom, 0px));
}

html.phone-ui .book-page__night {
  font-size: 11px;
  margin: 0 0 6px;
}

html.phone-ui .book-page__hint {
  display: none;
}

html.phone-ui .book-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 0 0 8px;
}

html.phone-ui .book-steps__item {
  appearance: none;
  border: 1px solid rgba(90, 40, 30, 0.16);
  background: rgba(255, 252, 246, 0.85);
  color: var(--maroon);
  border-radius: 8px;
  min-height: 32px;
  padding: 3px 4px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

html.phone-ui .book-steps__item span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(90, 40, 30, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

html.phone-ui .book-steps__item.is-active {
  border-color: var(--saffron, #c45c26);
  background: #fff4e8;
}

html.phone-ui .book-steps__item.is-active span,
html.phone-ui .book-steps__item.is-done span {
  background: var(--saffron, #c45c26);
  color: #fff;
}

html.phone-ui .book-form {
  padding: 8px 10px 12px;
}

html.phone-ui .book-form--wizard {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
}

html.phone-ui .book-step {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

html.phone-ui .book-step__title {
  font-family: var(--font) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--maroon);
  margin: 0 0 8px !important;
}

html.phone-ui .book-form .two {
  gap: 6px;
}

html.phone-ui .book-form .field {
  margin-bottom: 6px;
}

html.phone-ui .book-form .field label {
  font-size: 11px;
  margin-bottom: 2px;
}

html.phone-ui .book-form .check {
  font-size: 12px;
  margin: 4px 0;
  align-items: flex-start;
}

html.phone-ui .book-form__addons {
  max-height: 88px;
  overflow: auto;
  margin: 4px 0 8px;
  -webkit-overflow-scrolling: touch;
}

html.phone-ui .book-form__addons .check {
  padding: 4px 0;
  border-bottom: 1px solid rgba(90, 40, 30, 0.08);
}

html.phone-ui .book-form__addons .hint {
  font-size: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html.phone-ui .book-wizard__nav {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-top: auto;
  padding-top: 8px;
  position: sticky;
  bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  z-index: 26;
  background: linear-gradient(180deg, transparent, rgba(255, 248, 236, 0.96) 28%);
}

html.phone-ui .book-wizard__nav [hidden] {
  display: none !important;
}

html.phone-ui .book-wizard__back {
  flex: 0 0 84px;
  min-height: 44px;
}

html.phone-ui .book-wizard__next,
html.phone-ui .book-form--wizard .book-form__submit {
  flex: 1;
  position: static;
  box-shadow: none;
  min-height: 44px;
  margin: 0;
  width: auto;
}

html.phone-ui .book-form__submit {
  position: sticky;
  bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  z-index: 25;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  box-shadow: 0 -6px 16px rgba(20, 8, 6, 0.12);
}

html.phone-ui .book-wizard .location-picker > .field > label {
  font-size: 12px;
  font-weight: 700;
}

html.phone-ui .book-wizard .location-picker__address-field label {
  font-size: 11px;
}

html.phone-ui .book-wizard .location-picker__address-field textarea {
  min-height: 52px;
  font-size: 13px;
}

html.phone-ui .book-wizard .location-picker__gate {
  margin: 4px 0;
}

html.phone-ui .book-wizard .location-picker__gate-hint,
html.phone-ui .book-wizard .location-picker__hint,
html.phone-ui .book-wizard .location-picker__coords {
  font-size: 10px;
  margin: 4px 0 0;
}

html.phone-ui .book-wizard .location-picker__map {
  height: min(42vh, 220px) !important;
  min-height: 160px !important;
}

html.phone-ui .book-wizard .location-picker__map-shell {
  min-height: 160px;
}

html.phone-ui .book-wizard .location-picker__toolbar {
  gap: 4px;
}

html.phone-ui .book-wizard .location-picker__toolbar .ghost-btn,
html.phone-ui .book-wizard .location-picker__gps-btn {
  min-height: 34px;
  font-size: 12px;
  padding: 6px 8px;
}

html.phone-ui .location-picker {
  margin: 4px 0 8px;
}

html.phone-ui .location-picker__map {
  height: 120px !important;
  min-height: 120px !important;
}

html.phone-ui .location-picker__map-shell {
  min-height: 120px;
}

html.phone-ui [data-location-picker] {
  min-height: 0;
}

html.phone-ui .filters {
  margin-bottom: 8px;
}

html.phone-ui .app-update-banner {
  margin: 8px 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff4e8;
  border: 1px solid rgba(196, 92, 38, 0.35);
}

html.phone-ui .app-update-banner[hidden] {
  display: none !important;
}

html.phone-ui .app-update-banner .saffron-btn {
  width: 100%;
  margin-top: 8px;
}

html.phone-ui .apk-settings-panel {
  margin: 8px 12px 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 252, 246, 0.95);
  border: 1px solid rgba(90, 40, 30, 0.12);
}

html.phone-ui .apk-settings-panel[hidden] {
  display: none !important;
}

html.phone-ui .apk-settings-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

html.phone-ui .apk-settings-panel .ghost-btn,
html.phone-ui .apk-settings-panel a.ghost-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin: 6px 0;
  text-decoration: none;
}

html.phone-ui .apk-share-box {
  margin-top: 10px;
  text-align: center;
}

html.phone-ui .apk-share-box img {
  max-width: 200px;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
}
