/* Archive-bound technologist history and plain-text editor. */
.page.project-page{max-width:1440px}
.project-workspace.has-technologist-notes{grid-template-columns:repeat(2,minmax(0,1fr))}
.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-history{display:grid;gap:7px;margin:10px 0;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#f8fafc;min-width:0}
.note-history-label{display:grid;gap:5px;font-size:12px;font-weight:700;min-width:0}
.note-history select{min-width:0;max-width:100%;padding:8px 10px;font-size:12px}
.note-history-meta,.note-history-caption{display:block;color:var(--muted);font-size:11px;line-height:1.4}
.note-history-preview{max-height:260px;overflow:auto;margin:2px 0 0;padding:10px 12px;border:1px solid #d8e0e9;border-radius:8px;background:#fff;font:inherit;font-weight:400;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;tab-size:4}
.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:1000px){
  .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%}
}

.archive-upload-meta{display:block;color:var(--muted);font-size:11px;font-weight:400;line-height:1.5;overflow-wrap:anywhere}
.note-timeline{display:grid;gap:12px;margin-top:12px;min-width:0}
.note-timeline select,[data-note-archive]{width:100%;min-width:0;max-width:100%;padding:9px 10px;font-size:12px;white-space:nowrap;text-overflow:ellipsis}
.note-timeline .technologist-note-body{max-height:520px;padding:14px;line-height:1.65}
.note-timeline .technologist-note header{align-items:center}
.note-editor-section{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}
.note-editor-section>summary{cursor:pointer;font-size:13px;font-weight:700;margin-bottom:12px}
.note-editor-toolbar{display:flex;align-items:center;gap:8px}
.note-editor-toolbar .button{font-size:12px;padding:7px 10px;min-height:32px;font-weight:500}
.note-editor{line-height:1.65;min-height:330px;width:100%;box-sizing:border-box}
.note-diff-toggle{display:flex;gap:8px;align-items:center;font-size:12px;font-weight:500;cursor:pointer}
.note-diff-toggle input{width:16px;height:16px;margin:0}
.note-diff{margin:10px 0;white-space:pre-wrap;overflow-wrap:anywhere;max-height:520px;overflow:auto;font:inherit;font-size:13px;line-height:1.7;background:#fafbfc;border:1px solid var(--line);padding:12px;border-radius:8px}
.note-diff del,.note-diff-legend del{color:#9f2525;background:#ffe5e5;text-decoration:line-through}
.note-diff ins,.note-diff-legend ins{color:#145c37;background:#daf4e4;text-decoration:underline}
.note-diff-legend{color:var(--muted);font-size:11px}
.note-history summary{cursor:pointer;font-size:12px;font-weight:600}
.note-history[open]>*+*{margin-top:8px}
.project-workspace .attachment .archive-upload-meta{background:none;color:var(--muted);font-weight:400;padding:0;font-size:11px;display:block;border-radius:0}

@media(max-width:560px){.project-workspace .attachment .archive-attachment-meta{display:block;grid-column:2;text-align:left;white-space:normal}}

.project-state-stack{display:grid;justify-items:start;align-content:start;gap:5px;align-self:start;padding-top:2px}
.note-marker{display:inline-flex;width:max-content;max-width:100%;align-items:center;padding:3px 7px;border:1px solid #d7caa5;border-radius:6px;background:#fff9e9;color:#785b18;font-size:10px;font-weight:600;line-height:1.3;text-decoration:none;white-space:nowrap}
.note-marker[hidden]{display:none!important}
.note-marker:hover{background:#fff1c8}
.project-status-stack .note-marker{justify-self:end}
.project-status-stack .project-closure-controls{justify-content:flex-end;margin-top:6px}
.project-status-stack .closure-form .button{padding:8px 12px}
.pinned-file-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:6px}
.pinned-file-heading h2{margin:0;min-width:0}
.pinned-file-heading>.archive-upload-meta{margin:0;text-align:right;flex:0 1 auto;white-space:nowrap}
.note-filter-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.note-filter-row label{min-width:0}
.note-editor-toolbar{display:flex;flex-wrap:wrap;gap:6px}
.note-format-button[aria-pressed=true]{background:#e5edf8;border-color:#7792ba;color:#183d71}
.note-rich-editor{min-height:330px;max-height:650px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #8b95a5;border-radius:8px;padding:12px;background:#fff;font:inherit;font-size:13px;font-weight:400;line-height:1.65}
.note-rich-editor:focus-visible{outline:3px solid rgba(45,113,199,.35);outline-offset:2px}
.note-rich-editor[contenteditable=false]{background:#f5f6f8}
.note-rich-editor:empty::before{content:attr(data-placeholder);color:var(--muted);pointer-events:none}
.note-rich-editor ol{margin:0;padding-left:26px}
.note-rich-editor li+li{margin-top:12px}
#technologist-notes-title{scroll-margin-top:20px}
@media(max-width:560px){.pinned-file-heading{flex-wrap:wrap;gap:4px}.pinned-file-heading>.archive-upload-meta{margin-left:auto}.note-filter-row{grid-template-columns:minmax(0,1fr)}.project-status-stack .project-closure-controls{width:100%;justify-content:flex-end}.note-marker{font-size:10px}}

.project-page .project-files,.project-workspace.has-technologist-notes{column-gap:20px}

.technologist-note-body ol{margin:0;padding-left:26px}
.technologist-note-body li+li{margin-top:12px}
.note-rich-editor[hidden]{display:none}

.technologist-note .note-controls{justify-content:flex-end;gap:7px;min-height:24px}
.note-edit-button{border:0;cursor:pointer;font-family:inherit;line-height:normal}
.note-edit-button:hover{background:#e2eaf5;color:#354f72}
.note-edit-button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.note-edit-button[hidden]{display:none!important}
.project-workspace .message-head>strong{color:var(--navy);font-weight:700}

.technologist-note .note-controls .note-revision{font-family:inherit;font-size:11px;font-weight:700;line-height:1.4;color:#52647a;background:#edf2f8;padding:4px 9px}
