/* Shared Notes and Sources presentation for Space and Artifact workspaces. */
.context-content { margin: 0 auto; max-width: 54rem; }
.context-heading { display: flex; gap: 1.25rem; align-items: flex-start; justify-content: space-between; margin-bottom: 1.5rem; }
.context-heading h1, .context-heading h2 { font-size: 1.6rem; letter-spacing: -.04em; margin: 0 0 .5rem; }
.context-heading p, .context-description { color: var(--muted); line-height: 1.6; margin: 0; }
.context-privacy { color: var(--muted); font-size: .75rem; white-space: nowrap; padding-top: .4rem; }
.context-notes { display: block; width: 100%; min-height: min(48vh, 28rem); resize: vertical; background: #fff; border: 1px solid #b7c8ce; border-radius: .75rem; color: var(--ink); padding: 1.4rem; font: inherit; font-size: 1rem; line-height: 1.8; }
.context-notes::placeholder { color: var(--muted); }
.context-notes:disabled { background: #f0f4f5; }
.context-notes-footer { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; color: var(--muted); font-size: .8rem; line-height: 1.6; padding-top: .8rem; }
.context-notes-footer p { margin: 0; }
[data-error="true"] { color: #a12424; }
.context-recovery { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.context-button { background: #fff; border: 1px solid #b7c8ce; border-radius: .5rem; color: var(--blue-dark); cursor: pointer; min-height: 2.75rem; padding: .65rem 1rem; font: inherit; font-weight: 600; }
.context-button:hover:not(:disabled) { background: #edf4f6; }
.context-button--primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.context-button--primary:hover:not(:disabled) { background: var(--blue-dark); }
.context-button:disabled { cursor: wait; opacity: .65; }
.context-source-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .65rem; }
.context-source-list li { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--border); border-radius: .65rem; background: #fff; min-width: 0; }
.context-source-open { background: none; border: 0; text-align: left; cursor: pointer; flex: 1; padding: .25rem 0; min-width: 0; color: var(--blue-dark); font: inherit; }
.context-source-open strong { display: block; overflow-wrap: anywhere; font-weight: 600; }
.context-source-open small { display: block; margin-top: .35rem; color: var(--muted); line-height: 1.5; }
.context-source-remove { background: none; border: 0; cursor: pointer; color: var(--muted); font: inherit; padding: .75rem .25rem; font-size: .8rem; }
.context-source-remove:hover { color: #a12424; }
.context-empty { border: 1px dashed #b7c8ce; border-radius: .75rem; text-align: center; padding: 2.5rem 1.5rem; margin: 1.5rem 0; }
.context-empty h2 { font-size: 1rem; margin: 0 0 .65rem; }
.context-empty p { color: var(--muted); line-height: 1.6; margin: 0; }
.context-library-link { color: var(--blue-dark); display: inline-block; margin: 1rem 0; text-underline-offset: .2rem; }
.context-search { background: #fff; border: 1px solid #b7c8ce; border-radius: .5rem; color: var(--ink); padding: .75rem; width: 100%; }
.context-source-body { line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .context-heading { flex-wrap: wrap; gap: .75rem; }
  .context-privacy { padding: 0; }
  .context-notes { padding: 1rem; min-height: 42vh; }
  .context-source-list li { padding: .8rem; gap: .65rem; }
}
