/* ============================================================
   Watchpilot · base.css
   全局: body, APP CONTAINER, 顶部 nav 框架
   (原 main.css 行 87-200)
   ============================================================ */

  /* ═══════════════════════ APP CONTAINER ═══════════════════════ */
  .app {
    display: flex;
    height: 100vh;
  }
  
  /* ═══════════════════════ SIDEBAR ═══════════════════════ */
  .sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
  }
  
  .sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 22px 14px 16px 14px;
  }

  /* 超窄屏(<768, 平板竖屏/缩窗): 桌面版主要面向 ≥1024 屏, 此处隐藏左侧栏把整宽还给主区,
     防 300px 侧栏+主内容在小屏对挤导致严重溢出 (真·手机请走 /m) */
  @media (max-width: 768px) {
    .sidebar { display: none; }
  }

  
  .sidebar-scroll::-webkit-scrollbar { width: 6px; }
  .sidebar-scroll::-webkit-scrollbar-track { background: transparent; }
  .sidebar-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
  .sidebar-scroll::-webkit-scrollbar-thumb:hover { background: var(--text-3); }
  
  /* Logo */
  .logo {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 6px 22px 6px;
  }
  .logo-mark {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    letter-spacing: -1px;
  }
  .logo-text {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    font-style: italic;
    letter-spacing: -0.4px;
    color: var(--text-1);
  }
  
  /* Section */
  .section {
    margin-bottom: 22px;
  }
  
  .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 8px;
  }
  
  .section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: 7px;
  }
  
  .section-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    background: var(--urgent);
    color: white;
    border-radius: 4px;
    padding: 1px 6px;
    font-weight: 700;
    letter-spacing: 0;
    min-width: 16px;
    text-align: center;
  }
  
  .section-badge.muted {
    background: var(--border-strong);
    color: var(--text-2);
  }
  
  .section-action {
    font-size: 11px;
    color: var(--text-3);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s;
  }
  .section-action:hover { color: var(--accent); }
  
