/* Shared project card styling. Keep Demand Lab and profile cards in sync. */
.project-card{min-width:0;min-height:272px;padding:19px;display:flex;flex-direction:column;border:1px solid rgba(130,144,190,.17);border-radius:19px;background:linear-gradient(150deg,rgba(19,25,48,.94),rgba(13,17,35,.9));transition:transform .2s,border-color .2s,box-shadow .2s}
.profile-idea-card.project-card{min-height:272px;padding:19px;border-radius:19px}
.project-card:hover{transform:translateY(-3px);border-color:rgba(139,92,246,.46);box-shadow:0 15px 35px rgba(0,0,0,.22)}
.profile-idea-card.project-card:hover{transform:translateY(-3px);border-color:rgba(139,92,246,.46);box-shadow:0 15px 35px rgba(0,0,0,.22)}
.project-card .card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.project-card .card-top-actions{display:flex;align-items:center;gap:5px}
.project-card .card-top-actions>.project-platform-badge,.project-card .card-top-actions>.stage-pill,.project-card .card-top-actions>.deal-badge{box-sizing:border-box;display:inline-flex;height:24px;min-height:24px;align-items:center;justify-content:center;margin:0;padding-block:0;font-size:10px;line-height:1;white-space:nowrap}
.project-card .category-label{color:#8993b3;font-size:10px;font-weight:700}
.project-card .category-emoji{margin-right:5px;font-size:12px}
.project-card .project-platform-badge{box-sizing:border-box;min-width:0;min-height:24px;display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid rgba(20,211,202,.2);border-radius:999px;padding:4px 8px;color:#9be9e2;background:rgba(20,211,202,.06);font-size:10px;font-weight:700;white-space:nowrap}
.project-card .project-platform-badge .platform-badge-icons{flex:0 0 auto}
.project-card .deal-badge{box-sizing:border-box;min-height:24px;display:inline-flex;align-items:center;justify-content:center;gap:5px;margin:0;border:1px solid rgba(255,190,92,.34);border-radius:999px;padding:2px 8px;color:#ffd48a;background:linear-gradient(135deg,rgba(255,178,74,.14),rgba(255,116,83,.09));font-size:9px;font-weight:800;letter-spacing:.025em;line-height:1;white-space:nowrap;box-shadow:inset 0 1px rgba(255,255,255,.05)}
.project-card .deal-badge svg{width:12px;height:12px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.project-card .stage-pill{padding:5px 8px;border:1px solid rgba(20,211,202,.19);border-radius:999px;color:#83ddd6;background:rgba(20,211,202,.075);font-size:9px;font-weight:700;white-space:nowrap}
.project-card .stage-pill.idea{border-color:rgba(139,92,246,.23);color:#c0aaff;background:rgba(139,92,246,.09)}
.project-card .stage-pill.prototype{border-color:rgba(125,170,255,.3);color:#a9c8ff;background:rgba(99,145,255,.1)}
.project-card .card-title{margin:14px 0 5px;color:#f1f2fb;font-size:17px;line-height:1.22;letter-spacing:-.025em}
.project-card .card-problem{min-height:0;margin:0 0 8px;color:#aab2c9;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.project-card .card-problem.is-truncated{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.project-card .card-problem-more{display:inline-flex;min-height:28px;align-items:center;margin:0 0 6px;border:0;padding:0;color:#b8a6ff;background:transparent;font-size:11px;font-weight:750;cursor:pointer}
.project-card .card-problem-more:hover{color:#9ff2e7;text-decoration:underline;text-underline-offset:3px}
.project-card .card-media{min-width:0;margin:9px 0 13px}
.project-card .card-media .project-image-preview-button{width:100%;height:clamp(150px,15vw,210px);display:block;margin:0;overflow:hidden;border:1px solid rgba(126,142,182,.22);border-radius:13px;padding:0;background:#0b1023;cursor:zoom-in}
.project-card .card-media .project-image-preview{width:100%;height:100%;display:block;object-fit:cover;transition:transform .2s ease}
.project-card .card-media .project-image-preview-button:hover .project-image-preview{transform:scale(1.025)}
.project-card .card-media .project-image-preview-button{position:relative;aspect-ratio:16/7;max-height:210px}.project-card .card-media .project-image-count{position:absolute;right:9px;bottom:9px;display:inline-flex;min-height:25px;align-items:center;border:1px solid rgba(255,255,255,.16);border-radius:999px;padding:4px 9px;color:#f6f7ff;background:rgba(7,10,24,.82);font-size:10px;font-weight:750;line-height:1;backdrop-filter:blur(8px)}
.project-card .card-owner{display:flex;align-items:center;gap:8px;margin-top:auto;padding:12px 0;border-top:1px solid rgba(130,144,190,.11)}
.project-card .owner-avatar{width:27px;height:27px;flex:none;display:grid;place-items:center;overflow:hidden;border-radius:50%;color:white;background:linear-gradient(135deg,#7757ee,#1f9caa);font-size:9px;font-weight:800}
.project-card .owner-avatar img{width:100%;height:100%;object-fit:cover}
.project-card .owner-copy{min-width:0;flex:1;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:0}
.project-card .owner-links{min-width:0;display:grid;grid-column:1;grid-row:1;gap:0}
.project-card .owner-name{overflow:hidden;color:#e8eaf4;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;font-size:10px;font-weight:750}
.project-card .owner-handle{overflow:hidden;color:#8390ae;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;font-size:8px;line-height:1.3}
.project-card .owner-copy>small{grid-column:1;grid-row:2;margin-top:2px;overflow:hidden;color:#77829f;text-overflow:ellipsis;white-space:nowrap;font-size:9px}
.project-card .project-image-preview-button{width:46px;height:36px;flex:0 0 46px;margin-left:3px;overflow:hidden;border:1px solid rgba(157,139,255,.32);border-radius:7px;padding:0;background:rgba(139,92,246,.12)}
.project-card .project-image-preview{width:100%;height:100%;display:block;object-fit:cover}
.project-card .card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:2px}
.project-card .signal-stats{display:flex;align-items:center;gap:12px;min-width:0;color:#99a3c0;font-size:10px}
.project-card .signal-card-count{display:inline-flex;align-items:center;gap:4px;color:#99a3c0;background:transparent;font-size:10px}
.project-card .signal-card-count b{color:#e7eafa;font-size:10px;font-weight:750}
.project-card .signal-card-count>span{color:#99a3c0;font-size:10px}
.project-card .compact-signal{display:inline-flex;align-items:center;gap:5px;color:#b6a6ff}
.project-card .compact-signal svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.project-card .card-open{min-height:38px;padding:7px 10px;border:1px solid rgba(139,92,246,.22);border-radius:9px;color:#c9baff;background:rgba(139,92,246,.08);font-size:9px;font-weight:750;text-decoration:none;white-space:nowrap;cursor:pointer}
.project-card .card-open:hover{background:rgba(139,92,246,.18)}

/* Keep the primary project actions together across compact and tablet cards. */
.project-card .card-actions{display:flex;flex:0 0 auto;flex-direction:row;align-items:center;justify-content:flex-end;gap:6px}
@media (min-width:641px) and (max-width:1024px){
  .project-card .card-actions .card-checkout{width:34px;min-width:34px;height:32px;min-height:32px;flex:0 0 34px;padding:0;font-size:0}
  .project-card .card-actions .card-checkout span{font-size:15px;line-height:1}
}
@media (max-width:640px){
  .project-card .card-bottom{align-items:center;flex-wrap:wrap;row-gap:8px}
  .project-card .card-actions{flex-direction:row;flex-wrap:nowrap;gap:6px}
  .project-card .card-actions .card-open,.project-card .card-actions .card-checkout{min-height:32px;padding:6px 9px;font-size:10px}
  .project-card .card-actions .card-open,.project-card .card-actions .card-checkout{flex:0 0 auto}
}
.project-card .dots-button{width:27px;height:27px;display:grid;place-items:center;padding:0;border:1px solid transparent;border-radius:9px;color:#a4aec8;background:transparent;font:800 16px/1 "Instrument Sans",sans-serif;letter-spacing:1px;cursor:pointer}
.project-card .dots-button:hover,.project-card .dots-button[aria-expanded="true"]{border-color:rgba(139,92,246,.4);color:#d7c8ff;background:rgba(139,92,246,.12)}
.project-card .menu-root{position:relative;flex:none}
.project-card .action-menu{position:absolute;top:calc(100% + 5px);right:0;z-index:8;width:186px;padding:5px;border:1px solid rgba(151,165,210,.23);border-radius:12px;background:#12182d;box-shadow:0 18px 42px rgba(0,0,0,.46)}
.project-card .action-menu[hidden]{display:none}
.project-card .action-menu button,.project-card .action-menu a{width:100%;min-height:34px;padding:8px 9px;display:flex;align-items:center;gap:8px;border:0;border-radius:8px;color:#c5cce0;background:transparent;text-align:left;text-decoration:none;font-size:10px;font-weight:600;cursor:pointer}
.project-card .action-menu button:hover,.project-card .action-menu a:hover{color:white;background:rgba(139,92,246,.15)}
.project-card.notification-project-target{border-color:rgba(20,211,202,.72);box-shadow:0 0 0 3px rgba(20,211,202,.13),0 18px 40px rgba(0,0,0,.28)}
@media(max-width:640px){.project-card{min-height:0;padding:16px}.project-card .card-problem{min-height:0}.project-card .card-owner{padding:10px 0}.project-card .card-open{min-height:36px;padding:6px 9px}}
@media(max-width:620px){.profile-idea-card.project-card{min-height:0;padding:16px}}

/* Keep image media below the problem and reserve the owner row for the maker. */
.demand-lab-page #project-grid .project-card .card-problem-wrap{min-width:0;margin:0 0 3px}
.demand-lab-page #project-grid .project-card .card-problem{min-height:0;margin:0;color:#aab2c9;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.demand-lab-page #project-grid .project-card .card-problem.is-truncated{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.demand-lab-page #project-grid .card-problem-more{display:inline-flex;min-height:30px;align-items:center;margin:2px 0 7px;border:0;padding:0;color:#b8a6ff;background:transparent;font-size:11px;font-weight:750;cursor:pointer}
.demand-lab-page #project-grid .card-problem-more:hover{color:#9ff2e7;text-decoration:underline;text-underline-offset:3px}
.demand-lab-page #project-grid .project-card .card-media{min-width:0;margin:9px 0 13px}
.demand-lab-page #project-grid .project-card .card-media .project-image-preview-button{display:block;width:100%;height:clamp(150px,15vw,210px);margin:0;overflow:hidden;border:1px solid rgba(126,142,182,.22);border-radius:13px;padding:0;background:#0b1023;cursor:zoom-in}
.demand-lab-page #project-grid .project-card .card-media .project-image-preview{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s ease}
.demand-lab-page #project-grid .project-card .card-media .project-image-preview-button:hover .project-image-preview{transform:scale(1.025)}

.demand-lab-page #project-grid .project-card .category-label{display:inline-flex;align-items:center;gap:2px}
.demand-lab-page #project-grid .project-card .category-emoji{margin:0;font-size:13px;line-height:1}
.demand-lab-page #project-grid .project-card .universal-platform-badge{width:28px;min-width:28px;height:24px;justify-content:center;padding:0}
.demand-lab-page #project-grid .project-card .platform-universal-icon{display:block;width:15px;height:15px;color:#a9eee6}
.demand-lab-page #project-grid .signal-stats{gap:8px}
.demand-lab-page #project-grid .signal-card-toggle{width:116px;min-width:116px;min-height:40px;flex:0 0 116px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid rgba(149,129,255,.23);border-radius:999px;padding:0 9px;color:#c9c0ff;background:linear-gradient(135deg,rgba(139,92,246,.13),rgba(139,92,246,.045));font-size:11px;font-weight:700;line-height:1;text-decoration:none;transition:background-color .16s,border-color .16s,color .16s,transform .16s,box-shadow .16s}
.demand-lab-page #project-grid .signal-card-toggle .signal-card-icon{width:16px;height:16px;flex:0 0 16px;display:grid;place-items:center;color:#b6a6ff}
.demand-lab-page #project-grid .signal-card-toggle .signal-card-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.demand-lab-page #project-grid .signal-card-toggle .signal-card-label{overflow:hidden;color:inherit;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.demand-lab-page #project-grid .signal-card-toggle b{color:inherit;font-size:10px;font-weight:800}
.demand-lab-page #project-grid .signal-card-toggle:hover:not(:disabled){transform:translateY(-1px);border-color:rgba(20,211,202,.5);color:#dffffc;background:linear-gradient(135deg,rgba(20,211,202,.16),rgba(139,92,246,.08));box-shadow:0 5px 16px rgba(20,211,202,.12)}
.demand-lab-page #project-grid .signal-card-toggle:hover .signal-card-icon,.demand-lab-page #project-grid .signal-card-toggle.selected .signal-card-icon{color:var(--cyan)}
.demand-lab-page #project-grid .signal-card-toggle.selected{border-color:rgba(20,211,202,.32);color:#a7f0e8;background:linear-gradient(135deg,rgba(20,211,202,.12),rgba(139,92,246,.09))}
.demand-lab-page #project-grid .signal-card-toggle:active:not(:disabled){transform:scale(.97)}
.demand-lab-page #project-grid .card-actions{gap:9px}
@media(max-width:640px){
  .demand-lab-page #project-grid .project-card .card-problem.is-truncated{display:block;overflow:visible;-webkit-line-clamp:unset}
  .demand-lab-page #project-grid .card-problem-more{display:none!important}
  .demand-lab-page #project-grid .project-card .card-media{margin:9px 0 12px}
  .demand-lab-page #project-grid .project-card .card-media .project-image-preview-button{height:clamp(180px,56vw,280px)}
  .demand-lab-page #project-grid .card-bottom{align-items:flex-start;gap:10px}
  .demand-lab-page #project-grid .signal-stats{width:100%;flex:1 1 100%;flex-wrap:wrap;gap:7px}
  .demand-lab-page #project-grid .signal-card-toggle{width:110px;min-width:110px;flex-basis:110px}
  .demand-lab-page #project-grid .card-actions{width:100%;justify-content:flex-end;gap:9px}
  .demand-lab-page #project-grid .owner-copy>.follow-button{width:32px;min-width:32px;height:32px;min-height:32px;display:grid;place-items:center;padding:0}
  .demand-lab-page #project-grid .owner-copy>.follow-button>span{display:none}
  .demand-lab-page #project-grid .owner-copy>.follow-button .community-icon{width:17px;height:17px;flex:0 0 17px}
}
@media(max-width:420px){
  .demand-lab-page #project-grid .card-actions .card-checkout{width:34px;min-width:34px;height:32px;min-height:32px;flex:0 0 34px;padding:0;font-size:0}
  .demand-lab-page #project-grid .card-actions .card-checkout span{font-size:15px;line-height:1}
}
@media(prefers-reduced-motion:reduce){.demand-lab-page #project-grid .project-image-preview{transition:none}}

/* Keep card signals compact while their accessible names describe each action. */
.demand-lab-page #project-grid .signal-card-toggle{width:auto;min-width:56px;flex:0 0 auto;padding-inline:10px}
.demand-lab-page #project-grid .signal-card-toggle .signal-card-label{display:none}
@media(max-width:640px){.demand-lab-page #project-grid .signal-card-toggle{width:auto;min-width:48px;flex:0 0 auto}}
.demand-lab-page #project-grid .compact-signal{display:inline-flex;align-items:center;gap:5px;color:#b6a6ff}
.demand-lab-page #project-grid .compact-signal svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Shared card actions: creator profile cards use the same controls as Demand Lab. */
.project-card .owner-copy:has(>.follow-button){display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:auto auto;align-items:center;column-gap:7px}
.project-card .owner-copy:has(>.follow-button)>.owner-links{grid-column:1;grid-row:1}
.project-card .owner-copy:has(>.follow-button)>small{grid-column:1;grid-row:2;margin-top:2px}
.project-card .owner-copy:has(>.follow-button)>.follow-button{grid-column:2;grid-row:1/3}
.project-card .owner-copy:has(>.follow-button)>.owner-message{grid-column:3;grid-row:1/3}
.project-card .follow-button{min-height:27px;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:4px 8px;border:1px solid rgba(139,92,246,.34);border-radius:999px;color:#c9b8ff;background:rgba(139,92,246,.09);font-size:8px;font-weight:750;white-space:nowrap;cursor:pointer}
.project-card .follow-button:hover,.project-card .follow-button.following{border-color:rgba(20,211,202,.35);color:#96e4dd;background:rgba(20,211,202,.08)}
.project-card .follow-button .community-icon{width:13px;height:13px;flex:0 0 13px;fill:currentColor}
.project-card .owner-message{width:28px;height:28px;display:grid;flex:none;place-items:center;border:0;border-radius:9px;color:#dce3f5;background:transparent;text-decoration:none;cursor:pointer}
.project-card .owner-message:hover,.project-card .owner-message:focus-visible{color:#9cf1e8;background:rgba(20,211,202,.09)}
.project-card .owner-message:focus-visible{outline:2px solid rgba(20,211,202,.62);outline-offset:2px}
.project-card .owner-message .community-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.project-card .signal-card-toggle{min-width:48px;min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid rgba(149,129,255,.23);border-radius:999px;padding:0 10px;color:#c9c0ff;background:linear-gradient(135deg,rgba(139,92,246,.13),rgba(139,92,246,.045));font:inherit;font-size:11px;font-weight:700;line-height:1;cursor:pointer;transition:background-color .16s,border-color .16s,color .16s,transform .16s,box-shadow .16s}
.project-card .signal-card-toggle .signal-card-icon{width:16px;height:16px;flex:0 0 16px;display:grid;place-items:center;color:#b6a6ff}
.project-card .signal-card-toggle .signal-card-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.project-card .signal-card-toggle b{color:inherit;font-size:10px;font-weight:800}
.project-card .signal-card-toggle:hover:not(:disabled){transform:translateY(-1px);border-color:rgba(20,211,202,.5);color:#dffffc;background:linear-gradient(135deg,rgba(20,211,202,.16),rgba(139,92,246,.08));box-shadow:0 5px 16px rgba(20,211,202,.12)}
.project-card .signal-card-toggle.selected{border-color:rgba(20,211,202,.32);color:#a7f0e8;background:linear-gradient(135deg,rgba(20,211,202,.12),rgba(139,92,246,.09))}
.project-card .signal-card-toggle.selected .signal-card-icon{color:#14d3ca}
.project-card .signal-card-toggle:disabled{cursor:not-allowed;opacity:.55}
.project-card .card-checkout{min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid rgba(20,211,202,.28);border-radius:10px;padding:8px 12px;color:#9af0e7;background:rgba(20,211,202,.075);font-size:11px;font-weight:750;line-height:1.1;text-decoration:none;white-space:nowrap;cursor:pointer}
.project-card .card-checkout:hover{border-color:rgba(20,211,202,.55);color:#effffc;background:rgba(20,211,202,.13)}
@media(max-width:640px){.project-card .owner-copy:has(>.follow-button){column-gap:5px}.project-card .owner-message{width:25px;height:25px}.project-card .follow-button{min-height:28px;padding-inline:7px}}
@media(max-width:640px){.project-card .card-problem.is-truncated{display:block;overflow:visible;-webkit-line-clamp:unset}.project-card .card-problem-more{display:none!important}.project-card .card-media .project-image-preview-button{height:clamp(180px,56vw,280px)}}
