/* Local visual candidate; source semantics and reduced motion preserved. */
.boot-notice,.pg-isolation-note{padding:.75rem 1rem;border:1px solid var(--rule,#b8c7bf);background:var(--card,var(--paper,#f7f5ec));color:var(--ink,#203e36);line-height:1.7;border-radius:4px;overflow-wrap:anywhere}
body[data-boot-state="loading"] .search-panel,body[data-boot-state="slow"] .search-panel,body[data-boot-state="error"] .search-panel{display:none}
[data-theme="ink"] .pg-stage{--pg-co:#596c5f;--pg-node-a:#406f61;--pg-node-b:#986a34;--pg-node-c:#786589;--pg-node-d:#5f7489}
[data-theme="xuanqing"] .pg-stage{--pg-co:#9fc4db;--pg-node-a:#7dcad0;--pg-node-b:#e4bf7e;--pg-node-c:#c0b1ee;--pg-node-d:#e7a5ba}
[data-theme="paper"] .pg-stage{--pg-co:#536e7c;--pg-node-a:#3f7a72;--pg-node-b:#976b45;--pg-node-c:#736889;--pg-node-d:#557d74}
[data-theme] .pg-legend .pg-key-co{border-top:2px dashed var(--pg-co,#596c5f);background:none}
.pg-stage{border-radius:6px}.pg-controls button:focus-visible,.pg-name-buttons button:focus-visible{outline:3px solid var(--pg-edge,#dfbd75);outline-offset:2px}
@media(prefers-reduced-motion:reduce){.pg-stage,.pg-controls button{transition:none!important;animation:none!important}}

[data-boot-directory][hidden]{display:none!important}
[data-boot-directory]+.boot-notice{margin-top:1rem;font-size:.9em}
[data-theme="xuanqing"] .pg-stage{border-radius:0;border-color:#547481;background-color:#101c26;background-image:linear-gradient(#7896a608 1px,transparent 1px),linear-gradient(90deg,#7896a608 1px,transparent 1px);background-size:36px 36px}
[data-theme="xuanqing"] .pg-controls button{border-radius:0;box-shadow:inset 0 -2px 0 #7896a61a}
[data-theme="xuanqing"] .pg-legend{border-top-color:#547481}

body[data-boot-state="loading"] .boot-notice{display:none}
body[data-boot-state="slow"] .boot-notice,body[data-boot-state="error"] .boot-notice{margin:0 0 1rem}
[data-boot-directory][inert]{opacity:.66}
[data-theme] .pg-legend .pg-key-indirect{border:0;height:2px;background:repeating-linear-gradient(to right,var(--pg-indirect,#8dc7ec) 0 8px,transparent 8px 11px,var(--pg-indirect,#8dc7ec) 11px 13px,transparent 13px 16px)}

/* All startup and feature states share the active reading theme. */
.boot-notice,.feature-loading{background:var(--card,var(--paper));color:var(--ink);border:1px solid var(--line);border-left:3px solid var(--teal);padding:.65rem 1rem;border-radius:4px;line-height:1.7;box-shadow:none}
.boot-notice p,.feature-loading p{margin:.25rem 0;color:var(--ink)}
.boot-notice a,.feature-loading a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
body[data-view="pending"] .search-panel{display:none}
body[data-boot-state="loading"] .index-head,body[data-boot-state="slow"] .index-head,body[data-boot-state="error"] .index-head{display:none}
