/* AAgFFiN company profile form — company info, contact/socials, and
   role-specific focus-area chips. Builds on aagffin-dashboard.css. */

.ag-prof-group-h2{font-family:var(--fd);font-size:1.1rem;font-weight:700;color:var(--dark);
  margin:32px 0 0;padding-top:24px;border-top:1px solid var(--border)}
.ag-prof-group-h2:first-of-type{margin-top:20px;padding-top:0;border-top:none}

.ag-prof-verified-note,.ag-prof-pending-note{display:flex;align-items:center;gap:10px;margin-top:18px;
  padding:12px 16px;border-radius:12px;font-size:.85rem}
.ag-prof-verified-note{background:var(--green-xl);color:var(--green-d)}
.ag-prof-pending-note{background:var(--mango-l);color:var(--mango-d)}
.ag-prof-verified-note svg,.ag-prof-pending-note svg{flex-shrink:0}

.ag-prof-form{margin-top:20px;display:flex;flex-direction:column;gap:16px}
#agCompanyViewWrap{margin-top:20px;display:flex;flex-direction:column;gap:16px}
/* Any class on this page setting its own `display` (flex/inline-flex/etc.) would otherwise beat the
   browser's native [hidden] rule, since author styles win over the UA stylesheet regardless of
   specificity. This keeps hidden="" authoritative everywhere on the page. */
[hidden]{display:none!important}
.ag-prof-section .ag-dash-card-body{display:flex;flex-direction:column;gap:16px}

.ag-prof-logo-row{display:flex;align-items:center;gap:16px}
.ag-prof-logo-preview{width:64px;height:64px;border-radius:16px;background:var(--green-l);color:var(--green-d);
  display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1rem;overflow:hidden;flex-shrink:0}
.ag-prof-logo-preview img{width:100%;height:100%;object-fit:cover}
.ag-prof-upload-btn{display:inline-block;padding:.55rem 1.1rem;border-radius:999px;background:var(--green-xl);
  color:var(--green-d);font-size:.82rem;font-weight:700;cursor:pointer}
.ag-prof-upload-btn:hover{background:var(--green-l)}
.ag-prof-hint{margin:.4rem 0 0;font-size:.8125rem;color:var(--muted)}

.ag-prof-richbar{display:flex;gap:6px}
.ag-prof-richbar button{width:30px;height:30px;border-radius:8px;border:1px solid var(--border);background:#fff;
  color:var(--dark);font-size:.85rem;font-family:var(--fb);cursor:pointer;display:flex;align-items:center;justify-content:center}
.ag-prof-richbar button:hover{background:var(--husk)}

.ag-prof-rich-text p{margin:0 0 10px;font-size:.9rem;color:var(--dark);line-height:1.6}
.ag-prof-rich-text p:last-child{margin-bottom:0}
.ag-prof-rich-text ul{margin:0 0 10px;padding-left:20px;font-size:.9rem;color:var(--dark);line-height:1.6}
.ag-prof-rich-text ul:last-child{margin-bottom:0}

.ag-prof-field{display:flex;flex-direction:column;gap:6px}
.ag-prof-field span{font-size:.8125rem;font-weight:700;color:var(--dark)}
.ag-prof-field input,.ag-prof-field textarea,.ag-prof-field select{padding:.7rem .9rem;border:1px solid var(--border);border-radius:12px;
  background:#fff;font-size:.88rem;color:var(--dark);font-family:var(--fb);resize:vertical}
.ag-prof-field input:focus,.ag-prof-field textarea:focus,.ag-prof-field select:focus{outline:2px solid var(--green-l);border-color:transparent}

.ag-prof-grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:640px){.ag-prof-grid2{grid-template-columns:1fr}}

.ag-prof-focus-grid{display:flex;flex-wrap:wrap;gap:10px}
.ag-prof-focus-chip{display:inline-flex;align-items:center;gap:7px;padding:.55rem 1rem;border-radius:999px;
  background:var(--husk);color:var(--mid);font-size:.82rem;font-weight:600;cursor:pointer;transition:background .15s,color .15s}
.ag-prof-focus-chip:has(input:checked){background:var(--green);color:#fff}
.ag-prof-focus-chip input{accent-color:var(--green-d)}

.ag-prof-actions{display:flex;align-items:center;gap:14px}
.ag-prof-actions button{padding:.8rem 1.8rem;border-radius:999px;border:none;background:var(--green);color:#fff;
  font-weight:700;font-size:.9rem;cursor:pointer;transition:background .2s}
.ag-prof-actions button:hover{background:var(--green-d)}
.ag-prof-actions button:disabled{opacity:.6;cursor:not-allowed}
.ag-prof-actions .ag-prof-edit-btn{background:#fff;border:1px solid var(--border);color:var(--dark);padding:.65rem 1.2rem}
.ag-prof-actions .ag-prof-edit-btn:hover{background:var(--husk)}
.ag-prof-saved{display:inline-flex;align-items:center;gap:6px;font-size:.85rem;font-weight:700;color:var(--green-d)}

/* ── Multi-step wizard ── */
.ag-prof-steps-head{display:flex;flex-direction:column;gap:10px}
.ag-prof-step-dots{display:flex;align-items:center;gap:8px}
.ag-prof-step-dot{width:28px;height:5px;border-radius:999px;background:var(--husk);transition:background .2s}
.ag-prof-step-dot.is-active{background:var(--green-d)}
.ag-prof-step-label{font-size:.82rem;font-weight:700;color:var(--muted)}
.ag-prof-step{display:flex;flex-direction:column;gap:16px}

.ag-prof-upload-btn.is-disabled{opacity:.5;cursor:not-allowed;pointer-events:none}

.ag-prof-analytics-row{display:flex;flex-wrap:wrap;gap:28px;margin-top:16px;padding:18px 20px;
  border:1px solid var(--border);border-radius:14px;background:var(--husk)}
.ag-prof-analytics-stat{display:flex;flex-direction:column;gap:4px}
.ag-prof-analytics-value{font-family:var(--fd);font-size:1.4rem;font-weight:700;color:var(--dark)}
.ag-prof-analytics-label{display:inline-flex;align-items:center;gap:5px;font-size:.8125rem;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.03em}
.ag-prof-analytics-note{margin:10px 0 0;font-size:.8125rem;color:var(--muted)}
.ag-prof-analytics-note a{color:var(--green-d);font-weight:700}

.ag-prof-company-list{display:flex;flex-direction:column;gap:10px;margin-top:16px}
.ag-prof-company-row{display:flex;align-items:center;gap:12px;padding:14px 16px}
.ag-prof-funding-row{text-decoration:none;transition:background .15s}
.ag-prof-funding-row:hover{background:var(--millet)}
.ag-prof-company-row.is-editing{border:1.5px solid var(--green);background:var(--green-xl)}
.ag-prof-company-row .ag-dir-avatar{width:38px;height:38px;font-size:.8125rem;border-radius:10px;flex-shrink:0}
.ag-prof-company-row-body{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.ag-prof-company-row-body b{font-size:.9rem;color:var(--dark)}
.ag-prof-company-row-body span{font-size:.8125rem;color:var(--muted)}
.ag-prof-company-row-actions{display:flex;gap:8px;flex-shrink:0}
.ag-prof-company-btn{padding:.5rem 1rem;border-radius:999px;font-size:.8125rem;font-weight:700;text-decoration:none;
  background:var(--husk);color:var(--mid)}
.ag-prof-company-btn:hover{background:#DDE3E0}
.ag-prof-company-btn-primary{background:var(--green);color:#fff}
.ag-prof-company-btn-primary:hover{background:var(--green-d)}
.ag-prof-add-company{display:inline-block;margin-top:12px;font-size:.85rem;font-weight:700;color:var(--green-d);text-decoration:none}
.ag-prof-add-company:hover{text-decoration:underline}

.ag-prof-danger-row{display:flex;align-items:center;gap:14px;padding-top:2px}
.ag-prof-danger-row button{padding:.6rem 1.2rem;border-radius:999px;border:none;font-size:.82rem;font-weight:700;cursor:pointer;
  background:var(--husk);color:var(--mid)}
.ag-prof-danger-row button:hover{background:#DDE3E0}
.ag-prof-danger-row button.ag-prof-danger{background:transparent;color:var(--red-d);text-decoration:underline;padding:.6rem 0}
.ag-prof-static{font-size:.82rem;font-weight:700;color:var(--mango-d)}

/* ── Read-only company view — default state; "Edit" swaps in the form above ── */
.ag-prof-view-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:4px}
.ag-prof-view-head-left{display:flex;align-items:center;gap:14px;min-width:0}
.ag-prof-view-logo{width:56px;height:56px;border-radius:14px;background:var(--green-l);color:var(--green-d);
  display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.95rem;overflow:hidden;flex-shrink:0}
.ag-prof-view-logo img{width:100%;height:100%;object-fit:cover}
.ag-prof-view-name{font-family:var(--fd);font-size:1.15rem;font-weight:700;color:var(--dark);margin:0}
.ag-prof-view-sub{margin:2px 0 0;font-size:.82rem;color:var(--muted)}
.ag-prof-edit-btn{flex-shrink:0;display:inline-flex;align-items:center;gap:6px;padding:.65rem 1.2rem;border-radius:999px;
  border:1px solid var(--border);background:#fff;color:var(--dark);font-size:.85rem;font-weight:700;cursor:pointer}
.ag-prof-edit-btn:hover{background:var(--husk)}

.ag-prof-view-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px}
@media(max-width:640px){.ag-prof-view-grid{grid-template-columns:1fr}}
.ag-prof-view-row{display:flex;flex-direction:column;gap:4px}
.ag-prof-view-row.is-wide{grid-column:1/-1}
.ag-prof-view-row span{font-size:.8125rem;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.03em}
.ag-prof-view-row p{margin:0;font-size:.9rem;color:var(--dark);line-height:1.6;white-space:pre-wrap}
.ag-prof-view-row p.is-empty{color:var(--muted);font-style:italic}

.ag-prof-view-chips{display:flex;flex-wrap:wrap;gap:8px}
.ag-prof-view-chip{display:inline-flex;align-items:center;padding:.45rem .9rem;border-radius:999px;
  background:var(--green-l);color:var(--green-d);font-size:.8125rem;font-weight:600}

.ag-prof-view-socials{display:flex;flex-wrap:wrap;gap:8px}
.ag-prof-view-social{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;
  border-radius:9px;border:1px solid var(--border);color:var(--mid)}
.ag-prof-view-social:hover{background:var(--husk)}
