
  /* przycisk ☰ – wygląd jak sąsiedni „Zaloguj się” */
  .topbar .in { position: relative; }
  .topbar .theme-toggle, .topbar .main-nav { display: none !important; }
  .topbar #menuToggle { flex: 0 0 auto; width: 42px !important; min-width: 42px !important; height: 38px !important; min-height: 38px !important; margin: 0 !important; padding: 0 !important;
    display: inline-flex !important; align-items: center; justify-content: center; border-radius: 10px !important; border: 1px solid #45484e !important; background: #292c31 !important; color: #e6e8eb !important;
    box-shadow: none !important; cursor: pointer; transform: none !important; transition: background .15s, border-color .15s; }
  .topbar #menuToggle:hover, .topbar #menuToggle[aria-expanded="true"] { background: #33363d !important; border-color: #5a5d64 !important; }
  body.light-theme .topbar #menuToggle { background: #fff !important; border-color: #ccd1da !important; color: #24262a !important; }
  body.light-theme .topbar #menuToggle:hover, body.light-theme .topbar #menuToggle[aria-expanded="true"] { background: #f3f4f6 !important; border-color: #b9bdc4 !important; }
  .mt-bars { position: relative; display: block; width: 18px; height: 12px; }
  .mt-bars i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .22s ease, top .22s ease, opacity .15s ease; }
  .mt-bars i:nth-child(1) { top: 0; } .mt-bars i:nth-child(2) { top: 5px; } .mt-bars i:nth-child(3) { top: 10px; }
  #menuToggle[aria-expanded="true"] .mt-bars i:nth-child(1) { top: 5px; transform: rotate(45deg); }
  #menuToggle[aria-expanded="true"] .mt-bars i:nth-child(2) { opacity: 0; }
  #menuToggle[aria-expanded="true"] .mt-bars i:nth-child(3) { top: 5px; transform: rotate(-45deg); }
  /* panel */
  .site-menu { --sm-bg: #23262c; --sm-line: #383c44; --sm-hover: rgba(255,255,255,.06); --sm-text: #eef0f3; --sm-muted: #9ba2ae; --sm-well: #1a1c21; --sm-on: #383d47;
    position: absolute; top: calc(100% + 8px); right: 24px; z-index: 1200; width: 372px; max-width: calc(100vw - 20px); box-sizing: border-box; padding: 8px;
    border-radius: 18px; background: var(--sm-bg); border: 1px solid var(--sm-line); color: var(--sm-text); box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.2);
    transform-origin: top right; animation: sm-in .18s cubic-bezier(.2,.8,.3,1); }
  body.light-theme .site-menu { --sm-bg: #fff; --sm-line: #dfe2e8; --sm-hover: #f3f5f8; --sm-text: #1c2230; --sm-muted: #657083; --sm-well: #f1f3f6; --sm-on: #fff; box-shadow: 0 24px 60px rgba(20,30,50,.18), 0 2px 8px rgba(20,30,50,.06); }
  .site-menu[hidden] { display: none; }
  @keyframes sm-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
  @media (prefers-reduced-motion: reduce) { .site-menu { animation: none; } .mt-bars i { transition: none; } }
  .sm-nav { display: grid; gap: 2px; }
  .sm-item { display: flex; align-items: center; gap: 13px; padding: 9px 10px; border-radius: 12px; color: var(--sm-text); text-decoration: none; transition: background .12s; }
  .sm-item:hover, .sm-item:focus-visible { background: var(--sm-hover); outline: none; }
  .sm-item:focus-visible { box-shadow: inset 0 0 0 2px #6b8cff; }
  .sm-item[aria-current] { background: color-mix(in srgb, #6b8cff 14%, transparent); }
  .sm-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--t); color: var(--c); }
  .sm-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .sm-ico-tools { --t: rgba(107,140,255,.16); --c: #8ea6ff; } .sm-ico-tpl { --t: rgba(52,179,122,.16); --c: #4fcf93; }
  .sm-ico-guides { --t: rgba(240,180,41,.16); --c: #f3c14e; } .sm-ico-cal { --t: rgba(232,82,94,.16); --c: #ff7c87; } .sm-ico-tt { --t: rgba(155,81,224,.18); --c: #c08bff; } .sm-ico-qr { --t: rgba(32,178,140,.18); --c: #4fd6b0; } .sm-ico-mail { --t: rgba(107,140,255,.18); --c: #8fa8ff; } .sm-ico-bc { --t: rgba(242,153,74,.18); --c: #ffb26b; }
  body.light-theme .sm-ico-tools { --t: #e8edff; --c: #2445c7; } body.light-theme .sm-ico-tpl { --t: #e3f6ec; --c: #13804f; }
  body.light-theme .sm-ico-guides { --t: #fff4d9; --c: #a86f00; } body.light-theme .sm-ico-cal { --t: #fde8ea; --c: #c8283a; } body.light-theme .sm-ico-tt { --t: #f1e8fd; --c: #7a3fc4; } body.light-theme .sm-ico-qr { --t: #dff6ef; --c: #0d8a68; } body.light-theme .sm-ico-mail { --t: #e8edff; --c: #2445c7; } body.light-theme .sm-ico-bc { --t: #fff0e0; --c: #b35c00; }
  .sm-txt { display: grid; gap: 2px; min-width: 0; }
  .sm-txt strong { font-size: .95rem; font-weight: 700; line-height: 1.2; }
  .sm-txt small { font-size: .8rem; line-height: 1.3; color: var(--sm-muted); }
  .sm-new { margin-left: auto; flex: none; align-self: center; padding: 3px 8px; border-radius: 99px; background: #e8525e; color: #fff; font-size: .68rem; font-weight: 800; font-style: normal; letter-spacing: .03em; text-transform: uppercase; }
  .sm-sep { height: 1px; margin: 7px 10px; background: var(--sm-line); }
  .sm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px; }
  .sm-lbl { font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--sm-muted); }
  .sm-theme { display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--sm-well); border: 1px solid var(--sm-line); }
  .site-menu .sm-theme button { display: inline-flex; align-items: center; gap: 6px; margin: 0; min-width: 0; min-height: 0; padding: 6px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--sm-muted);
    font: inherit; font-size: .86rem; font-weight: 700; box-shadow: none; transform: none; cursor: pointer; transition: background .15s, color .15s; }
  .site-menu .sm-theme button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  /* ogólne style przycisków (zwłaszcza w jasnym motywie) nie mogą tu wygrać */
  body .site-menu .sm-theme button { background: transparent !important; background-image: none !important; color: var(--sm-muted) !important; border: 0 !important; box-shadow: none !important; }
  body .site-menu .sm-theme button:hover { color: var(--sm-text) !important; }
  body .site-menu .sm-theme button[aria-pressed="true"] { background: var(--sm-on) !important; color: var(--sm-text) !important; box-shadow: 0 1px 3px rgba(0,0,0,.18) !important; }
  .sm-langrow { flex-direction: column; align-items: stretch; gap: 8px; }
  .site-menu .lang-switch-wrap { display: block; margin: 0; }
  .site-menu #langToggle { display: none !important; }
  .site-menu #langMenu.lang-menu, .site-menu #langMenu.lang-menu[hidden] { position: static; display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px; min-width: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
  .site-menu #langMenu .lang-option { min-height: 40px !important; padding: 8px 10px !important; border: 1px solid var(--sm-line) !important; border-radius: 10px !important; background: transparent !important; color: var(--sm-text) !important; }
  .site-menu #langMenu .lang-option:hover { background: var(--sm-hover) !important; }
  .site-menu #langMenu .lang-option.is-active { border-color: #6b8cff !important; background: color-mix(in srgb, #6b8cff 12%, transparent) !important; }
  .sm-backdrop { position: fixed; inset: 0; z-index: 1150; background: rgba(8,10,14,.42); animation: sm-fade .18s ease; }
  .sm-backdrop[hidden] { display: none; }
  @keyframes sm-fade { from { opacity: 0; } }
  @media (min-width: 641px) { .sm-backdrop { display: none !important; } }
  @media (max-width: 640px) {
    .site-menu { position: fixed; top: var(--sm-top, 64px); left: 10px; right: 10px; width: auto; max-width: none; max-height: calc(100dvh - var(--sm-top, 64px) - 10px); overflow-y: auto; }
  }
