    :root {
      --bg: #0a0b0e;
      --surface: #111318;
      --card: #1a1d24;
      --text: #f0f2f5;
      --text-muted: #9ca3af;
      --accent: #3b82f6;
      --accent-hover: #2563eb;
      --border: rgba(255, 255, 255, 0.1);
      --shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
      --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.4);
      --radius: 12px;
      --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @media (prefers-color-scheme: light) {
      :root {
        --bg: #fafbfc;
        --surface: #ffffff;
        --card: #ffffff;
        --text: #1f2937;
        --text-muted: #6b7280;
        --border: rgba(0, 0, 0, 0.08);
        --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
      }
    }

    * {
      box-sizing: border-box;
    }

    html, body {
      height: 100%;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      background: linear-gradient(135deg, var(--bg) 0%, var(--surface) 100%);
      color: var(--text);
      display: flex;
      flex-direction: column;
      min-height: 100vh;
      overflow-x: hidden;
    }

    .container {
      flex: 1;
      max-width: 1200px;
      margin: 0 auto;
      padding: 2rem 1.5rem;
      width: 100%;
    }

    .navbar {
      background: var(--card);
      border-bottom: 1px solid var(--border);
      box-shadow: var(--shadow);
      margin: -2rem -1.5rem 3rem -1.5rem;
      padding: 1rem 2rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 2rem;
      width: calc(100% + 3rem);
      box-sizing: border-box;
    }

    .nav-brand {
      display: flex;
      align-items: center;
      gap: 1rem;
      flex-shrink: 0;
    }

    .nav-logo {
      width: 40px;
      height: 40px;
      background: linear-gradient(135deg, var(--accent), var(--accent-hover));
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      font-weight: 700;
      color: white;
      box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
      user-select: none;
    }

    .nav-title {
      font-size: 1.5rem;
      font-weight: 700;
      margin: 0;
      color: var(--text);
    }

    .nav-search {
      position: relative;
      flex: 1;
      max-width: 400px;
    }

    .nav-search-input {
      width: 100%;
      padding: 0.75rem 1rem 0.75rem 2.5rem;
      border: 2px solid var(--border);
      border-radius: 25px;
      background: var(--surface);
      color: var(--text);
      font-size: 0.95rem;
      outline: none;
      transition: var(--transition);
    }

    .nav-search-input:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    .nav-search-input::placeholder {
      color: var(--text-muted);
    }

    .nav-search-icon {
      position: absolute;
      left: 0.8rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      font-size: 1rem;
      pointer-events: none;
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 1rem;
      flex-shrink: 0;
    }

    .nav-btn {
      padding: 0.5rem 1rem;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: var(--surface);
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.9rem;
      font-weight: 500;
      transition: var(--transition);
      cursor: pointer;
    }

    .nav-btn:hover {
      background: var(--accent);
      color: white;
      border-color: var(--accent);
    }

    .apps-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
      gap: 2rem;
      max-width: none;
      margin: 0 auto;
      justify-items: center;
    }

    .app-item {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-decoration: none;
      color: inherit;
      padding: 1rem;
      border-radius: var(--radius);
      transition: var(--transition);
      cursor: pointer;
    }

    .app-icon {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2.5rem;
      margin-bottom: 0.5rem;
      position: relative;
      transition: var(--transition);
      box-shadow: var(--shadow);
      border: 2px solid var(--border);
    }

    .app-item:hover .app-icon {
      transform: translateY(-8px) scale(1.1);
      box-shadow: var(--shadow-hover);
      border-color: var(--accent);
    }

    .app-name {
      position: absolute;
      bottom: -2.5rem;
      left: 50%;
      transform: translateX(-50%);
      background: var(--card);
      color: var(--text);
      padding: 0.5rem 1rem;
      border-radius: 8px;
      font-size: 0.9rem;
      font-weight: 600;
      white-space: nowrap;
      opacity: 0;
      pointer-events: none;
      transition: var(--transition);
      box-shadow: var(--shadow);
      border: 1px solid var(--border);
      z-index: 10;
    }

    .app-item:hover .app-name {
      opacity: 1;
      transform: translateX(-50%) translateY(-4px);
    }

    /* App-specific icon colors */
    .duotext-icon {
      background: linear-gradient(135deg, #8b5cf6, #a855f7);
      color: white;
    }

    .fileapp-icon {
      background: linear-gradient(135deg, #06b6d4, #0891b2);
      color: white;
    }

    .notes-icon {
      background: linear-gradient(135deg, #f59e0b, #d97706);
      color: white;
    }

    .hidden {
      display: none !important;
    }

    .footer {
      display: none;
    }

    /* Responsive design */
    @media (max-width: 768px) {
      .container {
        padding: 1.5rem 1rem;
      }

      .navbar {
        margin: -1.5rem -1rem 2rem -1rem;
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        width: calc(100% + 2rem);
      }

      .nav-brand {
        justify-content: center;
      }

      .nav-search {
        max-width: none;
      }

      .nav-actions {
        justify-content: center;
      }

      .apps-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1.5rem;
      }

      .app-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
      }
    }

    @media (max-width: 480px) {
      .navbar {
        padding: 0.75rem;
      }

      .nav-title {
        font-size: 1.25rem;
      }

      .nav-logo {
        width: 36px;
        height: 36px;
        font-size: 14px;
      }

      .nav-actions {
        gap: 0.5rem;
      }

      .nav-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
      }

      .apps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
      }

      .app-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      * {
        transition: none !important;
        animation: none !important;
      }
    }

    /* Focus styles for accessibility */
    .app-item:focus {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
      border-radius: var(--radius);
    }

    .app-item:focus .app-name {
      opacity: 1;
      transform: translateX(-50%) translateY(-4px);
    }
