/* Project files: dialogs, toasts, recovery banner, dirty dot (minion 4). */
.dirty-dot { display: none; color: var(--accent); margin-right: 3px; }
.menu-project.dirty .dirty-dot { display: inline; }

/* modal */
.dlg-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-start; justify-content: center; padding-top: 14vh; }
.dlg { width: 420px; max-width: calc(100vw - 32px); background: var(--bg-panel); border: 1px solid var(--border-strong); box-shadow: 0 8px 24px rgba(0, 0, 0, .6); }
.dlg-title { background: var(--bg-panel-header); border-bottom: 1px solid var(--border); padding: 6px 10px; font-weight: 600; color: var(--text-bright); }
.dlg-body { padding: 12px 10px 6px; }
.dlg-text { margin: 0 0 6px; }
.dlg-form { display: flex; flex-direction: column; gap: 8px; }
.dlg-row { display: flex; align-items: center; gap: 8px; }
.dlg-label { width: 56px; flex: none; color: var(--text-dim); }
.dlg-ctl { flex: 1; display: flex; gap: 6px; min-width: 0; }
.dlg-input { flex: 1; min-width: 0; height: 24px; padding: 0 6px; background: var(--bg-input); border: 1px solid var(--border-strong); color: var(--text); font: inherit; border-radius: var(--radius); }
.dlg-input.mono { font-family: var(--font-mono); }
.dlg-input:focus { outline: 1px solid var(--accent); outline-offset: -1px; }
.dlg-input.bad { border-color: var(--danger); }
.dlg-error { min-height: 14px; margin-left: 64px; color: var(--danger); font-size: var(--fs-small); }
.dlg-buttons { display: flex; justify-content: flex-end; gap: 6px; padding: 8px 10px 10px; }
.dlg-btn, .banner-btn { height: 24px; padding: 0 12px; background: var(--bg-active); border: 1px solid var(--border-strong); color: var(--text); font: inherit; border-radius: var(--radius); cursor: default; }
.dlg-btn:hover, .banner-btn:hover { background: var(--bg-hover); color: var(--text-bright); }
.dlg-btn.primary { background: var(--accent-dim); border-color: var(--accent); color: var(--text-bright); }
.dlg-btn.primary:hover { background: var(--accent); }
.dlg-btn:focus-visible, .banner-btn:focus-visible { outline: 1px solid var(--accent); outline-offset: 1px; }

/* toasts */
.toasts { position: fixed; right: 12px; bottom: 34px; z-index: 150; display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.toast { display: flex; gap: 8px; align-items: flex-start; padding: 6px 8px; background: var(--bg-panel); border: 1px solid var(--border-strong); border-left: 3px solid var(--accent); box-shadow: 0 4px 10px rgba(0, 0, 0, .5); }
.toast.error { border-left-color: var(--danger); }
.toast.warn { border-left-color: #f5a623; }
.toast-text { flex: 1; user-select: text; }
.toast-x { background: none; border: 0; color: var(--text-dim); cursor: default; padding: 0 2px; font-size: 14px; line-height: 1; }
.toast-x:hover { color: var(--text-bright); }

/* recovery banner (sits just under the menu bar, over the top of the canvas) */
.banner { position: fixed; top: 58px; left: var(--toolbar-w); right: 0; z-index: 60; display: flex; align-items: center; gap: 8px; padding: 4px 10px; background: var(--accent-dim); border-bottom: 1px solid var(--accent); color: var(--text-bright); }
.banner-text { flex: 1; }
.banner-btn { height: 20px; padding: 0 10px; }
