/* =============================================================================
   Spark Lab Studio (B2B) — scoped styles
   -----------------------------------------------------------------------------
   Reuses the site-wide design tokens from /styles.css (:root vars, .glass,
   .btn, .container, fonts) but adopts a calmer, more professional register for
   a business audience: less neon glow, more whitespace, solid headings.
   All rules are scoped under .studio so nothing here affects the consumer site.
   (Precedent: spark-walk/ already ships its own scoped page styles.)
   ========================================================================== */

.studio {
  --st-accent: var(--brand);      /* #7b7cf6 */
  --st-accent-2: var(--brand2);   /* #00e5ff */
  --st-ink: #f3f6ff;
  --st-muted: var(--muted);
  --st-line: rgba(255, 255, 255, 0.1);
  --st-panel: rgba(255, 255, 255, 0.04);
}

/* Visible keyboard focus everywhere on the Studio pages */
.studio a:focus-visible,
.studio button:focus-visible,
.studio input:focus-visible,
.studio textarea:focus-visible {
  outline: 2px solid var(--st-accent-2);
  outline-offset: 3px;
  border-radius: 8px;
}

.studio .container {
  max-width: 980px;
}

/* --- Eyebrow / kicker ------------------------------------------------------ */
.st-eyebrow {
  display: inline-block;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--st-accent-2);
  margin: 0 0 14px;
}

/* --- Hero ------------------------------------------------------------------ */
.st-hero {
  padding: 64px 20px 28px;
}
.st-hero h1 {
  font-size: clamp(30px, 5.2vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: var(--st-ink);
  max-width: 16ch;
}
.st-hero .st-lead {
  color: #d3dbf2; /* brighter than muted — this is the prominent hero intro */
  font-size: clamp(16px, 2.2vw, 19px);
  max-width: 60ch;
  margin: 16px 0 24px;
}
.st-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Buttons — lean on the shared .btn, add a quieter secondary */
.studio .btn-ghost {
  background: transparent;
  border: 1px solid var(--st-line);
  color: var(--st-ink);
}
.studio .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* --- Section scaffolding --------------------------------------------------- */
.st-section {
  padding: 40px 20px;
}
.st-section > h2 {
  font-size: clamp(22px, 3.4vw, 30px);
  letter-spacing: -0.3px;
  color: var(--st-ink);
}
.st-section > .st-sub {
  color: var(--st-muted);
  max-width: 62ch;
  margin: 8px 0 26px;
}
.st-divider {
  border: 0;
  border-top: 1px solid var(--st-line);
  max-width: 980px;
  margin: 8px auto;
}

/* --- Two offers ------------------------------------------------------------ */
.st-offers {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .st-offers {
    grid-template-columns: 1fr 1fr;
  }
}
.st-offer {
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.st-offer h3 {
  font-size: 20px;
  color: var(--st-ink);
  margin-bottom: 6px;
}
.st-offer .st-offer-tag {
  font-size: 13px;
  color: var(--st-accent-2);
  font-weight: 600;
  margin-bottom: 12px;
}
.st-offer ul {
  list-style: none;
  padding: 0;
  margin: 4px 0 18px;
  display: grid;
  gap: 10px;
}
.st-offer li {
  position: relative;
  padding-left: 26px;
  color: #d8def5;
  font-size: 15px;
}
.st-offer li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--st-accent-2);
  font-weight: 700;
}
.st-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--st-ink);
  margin: 0 0 4px;
}
.st-price .st-from {
  font-size: 13px;
  font-weight: 500;
  color: var(--st-muted);
}
/* Clearly-marked placeholder for prices not yet supplied */
.st-placeholder {
  display: inline-block;
  padding: 1px 8px;
  border: 1px dashed var(--st-accent);
  border-radius: 6px;
  color: #c9cffb;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.st-offer-foot {
  margin-top: auto;
  padding-top: 16px;
}

/* --- How it works (steps) -------------------------------------------------- */
.st-steps {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 760px) {
  .st-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.st-step {
  padding: 22px;
}
.st-step .st-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2));
  color: #0a0c1a;
  font-weight: 800;
  margin-bottom: 12px;
}
.st-step h3 {
  font-size: 17px;
  color: var(--st-ink);
  margin-bottom: 6px;
}
.st-step p {
  color: var(--st-muted);
  font-size: 15px;
  margin: 0;
}

/* --- Why it's worth it (outcomes) ----------------------------------------- */
.st-outcomes {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 680px) {
  .st-outcomes {
    grid-template-columns: 1fr 1fr;
  }
}
.st-outcome {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
}
.st-outcome .st-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--st-accent-2);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}
.st-outcome p {
  margin: 0;
  color: #d8def5;
  font-size: 15px;
}
.st-outcome strong {
  color: var(--st-ink);
}

/* --- Portfolio ------------------------------------------------------------- */
.st-portfolio {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 680px) {
  .st-portfolio {
    grid-template-columns: repeat(2, 1fr);
  }
}
.st-portfolio-card {
  padding: 22px;
}
.st-portfolio-card.is-placeholder {
  border-style: dashed;
  border-color: var(--st-line);
  background: var(--st-panel);
}
.st-portfolio-card h3 {
  font-size: 17px;
  color: var(--st-ink);
}
.st-portfolio-card p {
  color: var(--st-muted);
  font-size: 14px;
  margin: 6px 0 0;
}

/* --- Testimonial (built to hold ONE quote well) --------------------------- */
.st-testimonial {
  position: relative;
  margin: 0 0 18px; /* sits directly above the portfolio grid */
  padding: 32px 30px 26px;
  border: 1px solid var(--st-line);
  border-radius: 18px;
  overflow: hidden;
}
/* Belt-and-braces: keep the `hidden` toggle working even though the rules
   above style the element. Remove `hidden` from the <figure> to reveal it. */
.st-testimonial[hidden] {
  display: none;
}
/* subtle accent edge instead of a thin grey box */
.st-testimonial::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--st-accent), var(--st-accent-2));
}
.st-quote-mark {
  font-family: Orbitron, Inter, sans-serif;
  font-size: 60px;
  line-height: 0.8;
  color: var(--st-accent-2);
  opacity: 0.4;
}
.st-quote {
  margin: 6px 0 0;
  font-size: clamp(20px, 3vw, 27px);
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--st-ink);
  max-width: 36ch;
}
.st-attr {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--st-line);
}
.st-attr-name {
  font-style: normal;
  font-weight: 700;
  color: var(--st-ink);
  font-size: 15px;
}
.st-attr-biz {
  color: var(--st-muted);
  font-size: 14px;
}
.st-attr-link {
  font-size: 14px;
  margin-top: 4px;
}
@media (min-width: 680px) {
  .st-testimonial {
    padding: 40px 38px 30px;
  }
}

/* --- FAQ ------------------------------------------------------------------- */
.st-faq {
  display: grid;
  gap: 12px;
}
.st-faq details {
  padding: 16px 20px;
  border: 1px solid var(--st-line);
  border-radius: 14px;
  background: var(--st-panel);
}
.st-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--st-ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.st-faq summary::-webkit-details-marker {
  display: none;
}
.st-faq summary::after {
  content: "+";
  color: var(--st-accent-2);
  font-weight: 700;
}
.st-faq details[open] summary::after {
  content: "–";
}
.st-faq details p {
  color: var(--st-muted);
  margin: 12px 0 0;
  font-size: 15px;
}

/* --- Contact CTA ----------------------------------------------------------- */
.st-contact {
  text-align: center;
  padding: 40px 24px;
  margin: 16px 20px 0;
}
.st-contact h2 {
  color: var(--st-ink);
  font-size: clamp(22px, 3.4vw, 28px);
}
.st-contact p {
  color: var(--st-muted);
  max-width: 52ch;
  margin: 10px auto 22px;
}

/* =============================================================================
   Assistant demo page + chat widget
   ========================================================================== */
.st-demo-note {
  font-size: 13px;
  color: var(--st-muted);
  border: 1px solid var(--st-line);
  background: var(--st-panel);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 20px;
}

.chat {
  display: flex;
  flex-direction: column;
  height: min(70vh, 560px);
  padding: 0;
  overflow: hidden;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--st-line);
}
.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2));
  color: #0a0c1a;
  font-weight: 800;
}
.chat-head .chat-title {
  font-weight: 700;
  color: var(--st-ink);
  font-size: 15px;
}
.chat-head .chat-status {
  font-size: 12px;
  color: var(--st-muted);
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2));
  color: #0a0c1a;
  border-bottom-right-radius: 4px;
}
.msg.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--st-line);
  color: #e7ecff;
  border-bottom-left-radius: 4px;
}
.msg.error {
  align-self: flex-start;
  background: rgba(255, 90, 90, 0.1);
  border: 1px solid rgba(255, 120, 120, 0.4);
  color: #ffd9d9;
}

/* typing indicator */
.typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--st-muted);
  animation: st-bounce 1.2s infinite ease-in-out;
}
.typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.typing span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes st-bounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* example-question chips */
.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 14px;
}
.chat-chip {
  border: 1px solid var(--st-line);
  background: rgba(255, 255, 255, 0.05);
  color: #cfd6ff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.chat-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* composer */
.chat-form {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--st-line);
}
.chat-form input {
  flex: 1;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--st-line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--st-ink);
  font-size: 15px;
  font-family: inherit;
}
.chat-form input::placeholder {
  color: #8089a8;
}
.chat-send {
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2));
  color: #0a0c1a;
  font-family: inherit;
}
.chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =============================================================================
   AI assistants showcase (pill selector + one demo frame)
   Add an assistant later = one more .st-pill + one more .st-asst-frame panel.
   ========================================================================== */
.st-asst-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.st-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--st-line);
  background: rgba(255, 255, 255, 0.04);
  color: #cfd6ff;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.st-pill:hover {
  background: rgba(255, 255, 255, 0.09);
}
.st-pill.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2));
  color: #0a0c1a;
}
.st-pill-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #aab3d1;
}
.st-pill-badge--live {
  background: rgba(0, 246, 210, 0.16);
  color: var(--cyan);
}
.st-pill.is-active .st-pill-badge,
.st-pill.is-active .st-pill-badge--live {
  background: rgba(0, 0, 0, 0.22);
  color: #0a0c1a;
}

/* The single demo frame — keeps a stable footprint as you switch assistants */
.st-asst-frame:focus-visible {
  outline: 2px solid var(--st-accent-2);
  outline-offset: 4px;
  border-radius: 16px;
}

/* Standalone-page link is now a share action */
.st-asst-share {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--st-muted);
}
.st-asst-share a {
  font-weight: 600;
}
.st-asst-share-note {
  display: block;
  font-size: 13px;
  color: var(--st-muted);
  margin-top: 2px;
}

/* Coming-soon panel — reads as a deliberate "next in the line", not broken */
.st-soon {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 32px;
  border: 1px dashed var(--st-line);
  border-radius: 16px;
  background: var(--st-panel);
}
.st-soon-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--st-line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--st-accent-2);
  margin-bottom: 14px;
}
.st-soon h3 {
  font-size: 20px;
  color: var(--st-ink);
  margin-bottom: 8px;
}
.st-soon p {
  color: var(--st-muted);
  margin: 0 0 16px;
  max-width: 52ch;
}
.st-soon-link {
  font-weight: 600;
}

/* --- Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .studio *,
  .studio *::before,
  .studio *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Small screens --------------------------------------------------------- */
@media (max-width: 480px) {
  .st-hero {
    padding: 44px 16px 20px;
  }
  .st-section {
    padding: 32px 16px;
  }
  .msg {
    max-width: 92%;
  }
}

/* =============================================================================
   Floating enquiry assistant (SparkLab's own — /api/studio-assistant)
   Lives under body.studio, so it inherits :focus-visible + reduced-motion rules.
   ========================================================================== */
.sl-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  color: #0a0c1a;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform .18s ease, box-shadow .18s ease;
}
.sl-fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.48);
}
.sl-fab-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #0a3d2f;
  box-shadow: 0 0 0 0 rgba(10, 61, 47, 0.5);
  animation: sl-pulse 2.2s infinite;
}
@keyframes sl-pulse {
  0% { box-shadow: 0 0 0 0 rgba(10, 12, 26, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(10, 12, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(10, 12, 26, 0); }
}

.sl-panel {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 1000;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--st-line);
  border-radius: 18px;
  background: #0c0e24f7;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  /* hidden until opened */
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.sl-panel.open {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.sl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--st-line);
}
.sl-title { font-weight: 800; color: var(--st-ink); font-size: 15px; }
.sl-sub { font-size: 12px; color: var(--st-muted); }
.sl-close {
  border: 0;
  background: transparent;
  color: var(--st-muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  font-family: inherit;
}
.sl-close:hover { color: var(--st-ink); }

.sl-offline {
  margin: 0;
  padding: 10px 16px;
  font-size: 13px;
  color: #ffe7c2;
  background: rgba(245, 200, 66, 0.1);
  border-bottom: 1px solid var(--st-line);
}

.sl-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sl-msg {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.sl-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #0a0c1a;
  border-bottom-right-radius: 4px;
}
.sl-msg.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--st-line);
  color: #e7ecff;
  border-bottom-left-radius: 4px;
}
.sl-msg.error {
  align-self: flex-start;
  background: rgba(255, 90, 90, 0.1);
  border: 1px solid rgba(255, 120, 120, 0.4);
  color: #ffd9d9;
}

.sl-typing { display: inline-flex; gap: 4px; align-items: center; }
.sl-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--st-muted);
  animation: st-bounce 1.2s infinite ease-in-out;
}
.sl-typing span:nth-child(2) { animation-delay: .15s; }
.sl-typing span:nth-child(3) { animation-delay: .3s; }

.sl-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--st-line);
}
.sl-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--st-line);
  border-radius: 12px;
  padding: 11px 13px;
  color: var(--st-ink);
  font-size: 14.5px;
  font-family: inherit;
}
.sl-input::placeholder { color: #8089a8; }
.sl-send {
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
  color: #0a0c1a;
  font-family: inherit;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}
.sl-send:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 480px) {
  .sl-fab { right: 14px; bottom: 14px; padding: 11px 15px; font-size: 13px; }
  .sl-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 76px;
    height: min(70vh, calc(100vh - 100px));
  }
}

/* =============================================================================
   "Find your treatment" matcher — guided flow (studio showcase + client sites)
   Lives under body.studio, so it inherits :focus-visible + reduced-motion.
   ========================================================================== */
.tm {
  min-height: 360px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}
.tm-progress {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--st-accent-2);
}
.tm-q {
  margin: 0 0 4px;
  font-size: clamp(19px, 2.6vw, 23px);
  color: var(--st-ink);
}
.tm-hint {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--st-muted);
}
.tm-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 4px;
}
.tm-opt {
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--st-line);
  background: rgba(255, 255, 255, 0.04);
  color: #e7ecff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.tm-opt:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
@media (max-width: 420px) {
  .tm-opts { grid-template-columns: 1fr; }
}

.tm-textarea {
  width: 100%;
  resize: vertical;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--st-line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--st-ink);
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 14px;
}
.tm-textarea::placeholder { color: #8089a8; }

.tm-go {
  align-self: flex-start;
  border: 0;
  border-radius: 12px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  color: #0a0c1a;
  font-family: inherit;
  background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2));
}

.tm-back,
.tm-restart {
  align-self: flex-start;
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: var(--st-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}
.tm-back:hover,
.tm-restart:hover { color: var(--st-ink); }

.tm-loading {
  margin-top: 8px;
}

/* Recommendation card */
.tm-result {
  position: relative;
  padding: 24px 24px 26px;
  border: 1px solid var(--st-line);
  border-radius: 16px;
  background: var(--st-panel);
  overflow: hidden;
}
.tm-result::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--st-accent), var(--st-accent-2));
}
.tm-result.is-caution::before {
  background: #f5c842; /* amber edge for the "check first" case */
}
.tm-result-kicker {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--st-accent-2);
}
.tm-result-name {
  margin: 0 0 8px;
  font-size: clamp(21px, 3vw, 26px);
  color: var(--st-ink);
}
.tm-result-reason {
  margin: 0;
  color: #d8def5;
  font-size: 15.5px;
  line-height: 1.5;
}
.tm-caution {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--st-muted);
  line-height: 1.5;
}
.tm-book {
  display: inline-block;
  margin-top: 18px;
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 700;
  color: #0a0c1a;
  text-decoration: none;
  background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2));
}
.tm-book:hover { text-decoration: none; filter: brightness(1.05); }

/* =============================================================================
   Social content generator (private back-office tool: taster + /studio/tools/content)
   Lives under body.studio, so it inherits :focus-visible + reduced-motion.
   ========================================================================== */
.cg {
  padding: 24px;
}
.cg-intro {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--st-muted);
  line-height: 1.5;
}
.cg-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.cg-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: var(--st-muted);
  font-weight: 600;
}
.cg-field select {
  font-family: inherit;
  font-size: 14px;
  color: var(--st-ink);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--st-line);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 150px;
}
.cg-go {
  border: 0;
  border-radius: 12px;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  color: #0a0c1a;
  font-family: inherit;
  background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2));
}
.cg-go:disabled { opacity: .55; cursor: not-allowed; }

.cg-status {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--st-muted);
  min-height: 1.2em;
}
.cg-status.is-error { color: #ffd9d9; }

.cg-results {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
@media (min-width: 760px) {
  .cg-results { grid-template-columns: 1fr 1fr; }
}
.cg-card {
  padding: 18px;
  border: 1px solid var(--st-line);
  border-radius: 14px;
  background: var(--st-panel);
}
.cg-card-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--st-accent-2);
  margin-bottom: 8px;
}
.cg-caption {
  margin: 0;
  color: var(--st-ink);
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.cg-hashtags {
  margin: 10px 0 0;
  color: #9fc7ff;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.cg-photo {
  margin: 10px 0 0;
  color: var(--st-muted);
  font-size: 13.5px;
}
.cg-photo strong { color: #d8def5; }
.cg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.cg-copy {
  border: 1px solid var(--st-line);
  background: rgba(255, 255, 255, 0.05);
  color: #cfd6ff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.cg-copy:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.cg-copy.is-copied {
  background: rgba(0, 246, 210, 0.16);
  color: var(--cyan);
  border-color: transparent;
}

/* "private tool" flag inside the studio taster */
.cg-private-flag {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 200, 66, 0.12);
  border: 1px solid rgba(245, 200, 66, 0.35);
  color: #ffe7c2;
}
