/* Writing Desk v20.8.23 — whole-surface palette harmony.
   Normal UI surfaces draw from the active theme, not legacy teal constants.
   Author-selected manuscript ink, sync and save indicators retain their meaning. */
html[data-wd-palette]{
 --wd-content-panel:var(--paper);
 --wd-content-inset:var(--wd-surface-tint);
 --wd-content-elevated:var(--raised);
}
html[data-wd-palette] .nav-item.active{color:var(--accent)!important;}
html[data-wd-palette] .recent-item.active{background:var(--wd-focused-bg)!important;}
html[data-wd-palette] .topbar{border-bottom:1px solid var(--line)!important;}
html[data-wd-palette] .crumb-slash{color:var(--text)!important;}
html[data-wd-palette] .title-input::placeholder{color:var(--text)!important;}
html[data-wd-palette] .session-note{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;color:var(--text)!important;}
html[data-wd-palette] .session-note-content .micro-label{color:var(--accent)!important;}
html[data-wd-palette] .writing-toolbar{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .format-button:hover,html[data-wd-palette] .format-button.active{border-color:var(--wd-action-border)!important;}
html[data-wd-palette] .primary-button{background:var(--wd-surface-tint)!important;color:var(--text)!important;}
html[data-wd-palette] .primary-button:hover{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .segment.selected{background:var(--wd-focused-bg)!important;}
html[data-wd-palette] .fragment-card:hover,html[data-wd-palette] .library-entry:hover,html[data-wd-palette] .inbox-note:hover{border-color:var(--wd-action-border)!important;background:var(--wd-action-hover)!important;}
html[data-wd-palette] .category-group{background:var(--paper)!important;}
html[data-wd-palette] .modal{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .help-box{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;color:var(--text)!important;}
html[data-wd-palette] .compare-side{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .toast{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] #editor[data-empty="true"]:before{color:var(--muted)!important;}
html[data-wd-palette] .mode-pill:hover{border-color:var(--wd-action-border)!important;}
html[data-wd-palette] .bio-switch{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .bio-switch input{accent-color:var(--accent)!important;}
html[data-wd-palette] .bio-switch small{color:var(--muted)!important;}
html[data-wd-palette] .bio-section{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .ability-card{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .typography-example{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .bio-view-button.selected{background:var(--wd-focused-bg)!important;}
html[data-wd-palette] .bio-document{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .ability-drag-handle{border:1px dashed var(--line)!important;color:var(--text)!important;}
html[data-wd-palette] .ink-menu{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .ink-dot{color:var(--text)!important;}
html[data-wd-palette] .library-entry-card:hover{border-color:var(--wd-action-border)!important;}
html[data-wd-palette] .library-entry-card .library-entry:hover{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .entry-cover-image{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .character-photo{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .character-photo-open{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .image-lightbox-close{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .margin-notes{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .arc-group{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .arc-overview{background:var(--wd-surface-tint)!important;border-left:2px solid var(--line)!important;}
html[data-wd-palette] .arc-overview-label{color:var(--accent)!important;}
html[data-wd-palette] .arc-overview-preview{color:var(--text)!important;}
html[data-wd-palette] .fragment-card-open:hover{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .recent-group-toggle{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .recent-group-toggle:hover{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .fragment-drag-handle{color:var(--text)!important;}
html[data-wd-palette] .fragment-drag-handle:hover,html[data-wd-palette] .fragment-drag-handle:focus-visible{background:var(--wd-action-hover)!important;color:var(--accent)!important;}
html[data-wd-palette] .fragment-drag-ghost{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .fragment-drop-arc{background:var(--wd-surface-tint)!important;box-shadow:0 0 0 2px var(--wd-action-border)!important;}
html[data-wd-palette] .fragment-drop-before{outline:1px solid var(--wd-action-border)!important;}
html[data-wd-palette] .fragment-drop-after{outline:1px solid var(--wd-action-border)!important;}
html[data-wd-palette] .return-to-writing{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;color:var(--text)!important;}
html[data-wd-palette] .return-to-writing:hover,html[data-wd-palette] .return-to-writing:focus-visible{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .fragments-section-toggle:hover,html[data-wd-palette] .fragments-section-toggle:focus-visible,html[data-wd-palette] .fragments-section-toggle.active{color:var(--accent)!important;background:var(--wd-action-hover)!important;}
html[data-wd-palette] .recent-group-heading{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .recent-group-heading:hover{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .sidebar-rename-btn{color:var(--text)!important;}
html[data-wd-palette] .sidebar-rename-btn:hover,html[data-wd-palette] .sidebar-rename-btn:focus-visible{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .sidebar-rename-input{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .fragment-context{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .fragment-context summary:hover,html[data-wd-palette] .fragment-context summary:focus-visible{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .fragment-context-inside textarea{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .arc-order-before{box-shadow:inset 0 4px var(--wd-action-border)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .arc-order-after{box-shadow:inset 0 -4px var(--wd-action-border)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .all-fragments-header{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .all-fragments-toggle:hover,html[data-wd-palette] .all-fragments-toggle:focus-visible{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .all-fragments-count{color:var(--accent)!important;}
html[data-wd-palette] .recent-draggable.selected-fragment-row>.recent-item.active{background:var(--wd-focused-bg)!important;color:var(--accent)!important;border-left:3px solid var(--wd-action-border)!important;}
html[data-wd-palette] .recent-group-heading.focused-arc{box-shadow:inset 3px 0 var(--wd-action-border)!important;background:var(--wd-focused-bg)!important;}
html[data-wd-palette] .location-tree-row.selected{background:var(--wd-focused-bg)!important;border-color:var(--wd-action-border)!important;}
html[data-wd-palette] .location-tree-row.selected .location-tree-name{color:var(--accent)!important;}
html[data-wd-palette] .location-tree-action:hover,html[data-wd-palette] .location-expander:not(:disabled):hover{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .location-drop-inside{background:var(--wd-surface-tint)!important;border-color:var(--line)!important;box-shadow:inset 0 0 0 1px var(--wd-action-border)!important;}
html[data-wd-palette] .location-drop-before:before,html[data-wd-palette] .location-drop-after:after{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .location-breadcrumbs button:hover,html[data-wd-palette] .location-breadcrumbs button.current{color:var(--text)!important;}
html[data-wd-palette] .location-child-card:hover{border-color:var(--wd-action-border)!important;background:var(--wd-action-hover)!important;}
html[data-wd-palette] .location-profile-references button{color:var(--text)!important;}
html[data-wd-palette] .location-cover{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .sidebar-add-button{border:1px solid var(--line)!important;color:var(--text)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .sidebar-add-button:hover{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .sidebar-create-menu{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .sidebar-create-menu button:hover{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .sidebar-arc-add{background:var(--wd-surface-tint)!important;color:var(--text)!important;}
html[data-wd-palette] .sidebar-arc-add:hover{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .workspace-button{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;color:var(--text)!important;}
html[data-wd-palette] .workspace-button:hover{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .workspace-menu{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .character-photo>.ordered-handle{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .ordered-before{box-shadow:inset 0 4px var(--wd-action-border)!important;outline:1px dashed var(--wd-action-border)!important;}
html[data-wd-palette] .ordered-after{box-shadow:inset 0 -4px var(--wd-action-border)!important;outline:1px dashed var(--wd-action-border)!important;}
html[data-wd-palette] .sidebar-pinned .nav-item:focus-visible,html[data-wd-palette] .sidebar-pinned select:focus-visible{outline:2px solid var(--wd-action-border)!important;}
html[data-wd-palette] .topbar{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .workspace-reference-actions button:hover,html[data-wd-palette] .workspace-reference-actions button:focus-visible{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .reference-top-button{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;color:var(--text)!important;}
html[data-wd-palette] .reference-top-button:hover,html[data-wd-palette] .reference-top-button[aria-pressed="true"]{color:var(--text)!important;background:var(--wd-action-hover)!important;}
html[data-wd-palette] .reference-panel{background:var(--wd-surface-tint)!important;border-left:1px solid var(--line)!important;}
html[data-wd-palette] .reference-category{color:var(--text)!important;}
html[data-wd-palette] .reference-list-entry{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .reference-list-entry:hover,html[data-wd-palette] .reference-list-entry:focus-visible{border-color:var(--wd-action-border)!important;background:var(--wd-action-hover)!important;}
html[data-wd-palette] .reference-kind{color:var(--text)!important;}
html[data-wd-palette] .reference-block{border-top:1px solid var(--line)!important;}
html[data-wd-palette] .reference-block-heading{color:var(--accent)!important;}
html[data-wd-palette] .reference-value b{color:var(--text)!important;}
html[data-wd-palette] .reference-photo{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .reference-footer button{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;color:var(--text)!important;}
html[data-wd-palette] .reference-footer button:hover{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .bible-view-tabs{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .bible-view-tabs button{color:var(--text)!important;}
html[data-wd-palette] .bible-view-tabs button[aria-pressed="true"]{background:var(--wd-focused-bg)!important;color:var(--text)!important;}
html[data-wd-palette] .bible-hub-section{background:var(--paper)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .bible-hub-section>summary:after{color:var(--text)!important;}
html[data-wd-palette] .bible-hub-content{border-top:1px solid var(--line)!important;}
html[data-wd-palette] .bible-hub-entry{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .bible-hub-entry:hover{border-color:var(--wd-action-border)!important;background:var(--wd-action-hover)!important;}
html[data-wd-palette] .bible-hub-entry small{color:var(--muted)!important;}
html[data-wd-palette] .bible-hub-section.ordered-before{outline:2px solid var(--wd-action-border)!important;}
html[data-wd-palette] .bible-hub-section.ordered-after{outline:2px solid var(--wd-action-border)!important;}
html[data-wd-palette] .bible-metadata{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .bible-metadata-body{border-top:1px solid var(--line)!important;}
html[data-wd-palette] .bible-custom-row{border-top:1px solid var(--line)!important;}
html[data-wd-palette] .bible-editor-row{border-bottom:1px solid var(--line)!important;}
html[data-wd-palette] .reference-bible-note{border-left:2px solid var(--line)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .reference-bible-empty{color:var(--muted)!important;}
html[data-wd-palette] .bible-hub-entry-row.ordered-before{box-shadow:0 -3px 0 var(--wd-action-border)!important;}
html[data-wd-palette] .bible-hub-entry-row.ordered-after{box-shadow:0 3px 0 var(--wd-action-border)!important;}
html[data-wd-palette] .editor-reference-toggle{background:var(--wd-surface-tint)!important;border-color:var(--line)!important;color:var(--text)!important;}
html[data-wd-palette] .library-entry-editing .editor-reference-toggle[aria-pressed="true"]{background:var(--wd-focused-bg)!important;border-color:var(--line)!important;}
html[data-wd-palette] .reference-copy{border:1px solid var(--line)!important;color:var(--text)!important;}
html[data-wd-palette] .reference-copy:hover,html[data-wd-palette] .reference-copy:focus-visible{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .bible-hub-entry-row.bible-location-row[style*="--bible-location-depth: 1"]::before,html[data-wd-palette] .bible-hub-entry-row.bible-location-row[style*="--bible-location-depth: 2"]::before,html[data-wd-palette] .bible-hub-entry-row.bible-location-row[style*="--bible-location-depth: 3"]::before,html[data-wd-palette] .bible-hub-entry-row.bible-location-row[style*="--bible-location-depth: 4"]::before,html[data-wd-palette] .bible-hub-entry-row.bible-location-row[style*="--bible-location-depth: 5"]::before,html[data-wd-palette] .bible-hub-entry-row.bible-location-row[style*="--bible-location-depth: 6"]::before,html[data-wd-palette] .bible-hub-entry-row.bible-location-row[style*="--bible-location-depth: 7"]::before,html[data-wd-palette] .bible-hub-entry-row.bible-location-row[style*="--bible-location-depth: 8"]::before{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .bible-location-row.location-drop-inside{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .entry-category-choice{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .entry-category-choice:has(input:checked){border-color:var(--line)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .entry-category-choice input{accent-color:var(--accent)!important;}
html[data-wd-palette] .entry-multi-category{color:var(--text)!important;}
html[data-wd-palette] .connection-preview{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .sidebar-delete-btn{color:var(--text)!important;}
html[data-wd-palette] .affiliation-suggestions{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .timeline-filter-row label{color:var(--accent)!important;}
html[data-wd-palette] .timeline-event-list{border-left:2px solid var(--line)!important;}
html[data-wd-palette] .timeline-event{border:1px solid var(--line)!important;background:var(--raised)!important;}
html[data-wd-palette] .timeline-event:before{background:var(--raised)!important;border:2px solid var(--line)!important;}
html[data-wd-palette] .timeline-event summary:after{color:var(--text)!important;}
html[data-wd-palette] .timeline-event-date{color:var(--accent)!important;}
html[data-wd-palette] .timeline-event-detail{border-top:1px solid var(--line)!important;}
html[data-wd-palette] .timeline-link,html[data-wd-palette] .timeline-arc-tag{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;color:var(--accent)!important;}
html[data-wd-palette] .timeline-link:hover,html[data-wd-palette] .timeline-link:focus-visible{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .timeline-arc-tag{color:var(--accent)!important;}
html[data-wd-palette] .timeline-editor-links details{border:1px solid var(--line)!important;}
html[data-wd-palette] .timeline-age-reference{border:1px solid var(--line, var(--line))!important;}
html[data-wd-palette] .timeline-age-lines{color:var(--text)!important;}
html[data-wd-palette] .timeline-focus-chip{color:var(--accent)!important;}
html[data-wd-palette] .smart-select-trigger{border:1px solid var(--line,var(--line))!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .smart-select-trigger:focus{outline:2px solid var(--wd-action-border)!important;}
html[data-wd-palette] .smart-select-popover{background:var(--wd-overlay)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .smart-select-option:hover,html[data-wd-palette] .smart-select-option.active{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .quick-switcher-dialog{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .quick-switcher-search{border-bottom:1px solid var(--line)!important;}
html[data-wd-palette] .quick-switcher-search span{color:var(--text)!important;}
html[data-wd-palette] .quick-search-item.active,html[data-wd-palette] .quick-search-item:hover{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .quick-search-type{color:var(--accent)!important;}
html[data-wd-palette] .quick-search-item small{color:var(--muted)!important;}
html[data-wd-palette] .quick-switcher-hint{border-top:1px solid var(--line)!important;color:var(--muted)!important;}
html[data-wd-palette] .entry-where-used{border:1px solid var(--line)!important;}
html[data-wd-palette] .bulk-fragment-toolbar{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .bulk-fragment-choice{color:var(--text)!important;}
html[data-wd-palette] .bulk-fragment-choice input{accent-color:var(--accent)!important;}
html[data-wd-palette] .vt-view-switch{background:var(--raised)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .vt-view-option{color:var(--text)!important;}
html[data-wd-palette] .vt-view-option[aria-pressed="true"]{color:var(--text)!important;background:var(--wd-focused-bg)!important;}
html[data-wd-palette] .vt-view-option:focus-visible,html[data-wd-palette] .vt-zoom-button:focus-visible,html[data-wd-palette] .vt-year-card:focus-visible,html[data-wd-palette] .vt-decade-card:focus-visible,html[data-wd-palette] .vt-event-pill:focus-visible,html[data-wd-palette] .vt-chronology-entry:focus-visible{outline:2px solid var(--wd-action-border)!important;}
html[data-wd-palette] .vt-root{border:1px solid var(--line)!important;background:var(--paper)!important;}
html[data-wd-palette] .vt-zoom-controls{background:var(--wd-overlay)!important;}
html[data-wd-palette] .vt-zoom-button{color:var(--text)!important;}
html[data-wd-palette] .vt-zoom-button[aria-pressed="true"]{background:var(--wd-focused-bg)!important;}
html[data-wd-palette] .vt-stats{color:var(--text)!important;}
html[data-wd-palette] .vt-stats>span+span{border-left:1px solid var(--line)!important;}
html[data-wd-palette] .vt-undated-button{border:1px solid var(--line)!important;color:var(--accent)!important;}
html[data-wd-palette] .vt-track{scrollbar-color:var(--wd-action-border) var(--paper)!important;}
html[data-wd-palette] .vt-decade-card{background:var(--raised)!important;color:var(--text)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .vt-decade-card:hover,html[data-wd-palette] .vt-year-card:hover,html[data-wd-palette] .vt-event-pill:hover,html[data-wd-palette] .vt-chronology-entry:hover{background:var(--wd-action-hover)!important;border-color:var(--wd-action-border)!important;}
html[data-wd-palette] .vt-small{color:var(--muted)!important;}
html[data-wd-palette] .vt-density-cell{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .vt-density-cell.is-filled{background:var(--wd-surface-tint)!important;border-color:var(--line)!important;}
html[data-wd-palette] .vt-year-hint,html[data-wd-palette] .vt-hint,html[data-wd-palette] .vt-empty-filter{color:var(--muted)!important;}
html[data-wd-palette] .vt-year-card{background:var(--raised)!important;color:var(--text)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .vt-year-card.is-selected{border-color:var(--wd-action-border)!important;box-shadow:0 0 0 1px var(--wd-action-border)!important;}
html[data-wd-palette] .vt-year-bar{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .vt-year-card:not(.has-events) .vt-year-bar{background:var(--raised)!important;}
html[data-wd-palette] .vt-year-count{color:var(--accent)!important;}
html[data-wd-palette] .vt-month-card{background:var(--raised)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .vt-month-count{color:var(--accent)!important;}
html[data-wd-palette] .vt-event-pill{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;color:var(--text)!important;}
html[data-wd-palette] .vt-event-pill.is-selected,html[data-wd-palette] .vt-chronology-entry.is-selected{background:var(--wd-focused-bg)!important;border-color:var(--wd-action-border)!important;}
html[data-wd-palette] .vt-event-chronology{border-left:2px solid var(--line)!important;}
html[data-wd-palette] .vt-chronology-entry{background:var(--raised)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .vt-chronology-entry:before{background:var(--raised)!important;border:2px solid var(--line)!important;}
html[data-wd-palette] .vt-preview{border:1px solid var(--line)!important;background:var(--raised)!important;}
html[data-wd-palette] .vt-eyebrow{color:var(--accent)!important;}
html[data-wd-palette] .vt-preview-close{border:1px solid var(--line)!important;color:var(--text)!important;}
html[data-wd-palette] .relationship-result{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .relationship-result:hover,html[data-wd-palette] .relationship-result:focus-visible{border-color:var(--wd-action-border)!important;}
html[data-wd-palette] .relationship-focus-pane{border:1px solid var(--wd-action-border)!important;background:var(--paper)!important;}
html[data-wd-palette] .relationship-eyebrow{color:var(--accent)!important;}
html[data-wd-palette] .relationship-graph{background:var(--paper)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .relationship-line{stroke:var(--accent)!important;}
html[data-wd-palette] .relationship-node-plate{fill:var(--accent)!important;stroke:var(--accent)!important;}
html[data-wd-palette] .relationship-node-dot{fill:var(--accent)!important;}
html[data-wd-palette] .relationship-node:hover .relationship-node-plate,html[data-wd-palette] .relationship-node:focus-visible .relationship-node-plate{stroke:var(--accent)!important;}
html[data-wd-palette] .relationship-node.is-focus .relationship-node-plate{fill:var(--accent)!important;stroke:var(--accent)!important;}
html[data-wd-palette] .relationship-connection-row{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .relationship-connection-name{text-decoration-color:var(--text)!important;}
html[data-wd-palette] .relationship-connection-type{color:var(--accent)!important;}
html[data-wd-palette] .relationship-writing{border:1px solid var(--line)!important;}
html[data-wd-palette] .relationship-writing-link{color:var(--accent)!important;}
html[data-wd-palette] .relationship-actions{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .relationship-add-form label{color:var(--accent)!important;}
html[data-wd-palette] .entry-save-actions{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .entry-save-hint{color:var(--muted)!important;}
html[data-wd-palette] .location-tree-row.is-expanded-parent:not(.selected){background:var(--wd-focused-bg)!important;border:1px solid var(--wd-action-border)!important;}
html[data-wd-palette] .location-tree-row.is-expanded-parent:not(.selected) .location-tree-name{color:var(--accent)!important;}
html[data-wd-palette] .location-tree-row.is-expanded-parent::before{background:var(--wd-focused-bg)!important;}
html[data-wd-palette] .location-tree-row.is-expanded-parent.selected{background:var(--wd-focused-bg)!important;border-color:var(--wd-action-border)!important;}
html[data-wd-palette] .relationship-node-button{border:1.5px solid var(--line)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .relationship-node-button:hover,html[data-wd-palette] .relationship-node-button:focus-visible{outline:2px solid var(--wd-action-border)!important;background:var(--wd-action-hover)!important;}
html[data-wd-palette] .relationship-node-button.is-focus{background:var(--wd-surface-tint)!important;border:2px solid var(--wd-action-border)!important;}
html[data-wd-palette] .relationship-history-button,html[data-wd-palette] .relationship-remove-button{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;color:var(--text)!important;}
html[data-wd-palette] .relationship-history-count{color:var(--accent)!important;}
html[data-wd-palette] .relationship-history-intro{background:var(--wd-surface-tint)!important;color:var(--text)!important;}
html[data-wd-palette] .relationship-history-record{border:1px solid var(--line)!important;}
html[data-wd-palette] .relationship-history-record small{color:var(--muted)!important;}
html[data-wd-palette] .relationship-current-tag{color:var(--accent)!important;}
html[data-wd-palette] .library-hierarchy-row{background:var(--paper)!important;}
html[data-wd-palette] .library-hierarchy-row:not([style*="depth: 0"]){border-left-color:var(--line)!important;}
html[data-wd-palette] .library-hierarchy-row.is-expanded-parent{background:var(--wd-focused-bg)!important;border-color:var(--wd-action-border)!important;}
html[data-wd-palette] .library-hierarchy-row.organization-hierarchy-row.is-expanded-parent{background:var(--wd-focused-bg)!important;border-color:var(--wd-action-border)!important;}
html[data-wd-palette] .character-group-heading{background:var(--wd-surface-tint)!important;border-color:var(--line)!important;}
html[data-wd-palette] .character-group-entry{background:var(--paper)!important;}
html[data-wd-palette] .character-ungrouped-heading{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .hierarchy-before{box-shadow:inset 0 3px var(--wd-action-border)!important;}
html[data-wd-palette] .hierarchy-after{box-shadow:inset 0 -3px var(--wd-action-border)!important;}
html[data-wd-palette] .hierarchy-inside{background:var(--wd-surface-tint)!important;border-color:var(--line)!important;}
html[data-wd-palette] .fragment-sticky-controls{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .fragment-sticky-controls button{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .fragment-sticky-controls button:hover,html[data-wd-palette] .fragment-sticky-controls button:focus-visible{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .clarity-heading{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .clarity-connection-row{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .clarity-connection-details{border-top:1px solid var(--line)!important;}
html[data-wd-palette] .placement-month{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .placement-month.is-selected{background:var(--wd-focused-bg)!important;border-color:var(--wd-action-border)!important;}
html[data-wd-palette] .placement-event{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .placement-year-tick{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .placement-year-tick.is-selected{background:var(--wd-focused-bg)!important;border-color:var(--wd-action-border)!important;}
html[data-wd-palette] .placement-year-tick:hover{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .placement-year-count{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .timeline-drag-grip{color:var(--text)!important;border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .timeline-drag-grip:focus-visible{outline:2px solid var(--wd-action-border)!important;}
html[data-wd-palette] .timeline-drop-before{box-shadow:0 -4px 0 var(--wd-action-border)!important;border-top-color:var(--line)!important;}
html[data-wd-palette] .timeline-drop-after{box-shadow:0 4px 0 var(--wd-action-border)!important;border-bottom-color:var(--line)!important;}
html[data-wd-palette] .timeline-drag-ghost{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .global-notes-panel{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .desk-notes-filter button{background:var(--wd-surface-tint)!important;color:var(--text)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .desk-notes-filter button[aria-pressed="true"]{background:var(--wd-focused-bg)!important;border-color:var(--line)!important;}
html[data-wd-palette] .desk-note-item{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .desk-note-item[aria-pressed="true"]{background:var(--wd-focused-bg)!important;border-color:var(--line)!important;}
html[data-wd-palette] .desk-note-type{color:var(--accent)!important;}
html[data-wd-palette] .desk-note-quote{background:var(--wd-surface-tint)!important;border-left:3px solid var(--line)!important;}
html[data-wd-palette] .desk-notes-header-actions .desk-notes-list-toggle,html[data-wd-palette] .desk-notes-header-actions .desk-notes-step{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;color:var(--accent)!important;}
html[data-wd-palette] .desk-notes-header-actions .desk-notes-list-toggle:hover,html[data-wd-palette] .desk-notes-header-actions .desk-notes-step:hover:not(:disabled){background:var(--wd-action-hover)!important;}
html[data-wd-palette] .desk-notes-header-actions button:focus-visible{outline:2px solid var(--wd-action-border)!important;}
html[data-wd-palette] .show-structure-toggle.is-active,html[data-wd-palette] .show-structure-toggle[aria-pressed="true"]{background:var(--wd-focused-bg)!important;border-color:var(--wd-action-border)!important;color:var(--accent)!important;}
html[data-wd-palette] .structure-section-toggle{color:var(--text)!important;}
html[data-wd-palette] .structure-key-item{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .structure-key-item:hover,html[data-wd-palette] .arc-skeleton-beat:hover{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .structure-key-date{color:var(--accent)!important;}
html[data-wd-palette] .arc-skeleton-toggle{color:var(--text)!important;}
html[data-wd-palette] .arc-skeleton-edit{color:var(--text)!important;}
html[data-wd-palette] .arc-skeleton-beat{color:var(--text)!important;background:var(--wd-surface-tint)!important;border-left:2px solid var(--line)!important;}
html[data-wd-palette] .skeleton-editor-beat{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .skeleton-editor-beat.skeleton-drag-target{outline:2px solid var(--wd-action-border)!important;}
html[data-wd-palette] .skeleton-beat-toolbar button{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .skeleton-beat-links{border-top:1px solid var(--line)!important;}
html[data-wd-palette] .skeleton-beat-links summary{color:var(--accent)!important;}
html[data-wd-palette] .skeleton-link-choice:hover{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .arc-reference-beat{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .arc-reference-beat.active{border-color:var(--wd-action-border)!important;}
html[data-wd-palette] .arc-reference-beat-title{color:var(--text)!important;}
html[data-wd-palette] .moment-editor{border:1px solid var(--line)!important;}
html[data-wd-palette] .moment-why{color:var(--text)!important;background:var(--wd-important-bg)!important;border-left:3px solid var(--line)!important;}
html[data-wd-palette] .reference-mini-action{border:1px solid var(--line)!important;color:var(--text)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .reference-mini-action:hover{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .reference-mini-action:focus-visible,html[data-wd-palette] .research-mode-bar button:focus-visible{outline:2px solid var(--wd-action-border)!important;}
html[data-wd-palette] .reference-moment{border:1px solid var(--line)!important;}
html[data-wd-palette] .reference-moment-heading{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .reference-moment-date{color:var(--accent)!important;}
html[data-wd-palette] .research-mode-bar{background:var(--wd-surface-tint)!important;border-bottom:1px solid var(--line)!important;color:var(--text)!important;}
html[data-wd-palette] .research-mode-bar button{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;color:var(--text)!important;}
html[data-wd-palette] .usage-toggle{border:1px solid var(--border,var(--line))!important;}
html[data-wd-palette] .relationship-graph{background:var(--paper)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .relationship-graph .relationship-line{stroke:var(--accent)!important;}
html[data-wd-palette] .relationship-node-button{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .relationship-node-button:hover,html[data-wd-palette] .relationship-node-button:focus-visible{background:var(--wd-action-hover)!important;border-color:var(--wd-action-border)!important;outline:2px solid var(--wd-action-border)!important;}
html[data-wd-palette] .relationship-node-type{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;color:var(--accent)!important;}
html[data-wd-palette] .relationship-node-button.is-focus{background:var(--wd-surface-tint)!important;border:1.5px solid var(--wd-action-border)!important;}
html[data-wd-palette] .relationship-node-focus-label{background:var(--wd-surface-tint)!important;color:var(--accent)!important;border-color:var(--wd-action-border)!important;}
html[data-wd-palette] .rich-field{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .rich-toolbar{background:var(--wd-surface-tint)!important;border-bottom:1px solid var(--line)!important;}
html[data-wd-palette] .rich-tool{color:var(--text)!important;}
html[data-wd-palette] .rich-tool:hover,html[data-wd-palette] .rich-tool:focus-visible{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .rich-editable:focus{box-shadow:inset 0 0 0 1px var(--wd-action-border)!important;}
html[data-wd-palette] .rich-editable:empty:before{color:var(--muted)!important;}
html[data-wd-palette] .rich-editable blockquote,html[data-wd-palette] .editor blockquote{border-left:3px solid var(--line)!important;color:var(--text)!important;}
html[data-wd-palette] .rich-editable a,html[data-wd-palette] .editor a{color:var(--text)!important;}
html[data-wd-palette] .rich-manuscript-toolbar{border:1px solid var(--line)!important;}
html[data-wd-palette] .rich-rendered blockquote{border-left:3px solid var(--line)!important;color:var(--text)!important;}
html[data-wd-palette] .rich-rendered a{color:var(--text)!important;}
html[data-wd-palette] .entry-profile-tabs button.selected{background:var(--wd-focused-bg)!important;}
html[data-wd-palette] .entry-read-section>h3{color:var(--text)!important;}
html[data-wd-palette] .character-toolkit-head p{color:var(--accent)!important;}
html[data-wd-palette] .character-toolkit-nav{border-bottom:1px solid var(--line)!important;}
html[data-wd-palette] .character-toolkit-nav button{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;color:var(--text)!important;}
html[data-wd-palette] .character-toolkit-nav button[aria-pressed="true"]{background:var(--wd-focused-bg)!important;color:var(--text)!important;border-color:var(--line)!important;}
html[data-wd-palette] .character-toolkit-nav button:focus-visible,html[data-wd-palette] .character-toolkit-open:focus-visible{outline:2px solid var(--wd-action-border)!important;}
html[data-wd-palette] .character-toolkit-panel p{color:var(--text)!important;}
html[data-wd-palette] .character-toolkit-note{color:var(--text)!important;}
html[data-wd-palette] .character-toolkit-sign{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .character-toolkit-sign small{color:var(--muted)!important;}
html[data-wd-palette] .character-toolkit-type{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .character-toolkit-type .toolkit-archetype{color:var(--accent)!important;}
html[data-wd-palette] .character-toolkit-type dt{color:var(--accent)!important;}
html[data-wd-palette] .character-toolkit-figure{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .character-toolkit-figure figcaption{color:var(--text)!important;}
html[data-wd-palette] .character-toolkit-open{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;color:var(--text)!important;}
html[data-wd-palette] .character-toolkit-lightbox{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .relationship-mutual-option{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .relationship-mutual-option input{accent-color:var(--accent)!important;}
html[data-wd-palette] .relationship-node-direction{color:var(--text)!important;background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .relationship-node-direction.is-mutual{background:var(--wd-surface-tint)!important;border-color:var(--line)!important;color:var(--text)!important;}
html[data-wd-palette] .relationship-direction-key{color:var(--text)!important;}
html[data-wd-palette] .relationship-graph .relationship-line-explicit{stroke:var(--accent)!important;}
html[data-wd-palette] .manuscript-control-bar{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .manuscript-control-bar .rich-ink-tool:hover{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .writing-tools-toggle{border-left:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .writing-tools-toggle:hover,html[data-wd-palette] .writing-tools-toggle[aria-expanded="true"]{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .writing-tools-menu{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .writing-tools-group+.writing-tools-group{border-top:1px solid var(--line)!important;}
html[data-wd-palette] .writing-tools-heading{color:var(--accent)!important;}
html[data-wd-palette] .writing-tools-menu .writing-menu-action:hover,html[data-wd-palette] .writing-tools-menu .writing-menu-action:focus-visible{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .relationship-connection-name.is-editor-action:hover,html[data-wd-palette] .relationship-connection-name.is-editor-action:focus-visible{color:var(--accent)!important;}
html[data-wd-palette] .relationship-focus-link{border:1px solid var(--wd-action-border)!important;color:var(--accent)!important;}
html[data-wd-palette] .relationship-focus-link:hover,html[data-wd-palette] .relationship-focus-link:focus-visible{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .relationship-quick-context{color:var(--text)!important;}
html[data-wd-palette] .relationship-quick-extra{border:1px solid var(--line)!important;}
html[data-wd-palette] .relationship-quick-extra summary{color:var(--text)!important;}
html[data-wd-palette] .quick-switcher-scope{color:var(--text)!important;}
html[data-wd-palette] .relationship-edit-glyph{color:var(--text)!important;}
html[data-wd-palette] .relationship-timeline-fields{border-top:1px solid var(--line)!important;}
html[data-wd-palette] .relationship-timeline-fields h4{color:var(--text)!important;}
html[data-wd-palette] .relationship-milestone-toggle{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .relationship-milestone-toggle input{accent-color:var(--accent)!important;}
html[data-wd-palette] .relationship-milestone{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .relationship-milestone-icon{color:var(--accent)!important;}
html[data-wd-palette] .relationship-milestone-details{color:var(--text)!important;}
html[data-wd-palette] .relationship-milestone-edit{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;color:var(--text)!important;}
html[data-wd-palette] .relationship-milestone-edit:hover{border-color:var(--wd-action-border)!important;}
html[data-wd-palette] .timeline-relationship-links{border-top:1px solid var(--line)!important;}
html[data-wd-palette] .timeline-relationship-links h4,html[data-wd-palette] .timeline-standalone-milestones h4{color:var(--accent)!important;}
html[data-wd-palette] .relationship-visual-milestones{border:1px solid var(--line)!important;}
html[data-wd-palette] .relationship-visual-milestones>summary{color:var(--text)!important;}
html[data-wd-palette] .relationship-linked-dot{color:var(--accent)!important;}
html[data-wd-palette] .timeline-relationship-chip{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;color:var(--text)!important;}
html[data-wd-palette] .moment-inline-editor{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .moment-inline-heading strong{color:var(--accent)!important;}
html[data-wd-palette] .moment-inline-preview{color:var(--text)!important;}
html[data-wd-palette] .browse-mode-tabs{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .browse-mode-tabs button{color:var(--text)!important;}
html[data-wd-palette] .browse-mode-tabs button[aria-pressed="true"]{background:var(--wd-focused-bg)!important;}
html[data-wd-palette] .chapter-assembly-head{color:var(--accent)!important;}
html[data-wd-palette] .chapter-list-panel,html[data-wd-palette] .chapter-detail-panel{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .chapter-choice{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .chapter-choice.selected{background:var(--wd-focused-bg)!important;border-color:var(--wd-action-border)!important;}
html[data-wd-palette] .chapter-choice small{color:var(--muted)!important;}
html[data-wd-palette] .chapter-purpose-label{color:var(--accent)!important;}
html[data-wd-palette] .chapter-sequence{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .chapter-sequence-number{color:var(--text)!important;}
html[data-wd-palette] .chapter-fragment-picker{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .chapter-fragment-picker summary{color:var(--text)!important;}
html[data-wd-palette] .chapter-picker-choice{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .chapter-picker-choice:hover{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .property-editor-row{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .property-chooser{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .property-suggestions{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .property-suggestion:hover,html[data-wd-palette] .property-suggestion:focus-visible{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .entry-read-property{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .entry-read-property:last-child{border-bottom:1px solid var(--line)!important;}
html[data-wd-palette] .entry-read-property-tag{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;}

/* Consistent depth for Library, full Timeline, dropdowns, and editor surfaces. */
html[data-wd-palette] .vt-root{background:var(--paper)!important;border-color:var(--line)!important;color:var(--text)!important}
html[data-wd-palette] .vt-view-switch{background:var(--raised)!important;border-color:var(--line)!important}
html[data-wd-palette] .vt-zoom-controls{background:var(--wd-overlay)!important}
html[data-wd-palette] :is(.vt-decade-card,.vt-year-card,.vt-month-card,.vt-preview,.vt-chronology-entry){background:var(--raised)!important;color:var(--text)!important;border-color:var(--line)!important}
html[data-wd-palette] :is(.vt-decade-card,.vt-year-card,.vt-month-card,.vt-preview,.vt-chronology-entry):hover{background:var(--raised-hover)!important;border-color:var(--wd-action-border)!important}
html[data-wd-palette] :is(.vt-decade-card,.vt-year-card,.vt-chronology-entry).is-selected{background:var(--wd-focused-bg)!important;border-color:var(--wd-focused-border)!important;box-shadow:inset 3px 0 var(--wd-focused-border)!important}
html[data-wd-palette] .smart-select-popover{background:var(--wd-overlay)!important;color:var(--text)!important;border-color:var(--line)!important;box-shadow:0 14px 32px #0007!important}
html[data-wd-palette] .smart-select-option{background:transparent!important;color:var(--text)!important}
html[data-wd-palette] :is(.smart-select-option:hover,.smart-select-option.active,.smart-select-option[aria-selected="true"]){background:var(--wd-action-bg)!important;color:var(--wd-action-ink)!important}
html[data-wd-palette] .smart-select-trigger{background-color:var(--wd-input)!important;color:var(--text)!important;border-color:var(--line)!important}
html[data-wd-palette] .smart-select-trigger:focus-visible{outline:2px solid var(--wd-focused-border)!important}
html[data-wd-palette] .bible-hub-section{background:var(--paper)!important;border-color:var(--line)!important}
html[data-wd-palette] :is(.library-hierarchy-row,.character-group-entry,.library-entry-card,.library-entry,.bible-hub-entry,.timeline-event){background:var(--wd-surface-tint)!important;color:var(--text)!important;border-color:var(--line)!important}
html[data-wd-palette] :is(.library-hierarchy-row.is-expanded-parent,.character-group-heading.is-selected,.library-hierarchy-row.is-selected,.location-tree-row.selected,.bible-location-row.selected,.timeline-event.is-selected){background:var(--wd-focused-bg)!important;border-color:var(--wd-focused-border)!important;box-shadow:inset 3px 0 var(--wd-focused-border)!important}
html[data-wd-palette] :is(.timeline-event,.library-entry-card,.library-hierarchy-row,.character-group-entry):focus-within{border-color:var(--wd-focused-border)!important}
/* Truly important callouts occupy a deeper layer than their surrounding cards. */
html[data-wd-palette] .moment-why{background:var(--wd-important-bg)!important;border-color:var(--wd-important-border)!important;border-left:3px solid var(--accent)!important}
/* Only success/sync status is universally green. */
html[data-wd-palette] #wdCloudButton.wd-cloud-top{background:var(--wd-sync-bg)!important;border-color:var(--wd-sync-border)!important;color:var(--wd-sync-ink)!important}
html[data-wd-palette] .save-state:not(.unsaved) .save-dot{background:var(--wd-sync-dot)!important}
