:is(.theme-directory-portal,.theme-directory-night,.theme-directory-atlas) {
    background:var(--bg);color:var(--tx);
    --page:var(--bg);--panel:var(--bg2);--text:var(--tx);--muted:var(--tx2);--edge:var(--bd);
}
body:is(.theme-directory-portal,.theme-directory-night,.theme-directory-atlas):has(.directory-shell,.directory-submit) {background:var(--bg);color:var(--tx)}
:is(.theme-directory-portal,.theme-directory-night,.theme-directory-atlas):has(.directory-shell,.directory-submit)>header {
    background:var(--bg2);color:var(--tx);border-color:var(--bd);
}
:is(.theme-directory-portal,.theme-directory-night,.theme-directory-atlas) :is(.directory-sidebar,.directory-group,.directory-notice,.directory-footer,.directory-submit) {
    background:var(--bg2);color:var(--tx);border-color:var(--bd);
}
:is(.theme-directory-portal,.theme-directory-night,.theme-directory-atlas) .directory-card {color:var(--tx);background:var(--bg2);border-color:var(--bd)}
:is(.theme-directory-portal,.theme-directory-night,.theme-directory-atlas) .directory-card small {color:var(--tx2)}
:is(.theme-directory-portal,.theme-directory-night,.theme-directory-atlas) :is(.directory-card:hover,.directory-card:focus-visible) {background:var(--bg3);border-color:var(--accent)}
:is(.theme-directory-portal,.theme-directory-night,.theme-directory-atlas) :is(.directory-icon,.directory-action,.directory-sidebar a[aria-current]) {background:var(--bg3);color:var(--tx)}
:is(.theme-directory-portal,.theme-directory-night,.theme-directory-atlas) .directory-sidebar a {color:var(--tx)}
:is(.theme-directory-portal,.theme-directory-night,.theme-directory-atlas) :is(.directory-footer a,.directory-notice a,.directory-submit-close) {color:var(--accent)}
:is(.theme-directory-portal,.theme-directory-night,.theme-directory-atlas) .directory-search input {
    background:var(--bg2);color:var(--tx);border-color:var(--bd);
}
:is(.theme-directory-portal,.theme-directory-night,.theme-directory-atlas) .directory-search button {
    background:var(--bg3);color:var(--tx);border-color:var(--bd);
}

.theme-directory-portal {
    --bg:#f0f5ff;--bg2:#fff;--bg3:#e5efff;--tx:#162745;--tx2:#495d7b;--bd:#cbd8ee;--accent:#164dba;
}
.theme-directory-portal .directory-shell {grid-template-columns:1fr;gap:14px}
.theme-directory-portal .directory-sidebar {position:static;padding:6px;border-radius:0;border-width:0 0 1px}
.theme-directory-portal .directory-sidebar nav {display:flex;flex-wrap:wrap;gap:4px}
.theme-directory-portal .directory-sidebar a[aria-current] {box-shadow:inset 0 -2px var(--accent)}
.theme-directory-portal .directory-group {padding:clamp(12px,2vw,24px);border-radius:12px}
.theme-directory-portal .directory-group h2 {color:var(--tx);font-size:1.1rem}
.theme-directory-portal .directory-icon {border-radius:50%}

.theme-directory-night {
    --bg:#10171e;--bg2:#17222c;--bg3:#243743;--tx:#e8f4f5;--tx2:#b4c9d2;--bd:#334a59;--accent:#66e0c5;color-scheme:dark;
}
.theme-directory-night .directory-shell {grid-template-columns:190px minmax(0,1fr);gap:20px}
.theme-directory-night .directory-sidebar {padding:8px;border-radius:8px}
.theme-directory-night .directory-sidebar a[aria-current] {box-shadow:inset 3px 0 var(--accent)}
.theme-directory-night .directory-group {border:0;padding:16px 0;background:none}
.theme-directory-night .directory-group h2 {padding-bottom:8px;border-bottom:1px solid var(--bd);font-size:1.05rem}
.theme-directory-night .directory-card {min-height:68px;border-radius:6px}
.theme-directory-night .directory-icon {border:1px solid var(--bd);color:var(--tx)}
.theme-directory-night .page-links a {background:var(--bg2);color:var(--tx);border-color:var(--bd)}
.theme-directory-night .page-links [aria-current] {background:var(--bg3);color:var(--tx)}
.theme-directory-night .directory-submit p {color:var(--tx2)}

.theme-directory-atlas {
    --bg:#f5efe3;--bg2:#fffaf1;--bg3:#f1e4d3;--tx:#30271e;--tx2:#695b4b;--bd:#d8c8b3;--accent:#8b412d;
}
.theme-directory-atlas>header>span,.theme-directory-atlas .directory-group h2 {font-family:Georgia,"Songti SC",serif}
.theme-directory-atlas .directory-shell {grid-template-columns:148px minmax(0,1fr);gap:18px}
.theme-directory-atlas .directory-sidebar,.theme-directory-atlas .directory-group {border-radius:3px}
.theme-directory-atlas .directory-group {padding:0 16px 6px}
.theme-directory-atlas .directory-group h2 {margin:0;padding:12px 0;border-block-end:3px double var(--bd);font-size:1.1rem}
.theme-directory-atlas .directory-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:0 16px}
.theme-directory-atlas .directory-card {border:0;border-radius:0;border-block-end:1px solid var(--bd);padding:9px 3px}
.theme-directory-atlas .directory-icon {border-radius:4px}

@media (max-width:720px) {
    .theme-directory-night .directory-shell,.theme-directory-atlas .directory-shell {grid-template-columns:minmax(0,1fr);gap:10px}
    .theme-directory-portal .directory-sidebar nav {flex-wrap:nowrap;overflow-x:auto}
    .theme-directory-atlas .directory-grid {gap:0 8px}
    .theme-directory-atlas .directory-card {gap:6px}
    .theme-directory-atlas .directory-card :is(img,.directory-icon) {width:24px;height:24px}
}
@media (max-width:419px) {
    .theme-directory-atlas .directory-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:1120px) {
    .theme-directory-atlas .directory-grid {grid-template-columns:repeat(4,minmax(0,1fr))}
}

body[class]>header.directory-mast {
    box-sizing:border-box;display:grid;align-items:center;gap:0;padding:0;
    color:var(--tx);background:var(--bg2);border-color:var(--bd);
}
.directory-mast .directory-brand {
    display:inline-flex;align-items:center;gap:12px;min-width:0;color:var(--tx);text-decoration:none;
    overflow-wrap:anywhere;
}
.directory-brand img {flex:none;object-fit:contain}
.directory-brand-mark {
    flex:none;display:grid;place-items:center;width:42px;height:42px;
    border-radius:10px;background:var(--bg3);color:var(--accent);font-size:1.2rem;
}
.directory-mast .directory-search {width:100%;box-sizing:border-box}
.directory-mast .directory-search form {margin:0}
.directory-mast .directory-search :is(input,button) {min-height:38px}
body[class]>header.directory-mast-portal {
    justify-items:center;gap:18px;padding:34px 16px 28px;
    background:radial-gradient(ellipse at top,color-mix(in srgb,var(--accent) 15%,var(--bg2)),var(--bg2) 76%);
}
.directory-mast-portal .directory-brand {font-size:clamp(1.85rem,5vw,3.3rem);font-weight:850;text-align:center}
.directory-mast-portal .directory-search {max-width:640px}
.directory-mast-portal .directory-search :is(input,button) {border-radius:999px;padding-inline:14px}
.theme-directory-portal .directory-grid {grid-template-columns:repeat(auto-fill,minmax(min(100%,210px),1fr))}
.theme-directory-portal .directory-card {min-height:48px}

body[class]>header.directory-mast-night {
    grid-template-columns:190px minmax(0,1fr);justify-content:stretch;min-height:66px;
}
.directory-night-wordmark {display:flex;align-items:center;min-height:66px;padding:0 16px;background:var(--bg3)}
.directory-mast-night .directory-brand {font-size:1rem;font-weight:750}
.directory-night-tools {display:flex;justify-content:flex-end;padding:8px clamp(10px,3vw,36px)}
.directory-mast-night .directory-search {max-width:480px}
.directory-mast-night .directory-search input {border-radius:5px}
.theme-directory-night .directory-card {min-height:48px}
.theme-directory-night .directory-card-text strong {font-size:.93rem}

body[class]>header.directory-mast-atlas {
    justify-content:stretch;padding-inline:clamp(12px,5vw,72px);
}
.directory-atlas-tools {display:flex;justify-content:flex-end;padding:8px 0;border-bottom:1px solid var(--bd)}
.directory-mast-atlas .directory-search {max-width:410px;font-size:.875rem}
.directory-atlas-wordmark {display:flex;justify-content:center;padding:12px 0 19px;border-bottom:3px double var(--bd)}
.directory-mast-atlas .directory-brand {font:700 clamp(2rem,5vw,3.65rem)/1.12 Georgia,"Songti SC",serif;letter-spacing:.065em;text-align:center}
@media (min-width:721px) {
    .theme-directory-atlas .directory-shell {grid-template-columns:minmax(0,1fr) 154px}
    .theme-directory-atlas .directory-sidebar {grid-column:2;grid-row:1}
    .theme-directory-atlas .directory-content {grid-column:1;grid-row:1}
}

.theme-directory-deck {
    --bg:#eaf4ed;--bg2:#fffef9;--bg3:#e0efe7;--tx:#15382e;--tx2:#4d6758;--bd:#bfd8ca;
    --page:var(--bg);--panel:var(--bg2);--text:var(--tx);--accent:#087361;--edge:var(--bd);
    background:var(--bg);color:var(--tx);
}
body.theme-directory-deck:has(.directory-shell,.directory-submit) {background:var(--bg);color:var(--tx)}
body[class]>header.directory-mast-deck {
    grid-template-columns:minmax(0,1fr) minmax(275px,500px);justify-content:stretch;gap:14px;
    padding:18px clamp(12px,4vw,56px);border-bottom:3px solid #ce6539;
}
.directory-mast-deck .directory-brand {font-size:clamp(1.3rem,3vw,2.2rem);font-weight:800}
.directory-mast-deck .directory-brand-mark {background:#f8e3d6;color:#8a331d;border-radius:50% 50% 10% 50%}
.directory-mast-deck .directory-search {background:var(--bg3);padding:6px;border-radius:10px}
.directory-mast-deck .directory-search :is(input,button) {background:var(--bg2);color:var(--tx);border-color:var(--bd)}
.theme-directory-deck .directory-shell {grid-template-columns:minmax(0,1fr);gap:14px}
.theme-directory-deck .directory-sidebar {grid-column:1/-1;position:static}
.theme-directory-deck .directory-sidebar nav {display:flex;flex-wrap:wrap;gap:5px}
.theme-directory-deck .directory-sidebar a[aria-current] {background:var(--bg3);color:var(--accent)}
.theme-directory-deck .directory-group {background:var(--bg2);border-color:var(--bd)}
.theme-directory-deck .directory-card {background:var(--bg2);color:var(--tx);border-color:var(--bd)}
.theme-directory-deck .directory-icon {background:var(--bg3);color:var(--accent)}
.theme-directory-deck .directory-card:hover {background:var(--bg3)}
.theme-directory-deck .directory-deck-feature .directory-group {margin:0}
.theme-directory-deck .directory-deck-feature .directory-grid {grid-template-columns:minmax(0,1fr)}
@media (min-width:901px) {
    .theme-directory-deck .directory-shell:has(.directory-deck-feature) {grid-template-columns:minmax(0,1fr) 240px}
    .theme-directory-deck .directory-content {grid-column:1}
    .theme-directory-deck .directory-deck-feature {grid-row:2;grid-column:2}
    .theme-directory-deck .directory-shell:has(.directory-deck-feature) .directory-content {grid-row:2}
}
@media (max-width:720px) {
    body[class]>header.directory-mast-night {grid-template-columns:minmax(0,1fr)}
    .directory-night-wordmark {min-height:50px}
    .directory-night-tools {justify-content:stretch}
    body[class]>header.directory-mast-deck {grid-template-columns:minmax(0,1fr)}
    .theme-directory-deck .directory-sidebar nav {flex-wrap:nowrap;overflow-x:auto}
}
