#theme-toggle{white-space:nowrap;font-size:12px;border:1px solid #d5e4e1;border-radius:8px;padding:8px 10px;background:transparent;min-height:36px}
html[data-theme="dark"]{color-scheme:dark;--navy:#c9e8e4;--teal:#42cbbb;--line:#30434c;--muted:#a7bac2;background:#101b23;color:#e2ecef}
html[data-theme="dark"] body{background:#101b23;color:#e2ecef}
html[data-theme="dark"] :is(.top,.has-session .top,.sidebar,.panel,.card,.metric,.login,dialog,.institution-card,.module-intro){background:#192832;color:#e2ecef;border-color:#30434c;box-shadow:0 2px 8px #0002}
html[data-theme="dark"] :is(h1,h2,h3,h4,strong,.heading h1,.section-title h2,.overview-kpis strong,.sidebar-brand,.metric-head p){color:#e2ecef}
html[data-theme="dark"] :is(p,small,label,.heading p:not(.eyebrow),.section-title p:not(.eyebrow),.workspace-caption,.signed-in small,.signed-in span,.nav-label,.sidebar-bottom,.sidebar-bottom small,.institution-card small,.overview-kpis small,.help,.crumb,footer){color:#aabdc6}
html[data-theme="dark"] a{color:#60d7c8}
html[data-theme="dark"] :is(input,select,textarea,.module-search){background:#12212b;color:#e2ecef;border-color:#3b525e}
html[data-theme="dark"] :is(.sidebar-brand,.sidebar-module,.sidebar-bottom){border-color:#30434c}
html[data-theme="dark"] :is(.sidebar nav a,.sidebar-module a){color:#b5c8ce}
html[data-theme="dark"] :is(.sidebar nav a.current,.sidebar-module a.current,.sidebar nav a:hover,.sidebar-module a:hover){background:#153d3c;color:#66dfcc;border-color:#28524f}
html[data-theme="dark"] :is(.notice,.demo-banner,.status-pill){background:#23372f;color:#d3e1b9;border-color:#425345}
html[data-theme="dark"] .demo-banner>span:last-child{color:#c3d2b8;border-color:#425345}
html[data-theme="dark"] :is(th,thead,.table-sort){background:#21343f;color:#d6e7ec;border-color:#3b525e}
html[data-theme="dark"] :is(td,tr,table){border-color:#30434c;color:#e2ecef}
html[data-theme="dark"] :is(tbody tr:nth-child(even),tbody tr:hover){background:#20333d}
html[data-theme="dark"] :is(.button,button,.quiet){color:#c9e9e4;background:#233b43;border-color:#3b585f}
html[data-theme="dark"] :is(.primary,button.primary){background:#168c80;color:#fff;border-color:#259d90}
html[data-theme="dark"] :is(.institution-icon,.teal,.metric-icon){background:#163d3a;color:#65dbcb}
html[data-theme="dark"] .chart-gridline{stroke:#354b55}
html[data-theme="dark"] :is(.chart-label,.chart-legend text){fill:#b8cbd2}
html[data-theme="dark"] :focus-visible{outline:2px solid #65dfce;outline-offset:3px}
@media(max-width:600px){.top-tools{gap:8px}#theme-toggle{font-size:10px;padding:6px}.help-button{display:none}}
@media print{#theme-toggle{display:none}html[data-theme="dark"],html[data-theme="dark"] body,html[data-theme="dark"] :is(.panel,.card,table,th,td){background:#fff!important;color:#182f35!important}html[data-theme="dark"] :is(h1,h2,h3,p,small,strong,a){color:#182f35!important}}

/* Coordinate guidance spans the form and stays readable in both themes. */
.catalog-form #coordinates-help,.catalog-form:has(#coordinates-help)+p.help{background:transparent;padding:0;color:var(--muted);font-size:12px}
.catalog-form #coordinates-help{grid-column:1 / -1}

.mother-search{position:relative;min-width:260px}.mother-search label{display:block}#mother-matches{max-height:270px;overflow:auto;border:1px solid var(--line);border-radius:8px;padding:4px;background:inherit}#mother-matches[hidden]{display:none}.mother-match{display:block;width:100%;text-align:left;margin:4px 0;padding:10px;font-size:12px}.mother-status{font-size:12px;min-height:18px;margin:8px 0}.mother-search [data-clear-mother]{font-size:12px}

.mother-input{position:relative}#mother-matches{position:absolute;top:100%;left:0;right:0;z-index:20;background:#fff;box-shadow:0 8px 24px #122b3426}html[data-theme="dark"] #mother-matches{background:#192832}

.organization-submenu{margin:0 0 8px 28px;border-left:1px solid var(--line);padding-left:10px}.organization-submenu>summary{font-size:10px;color:var(--muted);cursor:pointer;padding:8px 2px}.organization-submenu nav a{font-size:10px;padding:8px 6px}.creation-form>summary{cursor:pointer;color:var(--teal);padding:12px 0;font-weight:600}.creation-form[open]>summary{margin-bottom:12px}
