  :root {
    --bg: #0a0e1a;
    --surface: #111827;
    --surface2: #1a2235;
    --border: #1e2d45;
    --accent-blue: #3b82f6;
    --accent-pink: #e91e8c;
    --accent-red: #ef4444;
    --accent-green: #10b981;
    --accent-yellow: #f59e0b;
    --text: #e2e8f0;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    font-family: 'Noto Sans KR', sans-serif;
    background: var(--bg);
    color: var(--text);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 48px 0 12px;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    z-index: 100;
  }

  /* 메인 탭 */
  .main-tabs {
    display: flex;
    gap: 0;
    margin-left: 16px;
  }
  .main-tab {
    padding: 0 20px;
    height: 48px;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: 'Noto Sans KR', sans-serif;
  }
  .main-tab:hover { color: var(--text-dim); }
  .main-tab.active { color: #ec4899; border-bottom-color: #ec4899; font-weight: 700; }

  /* 탭 뷰 */
  .tab-view { display: none; flex: 1; overflow: hidden; }
  .tab-view.active { display: flex; }

  .logo {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
    white-space: nowrap;
    padding-right: 20px;
    border-right: 1px solid var(--border);
    margin-right: 4px;
  }
  .logo .logo-site { color: var(--text); font-weight: 700; }

  .topbar-stats { display: flex; gap: 6px; margin-left: auto; }
  .topbar-stats.hidden { display: none; }
  .btn-add.hidden { display: none; }

  .btn-add {
    padding: 8px 16px;
    background: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    margin-left: 8px;
  }
  .btn-add:hover { background: #2563eb; transform: translateY(-1px); }

  .main {
    display: flex;
    flex: 1;
    overflow: hidden;
    flex-direction: column;
  }

  .btn-sm {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid;
    transition: all 0.15s;
  }
  .btn-outline { background: transparent; border-color: var(--border); color: var(--text-dim); }
  .btn-outline:hover { border-color: var(--text-dim); color: var(--text); }
  .btn-primary { background: var(--accent-blue); border-color: var(--accent-blue); color: #fff; }
  .btn-primary:hover { background: #2563eb; }

  @keyframes spin{to{transform:rotate(360deg)}}
