/* Small states share the reader's purple point, spacing and restrained motion. */
.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#7b80f5;flex-shrink:0;animation:reader-dot-breathe 2.2s ease-in-out infinite}
.functional-status{display:flex;align-items:center;gap:9px;margin:0 0 12px;font-size:12px;line-height:1.7;color:var(--muted)}
.status-action{font-size:12px;color:var(--blue);padding:5px 9px;border-radius:5px;white-space:nowrap}
.status-action:hover{background:var(--blue-light)}
.search-empty .status-action{display:block;margin:10px auto 0}
.search-results.loading{cursor:progress}
#notebookView{position:relative}
#notebookView .notebook-loading.functional-loading{display:flex;align-items:center;justify-content:center;min-height:240px}
#notebookView .notebook-loading.functional-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;min-height:240px;color:var(--muted)}
#notebookView.is-refreshing:after{content:'';position:absolute;top:22px;right:24px;width:6px;height:6px;background:#7b80f5;border-radius:50%;animation:reader-dot-breathe 2.2s ease-in-out infinite;pointer-events:none}
#dialog[open]{animation:thesis-dialog-enter .14s ease-out}
#dialog[open]::backdrop{animation:thesis-backdrop-enter .14s ease-out}
.toast:not([hidden]){animation:thesis-feedback-enter .12s ease-out}
.dialog-error:empty{display:none}
.record-source>span{overflow-wrap:anywhere;min-width:0}
.record-title,.history-row strong{overflow-wrap:anywhere}
@keyframes thesis-dialog-enter{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@keyframes thesis-backdrop-enter{from{opacity:0}to{opacity:1}}
@keyframes thesis-feedback-enter{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.status-dot,#notebookView.is-refreshing:after,#dialog[open],#dialog[open]::backdrop,.toast:not([hidden]){animation:none!important;transition:none!important}}

.history-content .functional-loading{display:flex;align-items:center;justify-content:center;min-height:100px}
.history-content .functional-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;min-height:140px;color:var(--muted);font-size:12px}
