.theme-toggle{border:1px solid var(--palette-line);background:var(--palette-raised);height:34px;color:var(--palette-text);font:inherit;cursor:pointer;border-radius:8px;flex:none;align-items:center;gap:7px;padding:0 10px;font-size:13px;font-weight:600;display:inline-flex}.theme-toggle:hover,.theme-toggle:focus-visible{border-color:var(--palette-accent);background:var(--palette-accent-soft)}:root[data-theme=dark]{background:var(--palette-page);color:var(--palette-text)}:root[data-theme=dark] body{background:var(--palette-page)}.theme-dark{color:var(--palette-text);background:var(--palette-page)}.theme-dark .main-shell,.theme-dark .app-shell.workspace-fullscreen,.theme-dark .placeholder-view,.theme-dark .search-view,.theme-dark .research-view,.theme-dark .person-overview,.theme-dark .kinship-view{background:var(--palette-page);color:var(--palette-text)}.theme-dark .app-shell:fullscreen{background:var(--palette-page);color:var(--palette-text)}.theme-dark .person-overview-layer.is-modal{background:#050a08a6}.theme-dark .person-overview-layer.is-modal .person-overview{border-color:var(--palette-line);box-shadow:0 24px 70px #02050480}.theme-dark .topbar,.theme-dark .genealogy-toolbar,.theme-dark .focus-bar,.theme-dark .person-overview-toolbar,.theme-dark .kinship-toolbar{background:var(--palette-surface);border-color:var(--palette-line);color:var(--palette-text)}.theme-dark .topbar,.theme-dark .genealogy-toolbar,.theme-dark .person-overview-toolbar,.theme-dark .kinship-toolbar,.theme-dark .focus-bar,.theme-dark .research-view,.theme-dark .research-panel,.theme-dark .person-overview,.theme-dark .kinship-view,.theme-dark .person-overview-scroll,.theme-dark .kinship-scroll{color:var(--palette-text)}.theme-dark .sidebar{background:var(--palette-sidebar)}.theme-dark .global-search input,.theme-dark .people-filters input,.theme-dark input,.theme-dark textarea,.theme-dark select{background-color:var(--palette-input);border-color:var(--palette-line);color:var(--palette-text)}.theme-dark input::placeholder,.theme-dark textarea::placeholder{color:var(--palette-muted)}.theme-dark .global-search input:focus,.theme-dark input:focus-visible,.theme-dark textarea:focus-visible,.theme-dark select:focus-visible{border-color:var(--palette-accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--palette-accent) 17%, transparent)}.theme-dark .secondary,.theme-dark .theme-toggle,.theme-dark .icon-button,.theme-dark .generation-control button,.theme-dark .generation-control select,.theme-dark .focus-generation-button,.theme-dark .kinship-tabs button{background:var(--palette-raised);border-color:var(--palette-line);color:var(--palette-text)}.theme-dark .secondary:hover,.theme-dark .theme-toggle:hover,.theme-dark .icon-button:hover,.theme-dark .focus-generation-button:hover,.theme-dark .kinship-tabs button:hover{background:var(--palette-accent-soft)}.theme-dark .primary{background:var(--palette-accent);border-color:var(--palette-accent);color:var(--palette-on-accent)}.theme-dark .primary:hover{background:var(--palette-accent-strong)}.theme-dark .quick-results,.theme-dark .research-browser-list,.theme-dark .research-browser-detail,.theme-dark .source-group,.theme-dark .stats>div,.theme-dark .overview-card,.theme-dark .task-card,.theme-dark .person-section,.theme-dark .research-panel,.theme-dark .event-editor,.theme-dark .person-editor,.theme-dark .research-dialog-inner,.theme-dark .help-card,.theme-dark .detail-panel,.theme-dark .person-media-item,.theme-dark .place-coordinate-editor,.theme-dark .focus-children-menu,.theme-dark .minimap,.theme-dark .tree-quick-tools{background:var(--palette-surface);border-color:var(--palette-line);color:var(--palette-text);box-shadow:0 10px 30px #050a083d}.theme-dark .search-hero{background:var(--palette-surface);border-color:var(--palette-line);color:var(--palette-text)}.theme-dark .search-title h1,.theme-dark .result-heading h2,.theme-dark .overview-card h2,.theme-dark .stats strong,.theme-dark .task-card h2{color:var(--palette-text)}.theme-dark .result-heading p,.theme-dark .source-disclosure,.theme-dark .registry-source span,.theme-dark .stats span,.theme-dark .overview-card p,.theme-dark .task-card p,.theme-dark .empty-state{color:var(--palette-muted)}.theme-dark .registry-form label>span,.theme-dark .task-person{color:var(--palette-accent)}.theme-dark .hero-icon{background:var(--palette-accent-soft);color:var(--palette-accent)}.theme-dark .source-group{border-color:var(--palette-line)}.theme-dark .subscription-source-group{background:#2a2922;border-color:#756244}.theme-dark .group-title{border-color:color-mix(in srgb, var(--group) 35%, var(--palette-surface))}.theme-dark .registry-source,.theme-dark .registry-source-wrap{border-color:var(--palette-line)}.theme-dark .registry-source,.theme-dark .registry-source strong{color:var(--palette-text)}.theme-dark .source-mark{background:color-mix(in srgb, var(--group) 24%, var(--palette-surface))}.theme-dark .registry-source>svg{color:var(--palette-muted)}.theme-dark .registry-save-source{background:color-mix(in srgb, var(--group) 18%, var(--palette-surface));border-color:color-mix(in srgb, var(--group) 42%, var(--palette-line));color:var(--palette-text)}.theme-dark .registry-save-source:hover{background:color-mix(in srgb, var(--group) 28%, var(--palette-surface))}.theme-dark .stats svg,.theme-dark .card-heading>svg{color:var(--palette-accent)}.theme-dark .task-toolbar button{background:var(--palette-raised);border-color:var(--palette-line);color:var(--palette-text)}.theme-dark .task-toolbar button:hover{background:var(--palette-accent-soft)}.theme-dark .task-toolbar button.selected{background:var(--palette-accent-soft);border-color:var(--palette-accent);color:var(--palette-text)}.theme-dark .research-scroll>button,.theme-dark .research-reference-list button,.theme-dark .person-section>header,.theme-dark .person-section li,.theme-dark .person-panel-event,.theme-dark .research-panel .person-tabs,.theme-dark .person-overview-toolbar,.theme-dark .kinship-tabs,.theme-dark .event-editor header,.theme-dark .event-editor footer{border-color:var(--palette-line)}.theme-dark .research-reference-list button{background:var(--palette-raised);color:var(--palette-text)}.theme-dark .quick-results button:hover,.theme-dark .quick-results button:focus-visible{background:var(--palette-accent-soft);color:var(--palette-text);outline:2px solid var(--palette-accent);outline-offset:1px}.theme-dark .quick-results button:hover small,.theme-dark .quick-results button:focus-visible small{color:var(--palette-muted)}.theme-dark .event-row:hover,.theme-dark .event-row:focus-visible{background:var(--palette-accent-soft);color:var(--palette-text)}.theme-dark .event-row:hover time,.theme-dark .event-row:hover .event-location,.theme-dark .event-row:focus-visible time,.theme-dark .event-row:focus-visible .event-location,:is(.theme-light,.theme-dark) .person-overview :is(.event-row time,.event-location,.person-note p){color:var(--palette-muted)}:is(.theme-light,.theme-dark) .person-overview :is(.event-source-count,.person-note svg,.event-copy-trigger){color:var(--palette-accent)}:is(.theme-light,.theme-dark) .person-overview .event-dot{background:var(--palette-accent-soft);border-color:var(--palette-line);color:var(--palette-accent)}:is(.theme-light,.theme-dark) .person-overview :is(.event-row,.person-note),:is(.theme-light,.theme-dark) .person-overview .event-timeline li:not(:last-child):before{border-color:var(--palette-line)}:is(.theme-light,.theme-dark) .person-overview .event-copy-trigger:is(:hover,:focus-visible){background:var(--palette-accent-soft);border-color:var(--palette-accent)}.theme-dark .research-reference-list button span{color:var(--palette-muted)}.theme-dark .media-library-grid article{background:var(--palette-surface);border-color:var(--palette-line);color:var(--palette-text)}.theme-dark .media-library-grid article h2{color:var(--palette-text)}.theme-dark .media-library-grid article small{color:var(--palette-muted)}.theme-dark .media-library-grid article>button:not(.secondary):not(.media-delete-button):not(.media-preview-trigger){background:var(--palette-raised);color:var(--palette-text)}.theme-dark .media-library-grid article>button:not(.secondary):not(.media-delete-button):not(.media-preview-trigger):hover{background:var(--palette-accent-soft)}.theme-dark .media-library-grid .media-delete-button{color:#ffc5ba;background:#392824;border-color:#774b43}.theme-dark .media-placeholder{background:var(--palette-raised);color:var(--palette-muted)}.theme-dark .citation,.theme-dark .event-citation-row,.theme-dark .event-note-edit{background:var(--palette-raised);border-color:var(--palette-line);color:var(--palette-text)}.theme-dark .citation strong{color:var(--palette-text)}.theme-dark .citation span,.theme-dark .citation p{color:var(--palette-muted)}.theme-dark .citation>svg,.theme-dark .citation a{color:var(--palette-accent)}.theme-dark .printable-report,.theme-dark .report-stats>div,.theme-dark .report-sections section{background:var(--palette-surface);border-color:var(--palette-line);color:var(--palette-text);box-shadow:0 10px 30px #050a083d}.theme-dark .printable-report h2,.theme-dark .printable-report h3,.theme-dark .report-stats strong,.theme-dark .report-sections h2,.theme-dark .report-person,.theme-dark .report-pair button:not(.report-merge){color:var(--palette-text)}.theme-dark .report-stats span,.theme-dark .report-sections p,.theme-dark .report-pair>.report-pair-connector{color:var(--palette-muted)}.theme-dark .report-stats svg,.theme-dark .report-sections h2 span{color:var(--palette-accent)}.theme-dark .report-person,.theme-dark .report-pair button:not(.report-merge){border-color:var(--palette-line)}.theme-dark .report-person:hover,.theme-dark .report-pair button:not(.report-merge):hover{color:var(--palette-accent)}.theme-dark .duplicate-comparison-card{background:var(--palette-raised);border-color:var(--palette-line);color:var(--palette-text)}.theme-dark .duplicate-comparison-card h3{color:var(--palette-text)}.theme-dark .duplicate-comparison-tree-link{color:var(--palette-accent)}.theme-dark .duplicate-comparison-tree-link:hover,.theme-dark .duplicate-comparison-tree-link:focus-visible{color:var(--palette-accent-strong)}.theme-dark .duplicate-comparison-card dt,.theme-dark .duplicate-comparison-card dd+dd,.theme-dark .duplicate-comparison-card li span,.theme-dark .duplicate-comparison-card li small{color:var(--palette-muted)}.theme-dark .duplicate-comparison-card li{border-color:var(--palette-line)}.theme-dark .source-marker-editor,.theme-dark .source-marker-list{background:var(--palette-raised);border-color:var(--palette-line);color:var(--palette-text)}.theme-dark .source-marker-editor p{color:var(--palette-muted)}.theme-dark .source-marker-delete{color:#ffc5ba;background:#392824;border-color:#774b43}.theme-dark .research-scroll>button:hover,.theme-dark .research-scroll>button.selected,.theme-dark .research-reference-list button:hover,.theme-dark .focus-children-menu button:hover,.theme-dark .tree-quick-tools button:hover:not(:disabled),.theme-dark .tree-quick-tools button.is-active{background:var(--palette-accent-soft)}.theme-dark .place-timeline,.theme-dark .place-timeline button{border-color:var(--palette-line)}.theme-dark .place-timeline button:hover{background:var(--palette-raised)}.theme-dark .place-timeline span,.theme-dark .place-timeline small{color:var(--palette-muted)}.theme-dark .research-browser-detail h1,.theme-dark .research-browser-detail h2,.theme-dark .research-browser-detail h3,.theme-dark .research-view h1,.theme-dark .person-overview h1,.theme-dark .kinship-view h1,.theme-dark .person-section h2,.theme-dark .person-section h3,.theme-dark .tree-heading h1,.theme-dark .topbar-tree-title h1,.theme-dark .focus-bar strong{color:var(--palette-text)}.theme-dark .event-dialog{background:var(--palette-surface);border-color:var(--palette-line);color:var(--palette-text);box-shadow:0 25px 80px #02050480}.theme-dark .event-dialog::backdrop{background:#050a08a6}.theme-dark .event-dialog form>header,.theme-dark .event-dialog form>footer{border-color:var(--palette-line)}.theme-dark .event-dialog footer>span,.theme-dark .event-description,.theme-dark .event-note-edit label{color:var(--palette-muted)}.theme-dark .event-note-edit textarea{background:var(--palette-input);border-color:var(--palette-line);color:var(--palette-text)}.theme-dark .research-view-heading p:last-child,.theme-dark .research-scroll small,.theme-dark .research-panel,.theme-dark .person-overview-toolbar>span,.theme-dark .kinship-toolbar>span,.theme-dark .kinship-heading>p:last-child,.theme-dark .focus-label,.theme-dark .focus-years,.theme-dark .people-visible,.theme-dark .local-status,.theme-dark .breadcrumbs,.theme-dark .eyebrow,.theme-dark .topbar-tree-title p,.theme-dark .placeholder-view p{color:var(--palette-muted)}.theme-dark .ancestor-viewport{background-color:var(--palette-canvas);background-image:radial-gradient(var(--palette-canvas-dot) .75px, transparent .75px)}.theme-dark .branch-palette-label{color:var(--palette-muted)}.theme-dark .canvas-caption{background:color-mix(in srgb, var(--palette-surface) 87%, transparent);color:var(--palette-muted)}.theme-dark .ancestor-node{--branch-bg:#26372e;--branch-border:#67806b;--branch-dot:#b0c690}.theme-dark .ancestor-node .node-card{color:var(--palette-text);box-shadow:0 3px 8px #060b0838;background:var(--branch-bg,#26372e)!important;border-color:var(--branch-border,#607767)!important}.theme-dark .ancestor-node.is-selected .node-card{box-shadow:0 0 0 var(--selection-halo-width,7px) color-mix(in srgb, var(--palette-accent) 38%, transparent), 0 3px 8px #060b0844;border-color:var(--palette-accent)!important}.theme-dark .node-heading,.theme-dark .node-dates,.theme-dark .node-life-summary,.theme-dark .node-details,.theme-dark .node-actions>span,.theme-dark .node-actions button,.theme-dark .node-actions .node-source-count{color:var(--palette-text)}.theme-dark .node-actions,.theme-dark .is-compact .node-actions{background:color-mix(in srgb, var(--palette-canvas) 60%, transparent);border-color:var(--palette-line)}.theme-dark .tree-modes{background:var(--palette-raised);border-color:var(--palette-line)}.theme-dark .tree-modes button{color:var(--palette-muted)}.theme-dark .tree-modes button[aria-pressed=true]{background:var(--palette-accent-soft);color:var(--palette-text);box-shadow:0 2px 6px #060a083b}.theme-dark .generation-control{background:var(--palette-raised);border-color:var(--palette-line);color:var(--palette-text)}.theme-dark .ancestor-connections path{stroke:var(--palette-line)}.theme-dark .partner-connection{stroke:var(--palette-muted)!important}.theme-dark .fan-stage,.theme-dark .kinship-stage,.theme-dark .map-canvas{background-color:var(--palette-canvas)}.theme-dark .toast{background:var(--palette-surface)}:root[data-theme=light]{--palette-page:#f4f2ec;--palette-surface:#fbfaf6;--palette-raised:#fffefa;--palette-sidebar:#263c35;--palette-sidebar-deep:#182d27;--palette-text:#26362f;--palette-muted:#718079;--palette-line:#deddd5;--palette-input:#fffefa;--palette-canvas:#f6f4ee;--palette-canvas-dot:#acb4a333;--palette-accent:#385b47;--palette-accent-strong:#263c35;--palette-accent-soft:#e6efe1;--palette-on-accent:#fff}:root[data-theme=dark]{--palette-page:#151d1a;--palette-surface:#1d2925;--palette-raised:#26362f;--palette-sidebar:#10241e;--palette-sidebar-deep:#0b1915;--palette-text:#e2e9e1;--palette-muted:#aebcaf;--palette-line:#3f5147;--palette-input:#202d28;--palette-canvas:#16211d;--palette-canvas-dot:#859b8730;--palette-accent:#91ae7d;--palette-accent-strong:#a5bd90;--palette-accent-soft:#33463b;--palette-on-accent:#132018}:root{--palette-ocean-accent:#326a9a}:root[data-theme=dark]{--palette-ocean-accent:#74b5e5}:root[data-theme=light][data-palette=blue]{--palette-page:#edf5fb;--palette-surface:#f8fbff;--palette-raised:#fff;--palette-sidebar:#203b5a;--palette-sidebar-deep:#172d46;--palette-text:#20364a;--palette-muted:#617a8f;--palette-line:#ccdde9;--palette-input:#fff;--palette-canvas:#f1f7fc;--palette-canvas-dot:#7da7c42b;--palette-accent:var(--palette-ocean-accent);--palette-accent-strong:#244d71;--palette-accent-soft:#dcecf7}:root[data-theme=dark][data-palette=blue]{--palette-page:#101826;--palette-surface:#17243a;--palette-raised:#1e3049;--palette-sidebar:#0c1929;--palette-sidebar-deep:#091321;--palette-text:#e7f1fb;--palette-muted:#b2c5d8;--palette-line:#38506b;--palette-input:#1b2b42;--palette-canvas:#111d2e;--palette-canvas-dot:#78a7cd2e;--palette-accent:var(--palette-ocean-accent);--palette-accent-strong:#91c8ee;--palette-accent-soft:#2b4764;--palette-on-accent:#0b1d30}:root[data-theme=light][data-palette=wine]{--palette-page:#fbf3f1;--palette-surface:snow;--palette-raised:#fff;--palette-sidebar:#54283a;--palette-sidebar-deep:#3d1d2b;--palette-text:#482b36;--palette-muted:#80636e;--palette-line:#e8d4d7;--palette-input:#fff;--palette-canvas:#fcf6f4;--palette-canvas-dot:#bd87922b;--palette-accent:#93465e;--palette-accent-strong:#702f45;--palette-accent-soft:#f3dfe3}:root[data-theme=dark][data-palette=wine]{--palette-page:#21131a;--palette-surface:#301b25;--palette-raised:#402330;--palette-sidebar:#29111c;--palette-sidebar-deep:#1c0b12;--palette-text:#f5e8eb;--palette-muted:#d0b6bc;--palette-line:#674150;--palette-input:#3a202b;--palette-canvas:#27151e;--palette-canvas-dot:#c2798a2b;--palette-accent:#dc8ca2;--palette-accent-strong:#edabb9;--palette-accent-soft:#593143;--palette-on-accent:#321321}:root[data-theme=light][data-palette=ember]{--palette-page:#fcf6ed;--palette-surface:#fffcf7;--palette-raised:#fff;--palette-sidebar:#583326;--palette-sidebar-deep:#41241b;--palette-text:#493126;--palette-muted:#806b5d;--palette-line:#eadac6;--palette-input:#fff;--palette-canvas:#fdf7ef;--palette-canvas-dot:#c393642b;--palette-accent:#b95429;--palette-accent-strong:#8d3d20;--palette-accent-soft:#f7e1cf}:root[data-theme=dark][data-palette=ember]{--palette-page:#211712;--palette-surface:#302019;--palette-raised:#412a20;--palette-sidebar:#281811;--palette-sidebar-deep:#1b0f0a;--palette-text:#f6ebe3;--palette-muted:#d4bcad;--palette-line:#6c4a39;--palette-input:#39251c;--palette-canvas:#271913;--palette-canvas-dot:#d488502b;--palette-accent:#f09b5b;--palette-accent-strong:#ffb77d;--palette-accent-soft:#5b392b;--palette-on-accent:#35170b}:root[data-theme]{background:var(--palette-page);color:var(--palette-text);--forest:var(--palette-sidebar);--green:var(--palette-accent);--lime:var(--palette-accent-strong);--paper:var(--palette-surface);--line:var(--palette-line);--muted:var(--palette-muted)}:root[data-theme] body,.theme-light,.theme-dark{background:var(--palette-page);color:var(--palette-text)}.theme-light .eyebrow,.theme-dark .eyebrow{color:var(--palette-accent)}.theme-light .main-shell,.theme-dark .main-shell,.theme-light .app-shell.workspace-fullscreen,.theme-dark .app-shell.workspace-fullscreen,.theme-light .placeholder-view,.theme-dark .placeholder-view,.theme-light .search-view,.theme-dark .search-view,.theme-light .research-view,.theme-dark .research-view,.theme-light .person-overview,.theme-dark .person-overview,.theme-light .kinship-view,.theme-dark .kinship-view{background:var(--palette-page);color:var(--palette-text)}.theme-light .app-shell:fullscreen{background:var(--palette-page);color:var(--palette-text)}.theme-dark .app-shell:fullscreen{background:var(--palette-page);color:var(--palette-text)}.theme-light .topbar,.theme-dark .topbar,.theme-light .genealogy-toolbar,.theme-dark .genealogy-toolbar,.theme-light .focus-bar,.theme-dark .focus-bar,.theme-light .person-overview-toolbar,.theme-dark .person-overview-toolbar,.theme-light .kinship-toolbar,.theme-dark .kinship-toolbar{background:var(--palette-surface);border-color:var(--palette-line);color:var(--palette-text)}.theme-light .sidebar,.theme-dark .sidebar{background:var(--palette-sidebar)}.theme-light input,.theme-dark input,.theme-light textarea,.theme-dark textarea,.theme-light select,.theme-dark select,.theme-light .global-search input,.theme-dark .global-search input,.theme-light .people-filters input,.theme-dark .people-filters input,.theme-light .people-filters select,.theme-dark .people-filters select{background-color:var(--palette-input);border-color:var(--palette-line);color:var(--palette-text)}.theme-light input::placeholder,.theme-dark input::placeholder,.theme-light textarea::placeholder,.theme-dark textarea::placeholder,.theme-light .global-search>svg,.theme-dark .global-search>svg{color:var(--palette-muted)}.theme-light .global-search input:focus,.theme-dark .global-search input:focus,.theme-light input:focus-visible,.theme-dark input:focus-visible,.theme-light textarea:focus-visible,.theme-dark textarea:focus-visible,.theme-light select:focus-visible,.theme-dark select:focus-visible{border-color:var(--palette-accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--palette-accent) 22%, transparent)}.theme-light .secondary,.theme-dark .secondary,.theme-light .theme-toggle,.theme-dark .theme-toggle,.theme-light .icon-button,.theme-dark .icon-button,.theme-light .generation-control button,.theme-dark .generation-control button,.theme-light .generation-control select,.theme-dark .generation-control select,.theme-light .focus-generation-button,.theme-dark .focus-generation-button{background:var(--palette-raised);border-color:var(--palette-line);color:var(--palette-text)}.theme-light .secondary:hover,.theme-dark .secondary:hover,.theme-light .secondary:focus-visible,.theme-dark .secondary:focus-visible{background:var(--palette-accent-soft);border-color:var(--palette-accent);color:var(--palette-text)}.theme-light .primary,.theme-dark .primary{background:var(--palette-accent);border-color:var(--palette-accent);color:var(--palette-on-accent)}.theme-light .primary:hover,.theme-dark .primary:hover{background:var(--palette-accent-strong);border-color:var(--palette-accent-strong)}.theme-light .tree-modes,.theme-dark .tree-modes,.theme-light .generation-control,.theme-dark .generation-control{background:var(--palette-raised);border-color:var(--palette-line);color:var(--palette-text)}.theme-light .tree-modes button,.theme-dark .tree-modes button{color:var(--palette-muted)}.theme-light .tree-modes button[aria-pressed=true],.theme-dark .tree-modes button[aria-pressed=true]{background:var(--palette-accent-soft);color:var(--palette-text)}.theme-light .focus-generation-button:hover:not(:disabled),.theme-dark .focus-generation-button:hover:not(:disabled),.theme-light .focus-generation-button:focus-visible,.theme-dark .focus-generation-button:focus-visible,.theme-light .generation-control button:hover:not(:disabled),.theme-dark .generation-control button:hover:not(:disabled){background:var(--palette-accent-soft);border-color:var(--palette-accent);color:var(--palette-text)}.theme-light :is(button,a,input,select,textarea):focus-visible,.theme-dark :is(button,a,input,select,textarea):focus-visible{outline-color:var(--palette-accent)}.theme-light .generation-control select:focus-visible,.theme-dark .generation-control select:focus-visible{border-color:var(--palette-accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--palette-accent) 22%, transparent)}.theme-light .generation-total,.theme-dark .generation-total,.theme-light .focus-label,.theme-dark .focus-label,.theme-light .focus-years,.theme-dark .focus-years,.theme-light .people-visible,.theme-dark .people-visible{color:var(--palette-muted)}:is(.theme-light,.theme-dark) .generation-control button.generation-total{width:auto;height:auto;color:var(--palette-muted);background:0 0;border:0}:is(.theme-light,.theme-dark) .generation-control button.generation-total:hover:not(:disabled){color:var(--palette-accent)}.theme-light .focus-bar strong,.theme-dark .focus-bar strong{color:var(--palette-text)}.theme-light .focus-children-menu,.theme-dark .focus-children-menu{background:var(--palette-raised);border-color:var(--palette-line);color:var(--palette-text)}.theme-light .focus-children-menu button,.theme-dark .focus-children-menu button{color:var(--palette-text)}.theme-light .focus-children-menu button:hover,.theme-dark .focus-children-menu button:hover,.theme-light .focus-children-menu button:focus-visible,.theme-dark .focus-children-menu button:focus-visible{background:var(--palette-accent-soft)}.theme-light .focus-children-menu>span,.theme-dark .focus-children-menu>span,.theme-light .focus-children-menu small,.theme-dark .focus-children-menu small{color:var(--palette-muted)}.theme-light .ancestor-viewport,.theme-dark .ancestor-viewport{background-color:var(--palette-canvas);background-image:radial-gradient(var(--palette-canvas-dot) .75px, transparent .75px)}.theme-light .canvas-caption,.theme-dark .canvas-caption{background:color-mix(in srgb, var(--palette-surface) 90%, transparent);color:var(--palette-muted)}.theme-light .canvas-caption strong,.theme-dark .canvas-caption strong{color:var(--palette-text)}:is(.theme-light,.theme-dark) .canvas-related-link{color:var(--palette-accent)}.settings-view{width:min(960px,100%);color:var(--palette-text);margin:0;padding:30px clamp(20px,4vw,56px) 64px}.settings-heading{margin-bottom:26px}.settings-heading h1{margin:4px 0 8px;font:600 34px Newsreader,Georgia,serif}.settings-heading>p:last-child{max-width:600px;color:var(--palette-muted);margin:0;line-height:1.6}.settings-section{border:1px solid var(--palette-line);background:var(--palette-surface);border-radius:16px;margin-top:18px;padding:24px}.settings-accordion{border:1px solid var(--palette-line);background:var(--palette-surface);border-radius:14px;margin-top:14px;overflow:hidden}.settings-accordion>summary{min-height:72px;color:var(--palette-text);cursor:pointer;align-items:center;gap:14px;padding:18px 24px;font:600 23px Newsreader,Georgia,serif;list-style:none;display:flex}.settings-accordion>summary::-webkit-details-marker{display:none}.settings-accordion>summary:hover,.settings-accordion>summary:focus-visible{background:var(--palette-accent-soft)}.settings-accordion>summary:focus-visible{outline:2px solid var(--palette-accent);outline-offset:-2px}.settings-accordion>summary>svg:first-child{color:var(--palette-accent);flex:none}.settings-accordion-chevron{color:var(--palette-muted);margin-left:auto;transition:transform .2s}.settings-accordion[open] .settings-accordion-chevron{transform:rotate(180deg)}.settings-accordion[open]>summary{border-bottom:1px solid var(--palette-line)}.settings-accordion-panel{padding:24px}.language-setting-label{color:var(--palette-text);margin-bottom:8px;font-weight:600;display:block}.language-setting-select{border:1px solid var(--palette-line);background:var(--palette-surface);min-width:180px;color:var(--palette-text);font:inherit;border-radius:8px;padding:10px 12px}.language-setting-select:focus-visible{outline:2px solid var(--palette-accent);outline-offset:2px}.settings-accordion-panel>p:first-child,.theme-settings-content>p:first-child{color:var(--palette-muted);margin-top:0;line-height:1.6}.settings-accordion-panel>h2:first-child{margin-top:0}.tree-card-tint-setting{max-width:730px;color:var(--palette-text);grid-template-columns:minmax(0,620px) auto;align-items:center;gap:8px 16px;font-size:20px;display:grid}.tree-card-tint-heading{margin-top:24px}.tree-card-tint-setting>span:first-child{grid-column:1/-1}.tree-card-tint-heading h2{font-size:26px}.tree-card-tint-setting output{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:24px;font-weight:700}.tree-card-tint-setting input[type=range]{width:100%;accent-color:var(--palette-accent);margin-inline:0}.tree-card-tint-range-labels{color:var(--palette-muted);grid-column:1;justify-content:space-between;display:flex}.tree-card-tint-example-wrap{max-width:480px;color:var(--palette-muted);gap:7px;margin-top:16px;font-size:20px;line-height:1.5;display:grid}.tree-card-tint-example{color:#142017;border:1px solid;border-radius:9px;gap:4px;padding:14px 18px;display:grid}.tree-card-tint-range-labels small,.tree-card-tint-example small{font-size:20px;line-height:1.5}.tree-card-tint-example strong{font-size:24px}.tree-card-tint-example-wrap+.settings-note{font-size:20px;line-height:1.6}.settings-accordion-panel>p+.settings-section-heading{margin-top:24px}.theme-settings-content .settings-section:first-of-type{margin-top:20px}.settings-toggle-option{border:1px solid var(--palette-line);background:var(--palette-raised);cursor:pointer;border-radius:12px;justify-content:space-between;align-items:center;gap:20px;padding:18px 20px;display:flex}.settings-toggle-option>span{gap:5px;display:grid}.settings-toggle-option strong{font-size:15px}.settings-toggle-option small{color:var(--palette-muted);font-size:13px;line-height:1.5}.settings-overview .settings-toggle-option{justify-content:flex-start;gap:16px}.settings-overview .settings-toggle-option input{order:-1;width:24px;height:24px}.settings-toggle-option input{width:20px;height:20px;accent-color:var(--palette-accent);cursor:pointer;flex:none;margin:0}.backup-actions{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;margin-top:24px;display:grid}.backup-action-card{border:1px solid var(--palette-line);background:var(--palette-raised);border-radius:12px;flex-direction:column;align-items:flex-start;gap:12px;padding:20px;display:flex}.backup-action-card h3,.backup-action-card p{margin:0}.backup-action-card h3{font-size:16px}.backup-action-card p{color:var(--palette-muted);font-size:14px;line-height:1.5}.backup-actions .backup-action{border-radius:9px;gap:9px;height:auto;min-height:44px;margin-top:auto;padding:10px 16px;font-size:14px;font-weight:650}.backup-actions .backup-action:disabled{opacity:.55;cursor:default}.settings-section-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.settings-section-heading h2{margin:0;font:600 23px Newsreader,Georgia,serif}.settings-section-heading>span{color:var(--palette-muted);font-size:13px}.date-format-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.date-format-option{border:1px solid var(--palette-line);background:var(--palette-raised);color:var(--palette-text);text-align:left;cursor:pointer;border-radius:10px;gap:8px;padding:16px;display:grid}.date-format-option span{color:var(--palette-muted);font-variant-numeric:tabular-nums}.date-format-option.is-selected,.date-format-option:focus-visible{border-color:var(--palette-accent);outline:2px solid var(--palette-accent);outline-offset:2px}@media (width<=720px){.date-format-grid{grid-template-columns:1fr}}.theme-mode-grid,.palette-grid{gap:12px;display:grid}.theme-mode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-mode-option,.palette-option{border:1px solid var(--palette-line);background:var(--palette-raised);color:var(--palette-text);font:inherit;text-align:left;cursor:pointer;border-radius:12px;position:relative}.theme-mode-option{align-items:center;gap:12px;min-height:78px;padding:15px;display:flex}.theme-mode-option>span{flex:1;gap:3px;display:grid}.theme-mode-option small,.palette-option small{color:var(--palette-muted);font-size:13px;line-height:1.4}.theme-mode-option.is-selected,.palette-option.is-selected{border-color:var(--palette-accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--palette-accent) 18%, transparent)}.palette-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.palette-option{min-height:168px;padding:16px}.palette-option>strong,.palette-option>small{display:block}.palette-option>strong{margin:15px 0 4px}.palette-swatches{border-radius:8px;height:38px;display:flex;overflow:hidden}.palette-swatches i{flex:1}.palette-selected{background:var(--palette-accent-soft);color:var(--palette-text);border-radius:999px;align-items:center;gap:4px;padding:4px 7px;font-size:12px;font-weight:700;display:inline-flex;position:absolute;top:12px;right:12px}.custom-palette-editor{border:1px solid var(--palette-line);background:var(--palette-raised);border-radius:12px;margin-top:18px;padding:18px}.custom-palette-heading{align-items:flex-start;gap:10px;display:flex}.custom-palette-icon{background:var(--palette-accent-soft);width:34px;height:34px;color:var(--palette-accent);border-radius:9px;flex:none;place-items:center;display:grid}.custom-palette-heading h3{margin:1px 0 3px;font-size:16px}.custom-palette-heading p{color:var(--palette-muted);margin:0;font-size:13px;line-height:1.45}.custom-palette-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px;display:grid}.custom-palette-fields label{border:1px solid var(--palette-line);background:var(--palette-surface);color:var(--palette-text);border-radius:9px;grid-template-columns:minmax(0,1fr) 34px;align-items:center;gap:7px 9px;padding:10px;font-size:13px;font-weight:600;display:grid}.custom-palette-fields code{color:var(--palette-muted);grid-column:1/-1;font:12px ui-monospace,SFMono-Regular,Consolas,monospace}.custom-palette-fields label>span{overflow-wrap:anywhere;min-width:0}.custom-palette-fields input[type=color]{cursor:pointer;border-radius:7px;width:34px;height:28px;padding:2px}.custom-palette-save{align-items:center;gap:7px;margin-top:16px;display:inline-flex}.project-settings-form{gap:16px;max-width:720px;display:grid}.project-settings-form>p,.project-settings-form>h2{margin:0}.project-settings-form>h2{margin-top:8px;font:600 22px Newsreader,Georgia,serif}.project-settings-form>label{color:var(--palette-text);gap:7px;font-size:14px;font-weight:700;display:grid}.project-settings-form>label input{box-sizing:border-box;width:100%;min-height:42px}.project-settings-form>hr{border:0;border-top:1px solid var(--palette-line);width:100%;margin:4px 0}.project-settings-form>footer{justify-content:flex-end;padding-top:4px;display:flex}.settings-saved{color:var(--palette-accent);margin:0;font-weight:700}.settings-note{color:var(--palette-muted);margin:20px 3px 0;font-size:13px}.theme-light .research-browser-list,.theme-dark .research-browser-list,.theme-light .research-browser-detail,.theme-dark .research-browser-detail,.theme-light .printable-report,.theme-dark .printable-report,.theme-light .report-stats>div,.theme-dark .report-stats>div,.theme-light .report-sections section,.theme-dark .report-sections section,.theme-light .media-library-grid article,.theme-dark .media-library-grid article,.theme-light .person-media-item,.theme-dark .person-media-item,.theme-light .people-table,.theme-dark .people-table,.theme-light .register-source,.theme-dark .register-source,.theme-light .task-card,.theme-dark .task-card,.theme-light .person-task-list>button,.theme-dark .person-task-list>button,.theme-light .duplicate-comparison-card,.theme-dark .duplicate-comparison-card,.theme-light .backup-list article,.theme-dark .backup-list article,.theme-light .source-marker-editor,.theme-dark .source-marker-editor,.theme-light .source-marker-list,.theme-dark .source-marker-list{background:var(--palette-surface);border-color:var(--palette-line);color:var(--palette-text)}.theme-light .research-filter,.theme-dark .research-filter,.theme-light .research-reference-list button,.theme-dark .research-reference-list button,.theme-light .place-register-facts div,.theme-dark .place-register-facts div,.theme-light .place-coordinate-editor,.theme-dark .place-coordinate-editor,.theme-light .media-transcript,.theme-dark .media-transcript,.theme-light .media-placeholder,.theme-dark .media-placeholder,.theme-light .media-library-grid article img,.theme-dark .media-library-grid article img,.theme-light .person-media-item img,.theme-dark .person-media-item img,.theme-light .person-media-grid .media-placeholder,.theme-dark .person-media-grid .media-placeholder{background:var(--palette-raised);border-color:var(--palette-line);color:var(--palette-muted)}.theme-light .research-filter,.theme-dark .research-filter{background:var(--palette-input)}.theme-light .research-filter input,.theme-dark .research-filter input{color:var(--palette-text);background:0 0;border:0}.places-view .research-filter input:focus{box-shadow:none;outline:none}.theme-light .research-filter:focus-within,.theme-dark .research-filter:focus-within{border-color:var(--palette-accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--palette-accent) 18%, transparent)}.theme-light .research-scroll>button,.theme-dark .research-scroll>button,.theme-light .report-person,.theme-dark .report-person,.theme-light .report-pair button,.theme-dark .report-pair button,.theme-light .people-table button,.theme-dark .people-table button,.theme-light .people-table-head,.theme-dark .people-table-head,.theme-light .research-reference-list button,.theme-dark .research-reference-list button,.theme-light .duplicate-comparison-card li,.theme-dark .duplicate-comparison-card li{border-color:var(--palette-line);color:var(--palette-text)}.theme-light .research-scroll>button:hover,.theme-dark .research-scroll>button:hover,.theme-light .research-scroll>button.selected,.theme-dark .research-scroll>button.selected,.theme-light .research-reference-list button:hover,.theme-dark .research-reference-list button:hover,.theme-light .report-person:hover,.theme-dark .report-person:hover,.theme-light .report-pair button:hover,.theme-dark .report-pair button:hover,.theme-light .people-table button:hover,.theme-dark .people-table button:hover{background:var(--palette-accent-soft);color:var(--palette-text)}.theme-light .people-table-head,.theme-dark .people-table-head{background:var(--palette-accent-soft)}.theme-light .research-view-heading p:last-child,.theme-dark .research-view-heading p:last-child,.theme-light .research-scroll small,.theme-dark .research-scroll small,.theme-light .media-library-grid small,.theme-dark .media-library-grid small,.theme-light .person-media-item small,.theme-dark .person-media-item small,.theme-light .report-stats span,.theme-dark .report-stats span,.theme-light .report-sections p,.theme-dark .report-sections p,.theme-light .place-register-facts dt,.theme-dark .place-register-facts dt,.theme-light .place-coordinate-editor>p,.theme-dark .place-coordinate-editor>p,.theme-light .people-table button>span,.theme-dark .people-table button>span{color:var(--palette-muted)}.theme-light .report-stats svg,.theme-dark .report-stats svg,.theme-light .report-sections h2 span,.theme-dark .report-sections h2 span,.theme-light .research-scroll>button svg,.theme-dark .research-scroll>button svg,.theme-light .place-coordinate-edit-button,.theme-dark .place-coordinate-edit-button,.theme-light .report-tree-link,.theme-dark .report-tree-link,.theme-light .report-compare-link,.theme-dark .report-compare-link{color:var(--palette-accent)}.theme-light .place-register-facts dd,.theme-dark .place-register-facts dd,.theme-light .place-coordinate-editor-fields label,.theme-dark .place-coordinate-editor-fields label,.theme-light .media-library-grid article h2,.theme-dark .media-library-grid article h2,.theme-light .printable-report h2,.theme-dark .printable-report h2,.theme-light .printable-report h3,.theme-dark .printable-report h3,.theme-light .report-stats strong,.theme-dark .report-stats strong,.theme-light .report-sections h2,.theme-dark .report-sections h2{color:var(--palette-text)}.theme-light .media-library-grid article>button:not(.secondary):not(.media-delete-button):not(.media-preview-trigger),.theme-dark .media-library-grid article>button:not(.secondary):not(.media-delete-button):not(.media-preview-trigger),.theme-light .media-library-grid .media-relink-button,.theme-dark .media-library-grid .media-relink-button{background:var(--palette-raised);border-color:var(--palette-line);color:var(--palette-text)}.theme-light .media-library-grid article>button:not(.secondary):not(.media-delete-button):not(.media-preview-trigger):hover,.theme-dark .media-library-grid article>button:not(.secondary):not(.media-delete-button):not(.media-preview-trigger):hover,.theme-light .media-library-grid .media-relink-button:hover,.theme-dark .media-library-grid .media-relink-button:hover{background:var(--palette-accent-soft)}.theme-light .tree-quick-tools,.theme-dark .tree-quick-tools,.theme-light .minimap,.theme-dark .minimap,.theme-light .tree-status,.theme-dark .tree-status{background:color-mix(in srgb, var(--palette-surface) 94%, transparent);border-color:var(--palette-line);color:var(--palette-muted)}.theme-light .tree-tools-group,.theme-dark .tree-tools-group,.theme-light .tree-color-actions,.theme-dark .tree-color-actions{border-color:var(--palette-line)}.theme-light .tree-quick-tools button,.theme-dark .tree-quick-tools button,.theme-light .tree-tools-zoom,.theme-dark .tree-tools-zoom,.theme-light .branch-palette-label,.theme-dark .branch-palette-label,.theme-light .minimap-heading span,.theme-dark .minimap-heading span{color:var(--palette-muted)}.theme-dark .tree-quick-tools .tree-quick-tools-toggle{color:var(--palette-text)}.theme-light .tree-quick-tools button:hover:not(:disabled),.theme-dark .tree-quick-tools button:hover:not(:disabled),.theme-light .tree-quick-tools button:focus-visible,.theme-dark .tree-quick-tools button:focus-visible,.theme-light .tree-quick-tools button.is-active,.theme-dark .tree-quick-tools button.is-active,.theme-light .tree-color-actions button:hover:not(:disabled),.theme-dark .tree-color-actions button:hover:not(:disabled),.theme-light .tree-color-actions button.is-active,.theme-dark .tree-color-actions button.is-active{background:var(--palette-accent-soft);border-color:var(--palette-accent);color:var(--palette-text)}.theme-light .tree-quick-tools button.is-active,.theme-dark .tree-quick-tools button.is-active{box-shadow:inset 3px 0 var(--palette-accent)}.theme-light .tree-quick-tools button[data-tooltip]:after,.theme-dark .tree-quick-tools button[data-tooltip]:after{background:var(--palette-sidebar);color:#fff}.theme-light .mini-viewport,.theme-dark .mini-viewport{fill:color-mix(in srgb, var(--palette-accent) 18%, transparent);stroke:var(--palette-accent)}.theme-light .kinship-descendant-scroll,.theme-dark .kinship-descendant-scroll,.theme-light .kinship-person,.theme-dark .kinship-person,.theme-light .person-section,.theme-dark .person-section,.theme-light .overview-card,.theme-dark .overview-card,.theme-light .kinship-fan-stage,.theme-dark .kinship-fan-stage,.theme-light .kinship-descendant-tree,.theme-dark .kinship-descendant-tree,.theme-light .kinship-family-card,.theme-dark .kinship-family-card,.theme-light .kinship-empty,.theme-dark .kinship-empty{background:var(--palette-surface);border-color:var(--palette-line);color:var(--palette-text)}.theme-light .stats>div,.theme-dark .stats>div{background:var(--palette-surface);border-color:var(--palette-line);color:var(--palette-muted)}.theme-light .stats strong,.theme-dark .stats strong{color:var(--palette-text)}.theme-light .stats span,.theme-dark .stats span{color:var(--palette-muted)}.theme-light .stats svg,.theme-dark .stats svg,.theme-light .overview-card .eyebrow,.theme-dark .overview-card .eyebrow,.theme-light .research-view-heading .eyebrow,.theme-dark .research-view-heading .eyebrow{color:var(--palette-accent)}.theme-light .research-reference-list button span,.theme-dark .research-reference-list button span,.theme-light .place-timeline small,.theme-dark .place-timeline small{color:var(--palette-muted)}.theme-light .place-timeline,.theme-dark .place-timeline,.theme-light .place-timeline button,.theme-dark .place-timeline button{border-color:var(--palette-line)}.theme-light .place-timeline span,.theme-dark .place-timeline span{color:var(--palette-accent)}.theme-light .place-timeline button:hover,.theme-dark .place-timeline button:hover{background:var(--palette-accent-soft)}.theme-light .overview-card .muted,.theme-dark .overview-card .muted,.theme-light .register-list>.muted,.theme-dark .register-list>.muted,.theme-light .people-filters label,.theme-dark .people-filters label,.theme-light .people-year-range legend,.theme-dark .people-year-range legend{color:var(--palette-muted)}.theme-light .person-section>header,.theme-dark .person-section>header,.theme-light .person-section li,.theme-dark .person-section li,.theme-light .kinship-tabs,.theme-dark .kinship-tabs,.theme-light .kinship-person,.theme-dark .kinship-person{border-color:var(--palette-line)}.theme-light .kinship-sidebar-tabs button[aria-current=page],.theme-dark .kinship-sidebar-tabs button[aria-current=page]{background:var(--palette-accent-soft);border-color:var(--palette-line);color:var(--palette-text)}.theme-light .kinship-fan-view-tools,.theme-dark .kinship-fan-view-tools,.theme-light .kinship-fan-view-tools button,.theme-dark .kinship-fan-view-tools button,.theme-light .kinship-generation-control button,.theme-dark .kinship-generation-control button{background:var(--palette-raised);border-color:var(--palette-line);color:var(--palette-text)}.theme-light .kinship-fan-view-tools output,.theme-dark .kinship-fan-view-tools output,.theme-light .kinship-generation-control output,.theme-dark .kinship-generation-control output{color:var(--palette-text)}.theme-light .kinship-fan-view-tools>span,.theme-dark .kinship-fan-view-tools>span,.theme-light .kinship-generation-control small,.theme-dark .kinship-generation-control small{color:var(--palette-muted)}.theme-light .kinship-tabs button[aria-selected=true],.theme-dark .kinship-tabs button[aria-selected=true],.theme-light .kinship-person:hover,.theme-dark .kinship-person:hover,.theme-light .kinship-person:focus-visible,.theme-dark .kinship-person:focus-visible{background:var(--palette-accent-soft);color:var(--palette-text)}.theme-light .registry-form label>span,.theme-dark .registry-form label>span{color:var(--palette-accent)}.theme-light .result-heading p,.theme-dark .result-heading p,.theme-light .registry-form label svg,.theme-dark .registry-form label svg{color:var(--palette-muted)}.theme-light .search-hero,.theme-dark .search-hero,.theme-light .source-group,.theme-dark .source-group,.theme-light .subscription-source-group,.theme-dark .subscription-source-group,.theme-light .quick-results,.theme-dark .quick-results,.theme-light .research-panel,.theme-dark .research-panel,.theme-light .detail-panel,.theme-dark .detail-panel,.theme-light .help-card,.theme-dark .help-card{background:var(--palette-surface);border-color:var(--palette-line);color:var(--palette-text)}.theme-light .search-hero,.theme-dark .search-hero{background:var(--palette-page);border:0}.theme-light .help-card p,.theme-dark .help-card p{color:var(--palette-muted)}.theme-light .help-backdrop,.theme-dark .help-backdrop{background:color-mix(in srgb, var(--palette-sidebar) 65%, transparent)}.theme-light .registry-source,.theme-dark .registry-source,.theme-light .registry-source-wrap,.theme-dark .registry-source-wrap,.theme-light .group-title,.theme-dark .group-title{border-color:var(--palette-line);color:var(--palette-text)}.theme-light .registry-source strong,.theme-dark .registry-source strong,.theme-light .quick-results button,.theme-dark .quick-results button{color:var(--palette-text)}.theme-light .registry-source span,.theme-dark .registry-source span,.theme-light .source-disclosure,.theme-dark .source-disclosure,.theme-light .empty-state,.theme-dark .empty-state{color:var(--palette-muted)}.theme-light .source-mark,.theme-dark .source-mark,.theme-light .hero-icon,.theme-dark .hero-icon{background:var(--palette-accent-soft);color:var(--palette-accent)}.theme-light .source-grid .source-group,.theme-dark .source-grid .source-group{background:color-mix(in srgb, var(--group) 12%, var(--palette-surface));border-color:color-mix(in srgb, var(--group) 48%, var(--palette-line))}.theme-light .source-grid .group-title,.theme-dark .source-grid .group-title{color:color-mix(in srgb, var(--group) 72%, var(--palette-text));border-bottom-color:color-mix(in srgb, var(--group) 40%, var(--palette-line))}.theme-light .source-grid .source-mark,.theme-dark .source-grid .source-mark{background:color-mix(in srgb, var(--group) 24%, var(--palette-surface));color:color-mix(in srgb, var(--group) 68%, var(--palette-text))}.theme-light .source-grid .registry-source,.theme-dark .source-grid .registry-source,.theme-light .source-grid .registry-source-wrap,.theme-dark .source-grid .registry-source-wrap{border-color:color-mix(in srgb, var(--group) 20%, var(--palette-line))}.theme-light .quick-results button:hover,.theme-dark .quick-results button:hover,.theme-light .quick-results button:focus-visible,.theme-dark .quick-results button:focus-visible,.theme-light .registry-save-source,.theme-dark .registry-save-source{background:var(--palette-raised);border-color:var(--palette-line);color:var(--palette-text)}.theme-light .quick-results button:hover,.theme-dark .quick-results button:hover,.theme-light .quick-results button:focus-visible,.theme-dark .quick-results button:focus-visible,.theme-light .registry-save-source:hover,.theme-dark .registry-save-source:hover{background:var(--palette-accent-soft);outline-color:var(--palette-accent)}.theme-light .sidebar nav :is(button,a).active,.theme-dark .sidebar nav :is(button,a).active,.theme-light .sidebar-bottom button.active,.theme-dark .sidebar-bottom button.active{background:color-mix(in srgb, var(--palette-accent) 34%, transparent);color:#fff;box-shadow:inset 3px 0 var(--palette-accent);font-weight:600}.theme-light .sidebar nav :is(button,a).active svg,.theme-dark .sidebar nav :is(button,a).active svg,.theme-light .sidebar-bottom button.active svg,.theme-dark .sidebar-bottom button.active svg,.theme-light .sidebar nav :is(button,a).active .nav-count,.theme-dark .sidebar nav :is(button,a).active .nav-count{color:#fff}.theme-light .nav-count,.theme-dark .nav-count{background:color-mix(in srgb, var(--palette-accent) 20%, transparent)}.theme-light .task-toolbar button,.theme-dark .task-toolbar button,.theme-light .report-toolbar button,.theme-dark .report-toolbar button{background:var(--palette-raised);border-color:var(--palette-line);color:var(--palette-text)}.theme-light .task-toolbar button.selected,.theme-dark .task-toolbar button.selected{background:var(--palette-accent);border-color:var(--palette-accent);color:var(--palette-on-accent)}.theme-light .report-toolbar button.active,.theme-dark .report-toolbar button.active,.theme-light .task-toolbar button:hover:not(.selected),.theme-dark .task-toolbar button:hover:not(.selected),.theme-light .task-toolbar button:focus-visible:not(.selected),.theme-dark .task-toolbar button:focus-visible:not(.selected){background:var(--palette-accent-soft);border-color:var(--palette-accent);color:var(--palette-text)}:is(.theme-light,.theme-dark) .research-section-tabs button{color:var(--palette-muted);background:0 0;border-color:#0000}:is(.theme-light,.theme-dark) .research-section-tabs button.selected{border-color:var(--palette-accent);color:var(--palette-text);background:0 0}:is(.theme-light,.theme-dark) .research-section-tabs button:hover:not(.selected),:is(.theme-light,.theme-dark) .research-section-tabs button:focus-visible:not(.selected){border-color:var(--palette-line);color:var(--palette-text);background:0 0}.theme-light .task-list,.theme-dark .task-list{background:var(--palette-page)}:is(.theme-light,.theme-dark) :is(.event-dialog,.research-dialog-inner){background:var(--palette-surface);border-color:var(--palette-line);color:var(--palette-text)}:is(.theme-light,.theme-dark) .event-dialog .event-fields label,:is(.theme-light,.theme-dark) .event-dialog .event-fields small,:is(.theme-light,.theme-dark) .citation-editor-dialog .citation-editor-body label,:is(.theme-light,.theme-dark) .event-citation-inline .citation-editor-body label{color:var(--palette-muted)}:is(.theme-light,.theme-dark) .event-citation-inline .citation-editor-body :is(input,select,textarea){background:var(--palette-input);border-color:var(--palette-line);color:var(--palette-text)}:is(.theme-light,.theme-dark) .event-dialog :is(.event-date-fields,.event-place-editor,form>header,form>footer){border-color:var(--palette-line)}:is(.theme-light,.theme-dark) .event-dialog :is(.event-date-fields legend,.event-place-editor legend,.event-fields label svg){color:var(--palette-accent)}:is(.theme-light,.theme-dark) .event-editor-modes button{border-color:var(--palette-line);background:var(--palette-raised);color:var(--palette-text)}:is(.theme-light,.theme-dark) .event-editor-modes button.active,:is(.theme-light,.theme-dark) .event-editor-modes button:hover,:is(.theme-light,.theme-dark) .event-editor-modes button:focus-visible{border-color:var(--palette-accent);background:var(--palette-accent-soft);color:var(--palette-text)}:is(.theme-light,.theme-dark) .event-copy-targets label{border-color:var(--palette-line);background:var(--palette-raised);color:var(--palette-text)}:is(.theme-light,.theme-dark) .event-copy-targets small{color:var(--palette-muted)}:is(.theme-light,.theme-dark) .event-copy-source select{border-color:var(--palette-line);background:var(--palette-input);color:var(--palette-text)}:is(.theme-light,.theme-dark) .event-copy-trigger{color:var(--palette-accent)}:is(.theme-light,.theme-dark) .event-copy-trigger:hover,:is(.theme-light,.theme-dark) .event-copy-trigger:focus-visible{border-color:var(--palette-accent);background:var(--palette-accent-soft);color:var(--palette-text)}:is(.theme-light,.theme-dark) :is(.research-dialog-inner>header,.research-dialog-actions,.registry-create-form){border-color:var(--palette-line)}:is(.theme-light,.theme-dark) .backup-list span{color:var(--palette-muted)}:is(.theme-light,.theme-dark) .toast{background:var(--palette-raised);border:1px solid var(--palette-line);color:var(--palette-text)}:is(.theme-light,.theme-dark) .toast>svg{color:var(--palette-accent)}:is(.theme-light,.theme-dark) .toast :is(span,button){color:var(--palette-muted)}:is(.theme-light,.theme-dark) .tree-switcher{background:color-mix(in srgb, var(--palette-accent) 8%, var(--palette-sidebar));border-color:color-mix(in srgb, var(--palette-accent) 30%, var(--palette-sidebar))}:is(.theme-light,.theme-dark) .tree-switcher .tiny-tree{background:color-mix(in srgb, var(--palette-accent) 20%, transparent);color:color-mix(in srgb, var(--palette-accent) 65%, white)}:is(.theme-light,.theme-dark) :is(.canvas-caption .live-dot,.local-status i){background:var(--palette-accent)}:is(.theme-light,.theme-dark) .research-panel{background:var(--palette-surface);border-color:var(--palette-line);color:var(--palette-text)}:is(.theme-light,.theme-dark) .research-panel :is(.research-panel-header,.person-tabs,.event-row,.relative-person,.person-note,.research-panel-footer){border-color:var(--palette-line)}:is(.theme-light,.theme-dark) .research-panel :is(.research-panel-header>span,.person-lifespan,.person-facts,.person-facts p,.person-facts>span,.person-tabs button,.panel-list-heading,.event-row time,.event-location,.relative-person div span,.person-note p,.empty-state,.citation span,.citation p){color:var(--palette-muted)}:is(.theme-light,.theme-dark) .research-panel :is(.person-facts b,.event-row strong,.relative-person strong,.citation strong){color:var(--palette-text)}:is(.theme-light,.theme-dark) .research-panel :is(.panel-list-heading span:first-child,.relation-group h3,.event-source-count,.citation a,.person-facts svg,.relative-person>svg,.person-note svg){color:var(--palette-accent)}:is(.theme-light,.theme-dark) .research-panel .person-tabs button[aria-selected=true]{border-bottom-color:var(--palette-accent);color:var(--palette-accent)}:is(.theme-light,.theme-dark) .research-panel .panel-open-overview{background:var(--palette-accent-soft);border-color:var(--palette-accent);color:var(--palette-text)}:is(.theme-light,.theme-dark) .research-panel .panel-open-overview:hover,:is(.theme-light,.theme-dark) .research-panel .panel-open-overview:focus-visible,:is(.theme-light,.theme-dark) .research-panel .event-row:hover,:is(.theme-light,.theme-dark) .research-panel .event-row:focus-visible,:is(.theme-light,.theme-dark) .research-panel .relative-person:hover{background:var(--palette-accent-soft)}:is(.theme-light,.theme-dark) .research-panel :is(.event-dot,.relative-icon:not(.female),.profile-monogram:not(.female)){background:var(--palette-accent-soft);border-color:var(--palette-line);color:var(--palette-accent)}:is(.theme-light,.theme-dark) .research-panel .citation{background:var(--palette-raised);border-color:var(--palette-line);color:var(--palette-text)}:is(.theme-light,.theme-dark) .research-panel .citation>svg{color:var(--palette-accent)}@media (width<=700px){.theme-toggle{justify-content:center;width:36px;padding:0}.theme-toggle span{display:none}.settings-view{padding:18px 18px 48px}.settings-section{padding:18px}.settings-accordion>summary{min-height:62px;padding:15px 18px;font-size:21px}.settings-accordion-panel{padding:18px}.theme-mode-grid,.palette-grid{grid-template-columns:1fr}.custom-palette-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}:is(.theme-light,.theme-dark) :is(.source-capture-tabs,.research-section-tabs,.story-inspector-tabs,.family-timeline-tabs,.research-panel .person-tabs){border-bottom:1px solid var(--palette-line);align-items:stretch;gap:5px;padding:0 4px;display:flex}:is(.theme-light,.theme-dark) :is(.source-capture-tabs,.research-section-tabs,.story-inspector-tabs,.family-timeline-tabs,.research-panel .person-tabs) button{border:1px solid var(--palette-line);background:var(--palette-raised);min-width:0;color:var(--palette-muted);cursor:pointer;border-radius:9px 9px 0 0;margin-bottom:-1px;padding:9px 12px;font-weight:600}.research-panel .person-tabs button{white-space:nowrap;flex:auto;padding-inline:8px}.research-panel .person-tab-relationships-compact{display:none}@media (width<=400px){.research-panel .person-tab-relationships-full{display:none}.research-panel .person-tab-relationships-compact{display:inline}}:is(.theme-light,.theme-dark) :is(.source-capture-tabs,.research-section-tabs,.story-inspector-tabs,.family-timeline-tabs,.research-panel .person-tabs) button:is([aria-selected=true],[aria-pressed=true],.selected){border-color:var(--palette-line);border-bottom-color:var(--palette-surface);background:var(--palette-surface);color:var(--palette-text);font-weight:700;position:relative}:is(.theme-light,.theme-dark) :is(.source-capture-tabs,.research-section-tabs,.story-inspector-tabs,.family-timeline-tabs,.research-panel .person-tabs) button:hover:not([aria-selected=true]):not([aria-pressed=true]):not(.selected){background:var(--palette-accent-soft);color:var(--palette-text)}:is(.theme-light,.theme-dark) :is(.source-capture-tabs,.research-section-tabs,.story-inspector-tabs,.family-timeline-tabs,.research-panel .person-tabs) button:focus-visible{z-index:1;outline:2px solid var(--palette-accent);outline-offset:-3px}:is(.theme-light,.theme-dark) .research-panel .event-dot.is-missing-source{color:#b84949;background:color-mix(in srgb, #c95c5c 13%, var(--palette-surface));border-color:color-mix(in srgb, #c95c5c 35%, var(--palette-line))}.theme-dark .research-panel .event-dot.is-missing-source{color:#e79a9a}.settings-overview{--settings-body-size:1.25rem;--settings-label-size:1.375rem;--settings-heading-size:1.625rem;--settings-nav-size:1.125rem}.settings-overview .settings-tabs button{font-size:var(--settings-nav-size)}.settings-overview [role=tabpanel],.settings-overview [role=tabpanel] :is(p,label,small,select,button,code,.dna-section,.palette-selected,.settings-note,.settings-section-heading>span,.tree-card-tint-example-wrap,.tree-card-tint-range-labels small,.tree-card-tint-example small,.custom-palette-fields label,.media-storage-settings-folder span){font-size:var(--settings-body-size);line-height:1.5}.settings-overview [role=tabpanel] :is(h3,.settings-toggle-option strong,.theme-mode-option strong,.palette-option strong,.date-format-option strong,.tree-card-tint-example strong,output){font-size:var(--settings-label-size);line-height:1.35}.settings-overview [role=tabpanel] h2{font-size:var(--settings-heading-size);overflow-wrap:anywhere;line-height:1.25}.settings-overview .settings-section-heading{flex-wrap:wrap}.settings-overview [role=tabpanel] select{max-width:100%}.settings-overview .settings-example-scene{overflow-wrap:anywhere}
