/* Ask Minnesinger: the side panel (assistant.js) and the finding marks on the score. */
.askpanel { position: fixed; right: 0; bottom: 0; width: 392px; z-index: 55; display: flex; flex-direction: column;
  background: var(--panel); border-left: 1px solid var(--line); box-shadow: -10px 0 30px #1f235022; font-family: var(--ui); }
.askpanel[hidden] { display: none; }
body.ask-open main.workspace { margin-right: 392px; }
.ask-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--panel2); border-bottom: 1px solid var(--line); }
.ask-head img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid var(--line); }
.ask-head h2 { margin: 0; font: 800 16px var(--ui); flex: 1; }
.ask-x { font-size: 20px; line-height: 1; padding: 2px 9px; border-radius: 8px; }
.ask-body { overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 14px; flex: 1; min-height: 0; }
.ask-sec { display: flex; flex-direction: column; gap: 8px; }
.ask-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ask-filters button b { font-weight: 800; margin-left: 2px; }
.ask-filters select { padding: 5px 6px; border-radius: 10px; font: 600 13px var(--ui); max-width: 150px; }
.ask-sum { margin: 0; font-size: 13px; color: var(--muted); }
.ask-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 34vh; overflow-y: auto; }
.ask-f > button { display: flex; gap: 6px; align-items: flex-start; width: 100%; text-align: left; white-space: normal; padding: 6px 8px; border-radius: 8px; font-weight: 600; font-size: 13px; }
.ask-f.on > button { border-color: var(--blue); background: #e3eaff; }
.ask-fbar { flex: none; font-weight: 800; color: var(--muted); min-width: 40px; }
.ask-ftext { flex: 1; }
.ask-why { margin: 2px 4px 4px 22px; font-size: 12.5px; color: var(--muted); }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; background: var(--blue); }
.dot.error { background: #c8391f; }
.dot.warn { background: #d39a2c; }
.ask-state { margin: 0; font-size: 13px; color: var(--muted); }
.ask-state.bad { color: var(--accent2); }
.ask-log { display: flex; flex-direction: column; gap: 8px; max-height: 30vh; overflow-y: auto; }
.ask-msg { font-size: 14px; }
.ask-msg.user { align-self: flex-end; background: #e3eaff; border-radius: 12px 12px 2px 12px; padding: 6px 10px; max-width: 90%; }
.ask-msg.bot { background: var(--panel2); border-radius: 12px 12px 12px 2px; padding: 6px 10px; max-width: 96%; }
.ask-msg.error { color: var(--accent); background: #fdeae5; border-radius: 10px; padding: 6px 10px; }
.ask-msg.mascot { display: flex; gap: 8px; align-items: flex-end; }
.ask-msg.mascot img { flex: none; width: 46px; height: 46px; object-fit: cover; border-radius: 50%; background: #fff; border: 1px solid var(--line); }
.ask-bubble { position: relative; background: #fff7d9; border: 2px solid var(--gold); border-radius: 14px 14px 14px 2px; padding: 8px 12px; font-weight: 600; }
.ask-props { display: flex; flex-direction: column; gap: 8px; }
.ask-all { display: flex; gap: 6px; }
.ask-card { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: #fff; }
.ask-card.stale, .ask-card.rejected { opacity: .65; }
.ask-card.accepted { border-color: #2e8b57; }
.ask-show { border: 0; background: none; box-shadow: none; padding: 0; white-space: normal; text-align: left; font-weight: 800; color: var(--text); }
.ask-card ul { margin: 6px 0; padding-left: 18px; font-size: 13px; }
.ask-act { display: flex; gap: 6px; }
.ask-note { margin: 4px 0; font-size: 13px; color: var(--muted); }
.ask-form { display: flex; flex-direction: column; gap: 6px; }
.ask-form textarea { font: 14px var(--ui); padding: 8px; border-radius: 10px; border: 1px solid var(--line); resize: vertical; color: var(--text); background: #fff; }

/* marks on the bars: only in the editor's own svg, never on paper */
.askmark { cursor: pointer; }
.askmark text { font: 800 9px var(--ui); fill: #fff; pointer-events: none; }
.askmark.on circle { stroke: var(--text); stroke-width: 2; }
.askmark:hover circle { stroke: var(--text); stroke-width: 1.5; }
.askmore { font: 800 10px var(--ui); fill: var(--muted); }
.printpage .askmarks, .pd-sheet .askmarks, body.printing .askmarks { display: none; }
@media print { .askmarks, .askpanel { display: none !important; } body.ask-open main.workspace { margin-right: 0; } }

@media (max-width: 820px) {
  .askpanel { width: 100%; height: 58vh; top: auto !important; border-left: 0; border-top: 2px solid var(--line); box-shadow: 0 -10px 30px #1f235033; }
  body.ask-open main.workspace { margin-right: 0; margin-bottom: 58vh; }
  .ask-list { max-height: 22vh; }
}
