/* /styles.css */
/* Based on your current file; only changes:
   - add md block styles (titles/job titles/sublists)
   - tighten list spacing a bit more
   - remove redundant light override for composer__input background (uses var(--card2))
*/

:root{
  --bg0:#070a12;
  --bg1:#0b1120;
  --card:rgba(18,24,38,.62);
  --card2:rgba(18,24,38,.40);
  --stroke:rgba(255,255,255,.10);
  --stroke2:rgba(255,255,255,.14);
  --text:#e8eefc;
  --muted:rgba(232,238,252,.65);
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --radius: 22px;
  --radius2: 16px;
  --ease: cubic-bezier(.2,.8,.2,1);
  /* Bubble paddings (used to keep action buttons + code blocks aligned) */
  --bubble-pad-left: 14px;
  --bubble-pad-right: 44px;
  --bubble-pad-top: 12px;
  --bubble-pad-bottom: 16px;
}

[data-theme="light"]{
  --bg0:#f7f7fb;
  --bg1:#eef1ff;
  --card:rgba(255,255,255,.75);
  --card2:rgba(255,255,255,.58);
  --stroke:rgba(0,0,0,.10);
  --stroke2:rgba(0,0,0,.14);
  --text:#101326;
  --muted:rgba(16,19,38,.62);
  --shadow: 0 18px 60px rgba(17,19,33,.18);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 600px at 30% 10%, rgba(119,84,255,.35), transparent 60%),
              radial-gradient(900px 500px at 80% 0%, rgba(0,180,255,.25), transparent 58%),
              linear-gradient(180deg,var(--bg0),var(--bg1));
  overflow-x:hidden;
}

/* Background glaze */
.bg{
  position:fixed; inset:0;
  pointer-events:none;
  background: radial-gradient(1000px 600px at 55% 35%, rgba(255,255,255,.06), transparent 60%);
  opacity:.9;
}

.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);
  border:0;
}

.topbar{
  position:fixed;
  top:14px; right:14px;
  z-index:10;
}

.pill-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:rgba(0,0,0,.10);
  color:var(--text);
  cursor:pointer;
  backdrop-filter: blur(10px);
  transition: transform .2s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
[data-theme="light"] .pill-btn{background:rgba(255,255,255,.65)}
.pill-btn:hover{transform: translateY(-1px); border-color:var(--stroke2)}
.pill-btn__icon{opacity:.8}

.shell{
  width:min(900px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap: 18px;
  padding: 96px 0 44px;
}

.cred{ margin-bottom: 12px; }
.tags{ margin-top: 14px; }

/* =========================
   Chat mode: reclaim space
   ========================= */

.mode-chat .shell{
  /* preferred: 94vw, but bounded */
  width: clamp(920px, 94vw, 2100px);
  justify-content: flex-start;
  padding: 34px 0 18px;
  gap: 10px;
}

.mode-chat .widget{
  /* widget should track the shell width */
  max-width: clamp(900px, 88vw, 1500px);
}

/* =========================
   Mobile + Tablet overrides
   ========================= */
@media (max-width: 960px){
  /* Remove the 920px minimum that breaks mobile/tablet */
  .mode-chat .shell{
    width: calc(100% - 20px);
    padding: 18px 0 12px;
    gap: 10px;
  }
  .mode-chat .widget{
    width: 100%;
    max-width: 100%;
  }
  .mode-chat .widget[data-state="chat"] .widget__inner{
    min-height: min(76svh, 820px);
  }
  .mode-chat .messages{
    min-height: min(54svh, 640px);
  }

  /* Slightly tighter header in chat mode */
  .mode-chat .avatar{ width: 44px; height: 44px; }
  .mode-chat .name{ font-size: clamp(20px, 5.5vw, 28px); }
  .mode-chat .tags{ margin: 6px 0 6px; gap: 8px; }
  .tag{ padding: 6px 10px; font-size: 11px; }
}

@media (max-width: 520px){
  .shell{ width: calc(100% - 18px); padding: 74px 0 18px; }
  .widget__inner{ padding: 14px; }
  .messages{ padding: 10px; }
  /* make bubbles feel less cramped on phones */
  .message.is-assistant .bubble{ max-width: 96%; }
  .message.is-user .bubble{ max-width: 92%; }}

.mode-chat .hero{
  margin-bottom: 1px;
}
.mode-chat .avatar{
  width: 50px;
  height: 50px;
}
.mode-chat .name{
  font-size: clamp(22px, 2.8vw, 34px);
  margin: 8px 0 2px;
}
.mode-chat .tags{
  margin: 6px 0 8px;
}
.mode-chat .footer{
  margin-top: 6px;
}
.mode-chat .footer__line{ margin-top: 10px; }

.hero{
  text-align:center;
  margin-top: 0;
  margin-bottom: 10px;
}
.avatar{
  width:100px; height:100px;
  border-radius:999px;
  border:2px solid rgba(255,255,255,.22);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  object-fit:cover;
}
.name{
  margin: 14px 0 4px;
  font-weight: 650;
  letter-spacing: .01em;
  font-size: clamp(42px, 6vw, 72px);
}
.subtitle{
  margin:0;
  color:var(--muted);
  font-size: 14px;
}

.subnote{
  margin: 10px 0 0;
  color: var(--text);
  opacity: .92;
  font-size: 14px;
  line-height: 1.45;
}

.howitworks{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.cred{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  margin: 10px 0 6px;
  color: var(--muted);
  font-size: 13px;
}
.cred__link{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-bottom: 10px;
}
.cred__link:hover{ opacity: 1; }
.cred__sep{ 
  opacity: .65; 
  margin-bottom: 10px;
}

.tags{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin: 10px 0 14px;
}
.tag{
  padding:7px 12px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.12);
  backdrop-filter: blur(10px);
  font-size: 12px;
  color: var(--muted);
}
[data-theme="light"] .tag{background:rgba(255,255,255,.65)}

.widget{
  min-width: auto;
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow:hidden;
  transition: transform .65s var(--ease);
}

.widget__inner{
  padding: 18px;
  min-height: auto;
  display:flex;
  flex-direction:column;
}

.widget[data-state="chat"] .widget__inner{   /* chat */
  min-height: 560px;
}

.mode-chat .widget[data-state="chat"] .widget__inner{
  min-height: min(70svh, 780px);
}

.lane-panel{
  opacity:1;
  transform: translateY(0);
  transition: opacity .55s var(--ease), transform .55s var(--ease), height .55s var(--ease);
}
.lane-title{
  text-align:center;
  font-weight:650;
  letter-spacing:.12em;
  font-size:12px;
  color:var(--muted);
  margin-top: 2px;
}
.lane-subtitle{
  text-align:center;
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.muted{opacity:.75}

.lane-buttons{
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(2, 280px);
  gap: 14px;
}
@media (max-width:720px){
  .lane-buttons{grid-template-columns:1fr}
}

.lane-btn{
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding: 22px 18px 18px;
  border-radius: 16px;
  border: 2px solid var(--stroke);
  background: rgba(0,0,0,.10);
  color: var(--text);
  cursor:pointer;
  transition: transform .2s var(--ease), border-color .25s var(--ease), background .25s var(--ease), opacity .35s var(--ease);
}
[data-theme="light"] .lane-btn{background:rgba(255,255,255,.62)}
.lane-btn:hover{transform: translateY(-1px); border-color:var(--stroke2)}
.lane-btn__h{
  font-weight:650;
  font-size: 20px;
  line-height: 1.15;
  min-height: 30px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin: 0 0 10px;
}
.lane-btn__p{
  font-size:13px;
  color:var(--muted);
  line-height:1.45;
  max-width: 24ch;
  min-height: 54px;
}

.lane-btn__cta{
  display:inline-block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--text);
  opacity: .85;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.10);
}
[data-theme="light"] .lane-btn__cta{ background: rgba(255,255,255,.65); }

/* Chat panel */
.chat{
  display:none;
  opacity:0;
  transform: translateY(10px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.widget[data-state="chat"] .chat{
  display:block;
  opacity:1;
  transform: translateY(0);
}
/* Let chat content stretch vertically inside widget */
.widget[data-state="chat"] .chat{
  display:flex;
  flex-direction:column;
  flex:1;
}
.widget[data-state="chat"] .lane-panel{
  opacity:0;
  transform: translateY(-8px);
  pointer-events:none;
  height:0;
  overflow:hidden;
  margin:0;
  padding:0;
}
@media (max-width:720px){
  .widget[data-state="landing"] .widget__inner{ padding: 16px; }
}

.chat__top{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  margin-bottom:10px;
}

.chat__top .ghost-btn{
  justify-self:start;
}

.chat__top-spacer{
  justify-self:end;
}

.lane-badge{
  justify-self:center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .04em;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
}
[data-theme="light"] .lane-badge{
  background: rgba(255,255,255,.55);
}

.ghost-btn{
  padding: 6px 12px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.10);
  color: var(--muted);
  cursor:pointer;
  transition: border-color .25s var(--ease), transform .2s var(--ease);
}
[data-theme="light"] .ghost-btn{background:rgba(255,255,255,.62)}
.ghost-btn:hover{border-color:var(--stroke2); transform: translateY(-1px)}

.messages{
  /* default: allow flex sizing */
  height: auto;
  flex: 1;
  min-height: 360px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.12);
  padding: 12px;
  overflow:auto;
  scroll-behavior:smooth;
}
[data-theme="light"] .messages{background:rgba(255,255,255,.55)}

.mode-chat .messages{
  /* grow but keep footer visible */
  min-height: min(46svh, 560px);
}

/* scrollbar */
.messages{
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.16) transparent;
}
[data-theme="light"] .messages{
  scrollbar-color: rgba(0,0,0,.18) transparent;
}
.messages::-webkit-scrollbar{width:8px}
.messages::-webkit-scrollbar-track{background:transparent}
.messages::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background .2s var(--ease);
}
[data-theme="light"] .messages::-webkit-scrollbar-thumb{background:rgba(0,0,0,.14)}
.messages:hover::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18)}
[data-theme="light"] .messages:hover::-webkit-scrollbar-thumb{background:rgba(0,0,0,.20)}
.messages::-webkit-scrollbar-button{width:0;height:0;display:none}

/* -------------------------
   Footer: Legal links
------------------------- */
.footer__legal{
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  font-size: 12px;
  color: var(--muted);
}
.footer__legal-link{
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer__legal-link:hover{
  color: var(--text);
  border-color: rgba(255,255,255,.25);
}
[data-theme="light"] .footer__legal-link:hover{
  border-color: rgba(0,0,0,.25);
}
.footer__legal-sep{
  opacity: .7;
}
.footer__fine--consent{
  margin-top: 8px;
}

/* -------------------------
   Legal pages layout
------------------------- */
.legal-shell{
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 18px 60px;
}
.legal-card{
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.12);
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
  padding: 22px 18px;
}
[data-theme="light"] .legal-card{
  background: rgba(255,255,255,.62);
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
}
.legal-card h1{
  margin: 0 0 6px;
  font-size: 26px;
}
.legal-card .legal-updated{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
}
.legal-card h2{
  margin: 18px 0 8px;
  font-size: 16px;
}
.legal-card p, .legal-card li{
  color: var(--text);
  line-height: 1.6;
  font-size: 13px;
}
.legal-card a{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* Messages */
.message{
  display:flex;
  gap:10px;
  margin: 10px 0;
  animation: popIn .22s var(--ease) both;
}
@keyframes popIn{
  from{opacity:0; transform: translateY(6px)}
  to{opacity:1; transform: translateY(0)}
}
.message.is-user{justify-content:flex-end}
.message.is-assistant{justify-content:flex-start}

/* Reserve space for assistant action buttons (listen + copy) */
.message.is-assistant .bubble{
  --bubble-pad-right: 76px;  /* room for two buttons */
  padding-bottom: 40px;
}

.bubble{
  position:relative;
  max-width: 78%;
  padding: var(--bubble-pad-top) var(--bubble-pad-right) var(--bubble-pad-bottom) var(--bubble-pad-left);
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.16);
  color: var(--text);
  line-height: 1.42;
  font-size: 13px;
  white-space: normal;
}
[data-theme="light"] .bubble{background:rgba(255,255,255,.72)}
.message.is-user .bubble{background: rgba(0,0,0,.22)}
[data-theme="light"] .message.is-user .bubble{background:rgba(255,255,255,.86)}

/* Code blocks: make them feel full-width inside the bubble (easier horizontal scroll) */
.bubble__text pre{
  margin-left: calc(-1 * var(--bubble-pad-left));
  margin-right: calc(-1 * var(--bubble-pad-right));
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  padding-left: var(--bubble-pad-left);
  padding-right: var(--bubble-pad-left);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Ensure code doesn't wrap and stays scrollable */
.bubble__text pre code{ white-space: pre; }

/* Wider assistant bubbles to reduce vertical “cramping” */
.message.is-assistant .bubble{ max-width: 86%; }

/* Mobile/tablet readability + width */
@media (max-width: 720px){
  .message.is-assistant .bubble{
    max-width: 94%;
    font-size: 14px;
    line-height: 1.52;
  }
  .message.is-user .bubble{ max-width: 90%; }
}

.bubble__meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:6px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.bubble__meta .who{
  font-weight:650;
  text-transform: none;
}

/* Markdown content inside chat bubbles */
.bubble__text > :first-child{margin-top:0}
.bubble__text > :last-child{margin-bottom:0}
.bubble__text p{margin:0 0 10px}
.bubble__text ul,
.bubble__text ol{margin:0 0 10px; padding-left: 18px}
.bubble__text li{margin: 4px 0}
.bubble__text h1,
.bubble__text h2,
.bubble__text h3,
.bubble__text h4{margin: 10px 0 8px; line-height:1.2}
.bubble__text h1{font-size: 16px}
.bubble__text h2{font-size: 15px}
.bubble__text h3{font-size: 14px}
.bubble__text h4{font-size: 13px}
.bubble__text a{color: inherit; text-decoration: underline; text-underline-offset: 2px}
.bubble__text code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.16);
}
[data-theme="light"] .bubble__text code{background: rgba(255,255,255,.70)}
.bubble__text pre{
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.16);
  overflow:auto;
}
[data-theme="light"] .bubble__text pre{background: rgba(255,255,255,.70)}
.bubble__text pre code{padding:0; border:0; background: transparent}
.bubble__text blockquote{
  margin: 0 0 10px;
  padding: 6px 10px;
  border-left: 3px solid var(--stroke2);
  color: var(--muted);
}
.bubble__text hr{
  border:0;
  border-top: 1px solid var(--stroke);
  margin: 10px 0;
}
.bubble__text table{
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 10px;
  font-size: 12px;
}
.bubble__text th,
.bubble__text td{
  border: 1px solid var(--stroke);
  padding: 6px 8px;
  vertical-align: top;
}

/* YouTube cards inside markdown bubbles */
.yt-card{
  display:flex;
  gap:10px;
  align-items:stretch;
  border: 1px solid var(--stroke);
  background: var(--card2);
  border-radius: 14px;
  overflow:hidden;
  margin: 8px 0 10px;
}

.yt-thumb{
  position:relative;
  display:block;
  width: 84px;
  flex: 0 0 84px;
  background: rgba(0,0,0,.10);
}

.yt-thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.yt-play{
  position:absolute;
  inset:auto 8px 8px auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 11px;
  border: 1px solid var(--stroke2);
  background: rgba(0,0,0,.25);
  color: var(--text);
}
[data-theme="light"] .yt-play{ background: rgba(255,255,255,.75); }

.yt-meta{
  padding: 8px 10px;
  min-width: 0;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.yt-title{
  font-weight: 650;
  font-size: 12px;
  line-height: 1.25;
  text-decoration: none;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.yt-title:hover{ text-decoration: underline; text-underline-offset: 2px; }

.yt-desc{
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 520px){
  .yt-thumb{ width: 72px; flex-basis:72px; }
  .yt-desc{-webkit-line-clamp: 3;}
}

/* USER bubble: preserve exact whitespace (blank lines + indentation) */
.message.is-user .bubble__text{
  white-space: pre-wrap;
  tab-size: 2;
}

/* listen button */
.listen-btn{
  position:absolute;
  right: 10px;
  bottom: 10px;
  right: 10px;
  top: auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.10);
  color: var(--muted);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: transform .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease);
  opacity:.85;
}
[data-theme="light"] .listen-btn{background:rgba(255,255,255,.62)}
.listen-btn:hover{transform: translateY(-1px); border-color:var(--stroke2); opacity:1}
.listen-btn svg{width:14px;height:14px;fill:currentColor}

/* copy button (paired with listen) */
.copy-btn{
  position:absolute;
  right: 44px;          /* sits just left of listen */
  bottom: 10px;
  top: auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.08);
  color: var(--muted);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: transform .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease);
  opacity:.70;          /* slightly more subtle than listen */
}
[data-theme="light"] .copy-btn{background:rgba(255,255,255,.58)}
.copy-btn:hover{transform: translateY(-1px); border-color:var(--stroke2); opacity:1}
.copy-btn svg{width:14px;height:14px;fill:currentColor}
.copy-btn[data-state="copied"]{opacity:1}

/* typing bubble */
.bubble.typing {
  padding-right: 14px;
  padding-bottom: 12px;
  width: fit-content;
  min-width: 160px;
  animation: outlinePulse 1.3s var(--ease) infinite;
}
@keyframes outlinePulse {
  0% { box-shadow: 0 0 0 rgba(255,255,255,0); border-color: var(--stroke); }
  50% { box-shadow: 0 0 0 1px rgba(255,255,255,.10); border-color: var(--stroke2); }
  100% { box-shadow: 0 0 0 rgba(255,255,255,0); border-color: var(--stroke); }
}
.typing-line{
  display:flex;
  align-items:center;
  gap:6px;
  color: var(--muted);
  font-size: 12px;
}

.eval-inline{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:8px;
}

.eval-pill{
  display:inline-block;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid var(--stroke);
  font-size:11px;
  letter-spacing:.04em;
  line-height:1;
  user-select:none;
}
.eval-pill--pass{
  color: var(--text);
  background: rgba(0,0,0,.10);
}
.eval-pill--fail{
  color: var(--text);
  background: rgba(0,0,0,.18);
  border-color: var(--stroke2);
}
.eval-attempts{
  font-size: 11px;
  opacity: .85;
}

.eval-details{
  margin-top: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.08);
}
[data-theme="light"] .eval-details{ background: rgba(255,255,255,.55); }

.eval-details__title{
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 6px;
  color: var(--muted);
}
.eval-details__list{
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

/* Eval bubble styling (STAGING) */
.message.is-eval { justify-content: flex-start; }

.message.is-eval .bubble {
  --bubble-pad-right: 14px;        /* no listen/copy buttons */
  padding-bottom: 16px;
  border-style: dashed;
  background: rgba(0,0,0,.10);
}

[data-theme="light"] .message.is-eval .bubble {
  background: rgba(255,255,255,.60);
}

.message.is-eval .bubble__meta {
  letter-spacing: .02em;
  text-transform: none;
}

.eval-head { display:flex; align-items:center; gap:10px; }
.eval-fix { margin-top: 6px; opacity: .9; }

.dots{display:inline-flex; gap:3px;}
.dot{
  width:4px;height:4px;border-radius:999px;
  background: var(--muted);
  opacity:.35;
  animation: dotPulse 1.1s infinite var(--ease);
}
.dot:nth-child(2){animation-delay:.12s}
.dot:nth-child(3){animation-delay:.24s}
@keyframes dotPulse{
  0%{opacity:.25; transform: translateY(0)}
  50%{opacity:.75; transform: translateY(-1px)}
  100%{opacity:.25; transform: translateY(0)}
}

/* Follow-up form */
.followup-host{ margin-top: 24px; }

/* Follow-up form */
.followup{
  position: relative;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.10);
  border-radius: 18px;
  overflow: hidden;
}
[data-theme="light"] .followup{ background: rgba(255,255,255,.55); }

.followup__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
}
.followup__head:focus{ outline: none; }
.followup__head-left{ min-width: 0; }
.followup__title{
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
}
.followup__subtitle{
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.followup__toggle{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.10);
  color: var(--text);
  cursor: pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
[data-theme="light"] .followup__toggle{ background: rgba(255,255,255,.70); }
.followup__toggle:hover{ transform: translateY(-1px); border-color: var(--stroke2); }
.followup__toggle svg{
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s var(--ease);
}
.followup.is-collapsed .followup__toggle svg{ transform: rotate(-180deg); }

.followup__body{
  border-top: 1px solid var(--stroke);
  padding: 12px 14px 14px;
  overflow: hidden;
  max-height: 520px;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height .38s var(--ease),
    opacity .22s var(--ease),
    transform .38s var(--ease),
    padding .38s var(--ease);
}
.followup.is-collapsed .followup__body{
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}

.form-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}
@media (max-width: 520px){
  .form-grid{ grid-template-columns: 1fr; }
}

.field{
  display:flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field label{
  font-size: 12px;
  color: var(--muted);
}
.field input,
.field textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--card2);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
  line-height: 1.35;
  font-size: 13px;
}
.field textarea{
  min-height: 110px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder{
  color: var(--muted);
  opacity: .85;
}
.field input:focus,
.field textarea:focus{ border-color: var(--stroke2); }
.field input:disabled,
.field textarea:disabled{
  opacity: .7;
  cursor: not-allowed;
}

.form-actions{
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  margin-top: 12px;
}

.btn{
  height: 36px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.10);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  transition: transform .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease);
}
[data-theme="light"] .btn{ background: rgba(255,255,255,.70); }
.btn:hover{ transform: translateY(-1px); border-color: var(--stroke2); }
.btn:disabled{ opacity: .6; cursor: not-allowed; transform: none; }

.btn.primary{
  border-color: var(--stroke2);
  background: rgba(255,255,255,.08);
}
[data-theme="light"] .btn.primary{ background: rgba(0,0,0,.05); }

.btn.is-loading{ cursor: wait; }
.btn-dots{
  display:inline-flex;
  gap: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.btn-dots span{
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  opacity: .35;
  animation: dotPulse 1.1s infinite var(--ease);
}
.btn-dots span:nth-child(2){ animation-delay: .12s; }
.btn-dots span:nth-child(3){ animation-delay: .24s; }

/* Subtle submitting "thinking" effect */
.followup.is-submitting{
  animation: outlinePulse 1.3s var(--ease) infinite;
}
.followup.is-submitting .followup__body{
  opacity: .88;
}

/* Submitted: keep it calm + clearly locked */
.followup.is-submitted .followup__body{
  opacity: .78;
}
.followup.is-submitted .btn.primary{
  opacity: .75;
  cursor: default;
}

/* Composer */
.composer{
  display:flex;
  gap: 10px;
  align-items:flex-end;
  margin-top: 10px;
}
.composer__input{
  flex:1;
  min-height: 54px;
  max-height: 140px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: var(--card2); /* uses theme var */
  color: var(--text);
  caret-color: var(--text);
  padding: 12px 14px;
  line-height: 1.35;
  outline:none;
  resize: none;
  overflow: auto; /* allow scroll once JS caps height */
}

/* Composer scrollbar: very subtle / near-invisible */
.composer__input{
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.10) transparent;
}
[data-theme="light"] .composer__input{
  scrollbar-color: rgba(0,0,0,.12) transparent;
}
.composer__input::-webkit-scrollbar{width:7px}
.composer__input::-webkit-scrollbar-track{background:transparent}
.composer__input::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
[data-theme="light"] .composer__input::-webkit-scrollbar-thumb{background:rgba(0,0,0,.10)}
.composer__input:hover::-webkit-scrollbar-thumb{background: rgba(255,255,255,.14)}
[data-theme="light"] .composer__input:hover::-webkit-scrollbar-thumb{background:rgba(0,0,0,.16)}
.composer__input::-webkit-scrollbar-button{width:0;height:0;display:none}

.composer__input::placeholder{
  color: var(--muted);
  opacity: .85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.composer__input:focus{ border-color: var(--stroke2); }

.send-btn{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.12);
  color: var(--text);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.send-btn:disabled{
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}
[data-theme="light"] .send-btn{background:rgba(255,255,255,.72)}
.send-btn:hover{transform: translateY(-1px); border-color: var(--stroke2)}
.send-btn svg{
  width:18px;height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Footer */
.footer{
  text-align:center;
  margin-top: 14px;
  color: var(--muted);
}
.footer__line{margin-top: 18px; font-size: 13px}
.footer__links{
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 10px;
  margin: 10px 0 10px;
}
.icon-btn{
  border: none;
  background: transparent;
  width: auto;
  height: auto;
  padding: 6px;
  border-radius: 0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color: var(--muted);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.icon-btn:hover{transform: translateY(-1px); opacity: 1;}
.icon-btn svg{display:block;}
.icon-btn--linkedin{ color: #0A66C2; }
.icon-btn--linkedin svg{ width:20px; height:20px; fill: currentColor; }
.icon-btn--imdb svg{ width:52px; height:20px; display:block; }

.footer__fine{
  font-size: 11px;
  opacity: .9;
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.35;
}
