  /* ===== TOGGLE SWITCH ===== */
  .toggle-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
  }
  .toggle-wrap input { opacity: 0; width: 0; height: 0; position: absolute; }
  .toggle-slider {
    width: 44px;
    height: 26px;
    background: var(--line);
    border-radius: 13px;
    transition: background 0.2s;
    position: relative;
    flex-shrink: 0;
  }
  .toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s;
  }
  .toggle-wrap input:checked + .toggle-slider { background: var(--green); }
  .toggle-wrap input:checked + .toggle-slider::after { transform: translateX(18px); }

  /* ── Auth screens ── */
  #auth-screen {
    display: none;
    position: fixed; inset: 0; z-index: 9998;
    background: var(--paper);
    flex-direction: column; align-items: center; justify-content: center;
    padding: 24px;
  }
  .auth-card {
    width: 100%; max-width: 360px;
    display: flex; flex-direction: column; gap: 16px;
  }
  /* ===== EKRAN LOGOWANIA ===== */
  .auth-logo {
    font-family: 'Fraunces', serif; font-size: 32px; font-weight: 700;
    color: var(--ink); letter-spacing: -0.02em; text-align: center;
  }
  .auth-sub {
    font-size: 15px; color: var(--ink-faded); text-align: center; margin-top: -8px;
  }
  .auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
  .auth-field { display: flex; flex-direction: column; gap: 6px; }
  .auth-label { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
  .auth-input {
    background: var(--paper-dark); border: 1px solid var(--line-soft);
    border-radius: 10px; padding: 13px 14px; font-size: 16px; color: var(--ink);
    outline: none; width: 100%; box-sizing: border-box; font-family: inherit;
  }
  .auth-input:focus { border-color: var(--accent); }
  .auth-btn {
    background: var(--accent); color: #fff; border: none; border-radius: 12px;
    padding: 15px; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 6px;
    font-family: inherit;
  }
  .auth-btn:disabled { opacity: .5; cursor: default; }
  .auth-err { font-size: 14px; color: #b8423a; min-height: 18px; text-align: center; }
  .auth-help-link { margin-top: 10px; font-size: 13px; color: var(--ink-faded); background: none; border: none; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-family: inherit; }
  .auth-help-link:hover { color: var(--ink); }

  /* ── Kalendarz ────────────────────────────────────────────── */
  .cal-toolbar { display:flex; justify-content:space-between; align-items:center; padding:16px 16px 0; gap:8px; flex-wrap:nowrap; }
  .cal-views { display:flex; gap:8px; flex-shrink:0; }
  .cal-view-btn { padding:5px 14px; border:1px solid var(--line); border-radius:20px; background:none; font-size:13px; color:var(--ink-faded); cursor:pointer; font-family:inherit; transition:border-color .15s, color .15s; white-space:nowrap; }
  .cal-view-btn:hover { border-color:var(--accent); }
  .cal-view-btn.cal-view-active { color:var(--ink); background:none; border-color:var(--line); }
  .cal-filter-bar { display:flex; gap:8px; padding:8px 16px; flex-wrap:wrap; }
  .cal-search-input { flex:1; min-width:120px; padding:7px 10px; border:1px solid var(--line); border-radius:6px; font-size:14px; font-family:inherit; background:var(--paper); color:var(--ink); }
  .cal-filter-sel { padding:7px 10px; border:1px solid var(--line); border-radius:6px; font-size:13px; font-family:inherit; background:var(--paper); color:var(--ink); -webkit-appearance:none; }
  .cal-help-btn, .section-help-btn {
    width:26px; height:26px; border-radius:50%;
    border:1px solid var(--line); background:var(--paper-dark);
    color:var(--ink-faded); font-size:13px; font-weight:700;
    cursor:pointer; line-height:1; display:inline-flex;
    align-items:center; justify-content:center; flex-shrink:0;
    align-self:center;
  }
  .cal-help-btn:hover, .section-help-btn:hover { background:var(--line); color:var(--ink); }
