#desk-main.note-dock-open{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,390px);gap:24px;align-items:start}#desk-content{min-width:0}.desk-note-dock{display:none;width:100%;max-width:none;min-width:0;padding:0;inset:auto;margin:0;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.desk-note-dock[open]{display:block;position:sticky;top:96px;max-height:calc(100dvh - 116px);overflow:auto;overscroll-behavior:contain}.note-dock-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-bottom:1px solid var(--line);background:var(--panel);position:sticky;top:0;z-index:2}.note-dock-top p{margin:0;font-size:11px;font-weight:700;letter-spacing:1px;color:var(--accent)}.note-dock-top button{min-width:42px;min-height:42px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--panel);cursor:pointer;font:inherit;font-size:20px}.desk-note-dock .note-editor{padding:20px}.note-editor .panel-head{align-items:flex-start;gap:10px}.note-editor h2{font-size:19px;line-height:1.4;overflow-wrap:anywhere}.note-editor .note-form textarea{min-height:170px;resize:vertical;font-size:15px;line-height:1.65}.note-editor .form-grid{margin-top:18px}.note-editor .note-footer{align-items:flex-start;gap:12px}.note-editor #desk-note-statusline{font-size:11px;line-height:1.5;flex:1}.note-editor #desk-note-length{white-space:nowrap;padding-top:8px}.note-evidence,.note-prompts{border:1px solid var(--line);border-radius:9px;padding:12px;margin:14px 0;background:var(--bg)}.note-evidence summary,.note-prompts summary{cursor:pointer;font-size:12px;font-weight:650;min-height:24px}.note-evidence p{font-size:12px;line-height:1.6;overflow-wrap:anywhere}.note-prompts>div{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.note-prompts button{font-size:11px;min-height:40px}.note-date-shortcuts{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 0}.note-date-shortcuts button{padding:8px 10px;min-height:38px;border-radius:7px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;font-size:11px;cursor:pointer}.note-date-shortcuts button:hover{border-color:var(--accent)}.note-save-actions{display:flex;flex-wrap:wrap;gap:9px;padding-top:14px;border-top:1px solid var(--line);margin-top:20px}.note-save-actions button{min-height:44px}.note-dock-open .research-grid{grid-template-columns:1fr}.note-dock-open .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.note-dock-open .page-heading{flex-wrap:wrap}.note-dock-open .comparison-chart{min-width:0}.compare-note{font-size:10px!important;padding:4px 7px!important;border-radius:6px!important;border:1px solid var(--line)!important;color:var(--accent)!important;min-height:32px}.note-editor :focus-visible,.note-dock-top button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
@media(max-width:1100px){#desk-main.note-dock-open{display:block}.desk-note-dock[open]{position:fixed;inset:0;margin:0;width:100%;height:100dvh;max-height:none;max-width:none;border:0;border-radius:0;padding-bottom:env(safe-area-inset-bottom)}.desk-note-dock::backdrop{background:#08121bd9}.desk-note-dock .note-editor{max-width:680px;margin:0 auto;padding:22px}.note-dock-top{padding:12px 22px}.note-editor .note-form textarea{font-size:16px;min-height:200px}.note-editor .note-form input,.note-editor .note-form select{font-size:16px}.note-date-shortcuts button{min-height:44px}.note-save-actions .primary{flex:1}.note-save-actions button{white-space:normal}}
@media(max-width:430px){.desk-note-dock .note-editor{padding:18px}.note-dock-top{padding:10px 18px}.note-editor .form-grid{grid-template-columns:1fr}.note-editor .panel-head{flex-wrap:wrap}.note-editor .note-form textarea{min-height:180px}}

body.note-dock-modal{overflow:hidden}@media(max-width:1100px){.desk-note-dock .note-save-actions{position:fixed;left:0;right:0;bottom:0;z-index:4;margin:0;padding:12px 18px calc(12px + env(safe-area-inset-bottom));background:var(--panel);box-shadow:0 -6px 20px #0000000a}.desk-note-dock .note-editor{padding-bottom:110px}}
