/* Header */
    .header {
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      padding: 0 24px;
      min-height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 100;
      backdrop-filter: blur(12px);
      background: rgba(255, 255, 255, 0.95);
    }

    .logo {
      font-family: 'Syne', sans-serif;
      font-size: 20px;
      font-weight: 800;
      letter-spacing: -0.02em;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .logo-icon {
      width: 32px;
      height: 32px;
      background: linear-gradient(135deg, #2563eb, #7c3aed);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 16px;
      font-weight: 700;
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .header-year,
    .header-menu-toggle,
    .header-menu-backdrop,
    .header-menu-header {
      display: none;
    }

    .header-menu {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .header-menu-section {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .year-select {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 8px 12px;
      font-family: inherit;
      font-size: 14px;
      font-weight: 500;
      color: var(--text-primary);
      cursor: pointer;
      transition: all 0.2s;
      min-width: 120px;
    }

    .year-select:hover {
      border-color: var(--border-strong);
      background: var(--surface-hover);
    }

    .btn {
      background: var(--accent);
      color: white;
      border: none;
      border-radius: 8px;
      padding: 10px 16px;
      font-family: inherit;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .btn:hover {
      background: var(--accent-hover);
      transform: translateY(-1px);
    }

    @media (max-width: 768px), (max-height: 500px) {
      .header {
        padding: 0 12px;
        min-height: 56px;
        gap: 10px;
        flex-wrap: nowrap;
      }

      .logo {
        font-size: 18px;
        gap: 10px;
      }

      .logo-text {
        display: none;
      }

      body.header-menu-open {
        overflow: hidden;
      }

      .header-year,
      .header-menu-toggle,
      .header-menu-backdrop,
      .header-menu-header {
        display: flex;
      }

      .header-actions {
        gap: 8px;
      }

      .header-year {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 10px;
        height: 40px;
        padding: 0 12px;
        font-family: inherit;
        font-size: 14px;
        font-weight: 700;
        color: var(--text-primary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 72px;
      }

      .header-menu-toggle {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 10px;
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--text-primary);
      }

      .header-menu-icon {
        font-size: 18px;
        line-height: 1;
      }

      .header-menu-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.35);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 940;
      }

      body.header-menu-open .header-menu-backdrop {
        opacity: 1;
        pointer-events: auto;
      }

      .header-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(360px, 92vw);
        background: var(--surface);
        border-left: 1px solid var(--border);
        box-shadow: 0 12px 40px rgba(15, 23, 42, 0.2);
        padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px 12px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.2s ease, opacity 0.2s ease;
        z-index: 950;
      }

      body.header-menu-open .header-menu {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
      }

      .header-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
      }

      .header-menu-title {
        font-family: 'Syne', sans-serif;
        font-size: 18px;
        font-weight: 800;
        letter-spacing: -0.02em;
      }

      .header-menu-close {
        background: transparent;
        border: 1px solid var(--border);
        border-radius: 10px;
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 22px;
        line-height: 1;
        color: var(--text-primary);
      }

      .header-menu-section {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
      }

      .header-menu-section + .header-menu-section {
        padding-top: 12px;
        border-top: 1px solid var(--border);
      }

      .header-menu .year-select,
      .header-menu .btn,
      .header-menu .btn-secondary {
        width: 100%;
      }

      .year-select {
        min-width: 0;
      }
    }
