:root {
        --card-bg: #ffffff;
        --text-main: #1c1c1e;
        --muted: #6e6e73;
        --border: #e5e5ea;
        --accent: #8b5cf6;
      }

      * { box-sizing: border-box; }

      body {
        font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        margin: 0;
        padding: 0;
        background: #f5f5f7;
        color: var(--text-main);
      }

      a { color: inherit; }

      .container {
        max-width: 1100px;
        margin: 0 auto;
        padding: 1rem;
      }

      .topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        margin-bottom: 1rem;
      }

      .brand {
        display: flex;
        align-items: center;
        gap: 0.6rem;
      }

      .brand a {
        text-decoration: none;
        font-weight: 700;
        color: #0b1f33;
        font-size: 1.05rem;
      }

      .burger {
        display: none;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        border: 1px solid #d8dce2;
        background: #fff;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
      }

      .burger span {
        width: 18px;
        height: 2px;
        background: #0b1f33;
        display: block;
        transition: transform 0.2s ease, opacity 0.2s ease;
      }

      .burger.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
      }

      .burger.open span:nth-child(2) {
        opacity: 0;
      }

      .burger.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
      }

      .nav-menu {
        display: flex;
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: flex-end;
        width: 100%;
      }

      .nav-links,
      .nav-actions {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        flex-wrap: wrap;
      }

      .nav-links a,
      .nav-actions a {
        text-decoration: none;
        color: #0b63ce;
        font-weight: 600;
        font-size: 0.92rem;
      }

      .user-chip {
        background: #eef2f8;
        border: 1px solid #d8dce2;
        padding: 0.35rem 0.6rem;
        border-radius: 999px;
        font-size: 0.85rem;
        color: #1b2748;
      }

      .balance-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        background: #eef2f8;
        border: 1px solid #d8dce2;
        padding: 0.35rem 0.6rem;
        border-radius: 999px;
        font-size: 0.85rem;
        color: #1b2748;
      }
      .page {
        max-width: 1100px;
        margin: 0 auto;
        padding: 1rem;
      }

      h1 {
        margin: 0 0 0.5rem;
        font-size: clamp(1.6rem, 2vw, 2rem);
      }

      p.lead {
        margin: 0 0 1.5rem;
        color: var(--muted);
      }

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

      .card {
        display: flex;
        flex-direction: column;
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: 14px;
        overflow: hidden;
        text-decoration: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        transition: transform 150ms ease, box-shadow 150ms ease;
      }

      .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
      }

      .card img,
      .card .placeholder {
        width: 100%;
        height: 180px;
        object-fit: cover;
        background: linear-gradient(135deg, #f4f4f5, #e5e7eb);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--muted);
        font-weight: 600;
        letter-spacing: 0.5px;
      }

      .card-content {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        flex: 1;
      }

      .meta {
        display: flex;
        gap: 0.5rem;
        align-items: center;
        color: var(--muted);
        font-size: 0.95rem;
      }

      .badge {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.25rem 0.6rem;
        border-radius: 999px;
        background: #ede9fe;
        color: #5b21b6;
        font-weight: 600;
        font-size: 0.9rem;
        width: fit-content;
      }

      .description {
        color: var(--muted);
        line-height: 1.4;
        margin: 0;
        flex: 1;
      }

      .card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 0.5rem;
      }

      .link {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        font-weight: 700;
        color: var(--accent);
      }
      .workspace-title {
        margin: 0;
        font-size: 1.2rem;
      }

      .equipment {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        margin: 0.5rem 0 0;
        padding: 0;
        list-style: none;
        color: var(--muted);
      }

      .equipment li {
        background: #f3f4f6;
        padding: 0.25rem 0.5rem;
        border-radius: 8px;
        font-size: 0.9rem;
      }

      @media (max-width: 600px) {
        .topbar {
          flex-wrap: wrap;
          align-items: flex-start;
        }

        .burger {
          display: inline-flex;
        }

        .nav-menu {
          display: none;
          width: 100%;
          flex-direction: column;
          align-items: flex-start;
          gap: 0.5rem;
          padding: 0.75rem;
          background: #fff;
          border: 1px solid #e1e4ea;
          border-radius: 0.75rem;
          box-shadow: 0 4px 14px rgba(0,0,0,0.06);
        }

        .nav-menu.open {
          display: flex;
        }

        .nav-links,
        .nav-actions {
          width: 100%;
          flex-direction: column;
          align-items: flex-start;
        }
      }
