.more-dialog{width:min(420px,calc(100% - 32px));max-height:80dvh;overflow:auto;padding:24px;border:1px solid var(--line);border-radius:18px;background:var(--paper);color:var(--ink);box-sizing:border-box}
.more-dialog::backdrop{background:rgba(25,45,40,.55)}
.more-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.more-heading h2{font-family:Fraunces,serif;margin:0}
.more-heading button{background:transparent;border:0;color:inherit;font-size:28px;min-width:44px;min-height:44px;cursor:pointer}
.more-dialog nav{display:grid;gap:8px;margin-top:16px}
.more-dialog nav a{padding:14px;border-radius:10px;font-weight:600}
.more-dialog nav a:hover{background:var(--mint)}
.mobile-bottom-nav :focus-visible,.more-dialog :focus-visible{outline:3px solid var(--teal);outline-offset:3px}
@media(max-width:767px){
  .app-shell{display:block}
  .sidebar{left:-250px;width:240px;transition:left .25s}
  .sidebar.open{left:0}
  .main-content{width:100%;margin-left:0;padding-bottom:80px}
  .mobile-menu{display:block;position:absolute;z-index:3;top:16px;left:16px;width:35px;height:35px;border:0;border-radius:9px;background:var(--teal);color:#fff}
  .content-wrap{padding-top:68px}
  .mobile-bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:4;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:8px 8px max(10px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--paper);box-shadow:0 -12px 30px rgba(39,56,58,.08)}
  .mobile-bottom-nav a,.mobile-bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:44px;padding:6px 2px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-family:inherit;font-size:10px;font-weight:700;cursor:pointer}
  .mobile-bottom-nav a span,.mobile-bottom-nav button span{font-size:16px;line-height:1}
  .mobile-bottom-nav a.active{background:var(--mint);color:var(--teal)}
}
/* Keep navigation readable on the shared light sidebar, including the dashboard. */
.sidebar .nav-link, .sidebar .sidebar-household, .sidebar .sidebar-household span { color: var(--ink); }
.sidebar .nav-link:hover, .sidebar .nav-link.active { background: var(--mint); color: var(--teal); }
