/* Shared sidebar footer row (nav-footer.js): Coding agent, Help, theme tray. Fixed 44px, no wrap. */
.nav .nlk{margin-top:auto;padding:12px 0 8px;border-top:1px dashed var(--line);display:flex;flex-wrap:nowrap;align-items:center;gap:0 10px;min-height:44px;height:44px;overflow:visible;font-size:12px;line-height:20px;color:var(--faint);white-space:nowrap;flex:none}
.nav .nlk a,.nav .nlk .thm{flex:none;min-width:auto}.nav .nlk a{display:inline;height:auto;padding:0;border-radius:0;color:var(--muted);text-decoration:underline;text-underline-offset:2px;white-space:nowrap}.nav .nlk a:hover{background:none;color:var(--ink)}.nav .nlk a svg{display:none}

/* Sidebar theme: current-mode icon, other modes unfurl to the right inside a fixed-height slot. */
.thm{display:inline-flex;align-items:center;justify-content:center;position:relative;flex:none;width:24px;height:24px;min-width:24px;min-height:24px;overflow:visible;font-size:12px;line-height:20px;color:var(--muted);vertical-align:middle}
.nav>.thm{margin:4px 10px 0}
.thm-cur{appearance:none;-webkit-appearance:none;margin:0;padding:0;border:0;border-radius:999px;background:none;width:24px;height:24px;display:grid;place-items:center;color:var(--muted);cursor:pointer}
.thm-cur svg.i{width:14px;height:14px;display:block}
.thm-cur:hover{color:var(--ink)}
.thm-cur:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.thm.open .thm-cur{visibility:hidden}
.thm-tray{position:absolute;left:0;top:0;z-index:8;height:24px;width:24px;overflow:hidden;opacity:0;pointer-events:none}
.thm.open .thm-tray{width:84px;opacity:1;pointer-events:auto}
.thm-tray,.thm.open .thm-tray{transition:width .22s ease,opacity .18s ease}
.ths{display:inline-flex;align-items:center;gap:0;height:24px;padding:2px;border-radius:999px;background:var(--sheet);box-shadow:0 0 0 1px var(--line-2);white-space:nowrap}
.ths [data-th]{flex:none;display:grid;place-items:center;width:20px;height:20px;padding:0;border:0;border-radius:999px;background:none;color:var(--muted);cursor:pointer}
.ths [data-th] svg.i{width:12px;height:12px;display:block}
.ths [data-th]:hover{color:var(--ink)}
.ths [data-th].on{background:var(--ink);color:var(--on-ink)}
.ths [data-th]:focus-visible{outline:2px solid var(--ink);outline-offset:1px}
.thm.thm-m{display:flex;width:auto;min-width:24px;height:48px;min-height:48px;margin-top:16px;padding:0 14px;justify-content:flex-start;border-radius:16px;box-shadow:0 0 0 1px var(--line-2)}
.thm.thm-m .thm-tray{left:14px;top:12px}
.thm.thm-m.open .thm-tray{width:84px}
@media (prefers-reduced-motion:reduce){
  .thm-tray,.thm.open .thm-tray{transition:none}
}
