/* v20.8.22: exhaustive legacy evergreen replacement for non-semantic UI.
   Generated by green_audit / build_theme22; no manuscript colors, Sync or saved-status indicators altered.
   Individual palette color tokens remain in styles.css. Avoid new hard-coded evergreen UI colors. */
html[data-wd-palette] .nav-item.active{color:var(--wd-action-ink)!important;}
html[data-wd-palette] .session-note{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;color:var(--accent)!important;}
html[data-wd-palette] .session-note-content .micro-label{color:var(--accent)!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-action-bg)!important;color:var(--wd-action-ink)!important;}
html[data-wd-palette] .primary-button:hover{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .segment.selected{background:var(--wd-action-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;}
html[data-wd-palette] .help-box{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!important;color:var(--accent)!important;}
html[data-wd-palette] .toast{background:var(--wd-surface-tint)!important;border:1px solid var(--line)!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(--accent)!important;}
html[data-wd-palette] .bio-view-button.selected{background:var(--wd-action-bg)!important;}
html[data-wd-palette] .ability-drag-handle{border:1px dashed var(--line)!important;color:var(--accent)!important;}
html[data-wd-palette] .library-entry-card:hover{border-color:var(--wd-action-border)!important;}
html[data-wd-palette] .editor [data-mark="green"]{background:color-mix(in srgb, var(--wd-surface-tint) 36%, transparent)!important;}
html[data-wd-palette] .arc-overview{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(--accent)!important;}
html[data-wd-palette] .fragment-card-open:hover{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .recent-group-toggle:hover{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .fragment-drag-handle{color:var(--accent)!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;}
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:hover{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .sidebar-rename-btn{color:var(--accent)!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] .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{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-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-action-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-action-bg)!important;}
html[data-wd-palette] .location-tree-row.selected{background:var(--wd-action-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(--accent)!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(--accent)!important;}
html[data-wd-palette] .sidebar-add-button{border:1px solid var(--line)!important;color:var(--wd-action-ink)!important;background:var(--wd-action-bg)!important;}
html[data-wd-palette] .sidebar-add-button:hover{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .sidebar-create-menu{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(--accent)!important;}
html[data-wd-palette] .sidebar-arc-add:hover{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .workspace-button{border:1px solid var(--line)!important;color:var(--accent)!important;}
html[data-wd-palette] .workspace-button:hover{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .workspace-menu{border:1px solid var(--line)!important;}
html[data-wd-palette] .character-photo>.ordered-handle{border:1px solid var(--wd-action-border)!important;background:var(--wd-action-bg)!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] .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(--accent)!important;}
html[data-wd-palette] .reference-top-button:hover,html[data-wd-palette] .reference-top-button[aria-pressed="true"]{color:var(--accent)!important;background:var(--wd-action-hover)!important;}
html[data-wd-palette] .reference-panel{border-left:1px solid var(--line)!important;}
html[data-wd-palette] .reference-category{color:var(--accent)!important;}
html[data-wd-palette] .reference-list-entry{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(--accent)!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(--accent)!important;}
html[data-wd-palette] .reference-footer button{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;color:var(--accent)!important;}
html[data-wd-palette] .reference-footer button:hover{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .bible-view-tabs{border:1px solid var(--line)!important;}
html[data-wd-palette] .bible-view-tabs button{color:var(--accent)!important;}
html[data-wd-palette] .bible-view-tabs button[aria-pressed="true"]{background:var(--wd-action-bg)!important;color:var(--accent)!important;}
html[data-wd-palette] .bible-hub-section{border:1px solid var(--line)!important;}
html[data-wd-palette] .bible-hub-section>summary:after{color:var(--accent)!important;}
html[data-wd-palette] .bible-hub-content{border-top:1px solid var(--line)!important;}
html[data-wd-palette] .bible-hub-entry{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(--accent)!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;}
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(--accent)!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(--accent)!important;}
html[data-wd-palette] .library-entry-editing .editor-reference-toggle[aria-pressed="true"]{background:var(--wd-action-bg)!important;border-color:var(--wd-action-border)!important;}
html[data-wd-palette] .reference-copy{border:1px solid var(--line)!important;color:var(--accent)!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;}
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(--accent)!important;}
html[data-wd-palette] .connection-preview{border:1px solid var(--line)!important;}
html[data-wd-palette] .affiliation-chip{background:color-mix(in srgb, var(--wd-surface-tint) 12%, transparent)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .affiliation-suggestion:hover,html[data-wd-palette] .affiliation-suggestion:focus-visible{background:color-mix(in srgb, var(--wd-action-hover) 12%, transparent)!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;}
html[data-wd-palette] .timeline-event:before{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .timeline-event summary:after{color:var(--accent)!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-picker:hover{background:color-mix(in srgb, var(--wd-action-hover) 11%, transparent)!important;}
html[data-wd-palette] .timeline-age-reference{border:1px solid var(--line, var(--line))!important;background:color-mix(in srgb, var(--wd-surface-tint) 6%, transparent)!important;}
html[data-wd-palette] .timeline-focus-chip{background:color-mix(in srgb, var(--wd-surface-tint) 22%, transparent)!important;color:var(--accent)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .timeline-character-editor{border:1px solid var(--line)!important;}
html[data-wd-palette] .timeline-character-chip{background:color-mix(in srgb, var(--wd-surface-tint) 18%, transparent)!important;}
html[data-wd-palette] .smart-select-trigger{border:1px solid var(--line,var(--line))!important;}
html[data-wd-palette] .smart-select-trigger:focus{outline:2px solid var(--wd-action-border)!important;}
html[data-wd-palette] .smart-select-popover{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{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(--accent)!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(--accent)!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(--accent)!important;}
html[data-wd-palette] .bulk-fragment-choice input{accent-color:var(--accent)!important;}
html[data-wd-palette] .vt-view-switch{border:1px solid var(--line)!important;}
html[data-wd-palette] .vt-view-option{color:var(--accent)!important;}
html[data-wd-palette] .vt-view-option[aria-pressed="true"]{color:var(--accent)!important;background:var(--wd-action-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;}
html[data-wd-palette] .vt-zoom-button{color:var(--accent)!important;}
html[data-wd-palette] .vt-zoom-button[aria-pressed="true"]{background:var(--wd-action-bg)!important;}
html[data-wd-palette] .vt-stats{color:var(--accent)!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(--accent) #1b2526!important;}
html[data-wd-palette] .vt-decade-card{background:var(--wd-surface-tint)!important;color:var(--accent)!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(--accent)!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{color:var(--accent)!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:linear-gradient(180deg,var(--wd-surface-tint),var(--wd-surface-tint))!important;}
html[data-wd-palette] .vt-year-card:not(.has-events) .vt-year-bar{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .vt-year-count{color:var(--accent)!important;}
html[data-wd-palette] .vt-month-card{background:var(--wd-surface-tint)!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(--accent)!important;}
html[data-wd-palette] .vt-event-pill.is-selected,html[data-wd-palette] .vt-chronology-entry.is-selected{background:var(--wd-action-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(--wd-surface-tint)!important;border:1px solid var(--line)!important;}
html[data-wd-palette] .vt-chronology-entry:before{background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .vt-preview{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;}
html[data-wd-palette] .vt-eyebrow{color:var(--accent)!important;}
html[data-wd-palette] .vt-preview-close{border:1px solid var(--line)!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(--line)!important;}
html[data-wd-palette] .relationship-eyebrow{color:var(--accent)!important;}
html[data-wd-palette] .relationship-graph{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(--accent)!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{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{border-block:1px solid var(--line)!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-action-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-action-bg)!important;}
html[data-wd-palette] .location-tree-row.is-expanded-parent.selected{background:var(--wd-action-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(--line)!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(--accent)!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(--accent)!important;}
html[data-wd-palette] .relationship-history-record{border:1px solid var(--line)!important;}
html[data-wd-palette] .relationship-history-record small{color:var(--accent)!important;}
html[data-wd-palette] .relationship-current-tag{color:var(--accent)!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-action-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-action-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] .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 button:hover,html[data-wd-palette] .fragment-sticky-controls button:focus-visible{background:var(--wd-action-hover)!important;}
html[data-wd-palette] .clarity-connection-row{border:1px solid var(--line)!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;}
html[data-wd-palette] .placement-month.is-selected{background:var(--wd-action-bg)!important;border-color:var(--wd-action-border)!important;}
html[data-wd-palette] .placement-year-tick{border:1px solid var(--line)!important;}
html[data-wd-palette] .placement-year-tick.is-selected{background:var(--wd-action-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(--accent)!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{border:1px solid var(--line)!important;}
html[data-wd-palette] .desk-notes-filter button{border:1px solid var(--line)!important;}
html[data-wd-palette] .desk-notes-filter button[aria-pressed="true"]{background:var(--wd-action-bg)!important;border-color:var(--wd-action-border)!important;}
html[data-wd-palette] .desk-note-item{border:1px solid var(--line)!important;}
html[data-wd-palette] .desk-note-item[aria-pressed="true"]{background:var(--wd-action-bg)!important;border-color:var(--wd-action-border)!important;}
html[data-wd-palette] .desk-note-type{color:var(--accent)!important;}
html[data-wd-palette] .desk-note-quote{border-left:3px solid var(--line)!important;}
@media (min-width:901px){html[data-wd-palette] .desk-notes-resize-width:hover,html[data-wd-palette] .desk-notes-resize-width.resizing{background:linear-gradient(90deg,var(--wd-action-hover),transparent)!important;}
html[data-wd-palette] .desk-notes-resize-height:hover,html[data-wd-palette] .desk-notes-resize-height.resizing{background:linear-gradient(var(--wd-action-hover),transparent)!important;}
html[data-wd-palette] .desk-notes-resize-width:focus-visible,html[data-wd-palette] .desk-notes-resize-height:focus-visible{outline:2px solid var(--wd-action-border)!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-action-bg)!important;border-color:var(--wd-action-border)!important;color:var(--accent)!important;}
html[data-wd-palette] .structure-section-toggle{color:var(--accent)!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(--accent)!important;}
html[data-wd-palette] .arc-skeleton-edit{color:var(--accent)!important;}
html[data-wd-palette] .arc-skeleton-beat{color:var(--accent)!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] .moment-editor{border:1px solid var(--line)!important;}
html[data-wd-palette] .moment-why{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(--accent)!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-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(--accent)!important;}
html[data-wd-palette] .research-mode-bar button{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;color:var(--accent)!important;}
@media (min-width:901px){html[data-wd-palette] .reference-resize-grip:hover,html[data-wd-palette] .reference-resize-grip:focus-visible{background:linear-gradient(90deg,transparent,var(--wd-action-hover),transparent)!important;}}
html[data-wd-palette] .usage-summary{background:color-mix(in srgb, var(--wd-surface-tint) 6%, transparent)!important;}
html[data-wd-palette] .usage-feature-row{border-bottom:1px solid var(--line)!important;}
html[data-wd-palette] .relationship-graph{background:radial-gradient(ellipse at 50% 50%,var(--wd-surface-tint) 0%,var(--wd-surface-tint) 49%,#141e20 100%)!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(--line)!important;}
html[data-wd-palette] .relationship-node-focus-label{background:var(--wd-surface-tint)!important;color:var(--accent)!important;border-color:var(--line)!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(--accent)!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(--accent)!important;}
html[data-wd-palette] .rich-editable blockquote,html[data-wd-palette] .editor blockquote{border-left:3px solid var(--line)!important;color:var(--accent)!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(--accent)!important;}
html[data-wd-palette] .entry-profile-tabs button.selected{background:var(--wd-action-bg)!important;}
html[data-wd-palette] .entry-read-section>h3{color:var(--accent)!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;color:var(--accent)!important;}
html[data-wd-palette] .character-toolkit-nav button[aria-pressed="true"]{background:var(--wd-action-bg)!important;color:var(--accent)!important;border-color:var(--wd-action-border)!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(--accent)!important;}
html[data-wd-palette] .character-toolkit-note{color:var(--accent)!important;}
html[data-wd-palette] .character-toolkit-sign{border:1px solid var(--line)!important;}
html[data-wd-palette] .character-toolkit-sign small{color:var(--accent)!important;}
html[data-wd-palette] .character-toolkit-type{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{border:1px solid var(--line)!important;}
html[data-wd-palette] .character-toolkit-figure figcaption{color:var(--accent)!important;}
html[data-wd-palette] .character-toolkit-open{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;color:var(--accent)!important;}
html[data-wd-palette] .character-toolkit-lightbox{border:1px solid var(--line)!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(--accent)!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(--accent)!important;}
html[data-wd-palette] .relationship-direction-key{color:var(--accent)!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] .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(--line)!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(--accent)!important;}
html[data-wd-palette] .relationship-quick-extra{border:1px solid var(--line)!important;}
html[data-wd-palette] .relationship-quick-extra summary{color:var(--accent)!important;}
html[data-wd-palette] .quick-switcher-scope{color:var(--accent)!important;}
html[data-wd-palette] .relationship-edit-glyph{color:var(--accent)!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(--accent)!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(--accent)!important;}
html[data-wd-palette] .relationship-milestone-edit{border:1px solid var(--line)!important;background:var(--wd-surface-tint)!important;color:var(--accent)!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(--accent)!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(--accent)!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(--accent)!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(--accent)!important;}
html[data-wd-palette] .browse-mode-tabs button[aria-pressed="true"]{background:var(--wd-action-bg)!important;}
html[data-wd-palette] .chapter-list-panel,html[data-wd-palette] .chapter-detail-panel{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-action-bg)!important;border-color:var(--wd-action-border)!important;}
html[data-wd-palette] .chapter-choice small{color:var(--accent)!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(--accent)!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(--accent)!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;}
html[data-wd-palette] .property-chooser{border:1px solid var(--line)!important;}
html[data-wd-palette] .property-suggestions{border:1px solid var(--line)!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;}
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;}

/* v20.8.22: separate ordinary surfaces, selected item, and high-priority information.
   With an inherited palette, no UI background is universally green. */
html[data-wd-palette]{
 --wd-important-bg:color-mix(in srgb,var(--bg) 87%,#000 13%);
 --wd-important-border:var(--wd-action-border);
 --wd-focused-bg:color-mix(in srgb,var(--bg) 82%,var(--accent) 18%);
 --wd-focused-border:var(--accent);
 --wd-focus-glow:color-mix(in srgb,var(--accent) 30%,transparent);
}
html[data-wd-tone="light"]{
 --wd-important-bg:color-mix(in srgb,var(--raised) 86%,var(--accent) 14%);
 --wd-focused-bg:color-mix(in srgb,var(--paper) 82%,var(--accent) 18%);
}
/* No oversaturated hover background, but the selected item should have visible edge contrast. */
html[data-wd-palette] :is(.location-tree-row.selected,.bible-location-row.selected,.character-group-heading.is-selected,.organization-hierarchy-row.is-selected,.library-hierarchy-row.selected,.library-hierarchy-row.is-expanded-parent,.recent-draggable.selected-fragment-row>.recent-item.active,.relationship-graph .relationship-node-button.is-focus,.timeline-event.is-selected,.chapter-choice.selected,.fragment-card.selected,.wd-mobile-tabbar button.active){
 background:var(--wd-focused-bg)!important;
 border-color:var(--wd-focused-border)!important;
 box-shadow:inset 3px 0 0 var(--wd-focused-border);
 color:var(--text)!important;
}
html[data-wd-palette] :is(.location-tree-row.selected,.bible-location-row.selected,.character-group-heading.is-selected,.organization-hierarchy-row.is-selected,.library-hierarchy-row.selected,.library-hierarchy-row.is-expanded-parent,.recent-draggable.selected-fragment-row>.recent-item.active,.chapter-choice.selected,.wd-mobile-tabbar button.active) :is(strong,span,small){color:inherit}
html[data-wd-palette] .moment-why,
html[data-wd-palette] .moment-inline-editor{
 background:var(--wd-important-bg)!important;
 border:1px solid var(--wd-important-border)!important;
 border-left:3px solid var(--accent)!important;
 border-radius:11px;
 color:var(--text)!important;
}
html[data-wd-palette] .moment-why :is(h3,strong,summary),
html[data-wd-palette] .moment-inline-heading strong{color:var(--accent)!important}
body[data-wd-emphasis="subtle"] :is(.moment-why,.moment-inline-editor){border-left-width:2px!important;background:var(--paper)!important}
body[data-wd-emphasis="balanced"] :is(.moment-why,.moment-inline-editor){border-left-width:3px!important}
body[data-wd-emphasis="strong"] :is(.moment-why,.moment-inline-editor){border-left-width:4px!important;box-shadow:0 0 0 1px var(--wd-focus-glow)}
/* Active text editing receives visual distinction; dormant surrounding panels do not. */
html[data-wd-palette] :is(.rich-field,.property-editor-row,.modal-content,.fragment-context-inside):focus-within{
 border-color:var(--wd-focused-border)!important;
 box-shadow:inset 0 0 0 1px var(--wd-focus-glow);
}
/* Reserved meaning, regardless of the active palette. */
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] #wdCloudButton.wd-cloud-top:hover{background:var(--wd-sync-hover)!important}
html[data-wd-palette] .save-state:not(.unsaved) .save-dot{background:var(--wd-sync-dot)!important}
@media(prefers-reduced-motion:reduce){html[data-wd-palette] .moment-why{transition:none}}
