/* SYPOWER phone layout. Applies at max-width 900px and when html/body
   has .sy-phone / .sy-native-app (injected inside the Android WebView).
   Desktop (wider than 900px, not in the app) is left unchanged. */

html.sy-native-app { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

html.sy-phone,
html.sy-native-app {
  --sy-tabbar: 3.6rem;
  --sy-ime: 0px;
  --sy-safe-top: env(safe-area-inset-top, 0px);
  --sy-safe-bottom: env(safe-area-inset-bottom, 0px);
  --sy-safe-left: env(safe-area-inset-left, 0px);
  --sy-safe-right: env(safe-area-inset-right, 0px);
}
/* Android WebView often reports env(safe-area-inset-top) as 0.
   Native marker gets a real status-bar fallback until Java injects the inset. */
html.sy-native-app {
  --sy-safe-top: 44px;
}

/* ===================== App shell ===================== */
.sy-phone body.page-app,
.sy-native-app body.page-app {
  overflow: hidden;
}

.sy-phone body.page-app,
.sy-phone body.page-app .app-shell,
.sy-native-app body.page-app .app-shell {
  width: 100%;
  max-width: 100%;
  height: 100%;
  height: 100dvh;
}

.sy-phone .app-shell {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sy-phone .app-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  padding-bottom: calc(var(--sy-tabbar) + var(--sy-safe-bottom));
}

html.sy-phone, html.sy-native-app {
  --sy-drawer-w: min(20.5rem, 86vw);
  touch-action: manipulation;
}
.sy-phone .app-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sy-drawer-w);
  max-width: 86vw;
  height: 100dvh;
  z-index: 80;
  transform: translateX(-105%);
  transition: transform .28s ease, box-shadow .28s ease;
  opacity: 1 !important;
  pointer-events: auto !important;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,.08);
  padding-top: var(--sy-safe-top);
  padding-bottom: calc(var(--sy-tabbar) + var(--sy-safe-bottom));
  box-shadow: none;
  touch-action: pan-y;
}

.sy-phone body.sidebar-collapsed .app-sidebar {
  width: min(20.5rem, 86vw);
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,.08);
  opacity: 1 !important;
  pointer-events: auto !important;
}

.sy-phone body.sy-drawer-open .app-sidebar {
  transform: none;
  box-shadow: 1rem 0 2.5rem rgba(0,0,0,.45);
}

.sy-drawer-backdrop {
  display: none;
}
.sy-phone .sy-drawer-backdrop {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--sy-drawer-w);
  z-index: 70;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  touch-action: manipulation;
}
.sy-phone body.sy-drawer-open .sy-drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.sy-drawer-close,
.sy-hamburger { display: none; }

.sy-phone .sy-hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(20,22,28,.82);
  color: #fff;
  flex-shrink: 0;
  padding: 0;
  cursor: pointer;
}
.sy-phone .sy-hamburger svg { width: 1.25rem; height: 1.25rem; }

.sy-phone .sy-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 44px;
  min-height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.8);
  cursor: pointer;
  flex-shrink: 0;
}
.sy-phone .sy-drawer-close svg { width: 1.1rem; height: 1.1rem; }
.sy-phone .sb-logo { padding-right: .55rem; }

.sy-phone .float-collapse,
.sy-phone .collapse-btn,
.sy-phone .btn-dl-cyan,
.sy-phone .client-chip,
.sy-phone .hist-rail { display: none !important; }

/* ===================== Bottom tab bar ===================== */
.sy-tabbar { display: none; }

.sy-phone .sy-tabbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  height: auto;
  min-height: var(--sy-tabbar);
  padding: .2rem 0 max(.28rem, var(--sy-safe-bottom));
  background: #12141a;
  border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 -8px 24px rgba(0,0,0,.28);
}

html[data-theme="light"] .sy-phone .sy-tabbar {
  background: #f3f5f9;
  border-top-color: rgba(15,20,25,.08);
}

.sy-phone.sy-keyboard .sy-tabbar { display: none; }

.sy-phone .sy-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .12rem;
  min-height: 44px;
  padding: .25rem .15rem;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.55);
  font-size: .62rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sy-phone .sy-tab svg { width: 1.35rem; height: 1.35rem; }
.sy-phone .sy-tab.is-on { color: #00CAE0; }
html[data-theme="light"] .sy-phone .sy-tab { color: #5b6570; }
html[data-theme="light"] .sy-phone .sy-tab.is-on { color: #00a1c2; }

/* ===================== Top bar ===================== */
.sy-phone .app-top {
  position: sticky;
  top: 0;
  height: auto;
  min-height: 3.15rem;
  padding: .35rem .55rem .35rem .45rem;
  padding-top: max(.35rem, var(--sy-safe-top));
  z-index: 15;
  pointer-events: auto;
  background: linear-gradient(180deg, rgba(11,12,16,.96) 40%, rgba(11,12,16,.78) 75%, transparent);
  display: flex;
  align-items: center;
  gap: .35rem;
}
.sy-phone .app-top .model-center {
  position: static;
  transform: none;
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: .82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255,255,255,.78);
}
.sy-phone .top-left,
.sy-phone .top-right {
  display: flex;
  align-items: center;
  gap: .3rem;
  margin: 0;
  flex-shrink: 0;
}
.sy-phone .btn-newchat {
  height: 2.2rem;
  min-height: 36px;
  padding: 0 .65rem;
  font-size: .72rem;
}
.sy-phone .top-left .btn-help-gold { display: none; }
.sy-phone .agent-portal-label { display: none; }
.sy-phone .agent-portal-trigger { width: 2.4rem; height: 2.4rem; min-width: 44px; }
.sy-phone .yaoqing-trigger {
  width: 2.4rem;
  height: 2.4rem;
  min-width: 44px;
  min-height: 44px;
  flex-basis: 2.4rem;
}
.sy-phone .btn-login-gold {
  height: 2.4rem;
  min-height: 44px;
  padding: 0 .7rem;
  font-size: .75rem;
}
.sy-phone .btn-theme-grid,
.sy-phone .action-menu-trigger {
  width: 2.4rem;
  height: 2.4rem;
  min-width: 44px;
  min-height: 44px;
}

/* ===================== Canvas / hero ===================== */
.sy-phone .chat-canvas {
  justify-content: flex-start;
  align-items: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.6rem 1rem calc(9.8rem + var(--sy-ime));
  width: 100%;
}
.sy-phone .sy-model-hero {
  width: 6.6rem;
  height: 6.6rem;
  margin: .4rem auto .7rem;
  flex-shrink: 0;
}
.sy-phone .sy-model-hero-stage,
.sy-phone .sy-model-hero-img {
  width: 6.6rem;
  height: 6.6rem;
}
.sy-phone .model-intro {
  max-width: 100%;
  font-size: .82rem;
  padding: .7rem .85rem;
  margin: 0 .15rem;
}
.sy-phone .model-wait-note { max-width: 100%; margin: .5rem .15rem 0; }

/* ===================== Composer ===================== */
.sy-phone .composer-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--sy-tabbar) + var(--sy-safe-bottom) + var(--sy-ime));
  transform: none;
  width: 100%;
  max-width: none;
  padding: 0 .55rem .4rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .35rem;
  z-index: 20;
}
.sy-phone.sy-keyboard .composer-wrap {
  bottom: var(--sy-ime);
}

.sy-phone .sy-comp-left,
.sy-phone .composer-rail {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: .35rem;
  margin: 0;
  width: 100%;
}
.sy-phone .composer-rail { justify-content: flex-end; }

.sy-phone .sy-comp-rail-btn,
.sy-phone .composer-rail > button,
.sy-phone .sy-comp-ai,
.sy-phone .send-btn,
.sy-phone .help-fab,
.sy-phone .composer-gear {
  position: static;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
}

.sy-phone .composer {
  width: 100%;
  padding: .55rem .6rem .45rem;
  border-radius: 1rem;
}

.sy-phone .composer-top { gap: .45rem; }
.sy-phone .attach-tile {
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: .6rem;
}
.sy-phone .composer textarea,
.sy-phone .sy-comp-input textarea {
  min-height: 44px;
  font-size: 16px; /* avoid iOS/Android focus zoom */
  line-height: 1.45;
}

.sy-phone .composer-aside {
  align-items: flex-end;
}
.sy-phone .sy-comp-price {
  white-space: normal;
  text-align: right;
  max-width: 7.2rem;
  font-size: .66rem;
}

.sy-phone .composer-bottom {
  gap: .35rem;
  margin-top: .35rem;
}
.sy-phone .sy-comp-chip,
.sy-phone .tool-chip {
  min-height: 2.05rem;
  height: auto;
  padding: .3rem .65rem;
  font-size: .72rem;
}

.sy-phone .sy-comp-layer { align-items: flex-end; }
.sy-phone .sy-comp-sheet,
.sy-phone .sy-comp-sheet.is-wide {
  width: 100%;
  max-width: none;
  max-height: min(88dvh, calc(100dvh - var(--sy-tabbar) - 1rem));
  border-radius: 1rem 1rem 0 0;
  padding-bottom: calc(1rem + var(--sy-safe-bottom));
}

/* History panel */
.sy-phone .hist-panel {
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  top: 0;
  bottom: calc(var(--sy-tabbar) + var(--sy-safe-bottom));
}

/* Sidebar filters: wrap + larger taps */
.sy-phone .sb-nav a {
  min-height: 44px;
  font-size: .72rem;
}
.sy-phone .sb-filters { flex-wrap: wrap; gap: .3rem; }
.sy-phone .sb-filters button {
  min-height: 36px;
  padding: .35rem .2rem;
  flex: 1 1 28%;
}
.sy-phone .sb-tools { flex-wrap: wrap; }
.sy-phone .sb-search,
.sy-phone .sb-vendor { min-height: 36px; }
.sy-phone .model-row,
.sy-phone .agent-row { min-height: 44px; padding: .65rem .5rem; }
.sy-phone .user-profile-button,
.sy-phone .recharge-button { min-height: 44px; }

/* ===================== Inspiration plaza ===================== */
.sy-phone .insp-chrome {
  padding: .35rem .7rem calc(.8rem + var(--sy-tabbar) + var(--sy-safe-bottom));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.sy-phone body.page-app[data-menu="linggan"] .insp-chrome { padding-top: .15rem; }
.sy-phone .insp-toolbar {
  flex-wrap: wrap;
  gap: .4rem;
  padding: .15rem 0 .55rem !important;
  row-gap: .45rem;
}
.sy-phone .insp-tabs,
.sy-phone .insp-types,
.sy-phone .insp-price {
  flex-wrap: wrap;
  width: 100%;
}
.sy-phone .insp-tabs button,
.sy-phone .insp-types button,
.sy-phone .insp-price button,
.sy-phone .insp-sort {
  min-height: 36px;
  padding: .3rem .6rem;
}
.sy-phone .insp-grid { columns: 2 !important; column-gap: .55rem; }
.sy-phone .page-app[data-menu="linggan"] .insp-grid { columns: 2 !important; }

/* My works / agent landings sit in the canvas */
.sy-phone .chat-canvas.is-agent {
  padding-bottom: calc(1rem + var(--sy-tabbar) + var(--sy-safe-bottom));
  align-items: stretch;
}

/* ===================== Marketing homepage ===================== */
.sy-phone body.page-marketing { padding-bottom: calc(var(--sy-tabbar) + var(--sy-safe-bottom)); }

.sy-phone .m-header {
  padding-left: max(.8rem, var(--sy-safe-left));
  padding-right: max(.8rem, var(--sy-safe-right));
  padding-top: max(.45rem, var(--sy-safe-top));
  gap: .45rem;
  flex-wrap: wrap;
}
.sy-phone .m-header-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .3rem;
}
.sy-phone .m-header-nav [data-open="download"] { display: none; }
.sy-phone .m-header .btn { min-height: 36px; font-size: .78rem; padding: 0 .7rem; }

.sy-phone .hero {
  min-height: 0;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 5.4rem 1.1rem 1.6rem;
  overflow: hidden;
}
.sy-phone .orbit-wrap {
  position: relative;
  inset: auto;
  height: 14.5rem;
  margin: 0 -1.1rem .2rem;
  flex-shrink: 0;
}
.sy-phone .orbit-node .vlabel { display: none; }
.sy-phone .orbit-node .vicon { width: 2.1rem; height: 2.1rem; }
.sy-phone .hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0;
  max-width: 100%;
}
.sy-phone .hero h1 { font-size: 1.7rem; line-height: 1.25; }
.sy-phone .hero-sub { font-size: .9rem; }
.sy-phone .hero-ctas { justify-content: center; flex-wrap: wrap; }
.sy-phone .hero-ctas .btn,
.sy-phone .hero-ctas a,
.sy-phone .hero-ctas button { min-height: 44px; }
.sy-phone .hero-stats { justify-content: center; flex-wrap: wrap; }
.sy-phone .hero-stats .stat { padding: 0 .7rem .4rem; }

.sy-phone .hero-feature,
.sy-phone .hero-feature.is-left,
.sy-phone .hero-feature.is-right {
  display: flex !important;
  position: static;
  width: 100%;
  max-width: 100%;
  margin: .45rem 0 0;
  padding: .65rem .75rem;
  border-radius: .85rem;
  background: rgba(16,18,24,.72);
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: auto;
  box-sizing: border-box;
}
.sy-phone .hero-feature .sub { max-width: none; }

.sy-phone .section { padding-left: 1.1rem; padding-right: 1.1rem; }
.sy-phone .section-inner { max-width: 100%; }
.sy-phone .agent-grid,
.sy-phone .cap-grid { grid-template-columns: 1fr !important; }
.sy-phone .insp-masonry { columns: 2 !important; }

/* Login / register */
.sy-phone .register-stage { padding: 5rem 1rem 2rem; min-height: auto; }
.sy-phone .register-wrap { max-width: 100%; }
.sy-phone .register-card,
.sy-phone .login-card { width: 100%; max-width: none; box-sizing: border-box; }
.sy-phone .register-card .input,
.sy-phone .login-card .input,
.sy-phone .register-card input,
.sy-phone .login-card input {
  min-height: 44px;
  font-size: 16px;
}
.sy-phone .btn-login,
.sy-phone .register-card button[type="submit"] { min-height: 44px; }

/* ===================== API landing + console ===================== */
.sy-phone .api-hero { grid-template-columns: 1fr !important; gap: 1.4rem; }
.sy-phone .api-header-inner,
.sy-phone .page-api-home .api-header-inner {
  flex-wrap: wrap;
  gap: .45rem;
}
.sy-phone .api-nav,
.sy-phone .api-nav-right { flex-wrap: wrap; margin-left: 0 !important; }
.sy-phone body.page-api { padding-bottom: calc(var(--sy-tabbar) + var(--sy-safe-bottom)); overflow-x: hidden; }

.sy-phone .sy-con-app {
  flex-direction: column;
  height: auto;
  min-height: 100dvh;
  padding-bottom: calc(var(--sy-tabbar) + var(--sy-safe-bottom));
}
.sy-phone .sy-con-side {
  position: static;
  width: 100% !important;
  max-width: none;
  height: auto;
  border-right: 0;
  border-bottom: 1px solid var(--sy-border, rgba(255,255,255,.08));
  padding: .6rem .8rem;
}
.sy-phone .sy-con-app.is-collapsed .sy-con-side { width: 100% !important; }
.sy-phone .sy-con-app.is-collapsed .sy-con-group-label,
.sy-phone .sy-con-app.is-collapsed .sy-con-link span,
.sy-phone .sy-con-app.is-collapsed .sy-con-ext { display: initial; }
.sy-phone .sy-con-main { width: 100%; min-width: 0; padding: .8rem; }
.sy-phone .sy-con-overview,
.sy-phone .sy-con-cards {
  grid-template-columns: 1fr !important;
}

/* ===================== Modals / sheets ===================== */
.sy-phone .modal,
.sy-phone .sy-modal,
.sy-phone [class*="modal-layer"],
.sy-phone .recharge-layer {
  padding: var(--sy-safe-top) .6rem calc(.6rem + var(--sy-tabbar) + var(--sy-safe-bottom));
  align-items: flex-end;
  box-sizing: border-box;
}
.sy-phone .modal-card,
.sy-phone .sy-sheet-card,
.sy-phone .recharge-card,
.sy-phone .modal-card.download-card,
.sy-phone .modal-card.login-card,
.sy-phone .modal-card.cs-card,
.sy-phone .modal-card.biz-card {
  width: 100% !important;
  max-width: none !important;
  max-height: min(90dvh, calc(100dvh - var(--sy-tabbar) - 1rem));
  overflow: auto;
  border-radius: 1rem 1rem .4rem .4rem;
  box-sizing: border-box;
}

/* Overflow guards */
.sy-phone,
.sy-phone body {
  overflow-x: hidden;
  max-width: 100%;
}
.sy-phone img,
.sy-phone svg,
.sy-phone video { max-width: 100%; }
.sy-phone * { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  .sy-phone .app-sidebar,
  .sy-phone .sy-drawer-backdrop { transition: none; }
}

/* ===== Specificity fixes (later app.css / composer-tools.css) ===== */
.sy-phone .app-top .model-center,
.sy-phone .model-center {
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  text-align: center;
  margin: 0 .2rem;
  padding: .28rem .55rem;
  font-size: .78rem;
}

.sy-phone .btn-login-gold,
.sy-phone .agent-portal-trigger { display: none !important; }

.sy-phone .top-left .btn-newchat {
  width: 2.5rem;
  min-width: 44px;
  min-height: 44px;
  height: 2.5rem;
  padding: 0;
  font-size: 0;
  line-height: 0;
  justify-content: center;
}
.sy-phone .top-left .btn-newchat::before {
  content: "+";
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
}

.sy-phone .composer-wrap,
.sy-phone body.hist-open .composer-wrap {
  position: absolute !important;
  top: auto !important;
  left: 0 !important;
  right: 0 !important;
  bottom: calc(var(--sy-tabbar) + var(--sy-safe-bottom) + var(--sy-ime)) !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  flex: 0 0 auto !important;
  transform: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: stretch !important;
  gap: .3rem !important;
  padding: 0 .55rem .4rem !important;
}
.sy-phone.sy-keyboard .composer-wrap {
  bottom: var(--sy-ime) !important;
}
.sy-phone .sy-comp-left {
  align-self: flex-start !important;
  margin: 0 !important;
  height: auto !important;
}

/* Marketing: fit orbit + stacked feature cards above the tab bar */
.sy-phone .hero {
  padding-bottom: calc(1.1rem + var(--sy-tabbar) + var(--sy-safe-bottom));
}
.sy-phone .orbit-wrap { height: 12.4rem; }
.sy-phone .hero-feature-row,
.sy-phone .hero {
  /* place the two feature cards in one row */
}
.sy-phone .hero-inner + .hero-feature.is-left {
  margin-top: .8rem;
}
.sy-phone section.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "orbit orbit"
    "copy copy"
    "left right";
  align-items: start;
  column-gap: .55rem;
}
.sy-phone .orbit-wrap { grid-area: orbit; margin: 0 0 .15rem; width: auto; }
.sy-phone .hero-inner { grid-area: copy; }
.sy-phone .hero-feature.is-left { grid-area: left; margin-top: .55rem; }
.sy-phone .hero-feature.is-right { grid-area: right; margin-top: .55rem; }
.sy-phone .hero-feature .name { font-size: .86rem; }
.sy-phone .hero-feature .vicon { width: 2.4rem; height: 2.4rem; }

/* Composer must stay hidden on plaza / agent landings (do not override with flex !important). */
.sy-phone body.page-app[data-menu="linggan"] .composer-wrap,
.sy-phone body.page-app[data-menu="zhinengti"] .composer-wrap,
.sy-phone body.page-app[data-menu="linggan"] .chat-canvas,
.sy-phone body.page-app[data-menu="linggan"] .hist-rail,
.sy-phone body.page-app[data-menu="zhinengti"] .chat-canvas .spark,
.sy-phone body.page-app[data-menu="zhinengti"] .chat-canvas .model-intro {
  display: none !important;
}
.sy-phone body.page-app[data-menu="zhinengti"] .chat-canvas {
  display: flex !important;
  padding-bottom: calc(1rem + var(--sy-tabbar) + var(--sy-safe-bottom));
}

.sy-phone section.hero,
.sy-phone .hero {
  overflow: visible;
  padding-bottom: calc(1.6rem + var(--sy-tabbar) + var(--sy-safe-bottom));
}
.sy-phone .hero-feature {
  min-height: 4.2rem;
  align-items: center;
}
.sy-phone .hero,
.sy-phone section.hero {
  min-height: 0 !important;
  overflow: visible !important;
  padding-bottom: 5.75rem !important;
}
.sy-phone .starfield { overflow: visible !important; }
.sy-phone .orbit-wrap { height: 10rem !important; }
.sy-phone .hero h1 { margin: .35rem 0 .4rem; }
.sy-phone .hero-sub { margin-bottom: .7rem; }
.sy-phone .hero-stats { margin-bottom: .2rem; }
.sy-phone .orbit-wrap { height: 9.1rem !important; }
.sy-phone .hero-feature { padding: .5rem .6rem !important; }
.sy-phone .hero-promo { margin-bottom: .45rem; }
.sy-phone body.page-marketing:not(.page-register):not(.page-api) .m-header-nav { display: none; }
.sy-phone body.page-marketing:not(.page-register) .m-header { padding-bottom: .55rem; }
.sy-phone .hero,
.sy-phone section.hero { padding-top: 3.9rem !important; }

/* ===== t111 fixes: complete orbit, status-bar insets, drawer stacking ===== */

/* 1) Full orbit ring — enough height + tighter ellipse so icons stay inside.
   Earlier 9.1rem / 10rem wrap clipped the 42%/43% path. First screen may scroll. */
.sy-phone .orbit-wrap {
  position: relative !important;
  inset: auto !important;
  height: 18.5rem !important;
  overflow: visible !important;
  flex-shrink: 0;
}
.sy-phone .orbit-node {
  offset-path: ellipse(40% 36% at 50% 50%);
}
.sy-phone .orbit-track,
.sy-phone .orbit-curve,
.sy-phone .hero-stars,
.sy-phone .hero-grid {
  overflow: visible;
}
.sy-phone .hero,
.sy-phone section.hero,
.sy-phone .starfield {
  overflow: visible !important;
  min-height: 0 !important;
  padding-bottom: calc(1.35rem + var(--sy-tabbar) + var(--sy-safe-bottom)) !important;
}
.sy-phone .hero,
.sy-phone section.hero {
  padding-top: calc(3.9rem + var(--sy-safe-top)) !important;
}

/* 2) Status / nav bar insets: padding from --sy-safe-* (injected by the WebView). */
.sy-phone .app-top {
  padding-top: calc(var(--sy-safe-top) + 0.25rem) !important;
  padding-left: max(.45rem, var(--sy-safe-left));
  padding-right: max(.55rem, var(--sy-safe-right));
}
.sy-phone .app-sidebar {
  padding-top: calc(var(--sy-safe-top) + 0.25rem) !important;
  padding-left: var(--sy-safe-left);
}
.sy-phone .m-header {
  height: auto !important;
  min-height: var(--header-h, 4rem);
  padding-top: calc(var(--sy-safe-top) + 0.25rem) !important;
  padding-left: max(.8rem, var(--sy-safe-left));
  padding-right: max(.8rem, var(--sy-safe-right));
}
.sy-phone .sy-tabbar {
  padding-bottom: max(.28rem, var(--sy-safe-bottom)) !important;
  padding-left: var(--sy-safe-left);
  padding-right: var(--sy-safe-right);
}

/* 3) Drawer above backdrop, below or clear of tab bar; never cover the list.
   body.page-app / .app-shell use z-index:1, which traps the sidebar's z-index:80
   so the full-screen backdrop (z-index:70) wins hit-testing even when the
   transformed sidebar is painted on top. Drop those contexts on phone. */
.sy-phone body.page-app,
.sy-phone .app-shell {
  z-index: auto;
}
.sy-phone .sy-drawer-backdrop { z-index: 70; }
.sy-phone .app-sidebar { z-index: 80; pointer-events: auto !important; }
.sy-phone body.sy-drawer-open .app-sidebar { pointer-events: auto !important; }
.sy-phone .sy-tabbar { z-index: 90; }


.sy-phone .model-row,
.sy-phone .agent-row {
  touch-action: manipulation;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 202, 224, .18);
}
.sy-phone .fav-star {
  opacity: .55;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}
.sy-phone .fav-star.is-on { opacity: 1; }

/* Public 灵感广场 homepage — keep 2–3 flex columns on phone */
.sy-phone .m-plaza {
  padding-top: calc(var(--header-h, 4rem) + 1.05rem + var(--sy-safe-top, 0px));
  padding-left: max(.7rem, var(--sy-safe-left, 0px));
  padding-right: max(.7rem, var(--sy-safe-right, 0px));
}
.sy-phone .m-plaza-head h1 { font-size: 1.55rem; }
.sy-phone .page-marketing .insp-masonry.sy-m-masonry,
.sy-phone .insp-masonry.sy-m-masonry {
  display: flex !important;
  columns: auto !important;
  column-count: auto !important;
  gap: .4rem;
}

/* ===== Marketing homepage 2026112119: circular ring around hero copy ===== */
.sy-phone body.page-marketing .hero,
.sy-phone body.page-marketing section.hero {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  grid-template-columns: none !important;
  grid-template-areas: none !important;
  min-height: calc(100svh - var(--sy-tabbar, 0px)) !important;
  overflow: hidden !important;
  padding-top: calc(3.9rem + var(--sy-safe-top, 0px)) !important;
  padding-bottom: calc(1.35rem + var(--sy-tabbar, 0px) + var(--sy-safe-bottom, 0px)) !important;
}
.sy-phone body.page-marketing .sy-ring-wrap {
  position: absolute !important;
  inset: auto !important;
  left: 50% !important;
  top: 50% !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}
.sy-phone body.page-marketing .sy-ring {
  --orbit-r: 11.2rem;
  --ring-scale: 1;
}
.sy-phone body.page-marketing .sy-chip .vlabel { display: none; }
.sy-phone body.page-marketing .sy-chip .vicon { width: 1.85rem; height: 1.85rem; }
.sy-phone body.page-marketing .sy-spot { display: none !important; }
.sy-phone body.page-marketing .hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 100%;
  padding: 0;
}
.sy-phone body.page-marketing .hero h1 { font-size: 1.7rem; line-height: 1.25; }
.sy-phone body.page-marketing .hero-sub { font-size: .9rem; }
.sy-phone body.page-marketing .hero-stats .stat { padding: 0 .7rem; }
.sy-phone body.page-marketing .sy-stage-orb { filter: blur(60px); }
