/* YuniTalk 웹(넓은 화면) — 웹메일(mail.yunisuite.com)과 같은 배치: 어두운 머리줄(☰ + 로고) + 왼쪽 메뉴(200px, 아이콘+이름,
   활성 항목은 왼쪽 파란 막대, ☰ 로 56px 아이콘 띠로 접기). 좁은 화면(모바일)은 그대로 아래 탭 막대.
   messenger.css 뒤에 읽혀 그 규칙(@media min-width:769px 의 36px 세로 막대)을 덮는다. 수치·색은 웹메일 style.css/site.css 기준. */
.tl-topbar { display: none; }

@media (min-width: 769px) {
  :root { --tl-header: 52px; --tl-sidebar: 200px; --tl-rail: 56px; }
  body.tl-collapsed { --tl-sidebar: var(--tl-rail); }

  .tl-topbar {
    position: fixed; top: 0; left: 0; right: 0; height: var(--tl-header); z-index: 200;
    display: flex; align-items: center; padding: 0 20px; background: #1e293b; color: #f1f5f9;
  }
  .tl-menu-btn {
    background: none; border: none; cursor: pointer; padding: 6px; border-radius: 6px; margin-right: 10px;
    display: flex; flex-direction: column; justify-content: center; gap: 4px; flex-shrink: 0; transition: background .15s;
  }
  .tl-menu-btn:hover { background: rgba(255,255,255,.08); }
  .tl-menu-btn span { display: block; width: 16px; height: 2px; background: #94a3b8; border-radius: 1px; transition: background .15s; }
  .tl-menu-btn:hover span { background: #f1f5f9; }
  .tl-brand { font-size: .95rem; font-weight: 700; color: #f1f5f9; text-decoration: none; }

  .app-shell { box-sizing: border-box; padding-left: var(--tl-sidebar); padding-top: var(--tl-header); }

  .bottom-nav {
    top: var(--tl-header); width: var(--tl-sidebar); padding: 0; gap: 0; align-items: stretch;
    background: #fff; border-right: 1px solid #e2e5ea; overflow-x: hidden; overflow-y: auto;
  }
  .bottom-nav .bottom-nav-item {
    width: auto; height: 38px; flex: none; flex-direction: row; justify-content: flex-start; gap: 10px;
    padding: 0 16px; border-radius: 0; border-left: 3px solid transparent; text-align: left;
    font-size: .875rem; color: #374151; transition: background .12s, color .12s, border-color .12s;
  }
  .bottom-nav .bottom-nav-item > span:not(.nav-badge) { display: block; font-size: .875rem; max-width: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bottom-nav .bottom-nav-item svg { flex: none; width: 18px; height: 18px; color: #64748b; transition: color .12s; }
  .bottom-nav .bottom-nav-item:hover { background: #f1f5f9; }
  .bottom-nav .bottom-nav-item:hover svg { color: #334155; }
  .bottom-nav .bottom-nav-item.active { background: #ebebeb; color: #26205a; border-left-color: #0042aa; font-weight: 600; }
  .bottom-nav .bottom-nav-item.active svg { color: #26205a; }
  /* 웹메일 메뉴(메일·일정·주소록·메모) 아래, 톡 메뉴가 시작하는 곳에 구분선 */
  .bottom-nav .bottom-nav-item[data-tab="friends"] { margin-top: 6px; border-top: 1px solid #e2e5ea; height: 44px; }
  .bottom-nav .bottom-nav-item .nav-badge { position: static; margin-left: auto; top: auto; right: auto; }

  /* ☰ 로 접으면 아이콘만 남는 56px 띠 — 이름은 풍선말(title)로 */
  body.tl-collapsed .bottom-nav .bottom-nav-item { justify-content: center; padding: 0 8px; }
  body.tl-collapsed .bottom-nav .bottom-nav-item > span:not(.nav-badge) { display: none; }
  body.tl-collapsed .bottom-nav .bottom-nav-item .nav-badge { position: absolute; top: 4px; right: 6px; margin: 0; }
}
