
/* --- Toast (status) --- */
.toast{
  position:fixed;
  left:50%;
  bottom:calc(84px + env(safe-area-inset-bottom));
  transform:translateX(-50%) translateY(10px);
  max-width:calc(100vw - 28px);
  padding:10px 14px;
  border-radius:999px;
  background:rgba(0,0,0,.78);
  color:rgba(255,255,255,.92);
  font-size:14px;
  line-height:1.2;
  letter-spacing:.2px;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
  opacity:0;
  pointer-events:none;
  z-index: 13050;
  transition:opacity .18s ease, transform .18s ease;
  text-align:center;
}
.toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

.toast--action{
  display:flex;
  align-items:center;
  gap:10px;
  padding-right:10px;
}
.toast__label{min-width:0;}
.toast__action{
  appearance:none;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.08);
  color:rgba(255,255,255,.96);
  border-radius:999px;
  padding:6px 10px;
  font:inherit;
  font-size:13px;
  font-weight:700;
}
.toast__action:active{transform:scale(.98);}

.btn[aria-busy='true'],
.btn[data-loading='1'],
.send[aria-busy='true'],
.send[data-loading='1']{
  position:relative;
  pointer-events:none;
  opacity:.88;
}
.btn[data-loading='1']::after,
.send[aria-busy='true']::after,
.send[data-loading='1']::after{
  content:'';
  width:14px;
  height:14px;
  border-radius:999px;
  border:2px solid currentColor;
  border-right-color:transparent;
  display:inline-block;
  box-sizing:border-box;
  vertical-align:-2px;
  animation: uiSpin .75s linear infinite;
  margin-left:8px;
}
.send[aria-busy='true'],
.send[data-loading='1']{
  color:transparent;
}
.send[aria-busy='true']::after,
.send[data-loading='1']::after{
  position:absolute;
  inset:50% auto auto 50%;
  transform:translate(-50%,-50%);
  margin-left:0;
  color:rgba(24,24,24,.9);
}

.savedChatsEmpty{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:flex-start;
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.035);
}
.savedChatsEmptyTitle{
  font-size:16px;
  font-weight:760;
}
.savedChatsEmptyText{
  color:rgba(245,245,245,.68);
  line-height:1.45;
}

@keyframes uiSpin{to{transform:rotate(360deg);}}

/* --- Homepage: less choice overload --- */
.moreOptions{ display:inline-block; }
.moreOptions > summary{
  list-style:none;
  cursor:pointer;
  user-select:none;
  font-size:14px;
  color:rgba(255,255,255,.75);
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
}
.moreOptions > summary::-webkit-details-marker{ display:none; }
.moreOptions[open] > summary{ background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.18); }
.moreOptionsRow{ display:flex; gap:10px; margin-top:10px; justify-content:center; flex-wrap:wrap; }

/* --- Modal table of contents (long legal modal) --- */
.modalToc{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:2px 0 14px 0;
}
.modalToc a{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.80);
  font-size:13px;
  text-decoration:none;
}
.modalToc a:hover{ background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.18); }


/* ===== Quick topic panel under hero input ===== */
.quickPanel{
  margin:10px 0 4px;
  padding:12px 12px;
  border:1px solid rgba(245,245,245,.14);
  background:rgba(10,10,12,.92);
  border-radius:16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0,0,0,.60);
}
.quickPanelHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.quickPanelTitle{
  font-weight:800;
  letter-spacing:.2px;
}
.quickPanelHint{
  margin:8px 0 10px;
  opacity:.78;
  font-size:13px;
  line-height:1.35;
}
.quickPanelCustom{
  margin-top:10px;
  display:flex;
  gap:10px;
  align-items:stretch;
}
#quickCustom{
  flex:1 1 auto;
  min-height:44px;
  max-height:160px;
  resize:none;
  overflow:hidden;
  border:1px solid rgba(245,245,245,.16);
  background:rgba(0,0,0,.55);
  color:rgba(245,245,245,.92);
  border-radius:14px;
  padding:10px 12px;
}
@media (max-width: 520px){
  .quickPanelCustom{flex-direction:column;}
}



/* Dim background behind the shortcuts panel (prevents "see-through" distraction) */
.chatQuick.panelOpen::after{
  content:"";
  position:absolute;
  left:-12px; right:-12px;
  top:-12px; bottom:-12px;
  background:rgba(0,0,0,.60);
  backdrop-filter: blur(6px);
  z-index:20;
  pointer-events:none;
}

/* --- Quick shortcuts panel (chat) fixes --- */
.chatComposer{ position:relative; } /* anchor for quick panel overlay */

.chatQuick{ position:relative; }

/* Make panel overlay instead of pushing footer down */
.quickPanel{
  position:absolute;
  left:0; right:0;
  bottom:0;
  transform: translateY(8px);
  z-index:30;
  max-height: min(60vh, 520px);
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
}

/* Ensure close button isn't iOS-blue */
.iconBtn{ color: rgba(255,255,255,.88); }
#quickPanelClose{ color: rgba(255,255,255,.88); }
#quickPanelClose:active{ opacity:.75; }

/* When panel is open, add some spacing so chips row stays visible */
.chatQuick.panelOpen{ padding-bottom: 12px; }

/* iOS no-zoom: keep composer inputs >=16px */
@media (max-width: 768px){
  .chatComposer textarea,
  .chatComposer input{
    font-size: 16px;
  }
}


/* Share conversation */
.sharePreview{
  position:relative;
  border-radius:16px;
  border:1px solid rgba(245,245,245,.12);
  background:rgba(255,255,255,.04);
  padding:14px;
  max-height:52vh;
  overflow:auto;
}
.sharePreviewInner{
  font-size:13px;
  line-height:1.35;
  color:rgba(245,245,245,.92);
  white-space:pre-wrap;
}
.shareWatermark{
  position:sticky;
  bottom:0;
  margin-top:12px;
  font-size:12px;
  opacity:.95;
  text-align:right;
}
.shareActions{
  display:flex;
  gap:10px;
  margin-top:12px;
}
@media (max-width:520px){
  .shareActions{flex-direction:column;}
}

.followUps{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  opacity:.95;
}
.followUps .chip{display:inline-flex;align-items:center;justify-content:center;max-width:100%;
  border:1px solid rgba(245,245,245,.12);
  background:rgba(255,255,255,.04);
  color:rgba(245,245,245,.92);
  padding:8px 12px;
  border-radius:999px;
  font-size:13px;
}


/* --- Share modal header (matches other modals) --- */
.modalHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px 10px;
  border-bottom:1px solid rgba(245,245,245,.08);
}
.modalTitle{font-size:15px;font-weight:600;color:rgba(245,245,245,.92);}
.modalBody{padding:14px 16px 16px;}

/* --- In-chat starter (reduces decision overload) --- */
.chatStarter{
  margin:12px 14px 2px;
  padding:12px 12px 10px;
  border-radius:16px;
  border:1px solid rgba(245,245,245,.10);
  background:rgba(255,255,255,.04);
}
.chatStarter .starterTitle{
  font-size:13px;
  color:rgba(245,245,245,.78);
  margin-bottom:10px;
}
.chatStarter .starterGrid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.chatStarter .starterBtn{
  width:100%;
  text-align:left;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(245,245,245,.10);
  background:rgba(0,0,0,.22);
  color:rgba(245,245,245,.92);
  cursor:pointer;
  transition:transform .12s ease, border-color .12s ease, background .12s ease;
}
.chatStarter .starterBtn:hover{
  transform:translateY(-1px);
  border-color:rgba(183,154,90,.35);
  background:rgba(183,154,90,.08);
}
.chatStarter .starterLink{
  margin-top:10px;
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:0;
  background:transparent;
  color:rgba(183,154,90,.95);
  cursor:pointer;
  text-align:left;
}
.chatStarter .starterLink:hover{ text-decoration:underline; }

@media (min-width: 520px){
  .chatStarter .starterGrid{ grid-template-columns:1fr 1fr; }
  .chatStarter .starterBtn[data-starter="analyze"]{ grid-column:1 / -1; }
}


/* ===== OSCANRE PREMIUM FINAL OVERRIDES ===== */
.inlineLink{ color: rgba(183,154,90,.95) !important; }
.paywall a, .paywallAlt a, .paywallBox a{
  color: rgba(183,154,90,.95) !important;
  text-decoration:none;
  font-weight:650;
}
.paywall a:hover, .paywallAlt a:hover, .paywallBox a:hover{ opacity:.85; }


/* Oscanre access system */
.premiumStatus{display:none !important;}
.toolAccessRow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;margin:8px 0 12px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);border-radius:16px;}
.toolAccessTitle{font-weight:700;color:#f3efe8;font-size:14px;}
.toolAccessSub{font-size:12px;line-height:1.4;color:rgba(255,255,255,.72);margin-top:3px;max-width:420px;}
.miniBtn{padding:10px 14px;border-radius:999px;white-space:nowrap;}
.itemMeta{margin-left:auto;margin-right:8px;font-size:11px;padding:5px 9px;border-radius:999px;border:1px solid rgba(255,255,255,.08);}
.freeMeta{color:rgba(255,255,255,.75);background:rgba(255,255,255,.04);}
.paidMeta{color:#d9bd84;background:rgba(198,166,106,.12);border-color:rgba(198,166,106,.22);}
.premiumFeatureList{display:grid;gap:6px;margin:0 0 12px;color:rgba(255,255,255,.92);}
.paywallBox{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:18px;}
.paywallTitle{color:#C6A66A;font-weight:700;font-size:18px;margin-bottom:8px;}
.paywallBtn{width:100%;text-align:left;background:linear-gradient(180deg, rgba(198,166,106,.22), rgba(198,166,106,.12));border:1px solid rgba(198,166,106,.25);border-radius:18px;padding:16px;margin-top:10px;color:#fff;}
.paywallBtnMain{font-weight:700;color:#fff;}
.paywallBtnSub{margin-top:6px;color:rgba(255,255,255,.72);font-size:13px;line-height:1.35;}
.paywallAlt .inlineLink, .inlineLink{color:#C6A66A !important;text-decoration:none;font-weight:600;}
@media (max-width: 640px){.toolAccessRow{align-items:flex-start;flex-direction:column}.miniBtn{width:100%;justify-content:center}}

/* --- Oscanre final production overrides --- */
.sheet{display:flex;flex-direction:column;max-height:calc(100svh - 12px) !important;}
.sheetGroup{flex:1 1 auto;min-height:0;max-height:none !important;overflow-y:auto !important;padding-bottom:calc(env(safe-area-inset-bottom,0px) + 24px) !important;}
.actionMenu{z-index:3000 !important;}
.msgActions, .msgActions *{position:relative;}
.listLine{display:block;margin-top:6px;line-height:1.5;}
.menuBadge{display:inline-flex;align-items:center;justify-content:center;margin-left:8px;font-size:11px;padding:4px 8px;border-radius:999px;vertical-align:middle;}
#menuSheet .btn{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.diagQuizHead{margin-bottom:12px;}
.diagQuizProgress{font-size:12px;color:rgba(255,255,255,.66);margin-bottom:6px;}
.diagQuizQuestion{font-size:18px;font-weight:700;line-height:1.35;}
.diagAnswers{display:grid;gap:10px;}
.diagAnswers .answer{position:relative;padding:16px 50px 16px 16px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.12);text-align:left;color:#fff;}
.diagAnswers .answerText{max-width:90%;line-height:1.4;}
.diagSummary strong{font-size:13px;}
#premiumValueStage .pageCard, #premiumHowStage .pageCard{background:rgba(255,255,255,.04);}
#accessBtn{display:grid;place-items:center;}
#accessBtn svg{width:18px;height:18px;}


.toolAccessHint{margin-top:6px;font-size:11px;line-height:1.45;color:rgba(255,255,255,.56);max-width:520px}
.uploadCard{display:block;padding:16px;border-radius:18px;border:1px dashed rgba(198,166,106,.38);background:rgba(198,166,106,.08);cursor:pointer}
.uploadCardTitle{font-weight:700;color:#f3efe8;margin-bottom:4px}
.uploadCardSub{font-size:12px;color:rgba(255,255,255,.72);line-height:1.4}
.screensPreviewWrap{margin-top:12px;border:1px solid rgba(255,255,255,.08);border-radius:16px;overflow:hidden;background:rgba(255,255,255,.03)}
.screensPreviewImg{display:block;width:100%;height:auto;max-height:320px;object-fit:contain;background:#111}
#screensOut{white-space:normal}
#screensOut .listLine{display:block;margin-top:6px}


/* Final polish v3 */
#confirmModal{z-index:13080 !important;}
#savedChatsModal{z-index:12020 !important;}
.msgActions{position:relative;align-items:flex-start;flex-wrap:nowrap;}
.msgActions .actBtn{flex:0 0 auto;}
.msgActionMore{position:relative;display:inline-flex;flex:0 0 auto;}
.msgActions, .msgActions *{position:static;}
.msgActionMore{position:relative;display:inline-flex;flex:0 0 auto;}
.msgActionMore > .actBtn{position:relative;}
.actionMenu{z-index:13040 !important;}
.toolAccessRow{align-items:flex-start;}
.toolAccessSub{max-width:none;}
.paidMeta{display:inline-flex;align-items:center;gap:6px;color:#d9bd84;background:rgba(198,166,106,.10);border-color:rgba(198,166,106,.22);}
.paidMeta::before{content:"";width:12px;height:12px;border-radius:999px;border:1.5px solid currentColor;display:inline-block;box-sizing:border-box;position:relative;top:0;background:transparent;box-shadow:inset 0 0 0 2px rgba(0,0,0,.15);}
.paidMeta.active{color:#70d58b;background:rgba(66,168,99,.12);border-color:rgba(66,168,99,.28);}
.paidMeta.active::before{content:"✓";width:14px;height:14px;border:none;display:inline-grid;place-items:center;font-size:11px;font-weight:800;background:rgba(66,168,99,.16);border-radius:999px;box-shadow:none;}
.itemRight{opacity:.95;}
button[data-tool-open] .itemRight{display:none !important;}
#menuSheet .menuBadge.paidMeta{margin-left:auto;}
#menuSheet .btn .menuBadge.paidMeta::before{width:10px;height:10px;}
#menuSheet .btn .menuBadge.paidMeta.active::before{width:14px;height:14px;}
#toolSheet .item[data-tool-open]{align-items:center;}
#toolSheet .item[data-tool-open] .itemMeta{margin-right:0;}
#toolSheet .item[data-tool-open] .itemLeft span, #menuSheet [data-tool-open]{font-weight:600;}
.premiumCodeStatus.isError{color:#ff8c8c;}
.premiumCodeStatus.isSuccess{color:#78d69a;}
#accessBtn.isUnlocked{color:#78d69a;border-color:rgba(120,214,154,.35);background:rgba(120,214,154,.08);}
#accessBtn.isUnlocked svg{stroke:currentColor;}
.onbLegal .inline-link, .composerLegal .inlineLink{color:#C6A66A !important;}


/* ==== Premium status icons: refined apple/stripe-like states ==== */
:root{
  --status-lock-ink:#d6b377;
  --status-lock-bg:rgba(198,166,106,.10);
  --status-lock-br:rgba(198,166,106,.22);
  --status-ok-ink:#7ed9a1;
  --status-ok-bg:rgba(75,184,117,.12);
  --status-ok-br:rgba(75,184,117,.26);
}

#accessBtn{
  width:38px;
  height:38px;
  border-radius:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
  color:var(--status-lock-ink);
  box-shadow:0 8px 24px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.04);
  transition:transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
#accessBtn:hover{
  border-color:rgba(198,166,106,.28);
  background:linear-gradient(180deg, rgba(198,166,106,.12), rgba(255,255,255,.03));
  box-shadow:0 10px 28px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.06);
}
#accessBtn svg{width:18px;height:18px;display:block;}
#accessBtn.isUnlocked{
  color:var(--status-ok-ink);
  border-color:var(--status-ok-br);
  background:linear-gradient(180deg, rgba(75,184,117,.14), rgba(255,255,255,.03));
  box-shadow:0 10px 28px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.06);
}

#toolAccessBtn{
  position:relative;
  padding-left:14px;
  padding-right:14px;
  border-radius:999px;
  border:1px solid var(--status-lock-br);
  background:linear-gradient(180deg, rgba(198,166,106,.12), rgba(198,166,106,.07));
  color:#f2dfb0;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
#toolAccessBtn::before{
  content:"";
  width:16px;
  height:16px;
  display:inline-block;
  vertical-align:-3px;
  margin-right:8px;
  border-radius:999px;
  background:var(--status-lock-bg);
  border:1px solid var(--status-lock-br);
  background-repeat:no-repeat;
  background-position:center;
  background-size:10px 10px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6b377' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='11' width='10' height='8' rx='2'/%3E%3Cpath d='M9 11V9a3 3 0 1 1 6 0v2'/%3E%3C/svg%3E");
}
#toolAccessBtn.isUnlocked{
  border-color:var(--status-ok-br);
  background:linear-gradient(180deg, rgba(75,184,117,.14), rgba(75,184,117,.08));
  color:#dff6e7;
}
#toolAccessBtn.isUnlocked::before{
  background:var(--status-ok-bg);
  border-color:var(--status-ok-br);
  background-size:10px 10px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237ed9a1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.2 3.2L17.5 8.5'/%3E%3C/svg%3E");
}

.paidMeta,
.menuBadge.paidMeta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:28px;
  padding:5px 10px 5px 8px;
  border-radius:999px;
  border:1px solid var(--status-lock-br);
  background:linear-gradient(180deg, rgba(198,166,106,.10), rgba(198,166,106,.06));
  color:#eed29d;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
  font-size:11px;
  font-weight:700;
  letter-spacing:.01em;
}
.paidMeta::before,
.menuBadge.paidMeta::before{
  content:"";
  flex:0 0 16px;
  width:16px;
  height:16px;
  border-radius:999px;
  background:var(--status-lock-bg);
  border:1px solid var(--status-lock-br);
  background-repeat:no-repeat;
  background-position:center;
  background-size:10px 10px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6b377' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='11' width='10' height='8' rx='2'/%3E%3Cpath d='M9 11V9a3 3 0 1 1 6 0v2'/%3E%3C/svg%3E");
  box-sizing:border-box;
}
.paidMeta.active,
.menuBadge.paidMeta.active{
  color:#dff6e7;
  border-color:var(--status-ok-br);
  background:linear-gradient(180deg, rgba(75,184,117,.14), rgba(75,184,117,.08));
}
.paidMeta.active::before,
.menuBadge.paidMeta.active::before{
  background:var(--status-ok-bg);
  border-color:var(--status-ok-br);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237ed9a1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.2 3.2L17.5 8.5'/%3E%3C/svg%3E");
}
#menuSheet .menuBadge.paidMeta{margin-left:auto;}
#menuSheet .btn .menuBadge.paidMeta{padding:4px 9px 4px 7px; min-height:26px;}
#menuSheet .btn .menuBadge.paidMeta::before{width:14px;height:14px;flex-basis:14px;background-size:9px 9px;}


/* Final polish v4 */
#accessBtn{width:40px;height:40px;border-radius:14px;padding:0;}
#accessBtn svg{width:21px;height:21px;display:block;}
#accessBtn.isUnlocked svg{stroke:currentColor;}

#toolAccessBtn::before,
.paidMeta::before,
.menuBadge.paidMeta::before{
  background-size:11px 11px;
}
#toolAccessBtn.isUnlocked::before,
.paidMeta.active::before,
.menuBadge.paidMeta.active::before{
  background-size:11px 11px;
}

.screenTransferMsg{display:flex;align-items:flex-start;gap:12px;min-width:0;}
.screenTransferThumb{width:84px;height:84px;object-fit:cover;border-radius:14px;border:1px solid rgba(255,255,255,.10);background:#111;flex:0 0 auto;}
.screenTransferBody{min-width:0;display:flex;flex-direction:column;gap:4px;}
.screenTransferTitle{font-weight:700;color:#fff;}
.screenTransferMeta{font-size:12px;line-height:1.45;color:rgba(255,255,255,.72);white-space:pre-wrap;word-break:break-word;}


/* --- Patch v3: anchored 3-dot menu + lock icon consistency --- */
.actionMenu{
  --menu-origin-x: 100%;
  --menu-origin-y: 0%;
  transform-origin: var(--menu-origin-x) var(--menu-origin-y);
}
.actionMenu.anchorRight:not(.openUp){ transform:translate3d(8px,-8px,0) scale(.94); }
.actionMenu.anchorLeft:not(.openUp){ transform:translate3d(-8px,-8px,0) scale(.94); }
.actionMenu.openUp.anchorRight{ transform:translate3d(8px,8px,0) scale(.94); }
.actionMenu.openUp.anchorLeft{ transform:translate3d(-8px,8px,0) scale(.94); }
.actionMenu.isVisible{ transform:translate3d(0,0,0) scale(1); }

#accessBtn{
  width:42px;
  height:42px;
  border-radius:14px;
  padding:0;
  display:grid;
  place-items:center;
}
#accessBtn svg{
  width:22px;
  height:22px;
  display:block;
}
#accessBtn:not(.isUnlocked){
  color:rgba(245,245,245,.94);
}
#accessBtn.isUnlocked{
  color:#82dba2;
  border-color:rgba(120,214,154,.38);
  background:rgba(120,214,154,.08);
}
#toolAccessBtn::before,
.paidMeta::before,
.menuBadge.paidMeta::before{
  background-size:10px 10px;
}
#toolAccessBtn,
.paidMeta,
.menuBadge.paidMeta{
  letter-spacing:0;
}


/* === Final polish v5 === */
:root{
  --status-pill-h:32px;
  --status-pill-px:12px;
  --status-pill-gap:6px;
  --status-pill-icon:16px;
}

#menuSheet .panel{max-width:560px;}
#menuSheet .pageCard.menuCard{padding:14px 10px 12px;}
#menuSheet .menuGrid{display:grid;gap:10px;}
#menuSheet .menuGrid--secondary{margin-top:2px;}
#menuSheet .menuSectionLabel{
  margin:10px 4px 10px;
  font-size:12px;
  line-height:1;
  letter-spacing:.08em;
  font-weight:800;
  color:rgba(255,255,255,.56);
}
#menuSheet .menuSectionLabel:first-child{margin-top:0;}
#menuSheet .menuGrid + .menuSectionLabel{margin-top:18px;}
#menuSheet .btn.ghost{min-height:54px;justify-content:flex-start;}

#menuSheet .btn,
#toolSheet .item,
#toolAccessBtn,
.topBtn,
.actionIcon{
  transition:transform .08s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s ease;
}
#menuSheet .btn:active,
#toolSheet .item:active,
#toolAccessBtn:active,
.topBtn:active,
.actionIcon:active{transform:scale(.98);}

.topBtn{width:36px;height:36px;border-width:1px;opacity:.78;}
.topBtn:hover{opacity:1;}

#accessBtn{
  width:44px;
  height:44px;
  border-radius:14px;
  padding:0;
}
#accessBtn svg{width:22px;height:22px;display:block;}

#toolAccessBtn,
.paidMeta,
.menuBadge.paidMeta{
  min-height:var(--status-pill-h);
  padding:0 var(--status-pill-px);
  gap:var(--status-pill-gap);
  border-radius:999px;
  font-size:14px;
  font-weight:700;
  letter-spacing:0;
}
#toolAccessBtn::before,
.paidMeta::before,
.menuBadge.paidMeta::before{
  width:var(--status-pill-icon);
  height:var(--status-pill-icon);
  flex-basis:var(--status-pill-icon);
  background-size:10px 10px;
}
#toolAccessBtn{padding-left:14px;padding-right:14px;}
#toolAccessBtn::before{margin-right:0;}
.paidMeta, .menuBadge.paidMeta{
  color:#e8cf9e;
  border-color:rgba(198,166,106,.24);
  background:linear-gradient(180deg, rgba(198,166,106,.10), rgba(198,166,106,.05));
}
.paidMeta.active, .menuBadge.paidMeta.active, #toolAccessBtn.isUnlocked{
  color:#dff4e7;
  border-color:rgba(98,204,133,.24);
  background:linear-gradient(180deg, rgba(67,168,101,.12), rgba(67,168,101,.07));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
#menuSheet .btn .menuBadge.paidMeta{padding:0 12px;min-height:var(--status-pill-h);}
#menuSheet .btn .menuBadge.paidMeta::before{width:var(--status-pill-icon);height:var(--status-pill-icon);flex-basis:var(--status-pill-icon);background-size:10px 10px;}

#toolAccessSub{max-width:36ch;}
#toolAccessBtn{margin-top:2px;}

.actionMenu{
  min-width:192px;
  border-radius:16px;
  padding:8px;
  border:1px solid rgba(255,255,255,.09);
  background:rgba(11,12,15,.98);
  box-shadow:0 18px 40px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  opacity:0;
  transform:translate3d(0,4px,0) scale(.95);
  transition:transform .14s ease, opacity .14s ease;
}
.actionMenu.anchorRight:not(.openUp){transform:translate3d(6px,4px,0) scale(.95);}
.actionMenu.anchorLeft:not(.openUp){transform:translate3d(-6px,4px,0) scale(.95);}
.actionMenu.openUp.anchorRight{transform:translate3d(6px,-4px,0) scale(.95);}
.actionMenu.openUp.anchorLeft{transform:translate3d(-6px,-4px,0) scale(.95);}
.actionMenu.isVisible{opacity:1;transform:translate3d(0,0,0) scale(1);}
.actionMenu button{min-height:42px;border-radius:12px;font-size:14px;font-weight:600;padding:0 12px;text-align:left;}
.actionMenu .sep{margin:6px 2px;}

.screenTransferMsg{align-items:center;}
.screenTransferThumb{width:88px;height:88px;border-radius:16px;}
.screenTransferTitle{font-size:15px;}
.screenTransferMeta{font-size:12px;line-height:1.45;color:rgba(255,255,255,.68);}


/* v6 polish: anchored menu, calmer status pills, screens flow */
.actionIcon svg{width:20px;height:20px;}
#accessBtn svg{width:23px;height:23px;}
#accessBtn{box-shadow:inset 0 1px 0 rgba(255,255,255,.03);}
#accessBtn.isUnlocked{color:#89d7a3;border-color:rgba(120,214,154,.28);background:linear-gradient(180deg, rgba(76,170,107,.10), rgba(76,170,107,.05));}
#toolAccessBtn.isUnlocked,
.paidMeta.active,
.menuBadge.paidMeta.active{color:#e6f7ec;border-color:rgba(98,204,133,.20);background:linear-gradient(180deg, rgba(67,168,101,.11), rgba(67,168,101,.06));box-shadow:inset 0 1px 0 rgba(255,255,255,.025);}
.actionMenu{will-change:transform,opacity;}
.actionMenu button{display:flex;align-items:center;}
#toolSheet .sheet{overflow:hidden;}
#toolSheet .toolAccessRow{position:relative;z-index:2;flex:0 0 auto;margin-bottom:14px;}
#toolSheet .sheetGroup{padding-top:2px;}
#toolSheet .sheetSectionTitle{letter-spacing:.08em;}
#toolSheet .item{min-height:72px;}
#toolSheet .item .itemMeta{margin-left:auto;}
#toolSheet .item[data-open-modal="chatInfoModal"],
#toolSheet .item[data-open-modal="consultModal"],
#toolSheet .item[data-open-modal="mastermindModal"],
#toolSheet .item[data-open-modal="groupModal"],
#toolSheet .item[data-open-modal="legalModal"]{background:rgba(255,255,255,.03);}
.screenTransferMsg{align-items:center;gap:14px;}
.screenTransferThumb{width:92px;height:92px;object-fit:cover;border-radius:18px;}
.screenTransferBody{gap:6px;}
.screenTransferTitle{font-size:16px;line-height:1.2;}
.screenTransferMeta{max-width:42ch;}


/* ===== v7 final mobile/UI polish ===== */
:root{
  --ui-radius-sm: 14px;
  --ui-radius-md: 18px;
  --ui-radius-lg: 26px;
  --ui-border-subtle: rgba(255,255,255,.10);
  --ui-border-strong: rgba(255,255,255,.14);
  --ui-surface-1: rgba(255,255,255,.03);
  --ui-surface-2: rgba(255,255,255,.045);
  --ui-green-fill: linear-gradient(180deg, rgba(61,146,91,.10), rgba(61,146,91,.05));
  --ui-green-border: rgba(98,204,133,.18);
  --ui-green-text: #e8f7ed;
}

.topBtn,
.actionIcon,
.iconBtn,
#menuBtn,
#newChatBtn,
#chatCoffeeBtn,
#accessBtn{
  border-radius: 16px;
  border-color: var(--ui-border-subtle);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.topBtn,
.actionIcon{
  width: 38px;
  height: 38px;
  opacity: .84;
}
.topBtn svg,
.actionIcon svg,
#menuBtn svg,
#newChatBtn svg,
#chatCoffeeBtn svg{
  width: 20px;
  height: 20px;
}
.topBtn:hover,
.actionIcon:hover{opacity:1;}

.btn,
.item,
.fieldInput,
.offerCard,
.moreTile,
.savedChatItem,
.modalCard,
#chatInputWrap,
.chatComposer .composerRow,
.chatComposer .composerMain{
  border-radius: var(--ui-radius-md);
}
.modalCard{ border-color: var(--ui-border-subtle); }

/* calmer and more consistent access badges */
.paidMeta,
.menuBadge.paidMeta,
#toolAccessBtn,
#accessBtn{
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.paidMeta.active,
.menuBadge.paidMeta.active,
#toolAccessBtn.isUnlocked{
  color: var(--ui-green-text);
  border-color: var(--ui-green-border);
  background: var(--ui-green-fill);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
.paidMeta.active::before,
.menuBadge.paidMeta.active::before{
  background: rgba(71,166,104,.16);
  color: #91dfaa;
}
#accessBtn.isUnlocked{
  color:#8fd7a6;
  background: var(--ui-green-fill);
  border-color: rgba(98,204,133,.24);
}
#accessBtn svg{ width:24px; height:24px; }

/* 3-dot menu: a bit more native on mobile */
.actionMenu{
  border-radius: 16px;
  border-color: rgba(255,255,255,.11);
  box-shadow: 0 22px 60px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.04);
}
.actionMenu button{
  min-height: 44px;
  border-radius: 13px;
  font-weight: 600;
}

/* transferred screenshot card in chat */
.screenTransferMsg{
  align-items: center;
  gap: 12px;
}
.screenTransferThumb{
  width: 82px;
  height: 82px;
  border-radius: 16px;
  border-color: rgba(255,255,255,.11);
}
.screenTransferBody{
  min-width: 0;
  gap: 5px;
}
.screenTransferTitle{
  font-size: 16px;
  font-weight: 760;
}
.screenTransferMeta{
  max-width: 34ch;
  color: rgba(255,255,255,.66);
}

/* composer polish */
.chatComposer .composerRow,
.chatComposer .composerMain{
  align-items: center;
}
#plusBtn,
#micBtn,
#sendBtn{
  width: 46px;
  height: 46px;
  border-radius: 16px;
}
#sendBtn{ box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }

/* saved chats - robust mobile layout */
#savedChatsModal .modalCard{
  max-width: min(720px, calc(100vw - 24px));
}
.savedChatsList{
  display: grid;
  gap: 10px;
}
.savedChatItem{
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--ui-border-strong);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.025));
}
.savedChatMeta{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.savedChatTitle{
  min-width: 0;
  max-width: 100%;
  font-size: 14px;
  line-height: 1.35;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.savedChatDate{
  font-size: 12px;
  line-height: 1.25;
  color: rgba(245,245,245,.64);
}
.savedChatActions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}
.savedChatActions .btn{
  min-width: 84px;
  padding: 9px 12px;
  font-size: 13px;
  white-space: nowrap;
}

/* mobile-friendly stack for long saved chat names */
@media (max-width: 560px){
  .savedChatItem{
    grid-template-columns: minmax(0,1fr);
    align-items: stretch;
  }
  .savedChatActions{
    width: 100%;
    justify-content: flex-start;
    padding-top: 2px;
  }
  .savedChatActions .btn{
    flex: 0 0 auto;
    min-width: 96px;
  }
}

/* menu sheet hierarchy and info buttons */
#menuSheet .pageCard.menuCard{
  gap: 14px;
}
#menuSheet .menuSectionLabel{
  margin: 10px 0 8px;
  color: rgba(245,245,245,.64);
  letter-spacing: .12em;
}
#menuSheet .menuGrid{ gap: 12px; }
#menuSheet .btn.ghost{
  min-height: 56px;
  justify-content: flex-start;
  background: rgba(255,255,255,.025);
}

/* tighten helper copy a bit */
.toolAccessText,
#toolSheet .toolAccessCopy,
#toolSheet .toolAccessSub,
#toolSheet .toolAccessDesc{
  line-height: 1.42;
  color: rgba(245,245,245,.74);
}

.savedChatActions .btn:disabled{opacity:.72;}
#savedChatsGoChat{align-self:flex-start;}


/* --- Access status button on home --- */
#accessBtn{display:none !important;}
.accessStatusBtn{
  position:fixed;
  top:calc(env(safe-area-inset-top) + 78px);
  right:16px;
  z-index:35;
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-height:52px;
  padding:10px 14px 10px 12px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.025)),
    rgba(12,12,15,.76);
  color:rgba(255,255,255,.97);
  box-shadow:
    0 16px 34px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter:blur(16px) saturate(125%);
  -webkit-backdrop-filter:blur(16px) saturate(125%);
  text-align:left;
  overflow:hidden;
  isolation:isolate;
}
.accessStatusBtn::before{
  content:'';
  position:absolute;
  inset:-1px;
  border-radius:inherit;
  padding:1px;
  background:linear-gradient(115deg, rgba(255,255,255,0), rgba(241,205,118,.52), rgba(255,255,255,0));
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
          mask-composite:exclude;
  animation:accessBorderShimmer 4.8s linear infinite;
  opacity:.9;
  pointer-events:none;
}
.accessStatusBtn::after{
  content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(120px 50px at 100% 0%, rgba(241,205,118,.10), transparent 60%);
  pointer-events:none;
  z-index:-1;
}
.accessStatusBtn__iconWrap{
  width:30px;
  height:30px;
  flex:0 0 30px;
  border-radius:11px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.accessStatusBtn__icon{
  width:16px;
  height:16px;
  position:relative;
  display:block;
}
.accessStatusBtn__icon::before,
.accessStatusBtn__icon::after{
  content:'';
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  box-sizing:border-box;
}
.accessStatusBtn__icon::before{
  width:12px;
  height:8px;
  bottom:1px;
  border:1.8px solid currentColor;
  border-radius:3px;
}
.accessStatusBtn__icon::after{
  width:7px;
  height:6px;
  top:0;
  border:1.8px solid currentColor;
  border-bottom:none;
  border-radius:7px 7px 0 0;
}
.accessStatusBtn__content{
  display:flex;
  flex-direction:column;
  min-width:0;
  gap:2px;
}
.accessStatusBtn__title{
  font-size:13px;
  font-weight:760;
  letter-spacing:.01em;
  line-height:1.05;
  white-space:nowrap;
}
.accessStatusBtn__sub{
  font-size:11px;
  line-height:1.1;
  color:rgba(255,255,255,.68);
  white-space:nowrap;
}
.accessStatusBtn[data-state="active"]{
  background:
    linear-gradient(180deg, rgba(104,218,150,.08), rgba(255,255,255,.02)),
    rgba(12,20,15,.80);
  border-color:rgba(104,218,150,.18);
}
.accessStatusBtn[data-state="active"]::before{
  background:linear-gradient(115deg, rgba(255,255,255,0), rgba(126,245,180,.46), rgba(255,255,255,0));
  opacity:.82;
}
.accessStatusBtn[data-state="active"]::after{
  background:radial-gradient(120px 50px at 100% 0%, rgba(126,245,180,.14), transparent 60%);
}
.accessStatusBtn[data-state="active"] .accessStatusBtn__iconWrap{
  background:rgba(111,235,168,.10);
  border-color:rgba(111,235,168,.18);
}
.accessStatusBtn[data-state="active"] .accessStatusBtn__icon::before,
.accessStatusBtn[data-state="active"] .accessStatusBtn__icon::after{
  border-color:rgba(196,255,220,.98);
}
.accessStatusBtn[data-state="active"] .accessStatusBtn__sub{
  color:rgba(203,255,225,.74);
}
@keyframes accessBorderShimmer{
  0%{transform:translateX(-26%);}
  100%{transform:translateX(26%);}
}
@media (max-width:420px){
  .accessStatusBtn{
    top:calc(env(safe-area-inset-top) + 74px);
    right:12px;
    min-height:50px;
    padding:9px 12px 9px 11px;
  }
  .accessStatusBtn__title{font-size:12px;}
  .accessStatusBtn__sub{font-size:10px;}
}
@media (min-width:740px){
  .accessStatusBtn{top:94px;right:20px;}
}
.toast.show{pointer-events:auto;}
.toast__action{pointer-events:auto;touch-action:manipulation;}



/* Cleanup v12 */
.freeMeta{display:none !important;}
.accessStatusBtn{top:calc(env(safe-area-inset-top) + 88px);right:16px;min-height:44px;padding:8px 12px 8px 10px;border-radius:16px;gap:10px;max-width:min(78vw,320px);}
.accessStatusBtn__iconWrap{width:28px;height:28px;flex-basis:28px;border-radius:10px;}
.accessStatusBtn__title{font-size:12.5px;font-weight:780;}
.accessStatusBtn__sub{font-size:10.5px;line-height:1.12;}
.accessStatusBtn::before{animation:accessBorderShimmer 5.2s linear infinite;opacity:.72;}
.accessStatusBtn[data-state="active"]{background:linear-gradient(180deg, rgba(71,176,118,.07), rgba(255,255,255,.02)), rgba(12,20,15,.72);}
@media (max-width:420px){.accessStatusBtn{top:calc(env(safe-area-inset-top) + 82px);right:12px;min-height:42px;padding:8px 11px 8px 10px;max-width:calc(100vw - 24px);} .accessStatusBtn__title{font-size:12px;} .accessStatusBtn__sub{font-size:10px;}}
.toolAccessRow{align-items:center;}
#toolSheet .paidMeta.active{background:rgba(75,171,110,.14);border-color:rgba(75,171,110,.28);color:#c8ffd8;}
#toolSheet .paidMeta{font-size:11px;}
#toolSheet .toolAccessSub{max-width:34ch;}
#toolSheet .miniBtn{min-width:154px;}
.premiumCodeStatus{line-height:1.45;}
.supportModal__lead,.supportModal__note,.supportModal__micro{line-height:1.45;}


/* --- Hero examples modal entry --- */
.heroExamplesWrap--modal{
  width:auto;
  margin:12px auto 0;
}
.heroExamplesModalBtn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:38px;
  padding:0 15px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  color:rgba(245,245,245,.88);
  font-size:12.5px;
  font-weight:620;
  letter-spacing:.01em;
  box-shadow:0 12px 32px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter:blur(16px) saturate(120%);
  -webkit-backdrop-filter:blur(16px) saturate(120%);
  overflow:hidden;
}
.heroExamplesModalBtn::before{
  content:'';
  position:absolute;
  inset:-1px;
  border-radius:inherit;
  padding:1px;
  background:linear-gradient(120deg, rgba(196,154,92,0), rgba(214,178,110,.65), rgba(196,154,92,0));
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
          mask-composite:exclude;
  animation:accessBorderShimmer 6.4s linear infinite;
  opacity:.9;
  pointer-events:none;
}
.heroExamplesModalBtn:hover{background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));}
.heroExamplesModalBtn:active{transform:scale(.985);}

.exampleModalCard{max-width:min(760px, calc(100vw - 22px));}
.exampleModalBody{display:flex;flex-direction:column;gap:18px;}
.exampleIntro{margin:0;color:rgba(245,245,245,.74);line-height:1.6;}
.exampleStack{display:grid;gap:12px;}
.exampleTalkCard{
  border-radius:22px;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  padding:16px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.exampleTalkCard__eyebrow{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:rgba(245,245,245,.44);margin-bottom:8px;}
.exampleTalkCard h3{margin:0 0 10px;font-size:17px;line-height:1.28;}
.exampleBubble{
  border-radius:18px;
  padding:14px 15px;
  background:rgba(8,10,12,.46);
  border:1px solid rgba(255,255,255,.08);
  color:rgba(245,245,245,.82);
  line-height:1.68;
}
.exampleTalkCard--gated{position:relative;overflow:hidden;}
.exampleBubble--gated{position:relative;max-height:206px;overflow:hidden;}
.exampleBubble--gated::after{
  content:'';position:absolute;left:0;right:0;bottom:0;height:96px;
  background:linear-gradient(to bottom, rgba(8,10,12,0), rgba(8,10,12,.84) 68%, rgba(8,10,12,.98));
}
.exampleGate{margin-top:10px;font-size:12.5px;color:rgba(245,245,245,.58);}

.exampleFlow{
  border-radius:22px;
  padding:15px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
}
.exampleFlow__header{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:rgba(245,245,245,.46);margin-bottom:12px;}
.exampleFlow__steps{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;}
.exampleStep{border-radius:18px;background:rgba(8,10,12,.42);border:1px solid rgba(255,255,255,.07);padding:13px;display:flex;flex-direction:column;gap:6px;}
.exampleStep span{width:24px;height:24px;border-radius:999px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.14);color:rgba(245,245,245,.82);font-size:12px;}
.exampleStep strong{font-size:14px;line-height:1.35;}
.exampleStep em{font-style:normal;color:rgba(245,245,245,.62);font-size:12.5px;line-height:1.45;}

.examplePaths{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;}
.examplePathCard{border-radius:22px;border:1px solid rgba(255,255,255,.10);background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));padding:16px;display:flex;flex-direction:column;gap:10px;}
.examplePathCard--premium{border-color:rgba(183,154,90,.26);background:linear-gradient(180deg, rgba(183,154,90,.11), rgba(255,255,255,.025));}
.examplePathCard__label{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:rgba(245,245,245,.46);}
.examplePathCard h4{margin:0;font-size:17px;line-height:1.28;}
.examplePathCard p{margin:0;color:rgba(245,245,245,.74);line-height:1.58;}
.examplePathBtn{width:100%;margin-top:2px;}

@media (max-width:720px){
  .exampleFlow__steps,.examplePaths{grid-template-columns:1fr;}
}
@media (max-width:640px){
  .heroExamplesWrap--modal{margin-top:10px;}
  .heroExamplesModalBtn{min-height:36px;padding:0 14px;font-size:12px;}
  .exampleTalkCard,.exampleFlow,.examplePathCard{padding:14px;}
  .exampleTalkCard h3,.examplePathCard h4{font-size:16px;}
  .exampleBubble{font-size:14px;line-height:1.62;}
}



/* v1 safe patch */
#moreOptions{display:none !important;}
.heroExamplesModalBtn.btn-shimmer{position:relative;overflow:hidden;isolation:isolate;}
.heroExamplesModalBtn.btn-shimmer::after{content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1px;background:conic-gradient(from 0deg, rgba(196,154,92,0) 0deg, rgba(196,154,92,0) 312deg, rgba(214,178,110,.48) 334deg, rgba(143,98,47,.30) 346deg, rgba(196,154,92,0) 360deg);-webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;animation:heroBorderOrbit 5.8s linear infinite;pointer-events:none;opacity:.72;}
@keyframes heroBorderOrbit{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}


/* === STEP4: home menu cleanup + safe mobile close button === */
#menuSheet{
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
}
#menuSheet .panel{
  width: min(560px, calc(100vw - 20px)) !important;
  max-width: min(560px, calc(100vw - 20px)) !important;
  margin: 0 auto env(safe-area-inset-bottom, 0px) auto;
}
#menuSheet .menuHeader{
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 8px 4px 12px;
  background: linear-gradient(180deg, rgba(12,12,13,.96) 0%, rgba(12,12,13,.84) 100%);
  grid-template-columns: 44px 1fr 44px;
}
#closeMenu{
  justify-self: start;
  align-self: center;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  padding: 0;
}
#menuSheet .pageCard.menuCard{
  padding: 14px 10px 12px;
}
#menuSheet .menuGrid{
  gap: 10px;
}
#menuSheet .btn,
#menuSheet .btn.ghost{
  min-height: 52px;
}
@media (max-width: 380px){
  #menuSheet{ padding-left: 8px; padding-right: 8px; }
  #menuSheet .panel{
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
  }
  #menuSheet .menuHeader{
    grid-template-columns: 40px 1fr 40px;
    padding: 8px 0 12px;
  }
  #closeMenu{
    width: 38px;
    height: 38px;
    font-size: 26px;
  }
}


/* step21 premium conversion polish */
.heroHelper{font-size:13px;line-height:1.35;opacity:.58;max-width:420px;margin:0 auto 14px;letter-spacing:.01em;}
.search{max-width:620px;background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.045));border:1px solid rgba(255,255,255,.12);border-radius:24px;box-shadow:0 10px 30px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.04);padding:7px;}
.search input{padding:15px 16px;background:transparent;border:none;}
.search button{width:44px;height:44px;border-radius:16px;background:linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.07));border:1px solid rgba(255,255,255,.10);box-shadow:none;}
.search button:hover{background:linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.09));}
.search:focus-within{box-shadow:0 14px 34px rgba(0,0,0,.2), 0 0 0 1px rgba(255,255,255,.14), inset 0 1px 0 rgba(255,255,255,.05);transform:none;}
.heroExamplesWrap--modal{margin-top:16px;}
.heroExamplesModalBtn{background:rgba(255,255,255,.038);border:1px solid rgba(255,255,255,.09);box-shadow:inset 0 1px 0 rgba(255,255,255,.04);}
.heroExamplesModalBtn::before{display:none!important;}
.heroExamplesModalBtn.btn-shimmer::after{inset:0;border-radius:inherit;padding:1px;background:conic-gradient(from 0deg, rgba(196,154,92,0) 0deg, rgba(196,154,92,0) 318deg, rgba(214,178,110,.35) 338deg, rgba(143,98,47,.22) 350deg, rgba(196,154,92,0) 360deg);opacity:.65;}
.toolBadgePro{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:20px;margin-left:8px;padding:0 7px;border-radius:999px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.09);font-size:10px;font-weight:700;letter-spacing:.08em;vertical-align:middle;opacity:.86;}
.premiumPreviewModal .aboutTop{align-items:flex-start;}
.premiumPreviewKicker{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;opacity:.55;margin-bottom:6px;}
.premiumPreviewLead{margin:0 0 14px;line-height:1.55;opacity:.82;}
.premiumPreviewExample{padding:14px 15px;border-radius:18px;background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.08);margin-bottom:12px;}
.premiumPreviewExample__label{font-size:11px;letter-spacing:.11em;text-transform:uppercase;opacity:.48;margin-bottom:8px;}
.premiumPreviewExample__body{font-size:14px;line-height:1.65;color:rgba(255,255,255,.9);}
.premiumPreviewTrust{padding:14px 15px;margin:12px 0 8px;border-radius:18px;}
.premiumPreviewTrust__title{font-weight:700;margin-bottom:6px;}
.premiumPreviewActions{margin-top:14px;gap:10px;flex-wrap:wrap;justify-content:flex-end;}
.premiumPreviewActions .btn.gold{min-width:220px;}
.premiumPreviewNote{margin-top:10px;text-align:right;}
.exampleBubble.isTyping{position:relative;}
.exampleBubble.isTyping::after{content:"";display:inline-block;width:7px;height:1.1em;vertical-align:-.15em;margin-left:4px;border-radius:2px;background:currentColor;opacity:.7;animation:caretBlink 1s steps(1) infinite;}
@keyframes caretBlink{50%{opacity:0;}}
@media (max-width:768px){
  .heroHelper{margin-bottom:12px;font-size:12px;}
  .search{border-radius:22px;padding:6px;}
  .search input{padding:14px 14px;font-size:15px;}
  .search button{width:42px;height:42px;border-radius:15px;}
  .premiumPreviewActions{justify-content:stretch;}
  .premiumPreviewActions .btn, .premiumPreviewActions a.btn{width:100%;}
  .premiumPreviewNote{text-align:left;}
}

/* step22 premium conversion flow polish */
.itemMeta.paidMeta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  height:22px;
  padding:0 8px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:700;
  color:rgba(255,255,255,.82);
}
.premiumPreviewOffer,
.premiumCodeOffer{
  margin:12px 0;
  padding:16px 16px 14px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.premiumPreviewOffer__price,
.premiumCodeOffer__price{
  font-size:28px;
  line-height:1;
  font-weight:700;
  letter-spacing:-.03em;
  color:#fff;
}
.premiumPreviewOffer__price span,
.premiumCodeOffer__price span{
  font-size:12px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  opacity:.58;
  margin-left:8px;
}
.premiumPreviewOffer__meta,
.premiumCodeOffer__meta{
  margin-top:8px;
  font-size:14px;
  line-height:1.55;
  opacity:.84;
}
.premiumPreviewOffer__chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.premiumPreviewOffer__chips span{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.08);
  font-size:12px;
  opacity:.82;
}
.premiumPreviewActions .btn,
.premiumPreviewActions a.btn{
  min-height:46px;
}
.premiumPreviewActions .btn.gold,
#premiumBuyBtn{
  box-shadow:0 10px 30px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.12);
}
.premiumPreviewTrust,
.premiumCodeOffer + .pageCard{
  background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.028));
  border:1px solid rgba(255,255,255,.08);
}
@media (max-width:768px){
  .premiumPreviewOffer__price,
  .premiumCodeOffer__price{font-size:24px;}
  .premiumPreviewOffer__price span,
  .premiumCodeOffer__price span{display:block;margin:6px 0 0;}
}


/* STEP23 premium polish */
.toolAccessRow{align-items:flex-start;gap:12px;}
#toolAccessBtn{white-space:nowrap;}
#toolSheet .itemMeta.paidMeta,
#menuSheet .menuBadge.paidMeta{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  margin-left:auto;
  min-width:42px;
  min-height:24px;
  padding:0 9px;
  border-radius:999px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#f3d7a2;
  background:linear-gradient(180deg, rgba(198,166,106,.18), rgba(198,166,106,.10));
  border:1px solid rgba(198,166,106,.30);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
#toolSheet .itemMeta.paidMeta::before,
#menuSheet .menuBadge.paidMeta::before{
  content:none !important;
  display:none !important;
}
#toolSheet .itemMeta.paidMeta.active,
#menuSheet .menuBadge.paidMeta.active{
  color:#dff7e6;
  background:linear-gradient(180deg, rgba(67,168,101,.18), rgba(67,168,101,.10));
  border-color:rgba(67,168,101,.30);
}
.premiumPreviewOffer__price,
.premiumCodeOffer__price{font-size:30px;font-weight:700;letter-spacing:-.03em;}
.premiumPreviewOffer__price span,
.premiumCodeOffer__price span{font-size:14px;font-weight:600;opacity:.72;margin-left:4px;}
.premiumPreviewOffer__chips{gap:8px;}
.premiumPreviewOffer__chips .chip{border-color:rgba(255,255,255,.12);background:rgba(255,255,255,.04);}
.premiumPreviewActions .btn.gold,
#premiumBuyBtn{box-shadow:0 10px 28px rgba(198,166,106,.16), inset 0 1px 0 rgba(255,255,255,.08);}
.premiumPreviewActions .btn.gold:hover,
#premiumBuyBtn:hover{transform:translateY(-1px);}
.premiumPreviewNote{opacity:.78;}


/* STEP24 menu + premium consistency polish */
#menuSheet .menuHeader{padding:10px 8px 14px 10px;grid-template-columns:48px 1fr 48px;}
#closeMenu{margin-left:4px;border-radius:14px;}
@media (max-width: 380px){
  #menuSheet .menuHeader{padding:10px 6px 14px 8px;grid-template-columns:44px 1fr 44px;}
  #closeMenu{margin-left:2px;}
}
#toolSheet .toolAccessRow{align-items:center;gap:14px;flex-wrap:wrap;}
#toolSheet .toolAccessCopy{flex:1 1 240px;min-width:0;}
#toolSheet #toolAccessTitle{font-size:14px;font-weight:700;letter-spacing:.01em;}
#toolSheet #toolAccessSub{font-size:12px;line-height:1.45;opacity:.74;max-width:38ch;}
#toolAccessBtn{min-height:40px;padding:0 14px;border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.01em;white-space:nowrap;}
#toolAccessBtn.isUnlocked{background:linear-gradient(180deg, rgba(67,168,101,.18), rgba(67,168,101,.10));border-color:rgba(67,168,101,.34);color:#e9fff0;}
#toolSheet .itemMeta.paidMeta,
#menuSheet .menuBadge.paidMeta{min-width:46px;min-height:25px;padding:0 10px;font-size:10px;font-weight:800;letter-spacing:.08em;opacity:1;}
#toolSheet .itemMeta.paidMeta.active,
#menuSheet .menuBadge.paidMeta.active{color:#dff7e6;}


/* === STEP25: premium header + return flow polish === */
#menuSheet .menuHeader{padding:12px 10px 16px 16px;grid-template-columns:52px 1fr 48px;}
#closeMenu{margin-left:8px;justify-self:start;}
@media (max-width: 380px){#menuSheet .menuHeader{padding:12px 8px 16px 14px;}#closeMenu{margin-left:6px;}}

#toolSheet .toolAccessRow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding:16px 16px 14px;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));box-shadow:inset 0 1px 0 rgba(255,255,255,.04);}
#toolSheet .toolAccessCopy{min-width:0;}
#toolSheet .toolAccessEyebrow{margin-bottom:9px;}
.accessState{display:inline-flex;align-items:center;gap:8px;min-height:28px;padding:0 12px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;border:1px solid rgba(255,255,255,.12);}
.accessState::before{content:"";width:8px;height:8px;border-radius:999px;background:currentColor;box-shadow:0 0 0 4px rgba(255,255,255,.04);}
.accessState--locked{color:#d9bd84;background:rgba(198,166,106,.10);border-color:rgba(198,166,106,.20);}
.accessState--active{color:#b9f4c9;background:rgba(66,168,99,.12);border-color:rgba(66,168,99,.24);}
#toolSheet #toolAccessTitle{font-size:15px;font-weight:760;letter-spacing:-.01em;line-height:1.2;}
#toolSheet #toolAccessSub{margin-top:6px;max-width:42ch;font-size:12px;line-height:1.5;opacity:.78;}
#toolSheet .toolAccessActions{display:flex;flex-direction:column;align-items:flex-end;gap:8px;}
#toolAccessBtn{min-height:44px;padding:0 16px;border-radius:999px;font-size:12px;font-weight:800;letter-spacing:.01em;white-space:nowrap;}
#toolAccessBtn.isUnlocked{background:linear-gradient(180deg, rgba(67,168,101,.20), rgba(67,168,101,.10));border-color:rgba(67,168,101,.32);color:#ecfff2;}
#toolSheet .toolAccessHint{font-size:11px;line-height:1.35;color:rgba(255,255,255,.56);text-align:right;}
#toolSheet .itemMeta.paidMeta,#menuSheet .menuBadge.paidMeta{display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:26px;padding:0 10px;border-radius:999px;font-size:10px;font-weight:800;letter-spacing:.08em;opacity:1;}
#toolSheet .itemMeta.paidMeta::before,#menuSheet .menuBadge.paidMeta::before{display:none;}
#toolSheet .itemMeta.paidMeta.active,#menuSheet .menuBadge.paidMeta.active{color:#dff7e6;background:rgba(66,168,99,.16);border-color:rgba(66,168,99,.28);}
@media (max-width: 640px){#toolSheet .toolAccessRow{grid-template-columns:1fr;gap:12px;}#toolSheet .toolAccessActions{align-items:stretch;}#toolSheet .toolAccessHint{text-align:left;}#toolAccessBtn{width:100%;justify-content:center;}}

.savedChatsIntro{padding:10px 2px 14px;}
.savedChatsIntroTitle{font-size:13px;font-weight:700;color:#f4efe6;margin-bottom:4px;}
.savedChatsIntroText{font-size:12px;line-height:1.45;color:rgba(255,255,255,.68);}
.savedChatActions .btn{min-width:106px;}
