  .drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(42,22,10,0.5);
    z-index: 90;
    display: none;
  }
  .drawer-overlay.open { display: block; }

  .drawer {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    background: var(--brown-900);
    z-index: 95;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    padding: 0;
  }
  .drawer.open { transform: translateX(0); }

  .drawer-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    color: #B99A87;
    border-radius: 50%;
    transition: background 0.15s ease;
  }
  .drawer-close:hover { background: var(--brown-800); }

  .drawer-logo {
    display: flex; align-items: center; gap: 10px;
    padding: 20px 20px 18px;
    border-bottom: 1px solid var(--brown-800);
  }
  .drawer-logo .brand-name { font-size: 15px; font-weight: 800; color: #F5EDE0; letter-spacing: 0.4px; }

  .drawer-profile {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--brown-800);
    margin-bottom: 12px;
  }
  .drawer-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--terracotta);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: #F5EDE0;
    flex-shrink: 0;
  }
  .drawer-profile-name { font-size: 13px; font-weight: 700; color: #F5EDE0; }
  .drawer-profile-email { font-size: 11px; color: #9A7060; margin-top: 1px; }

  .drawer-guest {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--brown-800);
    margin-bottom: 12px;
  }
  .drawer-guest p { font-size: 12px; color: #B99A87; line-height: 1.5; }
  .btn-drawer-auth {
    align-self: flex-start;
    padding: 9px 16px;
    background: var(--peach);
    color: var(--brown-900);
    border-radius: 20px;
    font-size: 12px; font-weight: 600;
    transition: background 0.15s ease;
  }
  .btn-drawer-auth:hover { background: #f0b874; }

  .drawer-guest {
      display: flex;
  }

  .drawer-profile {
      display: block;
  }

  .auth-only {
      display: block;
  }

  .drawer-footer {
      display: block;
  }

  .drawer-nav { display: flex; flex-direction: column; gap: 1px; padding: 0 10px; flex: 1; }
  .drawer-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    font-size: 13px; font-weight: 500;
    color: #B99A87;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .drawer-link:hover { background: var(--brown-800); color: #F5EDE0; }
  .drawer-link.active { background: var(--brown-800); color: var(--peach); border-left: 3px solid var(--terracotta); padding-left: 9px; }
  .drawer-link-icon { width: 16px; text-align: center; font-size: 14px; }

  .drawer-footer {
    padding: 14px 20px 20px;
    border-top: 1px solid var(--brown-800);
    margin-top: 12px;
  }
  .drawer-logout {
    font-size: 12px; font-weight: 600; color: var(--alert);
    display: flex; align-items: center; gap: 8px;
  }

  /* demo-only toggle to preview logged-in / logged-out states */
  .demo-toggle {
    position: fixed; bottom: 18px; right: 18px; z-index: 200;
    background: var(--white); border: 1px solid var(--border);
    border-radius: 24px; padding: 9px 16px;
    font-size: 12px; font-weight: 600; color: var(--brown-700);
    box-shadow: 0 4px 14px rgba(42,22,10,0.15);
  }

  .drawer-logout { width:100%; text-align:left; cursor:pointer; }
  @media (max-width: 720px) { .header-avatar { display:flex; } }
