:root {
  --jg-bg-root: #0d0e12;
  --jg-bg-panel: #13141a;
  --jg-bg-elevated: #181920;
  --jg-bg-bubble-ai: transparent;
  --jg-bg-bubble-user: #27272d;
  --jg-border: rgba(255, 255, 255, 0.08);
  --jg-border-gold: rgba(99, 102, 241, 0.45);
  --jg-gold: #f59e0b;
  --jg-gold-soft: #fde68a;
  --jg-sky: #818cf8;
  --jg-emerald: #10b981;
  --jg-accent: #5865f2;
  --jg-text: #ececf1;
  --jg-text-muted: #8e8ea0;
  --jg-radius: 14px;
  --jg-font: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
#jgaih-app {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--jg-bg-root);
  color: var(--jg-text);
  font-family: var(--jg-font);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.jg-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  height: var(--jg-vvh, 100dvh);
  overflow: hidden;
  background: var(--jg-bg-root);
}

/* Compact Row 1 on Top of Page: JyothishGuru Logo + Brand Name + Plan & Credits Pill */
.jg-top-brand-strip {
  height: 32px;
  min-height: 32px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(90deg, #090b12 0%, #10121b 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.22);
  flex-shrink: 0;
  z-index: 40;
}

.jg-top-brand-left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

/* The mark's picture has clear space around it, so it is drawn larger than its slot and pulled in. */
.jg-top-brand-left .jgaih-logo-svg {
  flex-shrink: 0;
  margin: -2px -5px -2px -4px;
}
.jg-top-brand-left { gap: 6px; }
img.jg-top-brand-name { display: block; height: 17px; width: auto; }
.jgaih-wordmark-svg { display: inline-flex; align-items: center; }
.jgaih-wordmark-svg .jgaih-logo-svg { flex-shrink: 0; margin: -4px -3px -4px -4px; }
.jgaih-name-img { display: block; width: auto; }

.jg-top-brand-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.jg-top-brand-tag {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 4px;
  padding: 1px 5px;
  line-height: 1.25;
}

.jg-top-brand-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.jg-top-plan-pill {
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.44);
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.jg-top-plan-pill:hover {
  background: rgba(16, 185, 129, 0.24);
  border-color: rgba(16, 185, 129, 0.68);
  color: #a7f3d0;
}

.jg-top-plan-pill.is-guest {
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
}

.jg-top-plan-pill.is-guest:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.65);
}

.jg-top-plan-gem {
  font-size: 0.75rem;
  line-height: 1;
}

/* Row 2: Existing Screen Workspace Directly Below Top Brand Strip */
.jg-workspace-row {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  overflow: hidden;
}

.jg-drawer-backdrop {
  position: fixed;
  top: 32px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(2px);
  z-index: 28;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.jg-drawer-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Left Rail (Collapsible on Desktop + Slide-over on Mobile) */
.jg-left-rail {
  width: 264px;
  min-width: 264px;
  background: var(--jg-bg-panel);
  border-right: 1px solid var(--jg-border);
  display: none;
  flex-direction: column;
  z-index: 32;
}

.jg-left-rail.is-open {
  display: flex;
}

.jg-rail-brand {
  height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--jg-border);
}

.jg-rail-actions {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jg-rail-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 6px 12px 14px;
}

.jg-rail-group {
  margin-bottom: 18px;
}

.jg-rail-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--jg-text-muted);
  margin: 6px 6px 6px;
}

.jg-rail-hint {
  font-size: 0.75rem;
  line-height: 1.35;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.28);
  border-radius: 8px;
  padding: 6px 8px;
  margin: 0 4px 8px;
}

.jg-rail-item-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.jg-rail-item-wrap .jg-rail-item {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.jg-rail-switch-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--jg-text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.jg-rail-switch-btn:hover {
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.45);
}

.jg-rail-empty {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--jg-text-muted);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

.jg-rail-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 10px;
  color: var(--jg-text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
  transition: background 0.15s, border-color 0.15s;
}

.jg-rail-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.jg-rail-item.active {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--jg-border-gold);
}

.jg-rail-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jg-rail-item-sub {
  font-size: 0.75rem;
  color: var(--jg-text-muted);
}

.jg-rail-session-btn {
  padding: 8px 10px;
}

.jg-rail-session-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.jg-rail-session-line .jg-rail-item-title {
  flex: 1;
  min-width: 0;
}

.jg-rail-session-age {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--jg-text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  padding: 1px 6px;
  letter-spacing: 0.01em;
}

.jg-rail-item.active .jg-rail-session-age {
  color: var(--jg-gold-soft);
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.36);
}

.jg-rail-del-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--jg-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0.75;
  transition: opacity 0.14s, background 0.14s, color 0.14s, border-color 0.14s;
}

.jg-session-row-wrap:hover .jg-rail-del-btn,
.jg-rail-del-btn:focus-visible {
  opacity: 1;
}

.jg-rail-del-btn:hover {
  opacity: 1;
  background: rgba(244, 63, 94, 0.18);
  border-color: rgba(244, 63, 94, 0.55);
  color: #fda4af;
}

.jg-session-confirm-del {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 9px;
  margin-bottom: 4px;
  border-radius: 10px;
  background: rgba(244, 63, 94, 0.13);
  border: 1px solid rgba(244, 63, 94, 0.48);
}

.jg-session-confirm-txt {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fecdd3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.jg-session-confirm-btns {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.jg-del-confirm-yes {
  background: #e11d48;
  border: none;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
}

.jg-del-confirm-yes:hover {
  background: #be123c;
}

.jg-del-confirm-no {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--jg-text);
  font-size: 0.75rem;
  border-radius: 6px;
  width: 22px;
  height: 22px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jg-rail-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--jg-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jg-classic-link {
  font-size: 0.8rem;
  color: var(--jg-sky);
  text-decoration: none;
  font-weight: 600;
}

.jg-classic-link:hover {
  text-decoration: underline;
}

.jg-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 10px;
  border-radius: 10px;
}

.jg-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.jg-user-info strong {
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jg-user-info span {
  font-size: 0.75rem;
  color: var(--jg-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main Column — DSH Aesthetics */
.jg-main-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--jg-bg-root);
}

.jg-topbar {
  height: 44px;
  min-height: 44px;
  padding: 0 10px;
  background: var(--jg-bg-root);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.jg-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.jg-topbar-title-group {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
}

.jg-topbar-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #f4f4f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jg-topbar-session-age {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--jg-text-muted);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 1px 6px;
}

.jg-topbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.jg-dsh-icon-btn {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: #a1a1aa;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}

.jg-dsh-icon-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #f4f4f5;
}

.jg-dsh-icon-btn.is-active {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.38);
  color: #c7d2fe;
}

.jg-panel-badge-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6366f1;
}

.jg-dsh-folder-pill {
  height: 27px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #181920;
  color: #d4d4d8;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 132px;
  transition: background 0.14s, border-color 0.14s;
}

.jg-dsh-folder-pill:hover,
.jg-dsh-folder-pill.is-active {
  background: #22232c;
  border-color: rgba(245, 158, 11, 0.45);
  color: #fef3c7;
}

.jg-dsh-folder-lbl {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jg-folder-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.jg-folder-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 296px;
  max-width: calc(100vw - 20px);
  background: #14151c;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.68);
  padding: 8px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.jg-folder-dropdown-menu[hidden] {
  display: none !important;
}

.jg-folder-menu-hdr {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 6px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.jg-folder-menu-hdr strong {
  font-size: 0.77rem;
  color: #fef3c7;
  letter-spacing: 0.02em;
}

.jg-folder-menu-hdr span {
  font-size: 0.75rem;
  color: #a1a1aa;
}

.jg-folder-search-row {
  padding: 2px 2px 0;
}

.jg-folder-search-input {
  width: 100%;
  box-sizing: border-box;
  height: 29px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0d0e13;
  color: #f4f4f5;
  font-size: 0.75rem;
  outline: none;
}

.jg-folder-search-input:focus {
  border-color: rgba(245, 158, 11, 0.55);
}

.jg-folder-prof-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 230px;
  overflow-y: auto;
  padding-right: 2px;
}

.jg-folder-empty {
  font-size: 0.75rem;
  color: #a1a1aa;
  padding: 8px 6px;
  line-height: 1.4;
}

.jg-folder-prof-item {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  padding: 7px 9px;
  color: #f4f4f5;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: background 0.14s, border-color 0.14s;
}

.jg-folder-prof-item:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.42);
}

.jg-folder-prof-item.is-active {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.52);
}

.jg-folder-prof-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.jg-folder-prof-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fafafa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jg-folder-prof-badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.jg-folder-active-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #34d399;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 999px;
  padding: 1px 6px;
}

.jg-folder-prof-meta {
  font-size: 0.75rem;
  color: #a1a1aa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jg-folder-menu-footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.jg-folder-action-btn {
  width: 100%;
  text-align: left;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #e4e4e7;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s;
}

.jg-folder-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.jg-folder-action-btn.is-primary {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.38);
  color: #fde68a;
  font-weight: 600;
}

.jg-folder-action-btn.is-primary:hover {
  background: rgba(245, 158, 11, 0.24);
}

.jg-top-more-wrap {
  position: relative;
  display: inline-flex;
}

.jg-top-more-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 224px;
  background: #181920;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jg-top-more-menu[hidden] {
  display: none !important;
}

.jg-more-hdr {
  padding: 6px 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 3px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jg-more-hdr strong {
  font-size: 0.78rem;
  color: #f4f4f5;
}

.jg-more-hdr span {
  font-size: 0.75rem;
  color: var(--jg-text-muted);
}

.jg-more-item {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 7px;
  padding: 7px 10px;
  color: #e4e4e7;
  font-size: 0.77rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jg-more-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.jg-more-item.is-danger {
  color: #fda4af;
}

.jg-more-confirm-row {
  display: flex;
  gap: 6px;
  padding: 6px 8px;
}

/* DSH Underline Top Tabs Bar */
.jg-subtabs-bar {
  height: 34px;
  min-height: 34px;
  padding: 0 12px;
  background: var(--jg-bg-root);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: stretch;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.jg-subtabs-bar::-webkit-scrollbar {
  display: none;
}

.jg-subtab-btn {
  position: relative;
  background: transparent;
  border: none;
  padding: 0 2px;
  color: #8e8ea0;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  transition: color 0.14s;
}

.jg-subtab-btn:hover {
  color: #e4e4e7;
}

.jg-subtab-btn.active {
  color: #818cf8;
  font-weight: 600;
}

.jg-subtab-btn.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: #6366f1;
}

.jg-banner {
  background: rgba(99, 102, 241, 0.14);
  border-bottom: 1px solid rgba(99, 102, 241, 0.32);
  color: #e0e7ff;
  padding: 6px 14px;
  font-size: 0.77rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.jg-banner button {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 2px 4px;
}

/* Center Chat Stream */
.jg-chat-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 10px;
}

.jg-chat-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.jg-center-tab-card {
  background: #14151c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
}

.jg-center-tab-hdr {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.jg-center-tab-hdr h3 {
  margin: 0 0 3px;
  font-size: 0.94rem;
  color: #f4f4f5;
}

.jg-center-tab-hdr p {
  margin: 0;
  font-size: 0.76rem;
  color: var(--jg-text-muted);
}

.jg-rhythm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 8px;
}

.jg-rhythm-box {
  background: #1b1c24;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.jg-rhythm-box span {
  font-size: 0.75rem;
  color: var(--jg-text-muted);
}

.jg-rhythm-box strong {
  font-size: 0.8rem;
  color: #f4f4f5;
}

.jg-rhythm-box.is-good {
  border-color: rgba(16, 185, 129, 0.35);
}

.jg-rhythm-box.is-warn {
  border-color: rgba(245, 158, 11, 0.35);
}

/* Searchable Profile Picker Card */
.jg-picker-panel {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--jg-border-gold);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jg-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.jg-picker-header h3 {
  margin: 0 0 3px;
  font-size: 0.98rem;
  color: var(--jg-gold-soft);
}

.jg-picker-header p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--jg-text-muted);
}

.jg-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
}

.jg-profile-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--jg-border);
  border-radius: 12px;
  padding: 11px 13px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.12s;
}

.jg-profile-card:hover {
  border-color: var(--jg-sky);
  transform: translateY(-1px);
}

.jg-profile-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.jg-pick-cta {
  font-size: 0.75rem;
  color: var(--jg-sky);
  font-weight: 700;
}

.jg-profile-card-meta {
  font-size: 0.75rem;
  color: var(--jg-text-muted);
}

.jg-profile-card-lastq {
  margin-top: 6px;
  font-size: 0.75rem;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Messages — DSH Clean Borderless Prose & Compact User Pill */
.jg-messages-host {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.jg-msg-row {
  display: flex;
  width: 100%;
}

.jg-msg-row.is-user {
  justify-content: flex-end;
}

.jg-user-turn-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: min(85%, 540px);
}

.jg-msg-bubble {
  line-height: 1.62;
  font-size: 0.89rem;
}

.assistant-bubble {
  width: 100%;
  max-width: 100%;
  background: transparent;
  border: none;
  padding: 2px 2px 4px;
  color: #ececf1;
}

.user-bubble {
  background: #27272d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #f4f4f5;
  border-radius: 18px;
  padding: 9px 15px;
}

.jg-dsh-turn-status {
  font-size: 0.75rem;
  color: #8e8ea0;
  padding-bottom: 8px;
  margin-bottom: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jg-dsh-turn-status.is-thinking {
  justify-content: flex-start;
  gap: 7px;
  color: #fbbf24;
  font-variant-numeric: tabular-nums;
}

@keyframes jg-orbit-cw {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes jg-orbit-ccw {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes jg-core-pulse {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.jg-thinking-orbit-svg {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.jg-thinking-orbit-svg .jg-orbit-ring {
  transform-origin: 12px 12px;
  animation: jg-orbit-cw 1.6s linear infinite;
}

.jg-thinking-orbit-svg .jg-orbit-inner {
  transform-origin: 12px 12px;
  animation: jg-orbit-ccw 1.15s linear infinite;
}

.jg-thinking-orbit-svg .jg-orbit-core {
  transform-origin: 12px 12px;
  animation: jg-core-pulse 1.3s ease-in-out infinite;
}

.jg-thinking-live-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 11px;
  background: linear-gradient(90deg, rgba(24, 25, 34, 0.94), rgba(30, 27, 46, 0.78));
  border: 1px solid rgba(245, 158, 11, 0.26);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  max-width: 560px;
}

.jg-thinking-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.jg-thinking-card-icon .jg-thinking-orbit-svg {
  width: 19px;
  height: 19px;
}

.jg-thinking-step-txt {
  flex: 1;
  min-width: 0;
  font-size: 0.83rem;
  font-weight: 500;
  color: #e4e4e7;
  line-height: 1.4;
}

.jg-thinking-elapsed-pill {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
}

.jg-msg-p {
  margin: 0 0 10px;
}

.jg-msg-p:last-child {
  margin-bottom: 0;
}

.jg-msg-list {
  margin: 6px 0 10px;
  padding-left: 19px;
}

.jg-msg-list li {
  margin-bottom: 5px;
}

.jg-msg-hr {
  border: none;
  border-top: 1px solid var(--jg-border);
  margin: 12px 0;
}

.jg-msg-vision-thumb {
  max-width: 200px;
  border-radius: 10px;
  margin-bottom: 8px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.jg-msg-footer {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.jg-msg-actions-left {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}

.jg-dsh-act-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #8e8ea0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
}

.jg-dsh-act-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #e4e4e7;
}

.jg-dsh-act-btn.jg-play-btn.speaking {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
}

.jg-dsh-act-btn.is-up,
.jg-dsh-act-btn.is-copied {
  color: #34d399;
}

.jg-dsh-act-btn.is-down {
  color: #fb7185;
}

.jg-dsh-act-btn.is-active {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.16);
}

.jg-msg-time {
  font-size: 0.75rem;
  color: #71717a;
  white-space: nowrap;
  margin-left: 4px;
}

.jg-user-msg-meta {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.jg-user-msg-meta .jg-msg-time {
  color: #71717a;
  font-size: 0.75rem;
  margin-left: 0;
}

.jg-share-wrap {
  position: relative;
  display: inline-flex;
}

.jg-share-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 7px);
  min-width: 168px;
  background: #0d1528;
  border: 1px solid var(--jg-border-gold);
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
}

.jg-share-item {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--jg-text);
  font-size: 0.79rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  transition: background 0.13s;
}

.jg-share-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.jg-share-item.is-whatsapp .jg-share-ico {
  color: #25d366;
}

.jg-share-ico {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.jg-stream-cursor {
  color: var(--jg-gold);
  animation: jgBlink 0.9s infinite;
}

@keyframes jgBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}

/* Inline Guest-to-User Auth Gate & Centered Sign-In Modal */
.jg-auth-gate-card {
  background: linear-gradient(145deg, rgba(19, 28, 51, 0.98), rgba(11, 17, 32, 0.99));
  border: 1px solid var(--jg-border-gold);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.52);
}

.jg-auth-modal-backdrop {
  z-index: 120;
}

.jg-auth-modal-dialog {
  width: 100%;
  max-width: 440px;
}

.jg-auth-gate-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.jg-auth-gate-top h3 {
  margin: 8px 0 4px;
  font-size: 1rem;
}

.jg-auth-gate-top p {
  margin: 0 0 12px;
  font-size: 0.83rem;
  color: var(--jg-text-muted);
}

.jg-auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.jg-auth-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.jg-auth-error {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fecaca;
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 0.81rem;
  margin-bottom: 10px;
}

/* Follow-up & Disambiguation Chips — Compact DSH Pills */
.jg-chips-host {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 0 6px;
}

.jg-chip-btn {
  background: #181920;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #d4d4d8;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
}

.jg-chip-btn:hover {
  background: #22232d;
  border-color: rgba(99, 102, 241, 0.45);
  color: #ffffff;
}

/* Bottom Two-Row Auto-Expanding DSH Composer */
.jg-composer-wrap {
  padding: 6px 12px max(10px, env(safe-area-inset-bottom));
  background: var(--jg-bg-root);
  flex-shrink: 0;
}

.jg-composer-inner {
  max-width: 780px;
  margin: 0 auto;
}

.jg-live-hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 11px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.11);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 0.75rem;
  color: #d1fae5;
}

.jg-live-hud-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.jg-live-hud-left span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jg-live-hud-meter {
  width: 56px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  flex-shrink: 0;
}

.jg-live-hud-meter > div {
  height: 100%;
  background: #34d399;
  transition: width 80ms linear;
}

.jg-live-hud-end {
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.5);
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
  font-size: 0.75rem;
  cursor: pointer;
}

.jg-composer-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #181920;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 10px 12px 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.jg-composer-box:focus-within {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.18);
}

.jg-composer-textarea {
  width: 100%;
  min-height: 24px;
  max-height: 168px;
  background: transparent;
  border: none;
  outline: none;
  color: #f4f4f5;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.48;
  resize: none;
  padding: 0 2px;
  overflow-y: hidden;
}

.jg-composer-textarea::placeholder {
  color: #71717a;
}

.jg-composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
}

.jg-composer-tools-left {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.jg-composer-tools-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.jg-composer-icon-btn {
  height: 28px;
  min-width: 28px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #a1a1aa;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}

.jg-composer-icon-btn.is-plus {
  background: rgba(255, 255, 255, 0.06);
  color: #d4d4d8;
}

.jg-composer-icon-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #f4f4f5;
}

.jg-composer-icon-btn.is-on {
  color: #6ee7b7;
}

.jg-composer-icon-btn.is-speaking {
  color: #34d399;
  background: rgba(16, 185, 129, 0.14);
}

.jg-composer-icon-btn.is-recording {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.55);
  color: #fecaca;
}

.jg-composer-icon-btn.is-live-call {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
}

.jg-mic-inline-badge:empty {
  display: none;
}

.jg-composer-lang-select {
  background: transparent;
  border: none;
  outline: none;
  color: #a1a1aa;
  font-size: 0.76rem;
  font-weight: 500;
  padding: 3px 4px;
  border-radius: 6px;
  cursor: pointer;
  max-width: 104px;
}

.jg-composer-lang-select:hover {
  color: #f4f4f5;
  background: rgba(255, 255, 255, 0.05);
}

.jg-composer-lang-select option {
  background: #181920;
  color: #f4f4f5;
}

.jg-dsh-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #4f5bd5;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.12s, opacity 0.15s;
}

.jg-dsh-send-btn:hover:not(:disabled) {
  background: #6366f1;
}

.jg-dsh-send-btn:active:not(:disabled) {
  transform: scale(0.94);
}

.jg-dsh-send-btn:disabled {
  background: #2e325c;
  color: rgba(255, 255, 255, 0.45);
  cursor: not-allowed;
}

.jg-composer-telemetry {
  margin-top: 6px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #71717a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right Drawer (Collapsed by default, docks on Desktop or slides over on Mobile) */
.jg-right-drawer.is-collapsed {
  display: none !important;
  width: 0;
}

.jg-right-drawer.is-open {
  width: 380px;
  min-width: 340px;
  max-width: 92vw;
  background: var(--jg-bg-panel);
  border-left: 1px solid var(--jg-border);
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 35;
}

.jg-drawer-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--jg-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.jg-drawer-header h3 {
  margin: 0;
  font-size: 0.96rem;
  color: var(--jg-gold-soft);
}

.jg-drawer-sub {
  font-size: 0.75rem;
  color: var(--jg-text-muted);
}

.jg-drawer-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--jg-border);
}

.jg-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  color: var(--jg-text-muted);
  border-radius: 8px;
  padding: 7px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.jg-tab-btn.active {
  background: rgba(245, 158, 11, 0.16);
  border-color: var(--jg-border-gold);
  color: var(--jg-gold-soft);
}

.jg-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.jg-drawer-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--jg-border);
  border-radius: 13px;
  padding: 12px;
}

.jg-sec-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.jg-sec-hdr h4,
.jg-drawer-section h4 {
  margin: 0;
  font-size: 0.86rem;
  color: #e2e8f0;
}

.jg-seeker-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--jg-gold-soft);
}

.jg-seeker-meta {
  font-size: 0.76rem;
  color: var(--jg-text-muted);
  margin-top: 3px;
}

.jg-seeker-summary-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.jg-ctx-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.jg-ctx-chip {
  font-size: 0.75rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
  padding: 2px 8px;
}

.jg-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.jg-badge-emerald {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.jg-badge-amber {
  background: rgba(245, 158, 11, 0.16);
  color: var(--jg-gold-soft);
  border: 1px solid var(--jg-border-gold);
}

.jg-badge-slate {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

.jg-rel-list,
.jg-notes-list,
.jg-qa-ledger-list,
.jg-chapters-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jg-rel-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--jg-border);
  border-radius: 10px;
}

.jg-rel-pill {
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--jg-gold-soft);
  margin-left: 5px;
  text-transform: capitalize;
}

.jg-rel-note {
  font-size: 0.75rem;
  color: var(--jg-text-muted);
  margin-top: 2px;
}

.jg-note-item,
.jg-qa-item,
.jg-chapter-card {
  padding: 9px 10px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--jg-border);
  border-radius: 10px;
}

.jg-note-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--jg-sky);
  font-weight: 700;
}

.jg-note-txt {
  font-size: 0.8rem;
  margin-top: 3px;
}

.jg-qa-q {
  font-size: 0.81rem;
  font-weight: 700;
  color: #e0f2fe;
}

.jg-qa-a {
  font-size: 0.77rem;
  color: var(--jg-text-muted);
  margin-top: 4px;
}

.jg-qa-time {
  font-size: 0.75rem;
  color: var(--jg-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.jg-qa-window {
  font-size: 0.75rem;
  color: var(--jg-gold-soft);
  margin-top: 4px;
  font-weight: 600;
}

.jg-kundli-svg-wrap {
  background: #080d1a;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  justify-content: center;
}

.jg-kundli-svg-wrap svg {
  max-width: 100%;
  height: auto;
}

.jg-style-switcher {
  display: inline-flex;
  gap: 4px;
}

.jg-style-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--jg-border);
  color: var(--jg-text-muted);
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 0.75rem;
  cursor: pointer;
}

.jg-style-btn.active {
  background: var(--jg-gold);
  color: #070b14;
  font-weight: 700;
}

.jg-chapter-card.status-active {
  border-color: var(--jg-border-gold);
}

.jg-chapter-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--jg-gold-soft);
  margin-bottom: 4px;
}

.jg-chapter-title {
  font-size: 0.88rem;
  font-weight: 700;
}

.jg-chapter-summary {
  font-size: 0.79rem;
  color: var(--jg-text-muted);
  margin-top: 4px;
}

.jg-rhythm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.jg-rhythm-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--jg-border);
  border-radius: 10px;
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.jg-rhythm-box span {
  font-size: 0.75rem;
  color: var(--jg-text-muted);
}

.jg-rhythm-box strong {
  font-size: 0.83rem;
}

.jg-rhythm-box.good {
  border-color: rgba(16, 185, 129, 0.4);
}

.jg-rhythm-box.slow {
  border-color: rgba(245, 158, 11, 0.4);
}

/* Shared Controls & Camera Modal */
.jg-btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #070b14;
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 800;
  font-size: 0.83rem;
  cursor: pointer;
}

.jg-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--jg-text);
  border: 1px solid var(--jg-border);
  border-radius: 10px;
  padding: 8px 13px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}

.jg-btn-block {
  width: 100%;
}

.jg-btn-sm {
  padding: 7px 12px;
  font-size: 0.78rem;
}

.jg-mini-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--jg-border);
  color: var(--jg-text);
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.jg-mini-btn-accent {
  border-color: rgba(56, 189, 248, 0.45);
  color: #bae6fd;
}

.jg-icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--jg-border);
  color: var(--jg-text);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
}

.jg-input,
.jg-select,
.jg-cam-input {
  width: 100%;
  background: rgba(7, 11, 20, 0.85);
  border: 1px solid var(--jg-border);
  border-radius: 9px;
  color: var(--jg-text);
  padding: 8px 11px;
  font-size: 0.84rem;
}

.jg-inline-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 10px;
  padding: 10px;
  background: rgba(7, 11, 20, 0.65);
  border-radius: 10px;
}

.jg-muted-hint {
  font-size: 0.78rem;
  color: var(--jg-text-muted);
  line-height: 1.45;
  margin: 4px 0 0;
}

.jg-empty-drawer {
  text-align: center;
  padding: 36px 16px;
}

.jg-empty-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

/* Camera Modal */
.jg-cam-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.jg-cam-dialog {
  width: 100%;
  max-width: 540px;
  background: var(--jg-bg-panel);
  border: 1px solid var(--jg-border-gold);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jg-cam-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.jg-cam-header h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.jg-cam-header p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--jg-text-muted);
}

.jg-cam-modes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.jg-cam-mode-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--jg-border);
  color: var(--jg-text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.79rem;
  font-weight: 600;
  cursor: pointer;
}

.jg-cam-mode-pill.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--jg-gold);
  color: var(--jg-gold-soft);
}

.jg-cam-viewport {
  position: relative;
  background: #040710;
  border-radius: 12px;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jg-cam-viewport video {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.jg-cam-status {
  position: absolute;
  padding: 12px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--jg-text-muted);
}

.jg-cam-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.jg-mobile-only {
  display: none;
}

.jg-fb-reasons-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed rgba(148, 163, 184, 0.16);
}

.jg-fb-reasons-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--jg-text-muted);
  margin-right: 2px;
}

.jg-fb-reason-chip {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.jg-fb-reason-chip:hover {
  border-color: rgba(248, 113, 113, 0.6);
  color: #fecaca;
}

.jg-fb-reason-chip.is-selected {
  background: rgba(239, 68, 68, 0.2);
  border-color: #f87171;
  color: #fecaca;
}

.jg-auth-notice {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #a7f3d0;
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 0.8rem;
  line-height: 1.45;
  margin-bottom: 10px;
}

.jg-google-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.jg-google-btn-host {
  min-height: 40px;
  display: flex;
  justify-content: center;
}

.jg-auth-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--jg-text-muted);
  font-size: 0.75rem;
}

.jg-auth-divider::before,
.jg-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--jg-border);
}

.jg-auth-terms {
  display: block;
  margin: 8px 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #94a3b8;
  text-align: left;
}
.jg-auth-terms input {
  margin-right: 6px;
  vertical-align: middle;
}
.jg-auth-terms a {
  color: #fcd34d;
}

.jg-auth-forgot-link {
  background: transparent;
  border: none;
  color: var(--jg-sky);
  font-size: 0.77rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0 0;
  text-align: center;
}

.jg-auth-forgot-link:hover {
  text-decoration: underline;
}

.jg-security-modal-dialog {
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
}

.jg-sec-block {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(7, 11, 20, 0.72);
  border: 1px solid var(--jg-border);
}

.jg-sec-block-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.jg-sec-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--jg-text-muted);
  margin-top: 2px;
}

.jg-recovery-codes-box {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed var(--jg-border-gold);
}

.jg-recovery-codes-warn {
  font-size: 0.76rem;
  color: var(--jg-gold-soft);
  margin-bottom: 8px;
}

.jg-recovery-codes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 9px;
}

.jg-recovery-codes-grid code {
  background: #050914;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 7px;
  padding: 6px 8px;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fde68a;
  letter-spacing: 0.04em;
}

.jg-sec-sessions-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 9px;
}

.jg-sec-session-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--jg-border);
}

.jg-sec-session-row.is-current {
  border-color: rgba(16, 185, 129, 0.45);
}

.jg-sec-session-title {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.jg-sec-session-meta {
  font-size: 0.75rem;
  color: var(--jg-text-muted);
  margin-top: 2px;
}

@media (max-width: 1080px) {
  .jg-left-rail {
    display: flex;
    position: fixed;
    top: 32px;
    bottom: 0;
    left: 0;
    width: min(280px, 86vw);
    min-width: 0;
    transform: translateX(-104%);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 12px 0 32px rgba(0, 0, 0, 0.65);
  }
  .jg-left-rail.is-open,
  .jg-left-rail.is-mobile-open {
    transform: translateX(0);
  }
  .jg-right-drawer.is-open {
    position: fixed;
    top: 32px;
    bottom: 0;
    right: 0;
    width: min(360px, 90vw);
    min-width: 0;
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.65);
  }
}

@media (max-width: 560px) {
  .jg-chat-scroll {
    padding: 12px 12px 8px;
  }
  .jg-composer-wrap {
    padding: 4px 8px 8px;
  }
  .jg-composer-box {
    border-radius: 18px;
    padding: 9px 10px 7px;
  }
  .jg-dsh-folder-pill {
    max-width: 102px;
    padding: 0 6px;
  }
  .jg-composer-telemetry {
    font-size: 0.75rem;
  }
}

.jg-kundli-svg-wrap {
  background: #ffffff;
  border-radius: 12px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.jg-kundli-svg-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

@media print {
  body,
  .jg-shell,
  .jg-chat-scroll {
    background: #ffffff !important;
    color: #0f172a !important;
    height: auto !important;
    overflow: visible !important;
  }
  .jg-left-rail,
  .jg-right-drawer,
  .jg-composer-wrap,
  .jg-subtabs-bar,
  .jg-dsh-msg-actions,
  .jg-chips-host {
    display: none !important;
  }
  .jg-dsh-assistant-prose,
  .jg-dsh-user-bubble {
    color: #0f172a !important;
    background: transparent !important;
  }
}

/* Inline Paywall, Starter Credit Pack & 7-Layer BTR / Nashta-Jataka Unlock Cards */
.jg-paywall-card {
  border: 1px solid rgba(245, 158, 11, 0.42);
  background: linear-gradient(155deg, rgba(24, 25, 34, 0.98), rgba(18, 20, 28, 0.98));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

.jg-badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
  margin-bottom: 6px;
}

.jg-paywall-btr-cta-wrap {
  margin: 12px 0 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.jg-paywall-btr-btn {
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 14px;
}

.jg-paywall-btr-sub {
  margin-top: 6px;
  font-size: 0.75rem;
  color: #a7f3d0;
  text-align: center;
}

.jg-paywall-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.jg-paywall-plan-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.jg-paywall-plan-card.is-featured {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.07);
}

.jg-paywall-plan-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
}

.jg-paywall-plan-hdr {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.jg-paywall-plan-hdr strong {
  font-size: 0.86rem;
  color: #f8fafc;
}

.jg-paywall-plan-price {
  font-size: 0.96rem;
  font-weight: 800;
  color: #fbbf24;
}

.jg-paywall-plan-desc {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #94a3b8;
  flex: 1;
}

/* =========================================================================
   Top-of-Screen Location Chip, Top-Layer <dialog> Modal & Panchanga Strip
   ========================================================================= */
.jg-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.jg-top-location-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.jg-top-loc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
  white-space: nowrap;
}

.jg-top-loc-pill:hover,
.jg-top-loc-pill.is-active {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.55);
}

.jg-top-loc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.jg-top-loc-dot.is-gps {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
}

.jg-top-loc-dot.is-default {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.65);
}

.jg-top-loc-dot.is-custom {
  background: #38bdf8;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.65);
}

.jg-top-loc-lbl {
  max-width: 138px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Native Top-Layer <dialog> — NEVER set unconditional display on dialog! */
dialog.jg-location-dialog {
  padding: 0;
  border: 1px solid rgba(245, 158, 11, 0.42);
  border-radius: 16px;
  background: #12151e;
  color: #e2e8f0;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.75);
  width: min(430px, calc(100vw - 20px));
  width: min(430px, calc(100dvw - 20px));
  max-width: calc(100vw - 20px);
  max-height: calc(var(--jg-vvh, 100dvh) - 20px);
  margin: max(10px, calc(var(--jg-vv-top, 0px) + 12px)) auto auto auto;
  overflow-x: hidden;
  overflow-y: auto;
}

dialog.jg-location-dialog[open] {
  display: block;
}

dialog.jg-location-dialog:modal {
  overscroll-behavior: contain;
}

dialog.jg-location-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.jg-loc-modal-card {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jg-loc-menu-hdr {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.jg-loc-menu-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.jg-loc-dialog-heading {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
}

.jg-loc-title-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.jg-loc-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.jg-loc-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.jg-loc-gps-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.jg-loc-gps-badge.is-on {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.jg-loc-gps-badge.is-off {
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.36);
}

.jg-loc-menu-sub {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.38;
  color: #cbd5e1;
}

.jg-loc-search-wrap {
  position: relative;
  margin: 0;
}

.jg-loc-search-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.jg-loc-search-input {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  height: 38px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: #0b0d13;
  color: #f8fafc;
  font-size: 16px;
  outline: none;
}

.jg-loc-search-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.18);
}

.jg-loc-go-btn {
  height: 38px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.jg-loc-go-btn:hover {
  background: rgba(245, 158, 11, 0.3);
}

.jg-loc-search-results {
  margin-top: 6px;
  max-height: 170px;
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0d1018;
  overscroll-behavior: contain;
}

.jg-loc-res-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
}

.jg-loc-res-item:hover {
  background: rgba(245, 158, 11, 0.15);
}

.jg-loc-res-item small {
  color: #94a3b8;
  font-size: 0.75rem;
  white-space: nowrap;
}

.jg-loc-res-empty {
  padding: 9px 11px;
  font-size: 0.75rem;
  color: #94a3b8;
}

.jg-loc-quick-lbl {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.jg-loc-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jg-loc-chip {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-size: 0.75rem;
  cursor: pointer;
}

.jg-loc-chip:hover,
.jg-loc-chip.is-active {
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(245, 158, 11, 0.16);
  color: #fde68a;
}

.jg-loc-menu-actions {
  display: flex;
  gap: 6px;
}

.jg-loc-gps-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.14);
  color: #a7f3d0;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.jg-loc-gps-btn:hover {
  background: rgba(16, 185, 129, 0.24);
}

.jg-loc-reset-btn {
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
  color: #fde68a;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.jg-loc-profile-dual {
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.75rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.jg-loc-profile-dual span {
  opacity: 0.72;
}

/* Compact vertical density when mobile virtual keyboard (Gboard / iOS) is open */
html.jg-kb-open dialog.jg-location-dialog {
  margin-top: max(6px, calc(var(--jg-vv-top, 0px) + 6px));
  max-height: calc(var(--jg-vvh, 100dvh) - 12px);
}

html.jg-kb-open .jg-loc-modal-card {
  padding: 10px 12px;
  gap: 7px;
}

html.jg-kb-open .jg-loc-profile-dual {
  display: none;
}

.jg-panchanga-loc-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 5px 14px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.08), rgba(15, 23, 42, 0.6));
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  font-size: 0.75rem;
  color: #cbd5e1;
  flex-shrink: 0;
}

.jg-panchanga-strip-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.jg-panchanga-strip-text strong {
  color: #fde68a;
}

.jg-strip-gps-note {
  color: #94a3b8;
  font-size: 0.75rem;
}

.jg-strip-sep {
  margin: 0 5px;
  opacity: 0.45;
}

.jg-strip-rhythm {
  color: #a7f3d0;
}

.jg-panchanga-strip-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.jg-strip-chip {
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.38);
  background: rgba(245, 158, 11, 0.1);
  color: #fde68a;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.jg-strip-chip:hover {
  background: rgba(245, 158, 11, 0.22);
}

.jg-strip-chip.is-gps {
  border-color: rgba(16, 185, 129, 0.42);
  background: rgba(16, 185, 129, 0.11);
  color: #a7f3d0;
}

.jg-strip-chip.is-gps:hover {
  background: rgba(16, 185, 129, 0.22);
}

@media (max-width: 768px) {
  .jg-composer-textarea,
  .jg-folder-search-input,
  .jg-input {
    font-size: 16px;
  }
}

@media (max-width: 680px) {
  .jg-top-loc-lbl {
    max-width: 88px;
  }
  .jg-hide-xs {
    display: none;
  }
  .jg-panchanga-loc-strip {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
  .jg-folder-dropdown-menu {
    position: fixed;
    top: 82px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: 380px;
    margin: 0 auto;
  }
}

/* Per-Language Session Badge & Explicit New Session Chip */
.jg-rail-lang-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  margin-right: 4px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.36);
  color: #fde68a;
  flex-shrink: 0;
}

.jg-chip-btn.jg-chip-new-session {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(14, 165, 233, 0.14));
  border-color: rgba(16, 185, 129, 0.55);
  color: #a7f3d0;
  font-weight: 700;
}

.jg-chip-btn.jg-chip-new-session:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(14, 165, 233, 0.24));
  border-color: #34d399;
  color: #ecfdf5;
}
