/* composer-pro.css — a clearly visible message box and a professional send button.
   Loaded last. Colours only; nothing here changes layout rules, limits or behaviour. */

/* the bar that holds the message box always stays on screen, above the thread */
.comp{flex:none;position:relative;z-index:6;background:linear-gradient(180deg,rgba(6,7,11,0),rgba(6,7,11,.94) 38%)}

/* message box: lighter surface and a real border, so it reads clearly on the dark page */
.box{
  min-height:56px;align-items:flex-end;gap:6px;padding:8px 8px 8px 10px;border-radius:28px;
  background:linear-gradient(180deg,#171b28,#121521);
  border:1px solid rgba(255,255,255,.2);
  box-shadow:0 18px 44px -22px rgba(0,0,0,.95),0 0 0 1px rgba(139,108,246,.1),0 0 34px -14px rgba(139,108,246,.45),inset 0 1px 0 rgba(255,255,255,.06);
  -webkit-backdrop-filter:none;backdrop-filter:none}
.box:hover{border-color:rgba(255,255,255,.3)}
.box:focus-within{border-color:rgba(139,108,246,.9);box-shadow:0 0 0 4px rgba(139,108,246,.18),0 18px 44px -22px rgba(0,0,0,.95),0 0 34px -10px rgba(139,108,246,.55),inset 0 1px 0 rgba(255,255,255,.06)}

/* typing area */
.box textarea{color:#fff;caret-color:var(--acc);padding:9px 2px}
.box textarea::placeholder{color:#9aa2b8;opacity:1}
.box .plus{color:#cfd3e2;align-self:flex-end}
.box .plus:hover{background:rgba(255,255,255,.08);color:#fff}

/* send button: a round, solid accent button with a crisp arrow */
.box .snd{
  align-self:flex-end;flex:none;width:40px;height:40px;margin:0 0 0 2px;border-radius:50%;
  background:linear-gradient(180deg,#9f87ff 0%,#7a58f2 55%,#6842e6 100%);color:#fff;
  box-shadow:0 8px 18px -8px rgba(122,88,242,.95),inset 0 1px 0 rgba(255,255,255,.38),inset 0 -1px 0 rgba(0,0,0,.2)}
.box .snd:before{border-radius:50%;background:linear-gradient(180deg,rgba(255,255,255,.2),transparent 55%)}
.box .snd svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.box .snd:not(:disabled):hover{filter:brightness(1.1);transform:translateY(-1px);box-shadow:0 12px 22px -8px rgba(122,88,242,1),inset 0 1px 0 rgba(255,255,255,.45),inset 0 -1px 0 rgba(0,0,0,.2)}
.box .snd:not(:disabled):hover svg{transform:translateY(-1px)}
.box .snd:not(:disabled):active{transform:scale(.92);filter:none}
/* nothing typed yet: still clearly a send button, just calm */
.box .snd:disabled{background:rgba(255,255,255,.09);color:rgba(255,255,255,.5);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);cursor:not-allowed}
.box .snd:disabled:before{display:none}
/* while the answer is being written: stop */
.box .snd.stop{background:#fff;color:#0b0c12;box-shadow:0 8px 18px -10px rgba(255,255,255,.6)}
.box .snd.stop svg{fill:currentColor;stroke:currentColor;stroke-width:2;width:16px;height:16px}

.fbar .fnote{color:#8089a0;font-size:11px}

@media(max-width:560px){.box{min-height:54px;padding:6px 6px 6px 8px;border-radius:26px}}
@media(pointer:coarse){.box .snd,.box .plus{width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){.box .snd,.box .snd svg{transition:none}}

/* ---- keyboard: the app follows the visible screen, so the message box sits right on top of the keyboard ---- */
.app{position:fixed;left:0;right:0;top:var(--vt,0px);height:var(--vh,100dvh)}
.comp{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
/* keyboard open: no home-bar gap under the box, and the footnote row gets out of the way */
.kb-open .comp{padding-bottom:8px}
.kb-open .fbar{display:none}
