
 
    /* ── Project page (scoped) ── */
    .project-root .page {
      max-width: 780px;
      margin: 0 auto;
      padding: 24px 16px 48px;
    }
    .project-root .page-grid {
      display: grid;
      grid-template-areas:
        "info"
        "desc"
        "team"
        "roles"
        "comments";
      gap: 10px;
    }
    @media (min-width: 768px) {
      .project-root .page { padding: 28px 24px 60px; max-width: 1120px; }
      .project-root .page-grid {
        grid-template-columns: 1fr 280px;
        grid-template-areas:
          "info     team"
          "desc     team"
          "roles    team"
          "comments team";
        gap: 12px;
        align-items: start;
      }
      .project-root .area-team { position: sticky; top: 80px; }
    }
    .project-root .area-info     { grid-area: info; }
    .project-root .area-desc     { grid-area: desc; }
    .project-root .area-team     { grid-area: team; }
    .project-root .area-roles    { grid-area: roles; }
    .project-root .area-comments { grid-area: comments; }

    .project-root .project-header {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 20px;
    }
    .project-root .project-header p {
      font-size:14px;
      color:var(--text-2);
      line-height:1.6;
      margin-bottom:16px;
    }
    .project-root .project-header-top {
      display: flex;
      gap: 16px;
      align-items: flex-start;
      margin-bottom: 16px;
    }
    .project-root .project-icon-lg {
      width: 56px;
      height: 56px;
      border-radius: 12px;
      background: #eef1fd;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      flex-shrink: 0;
    }

    .project-root .project-icon-lg img {
      width:100%;
      height:100%;o
      bject-fit:contain;
      borrder-radius:12px;
    }

    .project-root .project-header-info { flex: 1; min-width: 0; }
    .project-root .project-title {
      font-family: 'Geologica', sans-serif;
      font-size: 22px;
      font-weight: 700;
      letter-spacing: -0.03em;
      margin-bottom: 8px;
      line-height: 1.2;
    }
    .project-root .project-meta {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }
    .project-root .project-actions {
      display: flex;
      gap: 8px;
      margin-top: 14px;
      align-items: center;
    }
    .project-root .project-actions-secondary {
      display: flex;
      gap: 8px;
      flex-shrink: 0;
    }

    .project-root .stage-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 12px;
      font-weight: 600;
      padding: 3px 10px;
      border-radius: var(--radius-pill);
    }
    .project-root .stage-badge::before {
      content: '';
      display: block;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: currentColor;
    }
    .project-root .stage-idea { background: #eef1fd; color: #1847e3; }

    .project-root .founder-chip {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      color: var(--text-2);
    }
    .project-root .founder-avatar {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: var(--accent-light);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 9px;
      font-weight: 700;
      color: var(--accent);
    }
    .project-root .model-tag {
      font-size: 12px;
      font-weight: 500;
      color: var(--text-3);
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: var(--radius-pill);
      padding: 2px 8px;
    }

    .project-root .equity-block {
      background: linear-gradient(135deg, #eef1fd 0%, #f3f0fb 100%);
      border: 1px solid var(--accent-muted);
      border-radius: var(--radius);
      padding: 16px 18px;
    }
    .project-root .equity-label {
      font-size: 12px;
      font-weight: 600;
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: .06em;
      margin-bottom: 6px;
    }
    .project-root .equity-number {
      font-family: 'Geologica', sans-serif;
      font-size: 28px;
      font-weight: 700;
      color: var(--accent);
      letter-spacing: -0.04em;
      line-height: 1;
      margin-bottom: 10px;
    }
    .project-root .equity-number span {
      font-size: 16px;
      font-weight: 500;
      color: var(--text-2);
      letter-spacing: 0;
    }
    .project-root .equity-bar {
      height: 8px;
      background: rgba(24,71,227,.12);
      border-radius: 4px;
      overflow: hidden;
      margin-bottom: 8px;
    }
    .project-root .equity-bar-fill {
      height: 100%;
      border-radius: 4px;
      background: var(--accent);
      transition: width .4s ease;
    }
    .project-root .equity-legend {
      display: flex;
      gap: 16px;
      font-size: 12px;
      color: var(--text-2);
      flex-wrap: wrap;
    }
    .project-root .equity-legend-item {
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .project-root .equity-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .project-root .section {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 18px 20px;
    }
    .project-root .section-title {
      font-family: 'Geologica', sans-serif;
      font-size: 14px;
      font-weight: 600;
      letter-spacing: -0.01em;
      color: var(--text);
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .project-root .section-count {
      font-size: 12px;
      font-weight: 600;
      color: var(--text-3);
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: var(--radius-pill);
      padding: 1px 8px;
    }

    .project-root .desc-text {
      font-size: 14.5px;
      color: var(--text-2);
      line-height: 1.65;
    }

    .project-root .member-list { display: flex; flex-direction: column; gap: 10px; }
    .project-root .member-row { display: flex; align-items: center; gap: 12px; }
    .project-root .member-avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 700;
      flex-shrink: 0;
    }
    .project-root .member-info { flex: 1; min-width: 0; }
    .project-root .member-name { font-size: 14px; font-weight: 600; color: var(--text); }
    .project-root .member-role { font-size: 12.5px; color: var(--text-3); margin-top: 1px; }
    .project-root .member-badge {
      font-size: 11.5px;
      font-weight: 600;
      padding: 2px 8px;
      border-radius: var(--radius-pill);
      flex-shrink: 0;
    }
    .project-root .badge-founder { background: var(--accent-light); color: var(--accent); }
    .project-root .badge-member { background: #dcfce7; color: #16a34a; }

    .project-root .role-list { display: flex; flex-direction: column; gap: 8px; }
    .project-root .role-row {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 12px;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      transition: border-color .15s;
    }
    .project-root .role-row:hover { border-color: var(--accent-muted); }
    .project-root .role-icon {
      width: 32px;
      height: 32px;
      border-radius: var(--radius-sm);
      background: var(--accent-light);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 15px;
      flex-shrink: 0;
    }
    .project-root .role-info { flex: 1; }
    .project-root .role-name { font-size: 14px; font-weight: 600; color: var(--text); }
    .project-root .role-desc { font-size: 12.5px; color: var(--text-2); margin-top: 3px; line-height: 1.45; }                                  
    .project-root .role-note { font-size: 12px; color: var(--text-3); margin-top: 3px; }   

    .project-root .btn-apply {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 13px;
      font-weight: 600;
      padding: 6px 14px;
      background: var(--accent);
      color: var(--white);
      border: none;
      border-radius: var(--radius-pill);
      cursor: pointer;
      font-family: 'Onest', sans-serif;
      transition: background .15s;
      flex-shrink: 0;
      white-space: nowrap;
    }
    .project-root .btn-apply:hover { background: var(--accent-hover); }

    .project-root .action-button {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 13.5px;
      font-weight: 500;
      padding: 8px 14px;
      border: 1px solid var(--border);
      border-radius: var(--radius-pill);
      background: var(--white);
      color: var(--text-2);
      cursor: pointer;
      font-family: 'Onest', sans-serif;
      transition: all .15s;
    }
    .project-root .action-button:hover { background: var(--bg); }
    .project-root .action-button.watching {
      background: var(--accent-light);
      border-color: var(--accent-muted);
      color: var(--accent);
    }
    .project-root .action-button.liked {
      background: #fff1f2;
      border-color: #fecdd3;
      color: #e11d48;
    }
    .project-root .btn-join {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 14px;
      font-weight: 700;
      padding: 9px 18px;
      background: var(--accent);
      border: 1px solid var(--accent);
      color: var(--white);
      border-radius: var(--radius-pill);
      cursor: pointer;
      font-family: 'Onest', sans-serif;
      transition: background .15s, border-color .15s;
    }
    .project-root .btn-join:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

    .project-root .comment-input-wrap {
      display: flex;
      gap: 10px;
      margin-bottom: 16px;
      align-items: flex-start;
    }
    .project-root .comment-input-inner { flex: 1; }
    .project-root .comment-input {
      width: 100%;
      font-family: 'Onest', sans-serif;
      font-size: 14px;
      color: var(--text);
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 10px 14px;
      outline: none;
      resize: none;
      min-height: 42px;
      transition: border-color .15s;
      line-height: 1.5;
    }
    .project-root .comment-input:focus { border-color: var(--accent); }
    .project-root .comment-input-actions {
      display: none;
      gap: 6px;
      margin-top: 8px;
      justify-content: flex-end;
    }
    .project-root .comment-input-actions.visible { display: flex; }
    .project-root .btn-comment-submit {
      font-family: 'Onest', sans-serif;
      font-size: 13px;
      font-weight: 600;
      padding: 6px 14px;
      background: var(--accent);
      color: var(--white);
      border: none;
      border-radius: var(--radius-pill);
      cursor: pointer;
      transition: background .15s;
    }
    .project-root .btn-comment-submit:hover { background: var(--accent-hover); }
    .project-root .btn-comment-cancel {
      font-family: 'Onest', sans-serif;
      font-size: 13px;
      font-weight: 500;
      padding: 6px 14px;
      background: none;
      color: var(--text-2);
      border: 1px solid var(--border);
      border-radius: var(--radius-pill);
      cursor: pointer;
      transition: background .15s;
    }
    .project-root .btn-comment-cancel:hover { background: var(--bg); }

    .project-root .reply-form {
      display: flex;
      gap: 8px;
      margin-top: 8px;
      align-items: flex-start;
    }
    .project-root .reply-form .comment-avatar {
      width: 26px;
      height: 26px;
      font-size: 9px;
      flex-shrink: 0;
    }
    .project-root .reply-form .comment-input-inner { flex: 1; }

    .project-root .comment-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--accent-light);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 700;
      color: var(--accent);
      flex-shrink: 0;
    }
    .project-root .comment-list { display: flex; flex-direction: column; gap: 14px; }
    .project-root .comment-item { display: flex; gap: 10px; }
    .project-root .comment-body { flex: 1; }
    .project-root .comment-header {
      display: flex;
      align-items: baseline;
      gap: 8px;
      margin-bottom: 4px;
    }
    .project-root .comment-name { font-size: 13px; font-weight: 600; color: var(--text); }
    .project-root .comment-time { font-size: 11.5px; color: var(--text-3); }
    .project-root .comment-text { font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
    .project-root .comment-reply-btn {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      margin-top: 6px;
      font-size: 12px;
      font-weight: 500;
      color: var(--text-3);
      background: none;
      border: none;
      cursor: pointer;
      font-family: 'Onest', sans-serif;
      padding: 0;
      transition: color .15s;
    }
    .project-root .comment-reply-btn:hover { color: var(--accent); }
    .project-root .comment-replies {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 10px;
      padding-left: 14px;
      border-left: 2px solid var(--border);
    }
    .project-root .comment-replies .comment-avatar { width: 26px; height: 26px; font-size: 9px; }
    .project-root .comment-replies .comment-name { font-size: 12.5px; }
    .project-root .comment-replies .comment-text { font-size: 13px; }

    .project-root .reply-container { margin-top: 12px; }

    /* ── New project page (scoped) ── */
    .new-project-root {
      min-height: calc(100vh - 60px);
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding: 32px 16px 64px;
    }

    .new-project-card {
      background: var(--white);
      border-radius: 16px;
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
      width: 100%;
      max-width: 560px;
      padding: 28px 24px 32px;
    }

    .new-project-heading {
      font-family: 'Geologica', sans-serif;
      font-size: 22px;
      font-weight: 700;
      letter-spacing: -0.03em;
      color: var(--text);
      margin-bottom: 4px;
    }

    .new-project-subheading {
      font-size: 14px;
      color: var(--text-2);
      line-height: 1.5;
      margin-bottom: 28px;
    }

    .new-project-form-group {
      margin-bottom: 18px;
    }

    .new-project-label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 6px;
    }

    .new-project-control {
      width: 100%;
      font-family: 'Onest', sans-serif;
      font-size: 14px;
      color: var(--text);
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 10px 14px;
      outline: none;
      transition: border-color .15s;
      appearance: none;
    }
    .new-project-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(24,71,227,.08); }
    .new-project-control::placeholder { color: var(--text-3); }

    textarea.new-project-control {
      min-height: 110px;
      resize: vertical;
      line-height: 1.55;
    }

    select.new-project-control {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238891a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      padding-right: 36px;
      cursor: pointer;
    }

    .new-project-hint {
      font-size: 12px;
      color: var(--text-3);
      margin-top: 5px;
      line-height: 1.4;
    }

    /* ── File upload ── */
    .new-project-upload {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      min-height: 100px;
      border: 1.5px dashed var(--border);
      border-radius: var(--radius);
      background: var(--bg);
      cursor: pointer;
      transition: border-color .15s, background .15s;
      padding: 20px;
      text-align: center;
      position: relative;
    }
    .new-project-upload:hover,
    .new-project-upload.drag-over {
      border-color: var(--accent);
      background: var(--accent-light);
    }
    .new-project-upload input[type="file"] {
      position: absolute;
      inset: 0;
      opacity: 0;
      cursor: pointer;
      width: 100%;
      height: 100%;
    }
    .new-project-upload-icon {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: var(--white);
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-3);
      flex-shrink: 0;
    }
    .new-project-upload-text {
      font-size: 13.5px;
      font-weight: 500;
      color: var(--text-2);
    }
    .new-project-upload-text span {
      color: var(--accent);
      font-weight: 600;
    }
    .new-project-upload-sub {
      font-size: 12px;
      color: var(--text-3);
    }
    .new-project-upload-file {
      display: none;
      align-items: center;
      gap: 10px;
      width: 100%;
      padding: 10px 12px;
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      margin-top: 8px;
    }
    .new-project-upload-file.visible { display: flex; }
    .new-project-upload-file-name {
      flex: 1;
      font-size: 13px;
      font-weight: 500;
      color: var(--text);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .new-project-upload-file-remove {
      background: none;
      border: none;
      cursor: pointer;
      color: var(--text-3);
      padding: 2px;
      border-radius: 4px;
      transition: color .15s;
      display: flex;
      align-items: center;
    }
    .new-project-upload-file-remove:hover { color: #e53935; }

    /* ── Stage badges inside select hint ── */
    .new-project-stage-hint {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 8px;
    }
    .new-project-stage-chip {
      font-size: 11.5px;
      font-weight: 600;
      padding: 3px 10px;
      border-radius: var(--radius-pill);
      background: var(--accent-light);
      color: var(--accent);
      border: 1px solid var(--accent-muted);
    }
    .new-project-stage-chip.idea    { background: #fef9e7; color: #b7791f; border-color: #f6e05e; }
    .new-project-stage-chip.mvp     { background: #e8f5e9; color: #2e7d32; border-color: #a5d6a7; }
    .new-project-stage-chip.growth  { background: #e3f2fd; color: #1565c0; border-color: #90caf9; }
    .new-project-stage-chip.scale   { background: #fce4ec; color: #c62828; border-color: #f48fb1; }

    /* ── Divider ── */
    .new-project-divider {
      height: 1px;
      background: var(--border-light);
      margin: 24px 0;
    }

    /* ── Actions ── */
    .new-project-actions {
      display: flex;
      gap: 8px;
      margin-top: 8px;
    }
    .new-project-actions .btn { 
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      font-family: 'Onest', sans-serif;
      font-size: 14px;
      font-weight: 600;
      border-radius: var(--radius-pill);
      border: none;
      cursor: pointer;
      transition: background .15s;
      padding: 10px 20px;
      flex: 1; 
    }
  .new-project-actions .btn-primary { flex: 2; }
  
  .new-project-control.error { border-color: #e53935; box-shadow: 0 0 0 3px rgba(229,57,53,.08); }                                    
                                                                                                                                                     
  .new-project-error {                                                                                                                
    font-size: 12px;                                                                                                                  
    color: #e53935;                                                                                                                   
    margin-top: 5px;                                                                                                                  
    font-weight: 500;                                                                                                                 
  }                                                                                                                                   
  .new-project-upload.error { border-color: #e53935; } 

  