.site-tools{display:flex;justify-content:flex-end;gap:10px;padding:8px 4%;background:var(--paper,#fffef7);border-bottom:1px solid var(--line,#deded2);font:14px/1.5 'DM Sans',Arial,sans-serif}.site-tools button,.tools-dialog button{font:inherit;min-height:44px;border:1px solid var(--line,#bcc6cd);border-radius:4px;background:transparent;color:inherit;padding:8px 16px;cursor:pointer}.site-tools button:hover{background:var(--accent,#ffdc00);color:#0a304d}.tools-dialog{position:fixed;inset:0;width:min(640px,calc(100% - 32px));max-height:85dvh;overflow:auto;margin:auto;padding:30px;border:1px solid var(--line,#bcc6cd);border-radius:8px;background:var(--paper,#fffef7);color:var(--ink,#0a304d);font:16px/1.6 'DM Sans',Arial,sans-serif}.tools-dialog::backdrop{background:#001529aa}.tools-dialog h2{font:500 30px/1.3 'DM Sans',Arial,sans-serif;margin:0 70px 28px 0}.dialog-close{float:right}.tools-links{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tools-links a,.tools-links button{display:block;text-align:left;padding:12px;border-bottom:1px solid var(--line,#ccc);color:inherit;text-decoration:none}.search-row{display:flex;gap:8px;margin-top:10px}.search-row input{min-width:0;width:100%;padding:12px;border:1px solid var(--line,#aaa);background:var(--paper,#fff);color:inherit;font:inherit}.search-results a{display:block;padding:20px 0;border-bottom:1px solid var(--line,#aaa);text-decoration:none;color:inherit}.search-results p{font-size:15px;margin-top:6px;overflow-wrap:anywhere}.search-status{margin-top:18px}.site-tools :focus-visible,.tools-dialog :focus-visible{outline:3px solid #ff731c;outline-offset:3px}
html[data-theme=dark]{color-scheme:dark;--paper:#10212e;--ink:#f0f5f8;--muted:#bacbd6;--line:#415566;--accent:#ffdc00;--orange:#ff974e;background:var(--paper);color:var(--ink)}
html[data-theme=dark] body,html[data-theme=dark] .site-header,html[data-theme=dark] .story-section,html[data-theme=dark] .hero-copy,html[data-theme=dark] .site-footer,html[data-theme=dark] .editor-header,html[data-theme=dark] .editor-toolbar{background:var(--paper);color:var(--ink)}
html[data-theme=dark] .timeline-card,html[data-theme=dark] .event-aside,html[data-theme=dark] .format-preview,html[data-theme=dark] .collection-card,html[data-theme=dark] .photo-editor{background:#1b3446;color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .join-section{background:#18384e;color:var(--ink)}
html[data-theme=dark] .join-copy>p,html[data-theme=dark] .section-help,html[data-theme=dark] .editor-help,html[data-theme=dark] .editor-help strong,html[data-theme=dark] .field small,html[data-theme=dark] .format-preview-label,html[data-theme=dark] #published-date,html[data-theme=dark] .photo-editor>p{color:var(--muted)}
html[data-theme=dark] .nav-cta,html[data-theme=dark] .button.dark,html[data-theme=dark] .primary,html[data-theme=dark] .photo-upload,html[data-theme=dark] .event-filters .active,html[data-theme=dark] #editor-tabs .active,html[data-theme=dark] .timeline-react[aria-pressed=true]{background:#ffdc00;color:#0a304d;border-color:#ffdc00}
html[data-theme=dark] .button.light{background:#f0f5f8;color:#0a304d}
html[data-theme=dark] .field input:not([type=range]):not([type=file]),html[data-theme=dark] .field textarea,html[data-theme=dark] .field select,html[data-theme=dark] .signup-form input:not([type=checkbox]),html[data-theme=dark] .timeline-react,html[data-theme=dark] .like-button,html[data-theme=dark] .format-toolbar button,html[data-theme=dark] .collection-actions button,html[data-theme=dark] .quiet-button,html[data-theme=dark] #save-draft{background:#10212e;color:#f0f5f8;border-color:#60798b}
html[data-theme=dark] .editor-brand,html[data-theme=dark] .brand,html[data-theme=dark] .impact-number strong{color:var(--ink)}
html[data-theme=dark] .notice,html[data-theme=dark] .need-info{background:#42391c;color:#fff2b3;border-color:#a38a42}
html[data-theme=dark] .notice.error{background:#472a24;color:#ffd6c9}html[data-theme=dark] a:focus-visible,html[data-theme=dark] button:focus-visible{outline-color:#ffdc00}
.save-instructions{font-size:14px;line-height:1.7;padding:16px 4%;border-bottom:1px solid #c8c8bb}.need-info{display:block;margin:8px 0 24px;padding:10px 14px;border-left:3px solid #c88b00;background:#fff5c4;color:#624900;font-size:14px;line-height:1.7}.need-info:empty{display:none}.editor-search{display:block;padding:0 0 18px;font-size:14px}.editor-search input{display:block;width:100%;margin-top:8px;min-height:44px;padding:10px;font:inherit;background:var(--paper,#fffef7);color:var(--ink,#0a304d);border:1px solid var(--line,#aaa)}.editor-search-note{font-size:14px;line-height:1.5}.site-header .menu-toggle{display:none!important}
@media(max-width:600px){.tools-dialog{padding:22px}.tools-links{grid-template-columns:1fr}.site-tools{padding:8px 5%;justify-content:space-between}.site-tools button{padding:8px 12px}.search-row{flex-wrap:wrap}.search-row input{flex:1 1 180px}}

#editor-tabs button[hidden]{display:none!important}
