/* Meridian Volta — assistant widget (uses site tokens) */
.mvc{position:fixed;right:max(16px,env(safe-area-inset-right,0px));bottom:max(16px,env(safe-area-inset-bottom,0px));z-index:50;font-family:var(--font-body)}
.mvc-fab{display:flex;align-items:center;gap:10px;min-height:48px;border:1px solid var(--btn);border-radius:var(--r);padding:12px 18px 12px 14px;background:var(--btn);color:var(--btn-ink);font:600 15px/1 var(--font-body);cursor:pointer;box-shadow:0 8px 24px -10px rgba(0,0,0,.45)}
.mvc-fab svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
.mvc.is-open .mvc-fab{display:none}
.mvc-panel{width:min(400px,calc(100vw - 32px));height:min(600px,calc(100vh - 32px));height:min(600px,calc(100dvh - 32px));display:flex;flex-direction:column;background:var(--surface);color:var(--ink);border:1px solid var(--line-2);border-radius:var(--r);overflow:hidden;box-shadow:0 24px 60px -20px rgba(0,0,0,.45)}
.mvc-panel[hidden]{display:none}
.mvc-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:14px 14px 12px 18px;border-bottom:1px solid var(--line)}
.mvc-head h2{font-size:16px;letter-spacing:0}
.mvc-sub{margin:2px 0 0;font-size:12px;color:var(--ink-3)}
.mvc-x{appearance:none;border:1px solid var(--line-2);background:none;color:var(--ink-2);width:36px;height:36px;border-radius:var(--r);cursor:pointer;display:grid;place-items:center}
.mvc-x svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
.mvc-log{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px}
.mvc-msg{max-width:90%;padding:10px 14px;border-radius:var(--r);font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.mvc-msg p{margin:0 0 6px}.mvc-msg p:last-child{margin:0}.mvc-msg ul{margin:4px 0 6px;padding-left:18px}
.mvc-assistant{align-self:flex-start;background:var(--sunk)}
.mvc-user{align-self:flex-end;background:var(--btn);color:var(--btn-ink)}
.mvc-down{border-left:3px solid var(--volt)}
.mvc-typing::after{content:"…";font-family:var(--font-mono);color:var(--ink-3)}
.mvc-sugg{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 12px}
.mvc-sugg[hidden]{display:none}
.mvc-sugg button{border:1px solid var(--line-2);background:transparent;color:var(--ink);border-radius:var(--r);padding:8px 12px;font:500 14px var(--font-body);cursor:pointer;text-align:left}
.mvc-sugg button:hover{border-color:var(--ink)}
.mvc-form{display:flex;gap:8px;align-items:flex-end;padding:10px 12px;border-top:1px solid var(--line)}
.mvc-form textarea{flex:1;resize:none;min-height:44px;max-height:120px}
.mvc-form button{flex:0 0 44px;height:44px;border:0;border-radius:var(--r);background:var(--btn);color:var(--btn-ink);cursor:pointer;display:grid;place-items:center}
.mvc-form button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mvc-note{margin:0;padding:0 14px 10px;font-size:12px;color:var(--ink-3)}
@media (max-width:480px){.mvc-fab-t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.mvc-fab{padding:12px}}
@media (max-width:760px){
  .mvc{right:12px;bottom:max(12px,env(safe-area-inset-bottom,0px))}
  .mvc-fab{width:52px;height:52px;padding:0;justify-content:center}
  .mvc-fab-t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  body:not(.has-mbar) .mvc{bottom:max(16px,env(safe-area-inset-bottom,0px))}
}
@media (max-width:560px){
  .mvc.is-open{inset:0;right:0;bottom:0}
  .mvc.is-open .mvc-panel{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;border:0;border-radius:0;box-shadow:none}
  .mvc-x{width:44px;height:44px}
  .mvc-form button{flex-basis:48px;height:48px}
  .mvc-form textarea{font-size:16px}
  .mvc-sugg button{min-height:44px}
  body.chat-open{overflow:hidden}
}
body.menu-open .mvc{display:none}

/* paperclip: attach button, file chips, drop target */
.mvc-file{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;pointer-events:none}
.mvc-form .mvc-att{flex:0 0 44px;height:44px;border:1px solid var(--line-2);border-radius:var(--r);background:transparent;color:var(--ink-2);cursor:pointer;display:grid;place-items:center}
.mvc-form .mvc-att:hover{color:var(--ink);border-color:var(--ink)}
.mvc-form .mvc-att svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mvc-files{padding:8px 12px 0;border-top:1px solid var(--line)}
.mvc-files[hidden]{display:none}
.mvc-chips{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px;max-height:156px;overflow-y:auto}
.mvc-chip{display:grid;grid-template-columns:40px minmax(0,1fr) 36px;gap:10px;align-items:center;padding:4px 4px 4px 6px;border:1px solid var(--line-2);border-radius:var(--r);background:var(--sunk)}
.mvc-chip.err{border-color:var(--err)}
.mvc-chip.err .mvc-st{color:var(--err)}
.mvc-chip img,.mvc-ext{width:40px;height:32px;border-radius:4px;object-fit:cover;display:grid;place-items:center;background:var(--surface);font:500 10px var(--font-mono);color:var(--ink-2)}
.mvc-cn{min-width:0;display:flex;flex-direction:column}
.mvc-nm{font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mvc-st{font-size:12px;color:var(--ink-3);overflow-wrap:anywhere;line-height:1.35}
.mvc-chip button{width:36px;height:36px;border:0;border-radius:var(--r);background:none;color:var(--ink-2);cursor:pointer;display:grid;place-items:center}
.mvc-chip button:hover{background:var(--surface);color:var(--ink)}
.mvc-chip button svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2}
.mvc-priv{margin:6px 0 0;font-size:11.5px;line-height:1.4;color:var(--ink-3)}
.mvc-sent{margin:6px 0 0;padding:0;list-style:none;font:12px/1.4 var(--font-mono);opacity:.85}
.mvc-sent li{overflow-wrap:anywhere}
.mvc-note.mvc-warn{color:var(--err)}
.mvc-panel{position:relative}
.mvc-panel.mvc-drag::after{content:attr(data-drop);position:absolute;inset:8px;display:grid;place-items:center;border:2px dashed var(--accent);border-radius:var(--r);background:color-mix(in srgb,var(--surface) 88%,transparent);color:var(--ink);font-weight:600;pointer-events:none}
@media (max-width:560px){.mvc-form .mvc-att{flex-basis:48px;height:48px}.mvc-chip{grid-template-columns:40px minmax(0,1fr) 44px}.mvc-chip button{width:44px;height:44px}}
