.cutgpt-funnel {
  max-width: 32rem;
  margin: 2rem auto;
  padding: 0 1.25rem 3rem;
  font-family: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  color: #111;
}
.cutgpt-funnel h1,
.cutgpt-empty h1 {
  font-family: Newsreader, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.85rem;
  margin: 0 0 0.5rem;
}
.cutgpt-lead { color: rgba(7,7,7,0.68); margin: 0 0 1.25rem; }
.cutgpt-lead-tight { margin-bottom: 0.85rem; font-size: 0.95rem; }
.cutgpt-funnel-dots { display: flex; gap: 0.4rem; margin-bottom: 1.25rem; }
.cutgpt-funnel-dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(7,7,7,0.18);
}
.cutgpt-funnel-dots span.is-on { background: #111; }
.cutgpt-choice {
  display: flex; gap: 0.75rem; align-items: center;
  border: 1px solid rgba(7,7,7,0.14);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
  cursor: pointer;
}
.cutgpt-choice-stack { align-items: flex-start; }
.cutgpt-choice-stack input { margin-top: 0.2rem; }
.cutgpt-choice-blurb {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: rgba(7,7,7,0.62);
  font-weight: 400;
}
.cutgpt-settings-block { margin-top: 2rem; }
.cutgpt-field, .cutgpt-funnel textarea, .cutgpt-funnel select, .cutgpt-composer textarea {
  width: 100%;
  border: 1px solid rgba(7,7,7,0.18);
  border-radius: 0.7rem;
  padding: 0.75rem 0.9rem;
  font: inherit;
  margin: 0.4rem 0 0.9rem;
  background: #fff;
}
.cutgpt-btn, .cutgpt-btn-ghost {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
}
.cutgpt-btn { background: #070707; color: #f3eee4; margin-bottom: 0.5rem; }
.cutgpt-btn-ghost { background: transparent; color: #070707; border: 1px solid rgba(7,7,7,0.22); }
.cutgpt-btn:disabled,
.cutgpt-btn-ghost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.cutgpt-alert { background: #f8e1e1; color: #6b1c1c; padding: 0.75rem 1rem; border-radius: 0.6rem; margin-bottom: 1rem; }
.cutgpt-ok { color: #1f5a32; }
.cutgpt-caption { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(7,7,7,0.5); }
.cutgpt-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.cutgpt-chip {
  border: 1px solid rgba(7,7,7,0.16);
  background: #f3eee4;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
}
.cutgpt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.cutgpt-code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
}
.cutgpt-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.cutgpt-stats div {
  background: #f3eee4;
  padding: 1rem;
  border-radius: 0.8rem;
}
.cutgpt-stat-label { display: block; font-size: 0.75rem; color: rgba(7,7,7,0.55); }
.cutgpt-funnel-wait {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(250, 248, 244, 0.88);
}
.cutgpt-funnel-wait[hidden] { display: none !important; }
.cutgpt-funnel-wait-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 18rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(7, 7, 7, 0.1);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(7, 7, 7, 0.08);
  text-align: center;
}
.cutgpt-funnel-wait-card p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(7, 7, 7, 0.72);
}
@media (prefers-reduced-motion: reduce) {
  .cutgpt-funnel-wait-card .spinner-border { animation: none; }
}
.d-none { display: none !important; }

/* --- App chrome: same paper as chat, Rounds shell with CutGPT ink --- */
body:not(:has(.sidebar)) .mobile-menu-toggle {
  display: none !important;
}
body:has(.cutgpt-sidebar) {
  font-family: "IBM Plex Sans", "Helvetica Neue", sans-serif;
}
body:has(.cutgpt-sidebar) #main-content {
  background: #faf8f4;
}
body:has(.cutgpt-chat) #main-content {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body:has(.cutgpt-chat) .main-content-inner {
  padding: 0;
  flex: 1 1 0%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cutgpt-sidebar {
  display: flex;
  flex-direction: column;
  background: #faf8f4;
  border-right: 1px solid rgba(7, 7, 7, 0.08);
  box-shadow: none;
  overflow: hidden;
}
.cutgpt-sidebar .sidebar-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 1.1rem 0.95rem 0.95rem;
  background: #faf8f4;
  border-bottom: 1px solid rgba(7, 7, 7, 0.08);
}
.cutgpt-sidebar .sidebar-brand {
  gap: 0.55rem;
  min-width: 0;
  color: #070707;
  font-family: Newsreader, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.15rem;
}
.cutgpt-sidebar .sidebar-brand:hover {
  color: #070707;
  opacity: 0.72;
}
.cutgpt-history-new {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: #070707;
  color: #f3eee4;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.cutgpt-history-new:hover {
  color: #f3eee4;
  opacity: 0.88;
}
.cutgpt-sidebar .sidebar-content {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.65rem 0.65rem 1.1rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cutgpt-history-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0.15rem 0.2rem 0.75rem;
}
.cutgpt-history-row {
  display: block;
  padding: 0.65rem 0.7rem;
  text-decoration: none;
  color: inherit;
  border-radius: 0.65rem;
  margin-bottom: 0.15rem;
}
.cutgpt-history-row strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cutgpt-history-row span {
  display: block;
  font-size: 0.75rem;
  color: rgba(7, 7, 7, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cutgpt-history-row:hover { background: rgba(7, 7, 7, 0.04); }
.cutgpt-history-row.is-on { background: #f3eee4; }
.cutgpt-history-empty {
  padding: 0.85rem 0.7rem;
  color: rgba(7, 7, 7, 0.55);
  font-size: 0.82rem;
  line-height: 1.45;
}
.cutgpt-history-empty p { margin: 0 0 0.35rem; }
.cutgpt-sidebar .sidebar-section {
  margin-bottom: 0;
}
.cutgpt-sidebar .sidebar-nav-item {
  margin-bottom: 0.15rem;
}
.cutgpt-sidebar .sidebar-nav-link {
  padding: 0.5rem 0.75rem 0.5rem 0.7rem;
  color: rgba(7, 7, 7, 0.72);
  border-radius: 0.65rem;
}
.cutgpt-sidebar .sidebar-nav-link:hover {
  color: #070707;
  background: #f3eee4;
  transform: none;
}
.cutgpt-sidebar .sidebar-nav-link.active {
  color: #070707;
  background: #f3eee4;
  font-weight: 600;
}
.cutgpt-sidebar .sidebar-nav-link.active::before {
  left: 0.3rem;
  width: 2px;
  height: 1rem;
  background: #070707;
  border-radius: 1px;
}
.cutgpt-sidebar .sidebar-nav-icon {
  color: inherit;
  margin-right: 0.6rem;
}
.cutgpt-sidebar .sidebar-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 0.85rem;
  padding-bottom: max(0.15rem, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(7, 7, 7, 0.08);
}
.cutgpt-sidebar .sidebar-footer .sidebar-section {
  margin-bottom: 0.7rem;
}
.cutgpt-sidebar a.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
  background: #f3eee4;
  border: 1px solid rgba(7, 7, 7, 0.08);
  box-shadow: none;
}
.cutgpt-sidebar a.sidebar-user:hover,
.cutgpt-sidebar a.sidebar-user.is-on {
  background: #efe8d8;
  color: inherit;
}
.cutgpt-sidebar .sidebar-user-avatar {
  background: #070707;
  color: #f3eee4;
  box-shadow: none;
}
.cutgpt-sidebar .sidebar-user-email {
  color: rgba(7, 7, 7, 0.62);
}
.cutgpt-sidebar .sidebar-user-gear {
  margin-left: auto;
  font-size: 1rem;
  color: rgba(7, 7, 7, 0.45);
  padding-right: 0.15rem;
}

/* --- Thread: user is a short ink chip; AI is a reading column (no cream card) --- */
.cutgpt-chat {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  font-family: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  color: #111;
  background: #fff;
}
.cutgpt-thread {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  flex: 1 1 0%;
  overflow: hidden;
  background: #fff;
}
.cutgpt-messages {
  flex: 1 1 0%;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overflow-anchor: none;
  padding: 1.5rem 1.25rem 0.5rem;
}
.cutgpt-messages::-webkit-scrollbar {
  width: 6px;
}
.cutgpt-messages::-webkit-scrollbar-thumb {
  background: rgba(7, 7, 7, 0.18);
  border-radius: 99px;
}
.cutgpt-scroll-pad {
  height: 0;
  flex-shrink: 0;
  pointer-events: none;
}
.cutgpt-empty {
  box-sizing: border-box;
  max-width: 36rem;
  width: 100%;
  margin: 0 auto;
  padding: 0 0.15rem;
  text-align: center;
}
.cutgpt-empty h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.cutgpt-empty p {
  color: rgba(7, 7, 7, 0.55);
  margin: 0 0 1.1rem;
  padding: 0 0.2rem;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.cutgpt-chips {
  justify-content: center;
}

.cutgpt-turn {
  width: min(44rem, 100%);
  margin: 0 auto 1.35rem;
  min-width: 0;
}
/* Text chips: inline-block, not a flex item. fit-content inside
   .is-user { display:flex } fills the column on iOS (image-chat regression). */
.cutgpt-turn.is-user {
  display: block;
  text-align: right;
}
.cutgpt-user-bubble {
  display: inline-block;
  box-sizing: border-box;
  text-align: left;
  max-width: 85%;
  padding: 0.7rem 0.95rem;
  border-radius: 1.15rem 1.15rem 0.35rem 1.15rem;
  background: #070707;
  color: #f3eee4;
  font-size: 0.95rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
}
.cutgpt-user-bubble.has-image {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.4rem;
}
.cutgpt-user-bubble.has-image img {
  display: block;
  max-width: 200px;
  max-height: 200px;
  width: auto;
  height: auto;
  border-radius: 0.75rem;
  object-fit: contain;
  background: #1a1a1a;
}
.cutgpt-user-caption {
  display: block;
  margin: 0;
  padding: 0.45rem 0.55rem 0.3rem;
  white-space: pre-wrap;
}
.cutgpt-ai-prose {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  color: #111;
  font-size: 1.02rem;
  line-height: 1.65;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal;
  text-wrap: pretty;
}
.cutgpt-ai-prose > *:first-child { margin-top: 0; }
.cutgpt-ai-prose > *:last-child { margin-bottom: 0; }
.cutgpt-ai-prose p { margin: 0 0 0.85rem; }
.cutgpt-ai-prose p:last-child { margin-bottom: 0; }
.cutgpt-ai-prose h1,
.cutgpt-ai-prose h2,
.cutgpt-ai-prose h3,
.cutgpt-ai-prose h4 {
  font-family: Newsreader, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 1.15rem 0 0.45rem;
}
.cutgpt-ai-prose h1 { font-size: 1.45rem; }
.cutgpt-ai-prose h2 { font-size: 1.25rem; }
.cutgpt-ai-prose h3 { font-size: 1.1rem; }
.cutgpt-ai-prose ul,
.cutgpt-ai-prose ol { margin: 0 0 0.85rem; padding-left: 1.2rem; }
.cutgpt-ai-prose li { margin-bottom: 0.25rem; }
.cutgpt-ai-prose strong { font-weight: 600; }
.cutgpt-ai-prose hr {
  border: 0;
  border-top: 1px solid rgba(7, 7, 7, 0.1);
  margin: 1rem 0;
}
.cutgpt-ai-prose a { color: #070707; font-weight: 500; text-underline-offset: 2px; }
.cutgpt-ai-prose blockquote {
  margin: 0 0 0.85rem;
  padding: 0.15rem 0 0.15rem 0.9rem;
  border-left: 2px solid rgba(7, 7, 7, 0.18);
  color: rgba(7, 7, 7, 0.72);
}
.cutgpt-ai-prose pre {
  margin: 0 0 0.85rem;
  padding: 0.85rem 1rem;
  background: #f3eee4;
  border-radius: 0.7rem;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85rem;
}
.cutgpt-ai-prose code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.88em;
  background: #f3eee4;
  padding: 0.08em 0.32em;
  border-radius: 0.28rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.cutgpt-ai-prose pre code { background: transparent; padding: 0; }
.cutgpt-ai-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
}
.cutgpt-ai-prose th,
.cutgpt-ai-prose td {
  text-align: left;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid rgba(7, 7, 7, 0.1);
  overflow-wrap: anywhere;
}
.cutgpt-msg-actions {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin-top: 0.35rem;
  margin-left: -0.4rem;
}
.cutgpt-copy,
.cutgpt-feedback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: rgba(7, 7, 7, 0.4);
  cursor: pointer;
}
.cutgpt-copy:hover,
.cutgpt-feedback:hover { color: #070707; background: #f3eee4; }
.cutgpt-copy:focus-visible,
.cutgpt-feedback:focus-visible {
  outline: 2px solid #070707;
  outline-offset: 2px;
}
.cutgpt-copy:active,
.cutgpt-feedback:active { transform: scale(0.97); }
.cutgpt-feedback.is-active {
  color: #070707;
  background: #f3eee4;
}

.cutgpt-composer-wrap {
  box-sizing: border-box;
  flex-shrink: 0;
  width: min(44rem, calc(100% - 2rem));
  max-width: 100%;
  margin: 0 auto;
  padding-bottom: 0.65rem;
}
.cutgpt-image-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.5rem;
  padding: 0.55rem 0.7rem;
  background: #fff;
  border: 1px solid rgba(7, 7, 7, 0.14);
  border-radius: 1.1rem;
}
.cutgpt-image-preview[hidden] { display: none; }
.cutgpt-image-preview img {
  width: 3.75rem;
  height: 3.75rem;
  object-fit: cover;
  border-radius: 0.7rem;
  background: #f3eee4;
}
.cutgpt-image-preview-meta p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #070707;
}
.cutgpt-image-clear {
  margin: 0.15rem 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: #6b6560;
  font-size: 0.8rem;
  cursor: pointer;
}
.cutgpt-image-clear:hover { color: #070707; }
.cutgpt-composer {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.55rem 0.45rem 0.45rem;
  align-items: flex-end;
  background: #fff;
  border: 1px solid rgba(7, 7, 7, 0.14);
  border-radius: 1.35rem;
  box-shadow: 0 1px 2px rgba(7, 7, 7, 0.04);
}
.cutgpt-attach {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(7, 7, 7, 0.14);
  border-radius: 50%;
  background: #f3eee4;
  color: #070707;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cutgpt-attach:hover { background: #ebe4d6; }
.cutgpt-attach:disabled { opacity: 0.45; cursor: default; }
.cutgpt-attach:focus-visible {
  outline: 2px solid #070707;
  outline-offset: 2px;
}
.cutgpt-composer:focus-within {
  border-color: rgba(7, 7, 7, 0.32);
  box-shadow: 0 0 0 3px rgba(7, 7, 7, 0.06);
}
.cutgpt-composer textarea {
  flex: 1;
  min-width: 0;
  margin: 0;
  resize: none;
  min-height: 2.75rem;
  max-height: 10rem;
  line-height: 1.45;
  border: 0;
  padding: 0.55rem 0.15rem;
  background: transparent;
}
.cutgpt-composer textarea:focus { outline: none; }
.cutgpt-composer .cutgpt-btn {
  flex: 0 0 auto;
  width: auto;
  padding: 0.7rem 1.2rem;
  margin: 0;
}
.cutgpt-composer .cutgpt-btn:active { transform: scale(0.97); }

.cutgpt-chat.is-start .cutgpt-thread {
  justify-content: center;
  padding: 1.5rem 1.25rem 12vh;
}
.cutgpt-chat.is-start .cutgpt-messages {
  flex: 0 0 auto;
  overflow: visible;
  padding: 0 0 1.25rem;
}
.cutgpt-chat.is-start .cutgpt-composer-wrap {
  margin-bottom: 0;
}
.cutgpt-chat.is-start .cutgpt-wait { display: none !important; }
.cutgpt-chat.is-start .cutgpt-ad-dock { display: none !important; }
.cutgpt-chat.is-start .cutgpt-scroll-pad { display: none; }

.cutgpt-bottom-dock {
  flex: 0 0 auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: min(44rem, calc(100% - 2rem));
  max-width: 100%;
  margin: 0 auto;
}

.cutgpt-ad-dock {
  flex-shrink: 0;
  width: min(44rem, calc(100% - 2rem));
  margin: 0 auto 0.55rem;
  padding: 0.2rem 0.55rem 0.3rem;
  background: #f3eee4;
  border-radius: 0.75rem;
  max-height: 7.25rem;
  overflow: hidden;
}
.cutgpt-ad-dock[hidden] { display: none !important; }
.cutgpt-ad-dock .adsbygoogle {
  display: block;
  width: 100%;
  height: 90px;
  max-height: 90px;
  overflow: hidden;
}
.cutgpt-ad-dock iframe {
  max-height: 90px !important;
}
.cutgpt-ad-label {
  margin: 0 0 0.15rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(7, 7, 7, 0.4);
}

.cutgpt-wait {
  width: min(44rem, 100%);
  margin: 0 auto 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.2rem 0 0.4rem;
  gap: 0.45rem;
}
.cutgpt-wait[hidden] { display: none !important; }
.cutgpt-wait-orb {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3eee4;
  color: #070707;
  font-size: 0.95rem;
  animation: cutgptWait 1.5s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}
.cutgpt-wait-status {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(7, 7, 7, 0.55);
}
@keyframes cutgptWait {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(7, 7, 7, 0.12); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 12px rgba(7, 7, 7, 0.03); }
}

@media (prefers-reduced-motion: reduce) {
  .cutgpt-wait-orb { animation: none; }
}

/* --- Usage + earnings: money board + viral grow column --- */
.cutgpt-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.cutgpt-earn {
  max-width: 58rem;
  margin: 1rem auto 3rem;
  padding: 0 1.15rem;
  font-family: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  color: #070707;
}
.cutgpt-earn-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.cutgpt-earn-kicker {
  margin: 0 0 0.35rem;
  font-family: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(7, 7, 7, 0.45);
}
.cutgpt-earn-title {
  margin: 0;
  font-family: Newsreader, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}
.cutgpt-earn-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(17.5rem, 0.85fr);
  gap: 1rem;
  align-items: start;
}
.cutgpt-earn-money-col,
.cutgpt-earn-grow-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}
.cutgpt-earn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}
.cutgpt-earn-head h2,
.cutgpt-invite-card > h2 {
  margin: 0;
  font-family: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.cutgpt-earn-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(7, 7, 7, 0.4);
  cursor: pointer;
  font: inherit;
  flex: 0 0 auto;
}
.cutgpt-earn-info:hover { color: #070707; }
.cutgpt-earn-info:focus-visible {
  outline: 2px solid #070707;
  outline-offset: 2px;
}

/* Dark money board — screenshot hero for TikTok flex */
.cutgpt-money-board {
  background: #070707;
  color: #f3eee4;
  border-radius: 1.25rem;
  padding: 1.25rem 1.25rem 1.15rem;
  box-shadow:
    0 0 0 1px rgba(7, 7, 7, 0.08),
    0 14px 36px rgba(7, 7, 7, 0.14);
}
.cutgpt-money-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.cutgpt-money-board-head h2 {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 238, 228, 0.55);
}
.cutgpt-money-badge {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(168, 213, 162, 0.16);
  color: #a8d5a2;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cutgpt-money-hero {
  display: flex;
  align-items: flex-start;
  margin: 0 0 0.35rem;
  line-height: 0.95;
}
.cutgpt-money-currency {
  margin-top: 0.35rem;
  margin-right: 0.12rem;
  font-family: Newsreader, "Times New Roman", serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  color: rgba(243, 238, 228, 0.72);
}
.cutgpt-money-amount {
  font-family: Newsreader, "Times New Roman", serif;
  font-size: clamp(2.85rem, 8vw, 4.1rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: #f3eee4;
  background: linear-gradient(180deg, #f3eee4 0%, #c9ddb8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cutgpt-money-tagline {
  margin: 0 0 1.1rem;
  font-size: 0.86rem;
  color: rgba(243, 238, 228, 0.52);
}
.cutgpt-money-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.cutgpt-money-stat {
  padding: 0.65rem 0.7rem;
  border-radius: 0.75rem;
  background: rgba(243, 238, 228, 0.07);
}
.cutgpt-money-stat.is-primary {
  background: rgba(168, 213, 162, 0.14);
}
.cutgpt-money-stat-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 238, 228, 0.48);
}
.cutgpt-money-stat.is-primary .cutgpt-money-stat-label {
  color: rgba(168, 213, 162, 0.85);
}
.cutgpt-money-stat-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.cutgpt-payout-track {
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(243, 238, 228, 0.06);
}
.cutgpt-payout-track-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
}
.cutgpt-payout-track-meta span {
  color: rgba(243, 238, 228, 0.48);
  font-weight: 600;
  font-size: 0.76rem;
}
.cutgpt-payout-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(243, 238, 228, 0.12);
  overflow: hidden;
}
.cutgpt-payout-bar span {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #7cb87c, #a8d5a2);
}
.cutgpt-payout-bar.is-on span { min-width: 6px; }
.cutgpt-money-note {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: rgba(243, 238, 228, 0.48);
  line-height: 1.45;
}
.cutgpt-share-block {
  margin-bottom: 0.85rem;
}
.cutgpt-share-flex {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 999px;
  background: #f3eee4;
  color: #070707;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1), background 120ms cubic-bezier(0.23, 1, 0.32, 1);
}
.cutgpt-share-hint {
  margin: 0.45rem 0 0;
  padding: 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-align: center;
  color: rgba(243, 238, 228, 0.48);
}
.cutgpt-share-flex:hover { background: #fff; }
.cutgpt-share-flex:active { transform: scale(0.98); }
.cutgpt-share-flex:focus-visible {
  outline: 2px solid #a8d5a2;
  outline-offset: 2px;
}

.cutgpt-earn-card {
  background: #f3eee4;
  border-radius: 1.15rem;
  padding: 1.1rem 1.15rem 1.15rem;
}
.cutgpt-grow-card {
  background: #f3eee4;
  border-radius: 1.15rem;
  padding: 1.15rem;
}
.cutgpt-grow-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(7, 7, 7, 0.42);
}
.cutgpt-grow-share { margin-bottom: 1rem; }

.cutgpt-earn-hero {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
}
.cutgpt-earn-amount {
  font-family: Newsreader, "Times New Roman", serif;
  font-size: 2.65rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cutgpt-earn-unit {
  font-size: 0.95rem;
  color: rgba(7, 7, 7, 0.5);
}
.cutgpt-earn-split {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  color: rgba(7, 7, 7, 0.5);
}
.cutgpt-earn-status {
  margin: 0 0 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(7, 7, 7, 0.62);
}
.cutgpt-earn-status.is-ready { color: #070707; }
.cutgpt-earn-pending {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: rgba(7, 7, 7, 0.48);
}
.cutgpt-earn-paypal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 0.8rem;
  background: rgba(243, 238, 228, 0.1);
  color: inherit;
  text-decoration: none;
}
.cutgpt-money-board .cutgpt-earn-paypal:hover { background: rgba(243, 238, 228, 0.14); }
.cutgpt-earn-paypal.is-ready { background: rgba(168, 213, 162, 0.12); }
.cutgpt-earn-paypal-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: rgba(243, 238, 228, 0.92);
  color: #070707;
  flex: 0 0 auto;
}
.cutgpt-earn-paypal-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 0.1rem;
}
.cutgpt-earn-paypal-copy strong {
  font-size: 0.92rem;
}
.cutgpt-earn-paypal-copy span {
  font-size: 0.8rem;
  color: rgba(243, 238, 228, 0.52);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cutgpt-earn-chevron {
  color: rgba(243, 238, 228, 0.35);
  font-size: 0.85rem;
}

.cutgpt-invite-card > h2 { margin-bottom: 0.35rem; }
.cutgpt-invite-tier {
  margin: 0;
  font-family: Newsreader, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.cutgpt-invite-next {
  margin: 0.2rem 0 0.85rem;
  font-size: 0.84rem;
  color: rgba(7, 7, 7, 0.55);
  line-height: 1.4;
}
.cutgpt-invite-progress {
  padding: 0.75rem 0.85rem;
  border-radius: 0.8rem;
  background: rgba(7, 7, 7, 0.05);
  margin-bottom: 0.85rem;
}
.cutgpt-invite-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  font-size: 0.86rem;
}
.cutgpt-invite-progress-meta span {
  color: rgba(7, 7, 7, 0.5);
  font-weight: 600;
  font-size: 0.78rem;
  text-align: right;
}
.cutgpt-invite-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(7, 7, 7, 0.1);
  overflow: hidden;
}
.cutgpt-invite-bar span {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: 999px;
  background: #070707;
}
.cutgpt-invite-bar.is-on span { min-width: 8px; }
.cutgpt-invite-label {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(7, 7, 7, 0.42);
}
.cutgpt-tier-list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0.15rem 0.75rem;
  border-radius: 0.9rem;
  background: rgba(7, 7, 7, 0.05);
}
.cutgpt-tier-list--compact li {
  padding: 0.55rem 0;
}
.cutgpt-tier-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(7, 7, 7, 0.08);
}
.cutgpt-tier-list li:last-child { border-bottom: 0; }
.cutgpt-tier-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(7, 7, 7, 0.08);
  color: rgba(7, 7, 7, 0.35);
  font-size: 0.72rem;
  flex: 0 0 auto;
}
.cutgpt-tier-list li.is-open .cutgpt-tier-dot {
  background: rgba(7, 7, 7, 0.12);
  color: #070707;
}
.cutgpt-tier-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 0.05rem;
}
.cutgpt-tier-copy strong {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(7, 7, 7, 0.62);
}
.cutgpt-tier-list li.is-you .cutgpt-tier-copy strong {
  font-weight: 600;
  color: #070707;
}
.cutgpt-tier-copy span {
  font-size: 0.75rem;
  color: rgba(7, 7, 7, 0.45);
}
.cutgpt-you {
  flex: 0 0 auto;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #070707;
  color: #f3eee4;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.cutgpt-invite-callout {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.8rem;
  background: rgba(7, 7, 7, 0.05);
  font-size: 0.82rem;
  color: rgba(7, 7, 7, 0.58);
  line-height: 1.45;
}
.cutgpt-invite-callout.is-open {
  background: #efe8d8;
  color: #070707;
}
.cutgpt-invite-seats-row {
  margin-bottom: 0.85rem;
}
.cutgpt-invite-seats-copy {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.cutgpt-invite-seats {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0;
}
.cutgpt-invite-seats span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1.5px solid rgba(7, 7, 7, 0.16);
  color: rgba(7, 7, 7, 0.35);
  font-size: 0.85rem;
}
.cutgpt-invite-seats span.is-filled {
  border-color: #070707;
  background: rgba(7, 7, 7, 0.08);
  color: #070707;
}
.cutgpt-invite-fine {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: rgba(7, 7, 7, 0.48);
  line-height: 1.45;
}
.cutgpt-earn .cutgpt-btn { margin-bottom: 0; }
.cutgpt-invite-code {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.cutgpt-invite-code-value {
  margin: 0.15rem 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.cutgpt-invite-code .cutgpt-btn-ghost {
  width: auto;
  margin: 0;
  padding: 0.55rem 0.9rem;
}

.cutgpt-usage-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}
.cutgpt-usage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1.15rem;
}
.cutgpt-usage-tile {
  background: #f3eee4;
  border-radius: 1rem;
  padding: 0.85rem 0.55rem 0.8rem;
  text-align: center;
  min-width: 0;
}
.cutgpt-usage-tile i {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
  color: #070707;
}
.cutgpt-usage-tile strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.cutgpt-usage-tile span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(7, 7, 7, 0.45);
}

@media (max-width: 860px) {
  .cutgpt-earn-layout {
    grid-template-columns: 1fr;
  }
  .cutgpt-money-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cutgpt-money-stats .cutgpt-money-stat:last-child {
    grid-column: 1 / -1;
  }
  .cutgpt-usage-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .cutgpt-money-amount {
    font-size: 2.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cutgpt-share-flex {
    transition: none;
  }
}

.cutgpt-dialog {
  width: min(26.5rem, calc(100vw - 2rem));
  max-height: min(80vh, 36rem);
  padding: 0 1.15rem 1.25rem;
  border: 0;
  border-radius: 1.15rem;
  background: #faf8f4;
  color: #070707;
  box-shadow: 0 0 0 1px rgba(7, 7, 7, 0.08), 0 18px 40px rgba(7, 7, 7, 0.12);
}
.cutgpt-dialog::backdrop { background: rgba(7, 7, 7, 0.4); }
.cutgpt-dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  background: #faf8f4;
  padding: 1rem 0 0.5rem;
}
.cutgpt-dialog-bar h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.cutgpt-dialog .cutgpt-earn-info {
  font-size: 0.88rem;
  font-weight: 600;
  color: #070707;
}

.cutgpt-composer-tools {
  display: flex;
  justify-content: flex-end;
  padding: 0 0.15rem 0.35rem;
}
.cutgpt-import-link {
  border: 0;
  background: transparent;
  color: rgba(7, 7, 7, 0.62);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  padding: 0.15rem 0.2rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.cutgpt-import-link:hover { color: #070707; }
.cutgpt-chip-import {
  border-color: rgba(7, 7, 7, 0.35);
  font-weight: 600;
}
.cutgpt-import-dialog {
  width: min(32rem, calc(100vw - 1.5rem));
  max-height: min(92vh, 44rem);
  overflow: auto;
}
.cutgpt-import-prompt-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: start;
  margin-bottom: 0.85rem;
}
.cutgpt-import-prompt,
.cutgpt-import-paste {
  width: 100%;
  resize: vertical;
  min-height: 5.5rem;
  font-size: 0.88rem;
  line-height: 1.45;
}
.cutgpt-import-paste { min-height: 9rem; margin-bottom: 0.75rem; }
.cutgpt-import-dialog .cutgpt-field { margin-bottom: 0.75rem; }
.cutgpt-import-dialog .cutgpt-caption { display: block; margin: 0.35rem 0 0.35rem; }
.cutgpt-import-error {
  margin: 0 0 0.75rem;
  color: #9b1c1c;
  font-size: 0.88rem;
}
.cutgpt-import-progress {
  text-align: center;
  padding: 1.25rem 0.5rem 0.5rem;
}
.cutgpt-import-orb {
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f3eee4;
  animation: cutgpt-import-pulse 1.4s ease-in-out infinite;
}
.cutgpt-import-status {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
}
.cutgpt-import-stage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}
.cutgpt-import-stage-list li {
  position: relative;
  padding: 0.45rem 0.5rem 0.45rem 1.7rem;
  font-size: 0.9rem;
  color: rgba(7, 7, 7, 0.45);
}
.cutgpt-import-stage-list li::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.7rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(7, 7, 7, 0.18);
}
.cutgpt-import-stage-list li.is-on {
  color: #070707;
  font-weight: 600;
}
.cutgpt-import-stage-list li.is-on::before {
  background: #070707;
  box-shadow: 0 0 0 4px rgba(7, 7, 7, 0.08);
}
.cutgpt-import-stage-list li.is-done {
  color: rgba(7, 7, 7, 0.72);
}
.cutgpt-import-stage-list li.is-done::before {
  background: #2f6b3a;
}
@keyframes cutgpt-import-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .cutgpt-import-orb { animation: none; }
}

.cutgpt-how-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: #f3eee4;
  counter-reset: how;
}
.cutgpt-how-list li {
  display: flex;
  gap: 0.7rem;
  padding: 0.45rem 0;
  font-size: 0.84rem;
  color: rgba(7, 7, 7, 0.62);
  line-height: 1.45;
  counter-increment: how;
}
.cutgpt-how-list li::before {
  content: counter(how);
  flex: 0 0 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(7, 7, 7, 0.1);
  color: #070707;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cutgpt-mobile-bar {
  display: none;
}

@media (max-width: 768px) {
  /*
   * #main-content is position:fixed (layout viewport). iOS overlays the keyboard
   * and may pan visualViewport.offsetTop. Pin the shell to that rectangle:
   * top: --vv-top; height: --vv-height; bottom: auto.
   */
  html:has(.cutgpt-chat),
  body:has(.cutgpt-chat) {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    -webkit-text-size-adjust: 100%;
  }
  body:has(.cutgpt-chat) .d-flex.vh-100 {
    height: 100%;
    max-height: 100%;
    min-height: 0;
  }
  body:has(.cutgpt-chat) #main-content {
    top: var(--vv-top, 0px);
    left: var(--vv-left, 0px) !important;
    width: var(--vv-width, 100%);
    /* svh = small viewport (with browser chrome); JS overrides with vv.height */
    height: var(--vv-height, 100svh);
    max-height: var(--vv-height, 100svh);
    right: auto;
    bottom: auto;
    overflow: hidden;
  }

  body:has(.cutgpt-sidebar) .mobile-menu-toggle {
    display: flex !important;
    top: calc(var(--vv-top, 0px) + max(0.35rem, env(safe-area-inset-top, 0px)));
    left: max(0.4rem, env(safe-area-inset-left, 0px));
    z-index: 1100;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #070707;
  }
  body:has(.cutgpt-sidebar) .mobile-menu-toggle:hover {
    background: #f3eee4;
    transform: none;
    box-shadow: none;
  }

  /*
   * Same visual-viewport pin as #main-content. top/bottom:0 fills the layout
   * viewport on iOS Chrome and clips the account row under the browser chrome;
   * overflow:hidden then blocks scrolling to email.
   */
  body:has(.cutgpt-sidebar) .sidebar.cutgpt-sidebar {
    position: fixed;
    top: var(--vv-top, 0px);
    left: 0;
    right: auto;
    bottom: auto;
    height: var(--vv-height, 100svh);
    max-height: var(--vv-height, 100svh);
    width: min(20rem, 88vw) !important;
    max-width: 20rem;
    padding: 0 !important;
    transform: translateX(-100%);
    transition: transform 0.22s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1000;
    box-shadow: none;
    overflow: hidden;
  }
  body:has(.cutgpt-sidebar) .sidebar.cutgpt-sidebar.show {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(7, 7, 7, 0.14);
  }
  body:has(.cutgpt-sidebar) #main-content {
    left: var(--vv-left, 0px) !important;
  }
  body:has(.cutgpt-sidebar) .sidebar-nav-text,
  body:has(.cutgpt-sidebar) .sidebar-section-title,
  body:has(.cutgpt-sidebar) .sidebar-user-info {
    display: block !important;
  }
  body:has(.cutgpt-sidebar) .cutgpt-history-new {
    display: inline-flex;
  }
  body:has(.cutgpt-sidebar) .sidebar-nav-link {
    justify-content: flex-start;
    padding: 0.5rem 0.75rem 0.5rem 0.7rem;
  }
  body:has(.cutgpt-sidebar) .sidebar-nav-icon {
    margin-right: 0.6rem;
  }
  body:has(.cutgpt-sidebar) .sidebar-user {
    justify-content: flex-start;
    padding: 0.55rem 0.65rem;
  }
  body:has(.cutgpt-sidebar) .sidebar-header {
    padding: 1.1rem 0.95rem 0.95rem;
  }
  body:has(.cutgpt-sidebar) .sidebar-content {
    padding: 0.65rem 0.65rem 1.1rem;
  }

  .cutgpt-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 3.25rem;
    padding: 0 3.25rem;
    border-bottom: 1px solid rgba(7, 7, 7, 0.08);
    background: #fff;
  }
  .cutgpt-mobile-bar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: inherit;
  }
  .cutgpt-mobile-bar-brand img {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 0.35rem;
    flex-shrink: 0;
  }
  .cutgpt-mobile-bar-title {
    margin: 0;
    font-family: Newsreader, "Times New Roman", serif;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    color: #070707;
  }

  .cutgpt-messages {
    flex: 1 1 0%;
    min-height: 0;
    padding: 0.85rem 0.9rem 0.35rem;
  }
  .cutgpt-turn {
    margin-bottom: 1rem;
  }
  .cutgpt-user-bubble {
    max-width: 88%;
    font-size: 0.92rem;
  }
  .cutgpt-ai-prose {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .cutgpt-bottom-dock {
    position: sticky;
    bottom: 0;
    flex: 0 0 auto;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 0.5rem 0.45rem;
    box-sizing: border-box;
    gap: 0.3rem;
    background: #fff;
    z-index: 2;
  }

  .cutgpt-ad-dock {
    width: 100%;
    max-width: none;
    margin: 0;
    height: 3.85rem;
    max-height: 3.85rem;
    padding: 0.15rem 0.4rem 0.2rem;
    border-radius: 0.55rem;
    overflow: hidden;
    flex-shrink: 0;
  }

  .cutgpt-ad-dock .adsbygoogle,
  .cutgpt-ad-dock iframe,
  .cutgpt-ad-dock ins {
    max-height: 50px !important;
    height: 50px !important;
    overflow: hidden !important;
  }

  body.cutgpt-composer-focused .cutgpt-bottom-dock {
    padding-bottom: 0.45rem;
  }

  body:not(.cutgpt-composer-focused) .cutgpt-bottom-dock {
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
  }

  .cutgpt-composer-wrap {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: #fff;
  }

  body.cutgpt-composer-focused .cutgpt-ad-dock {
    display: none !important;
  }

  .cutgpt-composer {
    padding: 0.35rem 0.4rem 0.35rem 0.35rem;
    border-radius: 1.2rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  .cutgpt-attach {
    width: 2.5rem;
    height: 2.5rem;
  }
  .cutgpt-composer textarea {
    min-height: 2.5rem;
    min-width: 0;
    padding: 0.45rem 0.1rem;
    font-size: 16px;
    line-height: 1.35;
  }
  .cutgpt-composer .cutgpt-btn {
    flex: 0 0 auto;
    padding: 0.55rem 0.85rem;
    font-size: 0.95rem;
  }

  .cutgpt-chat.is-start .cutgpt-thread {
    justify-content: flex-start;
    padding: 0.35rem 0.5rem 0;
  }
  .cutgpt-chat.is-start .cutgpt-messages {
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 0 0.35rem;
  }
  body.cutgpt-composer-focused .cutgpt-chat.is-start .cutgpt-messages {
    justify-content: flex-start;
  }
  .cutgpt-empty h1 {
    font-size: 1.55rem;
  }
  .cutgpt-chips {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 0.35rem;
  }
  .cutgpt-chip {
    text-align: left;
    white-space: normal;
    line-height: 1.35;
    border-radius: 0.9rem;
    padding: 0.55rem 0.8rem;
  }
}

@media (min-width: 769px) {
  body:has(.cutgpt-sidebar) .mobile-menu-toggle {
    display: none !important;
  }

  .cutgpt-bottom-dock .cutgpt-composer-wrap {
    order: 1;
  }
  .cutgpt-bottom-dock .cutgpt-ad-dock {
    order: 2;
  }
}

