/* Tool sidebar shared by every micro-tool page. Colours come from the locked palette tokens in theme.css. */
.nol-side, .nol-menu-btn { --ns-bg: var(--card); --ns-ink: var(--foreground); --ns-muted: var(--muted-foreground); --ns-line: var(--border); --ns-soft: var(--muted); --ns-accent: var(--ink); --ns-on: var(--background); }
:root[data-theme="dark"] .nol-side, :root[data-theme="dark"] .nol-menu-btn { --ns-accent: var(--acid-lime); --ns-on: var(--ink); }
.nol-side { position: fixed; top: 0; left: 0; bottom: 0; width: 248px; z-index: 60; overflow-y: auto; padding: 18px 12px 24px; background: var(--ns-bg); color: var(--ns-ink); border-right: 1px solid var(--ns-line); font-family: inherit; }
.nol-side h2 { margin: 0 8px 10px; font-size: 0.72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ns-muted); }
.nol-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nol-side a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border-radius: 12px; color: var(--ns-ink); text-decoration: none; font-size: 0.92rem; line-height: 1.25; }
.nol-side a:hover { background: var(--ns-soft); }
.nol-side a:focus-visible, .nol-menu-btn:focus-visible  { outline: 3px solid var(--ns-accent); outline-offset: 2px; }
.nol-side a[aria-current="page"] { background: var(--ns-accent); color: var(--ns-on); font-weight: 700; }
.nol-side .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ns-accent); opacity: .55; }
.nol-side a[aria-current="page"] .dot { background: var(--ns-on); opacity: 1; }
.nol-side .nol-all { font-weight: 700; margin-bottom: 8px; border: 1px solid var(--ns-line); }
.nol-side .ext { margin-left: auto; font-size: .75rem; color: var(--ns-muted); }
.nol-close { display: none; }
.nol-menu-btn { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ns-line); background: var(--ns-bg); color: var(--ns-ink); font: inherit; font-size: .9rem; cursor: pointer; }
.nol-right { display: flex; align-items: center; gap: 8px; }
.nol-ov { position: fixed; inset: 0; z-index: 55; background: rgba(25, 26, 23, .5); }
@media (min-width: 1000px) {
  body.has-side { padding-left: 248px; }
  .nol-menu-btn { display: none; }
}
@media (max-width: 999px) {
  .nol-side { transform: translateX(-102%); visibility: hidden; transition: transform .2s, visibility .2s; width: min(300px, 86vw); box-shadow: 6px 0 24px rgba(25, 26, 23, .18); }
  .nol-side.open { transform: none; visibility: visible; }
  .nol-close { display: block; position: absolute; top: 10px; right: 10px; min-height: 44px; min-width: 44px; border: 0; border-radius: 12px; background: var(--ns-soft); color: var(--ns-ink); font-size: 1.2rem; cursor: pointer; }
}
@media print { .nol-side, .nol-menu-btn, .nol-ov { display: none !important; } body.has-side { padding-left: 0; } }
