/* Wingmate, the "Ask Wingmate" help assistant. The one copy to edit is shared/web/wingmate.css; tools/sync_shared.py
   copies it into each app's dist/. Uses the apps' own color variables, so it follows light and dark. */
.wm{position:fixed;right:16px;bottom:16px;z-index:50;width:380px;max-width:calc(100vw - 32px);max-height:min(620px,calc(100vh - 32px));
  display:flex;flex-direction:column;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:0 10px 30px rgba(0,0,0,.22)}
.wm-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;padding:12px 14px 8px;border-bottom:1px solid var(--line)}
.wm-head h2{font-size:1.05rem;margin:0}
.wm-head p{margin:0}
.wm-log{flex:1 1 auto;min-height:120px;overflow-y:auto;padding:12px 14px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}
.wm-msg{flex:0 0 auto;border-radius:10px;padding:9px 12px;max-width:92%;overflow-wrap:anywhere}
.wm-msg p,.wm-msg ol,.wm-msg ul{margin:0 0 .5em}
.wm-msg > :last-child{margin-bottom:0}
.wm-msg ol,.wm-msg ul{padding-left:1.3em}
.wm-msg li{margin-bottom:.3em}
.wm-me{align-self:flex-end;background:var(--brand-soft)}
.wm-me p{white-space:pre-wrap}
.wm-them{align-self:flex-start;background:var(--bg);border:1px solid var(--line)}
.wm-bad{border-color:var(--bad)}
.wm-note{align-self:flex-start;margin:0;color:var(--muted);font-size:.875rem}
.wm-guides{border-top:1px solid var(--line);padding-top:.5em;margin-top:.5em!important}
.wm-fb{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin-top:.4em}
.wm-fb button{min-height:30px;padding:2px 10px}
.wm-report{margin-top:.2em}
.wm-report > button.wm-report-open{min-height:30px;padding:2px 0;font-weight:400;font-size:.8rem;color:var(--muted);text-decoration:underline}
.wm-report p{margin:.3em 0}
.wm-report label{margin-top:.4em}
.wm-report input{min-height:36px;padding:6px 9px}
.wm-report .status:empty{display:none}
.wm-form{padding:10px 14px 4px;border-top:1px solid var(--line)}
.wm-form textarea{min-height:56px;max-height:140px;resize:none}
.wm-row{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:6px}
.wm-foot{margin:0;padding:4px 14px 12px}
@media (max-width:560px){
  .wm{right:0;left:0;bottom:0;width:auto;max-width:none;max-height:85vh;border-radius:var(--radius) var(--radius) 0 0;border-bottom:0}
}
@media print{.wm,#wingmate-open{display:none!important}}
