/* The assistant widget.
   Drafting-office world: a white sheet panel with a hairline frame and the soft paper shadow,
   the orange accent for the launch pill, the orb and the send button. */

/* The chat widget. The panel is taken out of the flow, otherwise its height would push the
   launch button up the page even while the panel is closed. */
.nova-chat{position:fixed;right:20px;bottom:20px;z-index:310;display:flex;flex-direction:column;align-items:flex-end;gap:12px;
  transition:opacity .5s var(--ease),transform .5s var(--ease)}
.nova-chat.deferred{opacity:0;transform:translateY(10px);pointer-events:none}
.nc-launch{
  display:inline-flex;align-items:center;gap:10px;height:48px;padding:0 20px 0 16px;border-radius:99px;cursor:pointer;
  background:var(--accent);border:1px solid var(--accent);
  box-shadow:var(--shadow);font-size:14px;font-weight:500;color:#fff;
  transition:transform .35s var(--ease),border-color .35s,background .35s;position:relative;z-index:2}
.nc-launch:hover{transform:translateY(-2px);background:var(--accent-deep);border-color:var(--accent-deep)}
.nc-orb{width:14px;height:14px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fff,var(--accent) 40%,var(--accent-deep))}
.nc-panel{
  position:absolute;bottom:60px;right:0;width:min(390px,calc(100vw - 40px));height:min(560px,72vh);border-radius:14px;overflow:hidden;display:flex;flex-direction:column;
  background:var(--card);border:1px solid var(--line);
  box-shadow:var(--shadow);
  opacity:0;transform:translateY(18px) scale(.96);pointer-events:none;transition:opacity .35s var(--ease),transform .35s var(--ease)}
.nova-chat.open .nc-panel{opacity:1;transform:none;pointer-events:auto}
.nc-head{display:flex;align-items:center;gap:11px;padding:14px 16px;border-bottom:1px solid var(--line)}
.nc-title{display:flex;flex-direction:column;line-height:1.25;flex:1}
.nc-title b{font-size:14px;font-weight:600}
.nc-title span{font-size:11.5px;color:var(--ink-soft)}
.nc-x{width:30px;height:30px;border-radius:50%;background:transparent;border:1px solid var(--line);cursor:pointer;color:var(--ink-soft);font-size:16px;line-height:1}
.nc-x:hover{color:var(--ink);background:var(--paper-2)}
.nc-msgs{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px;scrollbar-width:thin}
.nc-msg{max-width:86%;padding:11px 14px;border-radius:16px;font-size:14px;line-height:1.55;white-space:normal}
.nc-msg.bot{background:var(--paper-2);border:1px solid var(--line);border-bottom-left-radius:5px;align-self:flex-start}
.nc-msg.user{background:rgba(11,107,255,.10);color:var(--ink);border:1px solid rgba(10,84,196,.25);border-bottom-right-radius:5px;align-self:flex-end}
.nc-msg b{font-weight:600}
.nc-typing{display:inline-flex;gap:4px;align-items:center;height:16px}
.nc-typing i{width:6px;height:6px;border-radius:50%;background:var(--ink-soft);animation:bounce 1.1s infinite}
.nc-typing i:nth-child(2){animation-delay:.16s}
.nc-typing i:nth-child(3){animation-delay:.32s}
@keyframes bounce{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-5px);opacity:1}}
.nc-handoff{align-self:flex-start;display:inline-flex;align-items:center;gap:9px;height:42px;padding:0 18px;border-radius:99px;background:var(--accent);color:#fff;font-size:13.5px;font-weight:500;text-decoration:none}
.nc-handoff:hover{background:var(--accent-deep)}
.nc-chips{display:flex;gap:7px;flex-wrap:wrap;padding:0 16px 10px}
.nc-chips button{border:1px solid var(--line);background:var(--card);border-radius:99px;padding:7px 13px;font-size:12.5px;cursor:pointer;color:var(--ink-soft)}
.nc-chips button:hover{border-color:var(--accent);color:var(--ink)}
.nc-form{display:flex;gap:8px;align-items:flex-end;padding:12px 14px;border-top:1px solid var(--line)}
.nc-input{flex:1;background:var(--paper-2);border:1px solid var(--line);border-radius:10px;padding:11px 14px;font-size:14px;resize:none;max-height:120px}
.nc-input:focus{outline:none;border-color:var(--accent);background:var(--card)}
.nc-send{width:40px;height:40px;border-radius:50%;background:var(--accent);color:#fff;cursor:pointer;font-size:16px;line-height:1;display:grid;place-items:center;flex:none;border:1px solid var(--accent)}
.nc-send:hover{background:var(--accent-deep);border-color:var(--accent-deep)}
.nc-send:disabled{opacity:.4}
.nc-foot{text-align:center;color:var(--ink-soft);font-size:10.5px;padding:0 0 10px}
@media(max-width:520px){.nova-chat{right:12px;bottom:12px}.nc-panel{width:calc(100vw - 24px);height:min(520px,76vh)}}
