.sidebar .ape-nav-item{display:flex;align-items:center;gap:.65rem;min-height:44px;line-height:1.4;color:var(--ape-ink,#173f46)}
.sidebar .ape-nav-item span{min-width:0;overflow-wrap:anywhere}
.sidebar .icon{width:20px;height:20px;min-width:20px;flex:none;color:var(--ape-primary-dark,#176979)}
.sidebar .nav-group a.ape-nav-item{margin-left:1.1rem!important;padding:.65rem .7rem .65rem .8rem!important}
.sidebar .ape-nav-item:hover,.sidebar .nav-group summary:hover{background:#e0f2f1;text-decoration:none}
.sidebar .ape-nav-item.active{background:#d5eeec;color:#125968;font-weight:750;border-left-color:#176979;box-shadow:inset 3px 0 #176979}
.sidebar .ape-nav-item:focus-visible,.sidebar summary:focus-visible,.module-card:focus-visible{outline:3px solid #176979;outline-offset:3px}
.sidebar .nav-group summary{min-height:46px;padding:.65rem .7rem;font-weight:750}
.sidebar .nav-group[open]{border:1px solid #d8e8e8;background:#ffffff90}
.module-header{display:flex;align-items:center;gap:1.2rem;margin:0 0 1.8rem;padding:1rem 0 1.4rem;border-bottom:1px solid var(--ape-border,#d8e8e8)}
.module-header-icon,.module-card-icon{display:flex;align-items:center;justify-content:center;flex:none;color:#176979;background:#e1f3f0;border-radius:18px}
.module-header-icon{width:80px;height:80px}.module-header h1{margin:0 0 .4rem;font-size:clamp(1.65rem,3vw,2.3rem)}
.module-header p{margin:0;max-width:65ch;line-height:1.6;color:#49656a;font-size:1rem}
.module-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:1rem}
.module-card{position:relative;display:flex;align-items:flex-start;gap:1rem;padding:1.4rem;min-height:145px;border:1px solid var(--ape-border,#d8e8e8);border-radius:20px;background:#fff;color:#173f46;box-shadow:0 6px 18px #173f4607;text-decoration:none;transition:border-color .15s,box-shadow .15s}
.module-card-icon{width:56px;height:56px;border-radius:14px}.module-card h2{margin:.15rem 0 .5rem;font-size:1.12rem;line-height:1.35}.module-card p{margin:0;font-size:1rem;line-height:1.55;color:#49656a}
.module-card-arrow{margin-left:auto;align-self:center;font-size:1.8rem;color:#176979}.module-card:hover{border-color:#25a0b0;box-shadow:0 8px 25px #173f4612;text-decoration:none}
body[data-ape-mode=advanced] .module-card{min-height:110px;padding:1rem}body[data-ape-mode=advanced] .module-card-icon{width:44px;height:44px}body[data-ape-mode=advanced] .module-cards{gap:.75rem}
@media(max-width:600px){.module-header{align-items:flex-start;gap:.85rem}.module-header-icon{width:58px;height:58px;border-radius:14px}.module-header-icon .icon{width:30px;height:30px}.module-cards{grid-template-columns:1fr}.module-card{padding:1.2rem;min-height:130px}.module-card-icon{width:48px;height:48px}}
@media(prefers-reduced-motion:reduce){.module-card{transition:none}}

/* Shared legacy summary cards: readable labels in every module and on mobile. */
.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:1rem;margin:0 0 1.25rem}.stats-grid>.stat{display:flex;flex-direction:column;gap:.5rem;min-width:0;padding:1rem;border:1px solid var(--ape-border);border-top:3px solid var(--ape-primary);border-radius:12px;background:var(--ape-surface);color:var(--ape-ink)}.stats-grid>.stat>span{color:var(--ape-muted);font-size:.9rem}.stats-grid>.stat>strong{font-size:1.15rem;overflow-wrap:anywhere;line-height:1.45}
.app-skip-link{position:fixed;left:12px;top:-100px;z-index:1000;padding:12px 18px;border-radius:8px;background:var(--ape-surface);color:var(--ape-ink);border:2px solid var(--ape-primary)}.app-skip-link:focus{top:10px}
