/* Memory-console additions share Sprout's compact UI roles; imported prose is isolated. */
.memory-space .memory-console-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line,#dce6f2);margin:0 0 16px;overflow-x:auto}
.memory-space .memory-console-tabs>button{flex:0 0 auto;width:auto;font:inherit;font-size:var(--sprout-type-section-title-size,15px);font-weight:var(--sprout-type-section-title-weight,400);line-height:var(--sprout-type-section-title-line,24px);border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;box-shadow:none;padding:8px 12px;white-space:nowrap;color:inherit}
.memory-space .memory-console-tabs>button[aria-selected=true]{color:var(--accent,#397cf1);border-bottom-color:currentColor}
.memory-console-panel{min-width:0;min-height:320px}
.memory-console-panel :is(button,select,input){font:inherit;font-size:13px}
.memory-console-panel :is(button,a,input,select,summary):focus-visible,.memory-console-tabs button:focus-visible{outline:2px solid #67a5ff;outline-offset:2px}
.memory-console-panel button:disabled{opacity:.5;cursor:default}
.memory-console-panel p{line-height:1.7}
.memory-console-intro,.memory-console-note{font-size:13px;color:var(--muted,#74839a);margin:8px 0 14px;line-height:1.7;overflow-wrap:anywhere}
.memory-console-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:12px 0 16px}
.memory-console-stat{display:grid;gap:7px;padding:14px;background:var(--paper,#fff);border:1px solid var(--line,#dce6f2);border-radius:4px}
.memory-console-stat>span{font-size:13px}.memory-console-stat strong{font-size:24px;font-weight:500;line-height:1.3}.memory-console-stat small{font-size:12px;color:var(--muted,#74839a);min-height:18px}
.memory-console-columns{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:14px;align-items:start}.memory-console-columns>div{min-width:0}
.memory-console-card{background:var(--paper,#fff);border:1px solid var(--line,#dce6f2);border-radius:4px;margin:0 0 14px;padding:14px;min-width:0}
.memory-console-card>header,.memory-console-review-detail>header{display:flex;align-items:center;justify-content:space-between;gap:10px;position:static;height:auto;min-height:24px;padding:0 0 12px;background:none;border:0;border-bottom:1px solid var(--line,#dce6f2);box-shadow:none;backdrop-filter:none}
.memory-console-card h2,.memory-console-review-detail h2{font:inherit;font-size:var(--sprout-type-section-title-size,15px);font-weight:var(--sprout-type-section-title-weight,400);line-height:var(--sprout-type-section-title-line,24px);margin:0}
.memory-console-card>header button{font:inherit;font-size:12px;color:var(--accent,#397cf1);padding:3px;border:0;background:transparent;white-space:nowrap}
.memory-console-table-head,.memory-console-table>button{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 0;width:100%;border-bottom:1px solid var(--line,#dce6f2);text-align:left;background:transparent;color:inherit;border-radius:0;font-size:13px}
.memory-console-table-head{color:var(--muted,#74839a);font-size:12px}.memory-console-table>button>span{overflow-wrap:anywhere;min-width:0}.memory-console-table b{white-space:nowrap;font-weight:500}.memory-console-table>button:hover{color:var(--accent,#397cf1)}
.memory-console-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px 0}.memory-console-source-grid>div{display:flex;justify-content:space-between;gap:8px;font-size:13px}.memory-console-source-grid strong{font-weight:500}
.memory-console-checks>article{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:12px 0;border-bottom:1px solid var(--line,#dce6f2)}.memory-console-checks>article:last-child{border:0;padding-bottom:0}
.memory-console-checks h3{font-size:14px;font-weight:500;line-height:1.6;margin:0}.memory-console-checks p{font-size:13px;margin:4px 0;color:var(--muted,#74839a)}.memory-console-checks small{display:block;font-size:12px;line-height:1.7;color:var(--muted,#74839a)}
.memory-console-status{white-space:nowrap;padding:2px 6px;border:1px solid var(--line,#dce6f2);border-radius:3px;font-size:12px}.memory-console-status.is-pass{color:#27826d}.memory-console-status:is(.is-warn,.is-warning){color:#a86e22}.memory-console-status.is-unknown{color:var(--muted,#74839a)}
.memory-console-review-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:12px 0;background:transparent;border:0;border-bottom:1px solid var(--line,#dce6f2);border-radius:0;text-align:left;color:inherit}
.memory-console-review-row>span:first-child{display:grid;gap:6px;min-width:0}.memory-console-review-row b{font-weight:500;font-size:13px}.memory-console-review-row span>span{font-size:13px;line-height:1.7;overflow-wrap:anywhere}.memory-console-review-row small{font-size:12px;color:var(--muted,#74839a)}
.memory-console-recent{display:grid;gap:6px;width:100%;text-align:left;padding:12px 0;border:0;border-bottom:1px solid var(--line,#dce6f2);border-radius:0;background:transparent;color:inherit}.memory-console-recent b{font-size:14px;font-weight:500;line-height:1.6}.memory-console-recent small{font-size:12px;color:var(--muted,#74839a)}
.memory-console-toolbar,.memory-console-pager{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0;font-size:13px}.memory-console-toolbar label,.memory-console-pager label{display:flex;align-items:center;gap:7px}
.memory-console-toolbar select,.memory-console-pager :is(input,select){font:inherit;font-size:13px;color:inherit;background:var(--paper,#fff);border:1px solid var(--line,#dce6f2);border-radius:4px;padding:5px 8px;min-height:30px}.memory-console-pager input{width:70px;box-sizing:border-box}
.memory-console-toolbar button,.memory-console-pager button,.memory-console-review-detail>button,[data-memory-context] button{font:inherit;font-size:13px;padding:6px 10px;border:1px solid var(--line,#dce6f2);border-radius:4px;background:var(--paper,#fff);color:var(--accent,#397cf1)}
.memory-console-empty{display:grid;place-content:center;text-align:center;min-height:140px;padding:16px;color:var(--muted,#74839a)}.memory-console-empty h3{font-size:15px;font-weight:500;margin:0 0 8px}.memory-console-empty p{font-size:13px;margin:0;line-height:1.7}
.memory-console-settings>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,.6fr);gap:16px;padding:12px 0;border-bottom:1px solid var(--line,#dce6f2);font-size:13px;line-height:1.7}.memory-console-settings>div:last-child{border:0;padding-bottom:0}.memory-console-settings b{display:block;font-size:14px;font-weight:500}.memory-console-settings small{display:block;color:var(--muted,#74839a);font-size:12px;line-height:1.7}.memory-console-settings>div>span:last-child{overflow-wrap:anywhere}
.memory-console-review-detail{background:var(--paper,#fff);border:1px solid var(--line,#dce6f2);padding:16px;border-radius:4px}.memory-console-review-detail>p{font-size:14px;line-height:1.8}.memory-console-review-detail>header button{font:inherit;font-size:13px;color:var(--accent,#397cf1);border:0;background:transparent}
.memory-console-members{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.memory-console-members>article{border:1px solid var(--line,#dce6f2);border-radius:4px;padding:12px;min-width:0}.memory-console-members h3{font-size:14px;font-weight:500;line-height:1.7;margin:0 0 8px}.memory-console-members small{font-size:12px;color:var(--muted,#74839a)}.memory-console-members button{font-size:13px;color:var(--accent,#397cf1);margin-top:8px}
.memory-console-original{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;font-size:14px;max-height:420px;overflow:auto;padding:12px 0}
[data-memory-context]{border-top:1px solid var(--line,#dce6f2);margin-top:16px;padding-top:12px}[data-memory-context] h3{font-size:14px;margin:12px 0;font-weight:500}[data-memory-context] details{margin:8px 0}[data-memory-context] summary{font-size:13px;cursor:pointer}.memory-console-related{display:grid!important;gap:5px;text-align:left;width:100%;margin:8px 0}.memory-console-related span{font-size:12px;color:var(--muted,#74839a)}.memory-console-related b{font-size:13px;font-weight:500}.memory-facts dd{overflow-wrap:anywhere}
.memory-space .memory-filters select[data-memory-filter=workspace]{max-width:220px}.memory-space .memory-filters select[data-memory-filter=sort]{max-width:150px}
.memory-console-copy{width:min(680px,90vw);max-height:85vh;background:var(--paper,#fff);color:var(--ink,#26344a);border:1px solid var(--line,#dce6f2);border-radius:4px;padding:20px}.memory-console-copy h2{font:inherit;font-size:15px}.memory-console-copy textarea{box-sizing:border-box;width:100%;min-height:250px;color:inherit;background:transparent;border:1px solid var(--line,#dce6f2);padding:12px;font:13px/1.7 ui-monospace,monospace}.memory-console-copy button{font:inherit;font-size:13px;padding:6px 10px}
body.dark .memory-console-status.is-pass{color:#7bd5bc}body.dark .memory-console-status:is(.is-warn,.is-warning){color:#f1c174}
@media(max-width:1050px){.memory-console-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.memory-console-columns{grid-template-columns:1fr}}
@media(max-width:650px){.memory-console-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.memory-console-members{grid-template-columns:1fr}.memory-console-settings>div{grid-template-columns:1fr;gap:6px}.memory-console-tabs{max-width:100%}.memory-console-card{padding:12px}.memory-console-stat{padding:12px}}
