.question-note-trigger[data-has-note="true"]{color:var(--secondary-strong);background:var(--secondary-soft);border-color:var(--secondary)}
.question-note-dialog:not([open]){display:none}
.question-note-dialog[open]{width:min(580px,calc(100% - 32px));max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);overflow:hidden;display:flex;flex-direction:column;box-shadow:0 15px 60px #24344424}
.question-note-dialog::backdrop{background:#18273566}
.question-note-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;border-bottom:1px solid var(--line)}
.question-note-header h2{margin:0;font-size:18px}.question-note-close{min-height:40px;padding:8px 12px}
.question-note-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px 22px 20px}
.question-note-context{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 6px;overflow-wrap:anywhere}
.question-note-private{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 16px}
.question-note-text{display:block;box-sizing:border-box;width:100%;min-height:200px;max-height:45dvh;resize:vertical;padding:14px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font:inherit;font-size:16px;line-height:1.8;overflow-wrap:anywhere}
.question-note-text:focus-visible{outline:2px solid var(--secondary);outline-offset:2px}.question-note-text:disabled{background:var(--bg)}
.question-note-count{display:block;text-align:right;font-size:11px;color:var(--muted);margin-top:7px;font-variant-numeric:tabular-nums}
.question-note-status{font-size:12px;line-height:1.7;min-height:21px;margin:8px 0 0;color:var(--muted)}
.question-note-status[data-state="error"],.question-note-status[data-state="offline"]{color:var(--wrong)}
.question-note-conflict{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.question-note-conflict h3{font-size:13px;margin:0 0 8px}
.question-note-remote{font:inherit;font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto;background:var(--bg);padding:12px;border-radius:8px;margin:0 0 12px}
.question-note-conflict-actions{display:flex;gap:8px;flex-wrap:wrap}.question-note-conflict-actions button{min-height:44px;font-size:12px;padding:10px 12px}
.question-note-footer{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:14px 22px max(14px,env(safe-area-inset-bottom,0px));background:#fff}
.question-note-footer button{min-height:44px}.question-note-clear{color:var(--muted)}
html:has(.question-note-dialog[open]){overflow:hidden}
@media(max-width:740px){.question-note-dialog[open]{position:fixed;inset:auto 0 0;width:100%;max-width:740px;max-height:90dvh;margin:0 auto;border-bottom:0;border-radius:15px 15px 0 0}.question-note-header{padding:14px 16px}.question-note-body{padding:14px 16px 18px}.question-note-text{min-height:180px;max-height:35dvh}.question-note-footer{padding-left:16px;padding-right:16px}.question-note-private{font-size:11px}.question-note-context{font-size:11px}}
