/* Technologist notes: 70/30 project workspace and plain-text editor. */
.project-workspace.has-technologist-notes{grid-template-columns:minmax(0,7fr) minmax(280px,3fr)}
.project-notes-sidebar{display:grid;gap:18px;min-width:0}
.project-notes-sidebar .actions-panel{display:grid;gap:12px;min-width:0;grid-template-columns:minmax(0,1fr);margin-top:0}
.technologist-notes{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px;min-width:0}
.technologist-notes-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.technologist-notes-heading h2{margin:0;font-size:17px;line-height:1.25}
.technologist-notes-heading small{display:block;margin-top:5px;color:var(--muted);font-size:12px;line-height:1.45}
.note-revision{flex:0 0 auto;background:#edf2f8;color:#52647a;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:700}
.note-form{display:grid;gap:10px;min-width:0}
.note-label{display:grid;gap:7px;font-weight:700;font-size:13px}
.note-editor{min-height:250px;resize:vertical;font:inherit;font-weight:400;line-height:1.5;white-space:pre-wrap;tab-size:4;border:1px solid #8b95a5;border-radius:8px;padding:12px;background:#fff}
.note-editor:focus-visible{outline:3px solid rgba(45,113,199,.35);outline-offset:2px}
.note-form-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.note-status{font-size:12px;line-height:1.4;color:var(--muted)}
.note-status[data-state=dirty]{color:#8a5a00;font-weight:700}
.note-status[data-state=error]{color:#a12d24;font-weight:700}
.note-status[data-state=saved]{color:#18734f;font-weight:700}
.note-status[data-state=conflict]{color:#8a2d24;font-weight:700}
.note-status[data-state=saving]{color:#52647a;font-weight:700}
.note-status[data-state=closed]{color:#8a2d24;font-weight:700}
.note-format-hint{margin:0;color:var(--muted);font-size:11px;line-height:1.45}
.note-conflict{border:1px solid #e2b8b2;border-radius:8px;padding:10px 12px;background:#fff7f5;min-width:0}
.note-conflict summary{cursor:pointer;color:#8a2d24;font-size:12px;font-weight:700}
.note-conflict-body{margin:8px 0 0;background:#fff;border:1px solid #efd4cf;max-height:220px;overflow:auto}
.technologist-note-list{display:grid;gap:12px;margin-top:16px}
.technologist-note{border-top:1px solid var(--line);padding-top:12px;min-width:0}
.technologist-note:first-child{border-top:0;padding-top:0}
.technologist-note header{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:12px}
.technologist-note header strong{color:var(--navy);overflow-wrap:anywhere}
.technologist-note header span{color:var(--muted);flex:0 0 auto}
.technologist-note-body{margin:7px 0;padding:10px 12px;border-radius:8px;background:#f6f8fb;color:var(--ink);font:inherit;font-weight:400;line-height:1.5;white-space:pre-wrap;tab-size:4;overflow-wrap:anywhere;max-height:340px;overflow:auto}
.technologist-note small{display:block;color:var(--muted);font-size:11px;line-height:1.4}
.note-empty{margin:6px 0 0;color:var(--muted);font-size:12px;line-height:1.45}
@media(max-width:800px){
  .project-workspace.has-technologist-notes{grid-template-columns:minmax(0,1fr)}
  .project-notes-sidebar .actions-panel{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .project-notes-sidebar .actions-panel{grid-template-columns:minmax(0,1fr)}
  .technologist-notes{padding:15px}
  .note-form-actions{align-items:stretch;flex-direction:column}
  .note-form-actions .button{width:100%}
}
