/* App Lab + native-feeling phone chrome for customer/vendor web */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

body.rh-app-lab {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, #ccfbf1 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, #fed7aa 0%, transparent 35%),
    #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
}
.app-lab-head {
  padding: 1.75rem 0 0.5rem;
}
.app-lab-head-inner { max-width: 1100px; }
.app-lab-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  text-decoration: none;
  margin-bottom: 0.65rem;
}
.app-lab-brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e66239;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.app-lab-brand strong { font-size: 1.15rem; }
.app-lab-head p {
  margin: 0 0 1rem;
  color: #94a3b8;
  max-width: 40rem;
}
.app-lab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.app-lab-actions .rh-btn-ink {
  background: #0d9488;
  border-color: #0d9488;
  color: #fff;
}
.app-lab-actions .rh-btn-ghost-dark {
  background: transparent;
  border: 1px solid #475569;
  color: #e2e8f0;
}
.app-lab-demo {
  font-size: 0.86rem;
  color: #94a3b8;
}
.app-lab-demo code {
  background: rgba(255, 255, 255, 0.08);
  color: #5eead4;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-weight: 700;
}
.app-lab-phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding: 1.5rem 0 3rem;
  max-width: 980px;
  margin-inline: auto;
}
@media (max-width: 900px) {
  .app-lab-phones { grid-template-columns: 1fr; justify-items: center; }
}
.phone-device {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.phone-device figcaption {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #e2e8f0;
  font-size: 0.92rem;
  width: min(360px, 100%);
}
.phone-device figcaption .ti { color: #5eead4; }
.phone-device figcaption strong { flex: 1; }
.phone-device figcaption a {
  color: #99f6e4;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}
.phone-bezel {
  width: min(360px, 100%);
  height: min(740px, 82vh);
  background: #020617;
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #334155,
    0 25px 60px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 22px;
  background: #020617;
  border-radius: 0 0 14px 14px;
  z-index: 2;
  pointer-events: none;
}
.phone-bezel iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 26px;
  background: #fff;
}

/* Mobility + native: dock lives in rh-mob, not old tabbars */
body.rh-mobility.rh-native-app .rh-app-tabbar,
body.rh-mobility.rh-native-app .rh-vendor-tabbar {
  display: none !important;
}
body.rh-mobility.rh-native-app .rh-main {
  padding-bottom: 0 !important;
}
body.rh-native-app .rh-app-device {
  width: min(430px, 100%) !important;
  max-width: 100% !important;
  min-height: 100vh;
  margin: 0 auto !important;
  background: #f8fafc;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 20px 50px rgba(0, 0, 0, 0.35);
  display: flex !important;
  flex-direction: column !important;
  align-self: center;
}
@media (min-width: 860px) {
  body.rh-native-app {
    padding: 1.25rem 0;
    min-height: 100vh;
  }
  body.rh-native-app .rh-app-device {
    min-height: calc(100vh - 2.5rem);
    max-height: calc(100vh - 2.5rem);
    border-radius: 28px;
    overflow: hidden;
    width: 430px !important;
  }
}
@media (max-width: 859px) {
  body.rh-native-app .rh-app-device {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    max-height: none !important;
  }
}
body.rh-native-app .rh-topbar {
  position: sticky;
  top: 0;
  flex: 0 0 auto;
}
body.rh-native-app .rh-topbar-inner {
  width: 100% !important;
  max-width: none !important;
  padding-inline: 1rem !important;
  min-height: 56px !important;
}
body.rh-native-app .rh-nav-links > a:not(.rh-nav-logout),
body.rh-native-app .rh-user-pill {
  display: none !important;
}
body.rh-native-app .rh-vendor-nav a:not(.rh-nav-logout),
body.rh-native-app .rh-vendor-nav .rh-nav-online {
  display: inline-flex !important;
}
body.rh-native-app .rh-vendor-nav a:not(.rh-nav-logout) {
  display: none !important;
}
body.rh-native-app .rh-main {
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 5.5rem !important;
}
body.rh-native-app .rh-shell {
  width: 100% !important;
  max-width: none !important;
  padding-inline: 1rem !important;
  margin: 0 !important;
}
body.rh-native-app .rh-app-foot {
  display: none !important;
}
body.rh-native-app .rh-app-tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding: 0.35rem 0.25rem calc(0.45rem + env(safe-area-inset-bottom));
  z-index: 40;
}
body.rh-native-app .rh-app-tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.4rem 0.25rem;
  text-decoration: none;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
}
body.rh-native-app .rh-app-tabbar a .ti {
  font-size: 1.25rem;
  line-height: 1;
}
body.rh-native-app .rh-app-tabbar a.is-active {
  color: #0f766e;
}
body.rh-native-app .rh-vendor-tabbar {
  display: none !important; /* replaced by shared rh-app-tabbar */
}
body.rh-native-app.rh-auth-body:not(.rh-auth-split-page) {
  background: #111 !important;
  padding: 0;
  overflow-x: hidden;
}
body.rh-native-app.rh-auth-body:not(.rh-auth-split-page) .rh-auth-page,
body.rh-native-app.rh-auth-body:not(.rh-auth-split-page) .rh-auth-page-app {
  width: min(430px, 100%);
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
  display: flex;
  flex-direction: column;
  grid-template-columns: 1fr !important;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}
@media (min-width: 860px) {
  body.rh-native-app.rh-auth-body:not(.rh-auth-split-page) {
    padding: 1.25rem 0;
    display: flex;
    justify-content: center;
  }
  body.rh-native-app.rh-auth-body:not(.rh-auth-split-page) .rh-auth-page,
  body.rh-native-app.rh-auth-body:not(.rh-auth-split-page) .rh-auth-page-app {
    min-height: calc(100vh - 2.5rem);
    max-height: calc(100vh - 2.5rem);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  }
}
@media (max-width: 859px) {
  body.rh-native-app.rh-auth-body:not(.rh-auth-split-page) {
    background: #fff !important;
  }
  body.rh-native-app.rh-auth-body:not(.rh-auth-split-page) .rh-auth-page,
  body.rh-native-app.rh-auth-body:not(.rh-auth-split-page) .rh-auth-page-app {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    max-height: none;
  }
}

/* App login — compact white header + form (no tall black marketing panel) */
body.rh-native-app .rh-auth-app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: calc(1rem + env(safe-area-inset-top, 0px)) 1.2rem 0.85rem;
  background: #fff;
  border-bottom: 1px solid #ececec;
  flex: 0 0 auto;
}
body.rh-native-app .rh-auth-app-logo {
  display: block;
  text-decoration: none;
  min-width: 0;
}
body.rh-native-app .rh-auth-app-logo .rp-wordmark {
  max-width: min(190px, 62vw);
  height: 34px !important;
  width: auto;
}
body.rh-native-app .rh-auth-app-chip {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555;
  background: #f2f2f2;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
}
body.rh-native-app .rh-auth-art {
  display: none !important;
}
body.rh-native-app .rh-auth-panel {
  flex: 1 1 auto;
  padding: 1.25rem 1.2rem calc(1.5rem + env(safe-area-inset-bottom, 0px)) !important;
  place-items: stretch !important;
  align-content: start;
  background: #fff !important;
  overflow: visible;
}
body.rh-native-app .rh-auth-card,
body.rh-native-app .rh-auth-card-rich {
  width: 100% !important;
  max-width: none !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
body.rh-native-app .rh-auth-card-head h1 {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}
body.rh-native-app .rh-auth-card-head .rh-muted {
  margin: 0 0 1rem;
}
body.rh-native-app .rh-auth-tabs {
  display: flex;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0.25rem;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 12px;
}
body.rh-native-app .rh-auth-tabs a {
  flex: 1;
  text-align: center;
  padding: 0.6rem 0.4rem;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #555;
  text-decoration: none;
}
body.rh-native-app .rh-auth-tabs a.is-on {
  background: #111;
  color: #fff;
}
body.rh-native-app .rh-auth-form {
  display: grid;
  gap: 0.75rem;
}
body.rh-native-app .rh-auth-form .rh-input,
body.rh-native-app .rh-auth-form .rh-btn {
  min-height: 52px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}
body.rh-native-app .rh-auth-form .rh-input {
  overflow: hidden;
  text-overflow: ellipsis;
}
body.rh-native-app .rh-auth-form .rh-btn {
  border-radius: 999px;
  font-weight: 800;
  margin-top: 0.25rem;
}
body.rh-native-app .rh-auth-help {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
}
body.rh-native-app .rh-auth-demo-inline {
  margin: 1rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: #f5f5f5;
  color: #666;
  font-size: 0.78rem;
  line-height: 1.4;
  word-break: break-word;
}
body.rh-native-app .rh-auth-foot {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #ececec;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}
body.rh-native-app .rh-auth-foot a {
  color: #666;
  text-decoration: none;
  font-weight: 600;
}
body.rh-native-app .rh-auth-foot a:hover {
  color: #000;
}

/*
 * Web portal (default): full desktop chrome — top nav, no phone shell, no bottom tabs.
 * Phone preview ONLY with body.rh-native-app (?mode=app / App Lab).
 */
body:not(.rh-native-app) .rh-app-tabbar,
body:not(.rh-native-app) .rh-vendor-tabbar {
  display: none !important;
}
body:not(.rh-native-app) .rh-app-device {
  width: 100% !important;
  max-width: none !important;
  min-height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
body:not(.rh-native-app).rh-customer .rh-nav-links > a,
body:not(.rh-native-app).rh-vendor .rh-nav-links > a,
body:not(.rh-native-app).rh-customer .rh-user-pill {
  display: inline-flex !important;
}
body:not(.rh-native-app) .rh-main {
  padding-bottom: 2rem !important;
}

.app-lab-phones-one {
  grid-template-columns: 1fr;
  justify-items: center;
  max-width: 480px;
}
