body.tg-embed-mobile-mode { overflow-x: hidden !important; }
body.tg-embed-mobile-mode .tg-topnav,
body.tg-embed-mobile-mode #tg-dual-fabs,
body.tg-embed-mobile-mode .glassy-fab,
body.tg-embed-mobile-mode .tg-fab,
body.tg-embed-mobile-mode .preview-expiry-bar,
body.tg-embed-mobile-mode .legal-footer,
body.tg-embed-mobile-mode .site-footer,
body.tg-embed-mobile-mode .tg-phone-shell-root,
body.tg-embed-mobile-mode .tg-phone-nav,
body.tg-embed-mobile-mode [data-role="bottom-nav"],
body.tg-embed-mobile-mode #tg-hard-buttons,
body.tg-embed-mobile-mode #tgPhoneGlassyToggle,
body.tg-embed-mobile-mode .tg-phone-nav__glassy,
body.tg-embed-mobile-mode [class*="tabbar"],
body.tg-embed-mobile-mode [class*="bottom-nav"],
body.tg-embed-mobile-mode [data-phone-nav],
body.tg-embed-mobile-mode [data-mobile-nav] { display:none !important; }
body.tg-embed-mobile-mode .tg-phone-shell-root::before,
body.tg-embed-mobile-mode .tg-phone-shell-root::after,
body.tg-embed-mobile-mode .tg-phone-nav::before,
body.tg-embed-mobile-mode .tg-phone-nav::after{content:none !important;display:none !important;box-shadow:none !important;border:none !important;}

body.tg-embed-mobile-mode.tg-phone-handset{
  --tg-phone-nav-h:0px;
  --tg-phone-safe-b:0px;
  padding-bottom:0 !important;
}
body.tg-embed-mobile-mode.tg-phone-handset .page,
body.tg-embed-mobile-mode.tg-phone-handset .layout,
body.tg-embed-mobile-mode.tg-phone-handset #tgAppShell,
body.tg-embed-mobile-mode.tg-phone-handset .portfolio-shell,
body.tg-embed-mobile-mode.tg-phone-handset .campus-wrap,
body.tg-embed-mobile-mode.tg-phone-handset #tgPhoneDashboardShell{padding-bottom:0 !important;margin-bottom:0 !important;}
body.tg-embed-mobile-mode.tg-phone-handset::after{content:none !important;}
body.tg-embed-mobile-mode #status{display:none !important;}

body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] .tg-phone-asset-card__btn{
  position:relative;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(49,242,128,.72), 0 0 26px rgba(34,197,94,.45), inset 0 0 20px rgba(74,222,128,.22);
  animation: tgEmbedAssetGlow 2.4s ease-in-out infinite;
}
@keyframes tgEmbedAssetGlow {
  0%,100% { box-shadow: 0 0 0 1px rgba(49,242,128,.68), 0 0 20px rgba(34,197,94,.34), inset 0 0 14px rgba(74,222,128,.18); }
  50% { box-shadow: 0 0 0 1px rgba(134,255,187,.95), 0 0 34px rgba(74,222,128,.58), inset 0 0 28px rgba(74,222,128,.34); }
}
body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] .tg-phone-asset-card__eyebrow,
body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] .tg-phone-asset-card__cta{
  color:#bbf7d0;
  animation: tgEmbedChevronGlow 2.4s ease-in-out infinite;
}
@keyframes tgEmbedChevronGlow {
  0%,100% { text-shadow: 0 0 8px rgba(34,197,94,.42); }
  50% { text-shadow: 0 0 20px rgba(134,255,187,.8); }
}

body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneAssetSaveCurrent,
body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneFavStripManage{
  display:none !important;
}
body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneAssetSheet,
body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneAssetSheetBackdrop{
  display:none !important;
}
body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] .tg-phone-asset-search__row{
  grid-template-columns:minmax(0,1fr) auto !important;
  gap:6px !important;
}
body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] .tg-phone-inline-timeframes{
  margin-top:0 !important;
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:4px !important;
}
body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] .tg-phone-inline-timeframes__btn{
  min-height:32px !important;
  padding:0 8px !important;
  font-size:.7rem !important;
}

body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainBtn{
  border-color: rgba(49,242,128,.78) !important;
  box-shadow: 0 0 0 1px rgba(49,242,128,.7), 0 0 22px rgba(34,197,94,.45), inset 0 0 16px rgba(74,222,128,.2);
  animation: tgEmbedExplainGlow 2.4s ease-in-out infinite;
}
@keyframes tgEmbedExplainGlow {
  0%,100% { box-shadow: 0 0 0 1px rgba(49,242,128,.66), 0 0 16px rgba(34,197,94,.34), inset 0 0 12px rgba(74,222,128,.16); }
  50% { box-shadow: 0 0 0 1px rgba(134,255,187,.92), 0 0 30px rgba(74,222,128,.54), inset 0 0 22px rgba(74,222,128,.28); }
}
@media (prefers-reduced-motion: reduce){
  body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] .tg-phone-asset-card__btn,
  body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] .tg-phone-asset-card__eyebrow,
  body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] .tg-phone-asset-card__cta,
  body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainBtn{animation:none;}
}

#tg-mobile-embed-cta { position: fixed; inset:0; background:rgba(0,0,0,.5); display:none; align-items:flex-end; z-index:1000; }
#tg-mobile-embed-cta.open { display:flex; }
#tg-mobile-embed-cta .sheet { width:100%; background:#111126; border-radius:18px 18px 0 0; padding:16px; color:#ece8ff; }
#tg-mobile-embed-cta a { display:block; text-align:center; margin-top:8px; padding:10px 14px; border-radius:12px; text-decoration:none; color:#fff; background:linear-gradient(135deg,#755bff,#5ea1ff); }
#tg-mobile-embed-cta small { opacity:.85; display:block; margin-top:6px; }

#tg-mobile-embed-asset-curtain-backdrop{
  position:fixed;
  inset:0;
  border:0;
  background:transparent;
  z-index:845;
}
#tg-mobile-embed-asset-curtain{
  position:fixed;
  z-index:850;
  border-radius:14px;
  border:1px solid rgba(52,211,153,.5);
  box-shadow:0 16px 44px rgba(2,6,23,.48),0 0 24px rgba(56,189,248,.2);
  background:linear-gradient(180deg, rgba(10,17,29,.98), rgba(10,17,29,.92));
  backdrop-filter: blur(6px);
  padding:6px;
  transform-origin: top center;
  opacity:0;
  transform:translateY(-6px) scaleY(.98);
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
}
#tg-mobile-embed-asset-curtain.open{opacity:1;transform:translateY(0) scaleY(1);pointer-events:auto;}
.tg-mobile-embed-asset-curtain__row{
  width:100%;
  border:0;
  border-radius:10px;
  color:#e6f1ff;
  padding:10px;
  background:transparent;
  display:grid;
  grid-template-columns:28px 1fr auto;
  gap:10px;
  align-items:center;
  text-align:left;
}
.tg-mobile-embed-asset-curtain__row:hover,.tg-mobile-embed-asset-curtain__row:focus-visible{background:rgba(30,41,59,.72);outline:none;}
.tg-mobile-embed-asset-curtain__logo{width:28px;height:28px;border-radius:8px;overflow:hidden;border:1px solid rgba(148,163,184,.32);background:rgba(15,23,42,.86);}
.tg-mobile-embed-asset-curtain__logo img{width:100%;height:100%;display:block;object-fit:contain;}
.tg-mobile-embed-asset-curtain__symbol{font-weight:700;letter-spacing:.01em;}
.tg-mobile-embed-asset-curtain__label{font-size:.68rem;letter-spacing:.07em;text-transform:uppercase;color:#9fd8c2;}
@media (prefers-reduced-motion: reduce){
  #tg-mobile-embed-asset-curtain{transition:opacity .1s linear;transform:none;}
  #tg-mobile-embed-asset-curtain.open{transform:none;}
}

/* Mobile embed header: hide only the UTC/local header clock pill. */
body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneHeaderClockPill{
  display:none !important;
  visibility:hidden !important;
}

/* Compact Explain popup — MOBILE EMBED ONLY */
body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet {
  max-height: calc(100dvh - 10px);
  padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet,
body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet *{
  box-sizing: border-box;
  min-width: 0;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet .tg-phone-sheet__head {
  position: sticky;
  top: -8px;
  z-index: 5;
  margin-bottom: 6px;
  padding: 4px 0 6px;
  background: rgba(10, 17, 29, .96);
  backdrop-filter: blur(12px);
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet .tg-phone-sheet__title {
  font-size: .82rem;
  line-height: 1.1;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainClose {
  min-width: 28px;
  width: 28px;
  min-height: 28px;
  height: 28px;
  font-size: .82rem;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheetHost {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Compact Market Outlook card inside mobile embed Explain only */
body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #decisionWrap.tg-outlook-mock {
  padding: 9px !important;
  padding-bottom: 9px !important;
  margin: 0 !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35) !important;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #decisionWrap.tg-outlook-mock::after {
  inset: 5px;
  border-radius: 11px;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #decisionWrap.tg-outlook-mock .tg-hero {
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 8px;
  align-items: center;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #decisionWrap.tg-outlook-mock .tg-hero-label {
  font-size: .72rem;
  line-height: 1.05;
  margin: 0 0 3px;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #decisionWrap.tg-outlook-mock #decisionDir {
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #decisionWrap.tg-outlook-mock .tg-hero-sub {
  font-size: .72rem;
  line-height: 1.15;
  margin-top: 3px;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #decisionWrap.tg-outlook-mock .tg-ring-stack {
  gap: 3px;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #decisionWrap.tg-outlook-mock .tg-ring-title {
  font-size: .56rem;
  letter-spacing: .08em;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #decisionWrap.tg-outlook-mock #confidenceRing {
  width: 58px;
  height: 58px;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #decisionWrap.tg-outlook-mock #confidenceRing::before {
  inset: 7px;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #decisionWrap.tg-outlook-mock #confidence {
  height: 58px;
  font-size: 1rem;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #decisionWrap.tg-outlook-mock #confidenceNote,
body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #decisionWrap.tg-outlook-mock #regimeRow,
body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #decisionWrap.tg-outlook-mock #decisionCta {
  display: none !important;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #decisionWrap.tg-outlook-mock .tg-tradebar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: column;
  grid-auto-rows: auto;
  margin-top: 7px !important;
  border-radius: 11px;
  overflow: hidden;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #decisionWrap.tg-outlook-mock .tg-tradebar .trade-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 6px 3px;
  overflow: hidden;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #decisionWrap.tg-outlook-mock .tg-tradebar .tp-label {
  font-size: .6rem;
  line-height: 1.05;
  white-space: nowrap;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #decisionWrap.tg-outlook-mock .tg-tradebar .trade-pill span[id] {
  font-size: .91rem;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  max-width: 100%;
  font-variant-numeric: tabular-nums;
}

/* Compact In Depth Analysis inside mobile embed Explain only */
body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #analysis.tg-analysis-mock {
  padding: 9px !important;
  margin: 0 !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35) !important;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #analysis.tg-analysis-mock::after {
  inset: 5px;
  border-radius: 11px;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #analysis.tg-analysis-mock .tg-analysis-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 8px;
  margin-bottom: 6px;
  border-radius: 11px;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #analysis.tg-analysis-mock .tg-analysis-head .title-wrap .title {
  font-size: .72rem;
  line-height: 1.05;
  letter-spacing: .06em;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #analysis.tg-analysis-mock .tg-analysis-head .title-wrap .subtitle {
  font-size: .66rem;
  line-height: 1.1;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #analysis.tg-analysis-mock .score-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  width: 100%;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #analysis.tg-analysis-mock .score-label {
  font-size: .62rem;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #analysis.tg-analysis-mock .score-bar {
  height: 6px;
  max-width: none;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #analysis.tg-analysis-mock .score-num {
  font-size: .72rem;
  min-width: 22px;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #analysis.tg-analysis-mock .save-analysis-btn {
  min-height: 28px;
  padding: 0 8px;
  font-size: .68rem;
  border-radius: 9px;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #analysis.tg-analysis-mock .tg-tabs {
  gap: 5px;
  margin-bottom: 5px;
  padding-bottom: 2px;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #analysis.tg-analysis-mock .tg-tab {
  padding: 5px 8px;
  font-size: .68rem;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #analysis.tg-analysis-mock .tg-pane {
  padding: 7px;
  border-radius: 0 9px 9px 9px;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #analysis.tg-analysis-mock .narrative {
  gap: 6px;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #analysis.tg-analysis-mock .narrative p,
body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #analysis.tg-analysis-mock .narrative li {
  font-size: .78rem;
  line-height: 1.32;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #analysis.tg-analysis-mock .narrative .lead {
  font-size: .82rem;
  line-height: 1.28;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #analysis.tg-analysis-mock .narrative .callout {
  padding: 6px 8px;
  border-radius: 9px;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #analysis.tg-analysis-mock .narrative .bullets {
  padding-left: 15px;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #analysis.tg-analysis-mock .narrative-footnote {
  font-size: .65rem;
  line-height: 1.25;
  margin-top: 4px;
}

/* Compact Structured tab content inside mobile embed Explain only */
body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #analysis.tg-analysis-mock .tg-analysis-body .row {
  gap: 6px;
  margin-bottom: 6px;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #analysis.tg-analysis-mock .tg-analysis-body .cell,
body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #analysis.tg-analysis-mock .accordion {
  padding: 7px;
  border-radius: 9px;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet #analysis.tg-analysis-mock .kv td {
  font-size: .72rem;
  padding: 3px 4px;
}

:root[data-theme="light"] body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet .tg-phone-sheet__head,
body[data-theme="light"][data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgPhoneExplainSheet .tg-phone-sheet__head {
  background: rgba(248, 250, 252, .96);
}

body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #ga-chat #jdai {
  min-height: 0;
  max-height: calc(100dvh - 92px);
}

body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #ga-chat #jdaiBody,
body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #ga-chat .jdai-body {
  min-height: 140px;
  padding-bottom: 12px;
  overflow-y: auto;
  overflow-x: hidden;
}

body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #ga-chat #tgMobileEmbedSuggestionDock {
  flex: 0 0 auto;
  max-height: 148px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 12px 6px;
  border-top: 1px solid rgba(148, 163, 184, .18);
  background: rgba(8, 13, 22, .96);
  -webkit-overflow-scrolling: touch;
}

body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #ga-chat #tgMobileEmbedSuggestionDock .tg-suggest-box {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #ga-chat #tgMobileEmbedSuggestionDock .tg-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 96px;
  overflow-y: auto;
  overflow-x: hidden;
}

body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #ga-chat #tgMobileEmbedSuggestionDock .tg-chat-suggest-btn {
  font-size: .78rem;
  padding: 6px 10px;
  line-height: 1.18;
}

/* Mobile embed Glassy: compact first-open state */
body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #ga-chat #jdai.tg-mobile-embed-chat-empty {
  height: auto !important;
  max-height: calc(100dvh - 92px);
}

body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #ga-chat #jdai.tg-mobile-embed-chat-empty #jdaiBody,
body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #ga-chat #jdai.tg-mobile-embed-chat-empty .jdai-body {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  max-height: 150px;
  padding-top: 12px;
  padding-bottom: 6px;
  overflow-y: auto;
}

body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #ga-chat #jdai.tg-mobile-embed-chat-empty #tgMobileEmbedSuggestionDock {
  max-height: 180px;
  padding-top: 8px;
}

body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #ga-chat #jdai.tg-mobile-embed-chat-active {
  height: auto !important;
  max-height: calc(100dvh - 92px);
}

body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #ga-chat #jdai.tg-mobile-embed-chat-active #jdaiBody,
body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #ga-chat #jdai.tg-mobile-embed-chat-active .jdai-body {
  flex: 1 1 auto !important;
  min-height: 180px;
  max-height: calc(100dvh - 320px);
  overflow-y: auto;
  overflow-x: hidden;
}

body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #ga-chat .tg-mobile-embed-glassy-limit-cta {
  display: flex;
  justify-content: flex-start;
  margin: 8px 0 4px;
}

body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #ga-chat .tg-mobile-embed-glassy-limit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: .86rem;
  background: linear-gradient(135deg, #7c3cff, #16c8ff);
  box-shadow: 0 12px 28px rgba(124, 58, 237, .26);
}

body.tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #ga-chat .tg-mobile-embed-glassy-limit-link:active {
  transform: translateY(1px);
}

/* Full-workspace hint — MOBILE EMBED ONLY */
body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgHeaderBar.tg-topbar{
  flex-wrap: nowrap !important;
  gap: 3px !important;
  padding-left: 7px !important;
  padding-right: 7px !important;
  overflow: visible;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgHeaderBar .brand{
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgHeaderBar .brand .brand-banner{
  max-width: min(38vw, 136px) !important;
  height: 32px !important;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #dashActions,
body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgHeaderBar .tg-topbar-actions{
  flex: 0 0 auto !important;
  min-width: 0 !important;
  gap: 3px !important;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgHeaderMenus{
  gap: 3px !important;
  flex-wrap: nowrap !important;
  min-width: 0 !important;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgLangBtn,
body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] .nav-pill-signin,
body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] .tg-mobile-embed-desktop-btn{
  height: 34px !important;
  min-height: 34px !important;
  box-sizing: border-box;
}

body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] .nav-pill-signin{
  padding-left: 9px !important;
  padding-right: 9px !important;
  font-size: .71rem !important;
  white-space: nowrap;
}

.tg-mobile-embed-desktop-btn{
  width: 34px;
  min-width: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, .28);
  color: rgba(230, 242, 255, .95);
  background:
    radial-gradient(circle at 30% 0%, rgba(147, 197, 253, .35), transparent 54%),
    linear-gradient(180deg, rgba(148, 163, 184, .22), rgba(15, 23, 42, .52));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .18) inset,
    0 -1px 0 rgba(0, 0, 0, .5) inset,
    0 10px 26px rgba(2, 6, 23, .46),
    0 0 20px rgba(99, 102, 241, .16);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.tg-mobile-embed-desktop-btn svg{
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, .35));
}

.tg-mobile-embed-desktop-btn:hover,
.tg-mobile-embed-desktop-btn:focus-visible{
  border-color: rgba(216, 180, 254, .55);
  background:
    radial-gradient(circle at 30% 0%, rgba(216, 180, 254, .32), transparent 56%),
    linear-gradient(180deg, rgba(96, 165, 250, .28), rgba(30, 41, 59, .62));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .22) inset,
    0 -1px 0 rgba(0, 0, 0, .52) inset,
    0 12px 30px rgba(2, 6, 23, .52),
    0 0 24px rgba(124, 58, 237, .24);
  transform: translateY(-1px);
  outline: none;
}

.tg-mobile-embed-desktop-modal[hidden]{
  display: none !important;
}

.tg-mobile-embed-desktop-modal{
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: max(12px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  box-sizing: border-box;
}

.tg-mobile-embed-desktop-modal__backdrop{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(99, 102, 241, .26), transparent 36%),
    rgba(2, 6, 23, .66);
  backdrop-filter: blur(10px);
}

.tg-mobile-embed-desktop-modal__panel{
  position: relative;
  width: min(340px, calc(100vw - 22px));
  max-height: min(520px, calc(100dvh - 24px));
  overflow-y: auto;
  box-sizing: border-box;
  border-radius: 24px;
  border: 1px solid rgba(191, 219, 254, .24);
  padding: 18px 16px 16px;
  color: #eef6ff;
  background:
    radial-gradient(circle at 18% 0%, rgba(96, 165, 250, .22), transparent 34%),
    radial-gradient(circle at 95% 8%, rgba(168, 85, 247, .2), transparent 38%),
    linear-gradient(180deg, rgba(15, 23, 42, .94), rgba(8, 13, 26, .92));
  box-shadow:
    0 24px 70px rgba(0, 0, 0, .62),
    0 1px 0 rgba(255, 255, 255, .16) inset;
  backdrop-filter: blur(18px) saturate(1.18);
  transform: translateY(8px) scale(.98);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
}

.tg-mobile-embed-desktop-modal.open .tg-mobile-embed-desktop-modal__panel{
  transform: translateY(0) scale(1);
  opacity: 1;
}

.tg-mobile-embed-desktop-modal__close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(226, 232, 240, .16);
  border-radius: 999px;
  background: rgba(15, 23, 42, .56);
  color: rgba(238, 245, 255, .92);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.tg-mobile-embed-desktop-modal__icon{
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  border: 1px solid rgba(147, 197, 253, .28);
  color: #bfdbfe;
  background: rgba(30, 41, 59, .62);
  box-shadow: 0 0 28px rgba(96, 165, 250, .22);
}

.tg-mobile-embed-desktop-modal__icon svg{
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tg-mobile-embed-desktop-modal h2{
  margin: 12px 36px 8px 0;
  font-size: 1.22rem;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.tg-mobile-embed-desktop-modal p{
  margin: 0;
  color: rgba(219, 234, 254, .82);
  font-size: .9rem;
  line-height: 1.45;
}

.tg-mobile-embed-desktop-modal__actions{
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.tg-mobile-embed-desktop-modal__primary,
.tg-mobile-embed-desktop-modal__secondary{
  min-height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  box-sizing: border-box;
  font-weight: 800;
  font-size: .9rem;
  text-decoration: none;
}

.tg-mobile-embed-desktop-modal__primary{
  border: 1px solid rgba(219, 234, 254, .38);
  color: #fff;
  background: linear-gradient(135deg, #775dff, #4fa9ff 52%, #8b5cf6);
  box-shadow: 0 14px 34px rgba(79, 70, 229, .38);
}

.tg-mobile-embed-desktop-modal__secondary{
  border: 1px solid rgba(191, 219, 254, .24);
  color: #dbeafe;
  background: rgba(15, 23, 42, .62);
  cursor: pointer;
}

.tg-mobile-embed-desktop-modal__primary:focus-visible,
.tg-mobile-embed-desktop-modal__secondary:focus-visible,
.tg-mobile-embed-desktop-modal__close:focus-visible{
  outline: 2px solid rgba(191, 219, 254, .72);
  outline-offset: 2px;
}

@media (max-width: 340px){
  body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] #tgHeaderBar .brand .brand-banner{
    max-width: 34vw !important;
    height: 30px !important;
  }

  body[data-embed-mode="1"].tg-embed-mobile-mode.tg-phone-handset[data-page="dashboard"] .nav-pill-signin{
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: .69rem !important;
  }
}

@media (prefers-reduced-motion: reduce){
  .tg-mobile-embed-desktop-btn,
  .tg-mobile-embed-desktop-modal__panel{
    transition: none;
  }

  .tg-mobile-embed-desktop-btn:hover,
  .tg-mobile-embed-desktop-btn:focus-visible,
  .tg-mobile-embed-desktop-modal__panel,
  .tg-mobile-embed-desktop-modal.open .tg-mobile-embed-desktop-modal__panel{
    transform: none;
  }
}
