.accessibility-dialog { width: 640px; max-width: calc(100% - 32px); padding: 0; color: #333; background: #fcfcfc; border: 1px solid #d5d5d5; border-radius: 3px; box-shadow: 0 3px 8px #0004; }
.accessibility-dialog::backdrop { background: #ffffff80; }
.accessibility-dialog header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.accessibility-dialog h2 { font-size: 20px; margin: 0; }
.accessibility-dialog header button { font-size: 28px; }
.accessibility-options { display: grid; justify-content: start; gap: 18px; padding: 24px 30px 36px; }
.accessibility-options label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: bold; }
.accessibility-options input { appearance: none; position: relative; width: 40px; height: 20px; margin: 0; border: 1px solid #aaa; border-radius: 20px; background: #ddd; cursor: pointer; }
.accessibility-options input::after { position: absolute; top: -2px; left: 0; width: 24px; height: 24px; border-radius: 50%; background: white; border: 1px solid #aaa; content: ''; }
.accessibility-options input:checked { background: #365cff; }
.accessibility-options input:checked::after { left: 16px; }
.accessibility-dialog footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid #ddd; }
.accessibility-dialog footer > div { display: flex; gap: 12px; }
.neutral-button { min-height: 40px; padding: 6px 15px; border: 1px solid #aaa; border-radius: 3px; background: white; color: #333; }
body.compact-theme { font-size: 14px; }
.compact-theme .projects-page, .compact-theme .project-page, .compact-theme .organisations-page { font-size: 14px; }
.compact-theme .nav-item { height: 40px; padding-top: 7px; padding-bottom: 7px; }
.compact-theme .subnav a, .compact-theme .subnav button, .compact-theme #project-contents a, .compact-theme #project-contents button { font-size: 14px; padding-top: 8px; padding-bottom: 8px; }
.compact-theme .outline-button, .compact-theme .solid-button, .compact-theme .neutral-button, .compact-theme .projects-page input, .compact-theme .projects-page select, .compact-theme .data-table-toolbar input { min-height: 34px; height: 34px; padding-top: 4px; padding-bottom: 4px; }
.compact-theme .project-card { min-height: 112px; padding-top: 12px; padding-bottom: 12px; }
.compact-theme .project-card p { line-height: 22px; }
.compact-theme .project-number, .compact-theme .filter-box label { font-size: 14px; }
.compact-theme .filter-box { padding: 10px; margin-top: 10px; }
.compact-theme .filter-box label { margin-bottom: 10px; }
.compact-theme .context-list > div { margin-bottom: 12px; }
.compact-theme .bm-table th, .compact-theme .bm-table td { padding: 6px 10px; }
body.dark-theme { color-scheme: dark; --color-text: #eee; --color-background: #303030; --color-surface: #333; --color-muted: #ccc; --color-primary: #9eacff; --color-border: #666; --color-notice: #52451b; color: #eee; background: #303030; }
.dark-theme .app-header, .dark-theme .app-navigation, .dark-theme .project-card, .dark-theme .project-summary, .dark-theme .context-panel, .dark-theme .data-table-card, .dark-theme .accessibility-dialog, .dark-theme .dropdown-panel, .dark-theme .dropdown-panel button, .dark-theme .opportunity-card, .dark-theme .panel { background: #303030; color: #eee; border-color: #666; }
.dark-theme .educational-notice { background: #52451b; color: #fff; }
.dark-theme .platform-bar, .dark-theme .app-footer { background: #264477; }
.dark-theme .project-information, .dark-theme .project-state, .dark-theme .project-card-details, .dark-theme .language-button, .dark-theme .user-icon, .dark-theme .account-button, .dark-theme .nav-item, .dark-theme .plain-icon { color: #eee; }
.dark-theme .filter-box { background: #282f6b; border-color: #7181c5; }
.dark-theme .filter-box label { color: #eee; }
.dark-theme input, .dark-theme select, .dark-theme textarea, .dark-theme .neutral-button, .dark-theme .outline-button, .dark-theme .icon-button { background: #333; color: #eee; border-color: #777; }
.dark-theme .hamburger { background: transparent; border-color: transparent; color: #eee; }
.dark-theme .accessibility-button { background: #ffde17; color: black; }
.dark-theme .accessibility-dialog::backdrop { background: #0006; }
.dark-theme .accessibility-options input { background: #555; }
.dark-theme .accessibility-options input:checked { background: #9eacff; }
.dark-theme #project-contents a, .dark-theme #project-contents button, .dark-theme .subnav a, .dark-theme .subnav button { background: #303030; color: #eee; }
.dark-theme #project-contents [aria-current="page"], .dark-theme .nav-item:hover, .dark-theme .dropdown-panel button:hover, .dark-theme .subnav a:hover, .dark-theme .subnav button:hover { background: #282f6b; color: #c7d0ff; }
.dark-theme .mobility-tabs a, .dark-theme .table-sort, .dark-theme .data-table-toolbar .outline-button { color: #eee; }
.dark-theme .mobility-tabs a[aria-current="page"], .dark-theme .link-button { color: #adbcff; }
.dark-theme .revalidation-banner { background: #294856; }
.dark-theme .bm-table thead th { background: #424242; }
.dark-theme .bm-table tbody tr { background: #303030; }
.dark-theme .bm-table tbody tr:nth-child(even) { background: #383838; }
.dark-theme .bm-table tbody tr:hover { background: #2d4263; }
.dark-theme .bm-table th, .dark-theme .bm-table td { border-color: #666; }
