/* Guided Company Profile review */
.profile-review{max-width:1180px;margin:24px auto 56px}
.profile-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding:36px 40px;border:1px solid var(--line);border-radius:24px;background:var(--surface)}
.profile-hero h1{font-size:clamp(30px,3.6vw,48px);letter-spacing:-.045em;line-height:1.12;margin:8px 0 14px}
.profile-hero-main{max-width:720px;min-width:0}
.profile-hero-meta{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:14px;overflow-wrap:anywhere}
.profile-status{font-size:12px;font-weight:700;border-radius:99px;padding:5px 11px;background:var(--surface2);color:var(--muted)}
.profile-status.is-approved{background:var(--green-bg);color:var(--green)}
.profile-hero-description{max-width:570px;color:var(--muted);font-size:15px;margin:20px 0 0}
.profile-hero form{flex-shrink:0}
.profile-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0 46px}
.profile-overview>div{border:1px solid var(--line);border-radius:18px;padding:19px 22px;background:var(--surface);display:flex;flex-direction:column}
.profile-overview-value{font-size:30px;line-height:1.2;font-weight:750;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.profile-overview-label{font-size:12px;color:var(--muted);margin-top:4px}
.profile-review-intro{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:20px}
.profile-review-intro h2{font-size:clamp(27px,3vw,38px);letter-spacing:-.045em;margin:7px 0 4px}
.profile-review-intro p{max-width:660px;margin:0;font-size:14px}
.profile-reviewed-note{flex-shrink:0;font-size:12px;color:var(--muted);padding-bottom:7px}
.profile-steps{display:grid;gap:12px}
.profile-step{background:var(--surface);border:1px solid var(--line);border-radius:19px;overflow:hidden;scroll-margin-top:110px}
.profile-step[open]{border-color:var(--line-strong);box-shadow:0 12px 38px rgba(30,40,50,.05)}
.profile-step>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:19px;padding:24px 28px}
.profile-step>summary::-webkit-details-marker,.profile-fact>summary::-webkit-details-marker,.profile-correction>summary::-webkit-details-marker{display:none}
.profile-step-number{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;flex-shrink:0;font-size:13px;font-weight:750;background:var(--surface2);color:var(--muted)}
.profile-step[open] .profile-step-number{background:var(--ink);color:var(--bg)}
.profile-step-title{display:grid;gap:3px;min-width:0;flex:1}
.profile-step-title strong{font-size:18px;line-height:1.3;letter-spacing:-.025em}
.profile-step-title small{font-size:12px;color:var(--muted)}
.profile-step-action{font-size:12px;font-weight:650;color:var(--muted);white-space:nowrap}
.profile-step-action span{display:inline-block;font-size:19px;margin-left:10px;transition:transform .15s}
.profile-step[open] .profile-step-action span{transform:rotate(180deg)}
.profile-step-body{border-top:1px solid var(--line);padding:28px 34px 30px}
.profile-identity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding:4px 0 20px}
.profile-identity-grid>div{min-width:0;display:grid;gap:6px;overflow-wrap:anywhere}
.profile-identity-grid strong{font-size:15px;font-weight:650}
.profile-field-label{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.07em;font-weight:750}
.profile-subgroup{padding:20px 0;border-top:1px solid var(--line)}
.profile-subgroup:first-child{border-top:0;padding-top:0}
.profile-subgroup h3{font-size:15px;font-weight:750;letter-spacing:-.01em;margin:0 0 14px}
.profile-section-count{font-size:12px;font-weight:600;color:var(--muted);margin-left:4px}
.profile-facts{border:1px solid var(--line);border-radius:13px;overflow:hidden}
.profile-fact+.profile-fact{border-top:1px solid var(--line)}
.profile-fact>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 17px;cursor:pointer}
.profile-fact>summary:hover{background:var(--surface2)}
.profile-fact-label{font-size:14px;font-weight:590;min-width:0;overflow-wrap:anywhere}
.profile-fact-label small{display:block;margin-top:3px;color:var(--muted);font-weight:400}
.profile-fact.is-removed .profile-fact-label{text-decoration:line-through;color:var(--muted)}
.profile-fact-right{display:flex;align-items:center;gap:11px;flex-shrink:0}
.profile-fact-chevron{color:var(--muted);font-size:20px}
.profile-fact[open] .profile-fact-chevron{transform:rotate(180deg)}
.profile-fact-state{font-size:10px;padding:4px 9px;border-radius:30px;font-weight:700;background:var(--surface2);color:var(--muted)}
.profile-fact-state.confirmed{background:var(--green-bg);color:var(--green)}
.profile-fact-state.corrected{background:var(--blue-bg);color:var(--blue)}
.profile-fact-detail{padding:17px 19px 20px;border-top:1px solid var(--line);background:color-mix(in srgb,var(--surface) 78%,var(--surface2))}
.profile-fact-quote{margin:6px 0;font-size:13px;font-style:italic;color:var(--muted);border-left:3px solid var(--line);padding-left:10px}
.profile-fact-source{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.profile-fact-source span{font-weight:750;margin-right:5px}
.profile-fact-controls{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;margin-top:15px}
.profile-correction{position:relative}
.profile-correction>summary{list-style:none}
.profile-correction-form{display:grid;gap:10px;min-width:min(400px,75vw);margin:12px 0}
.profile-correction-form label{font-size:12px;font-weight:650;display:grid;gap:6px}
.profile-correction-form input{width:100%;font:inherit;background:var(--surface);color:var(--ink);border:1px solid var(--line-strong);border-radius:8px;padding:10px}
.profile-step-footer{display:flex;justify-content:flex-end;border-top:1px solid var(--line);margin-top:12px;padding-top:20px}
.profile-note{font-size:12px;color:var(--muted);line-height:1.6}
.profile-unknowns{display:flex;flex-wrap:wrap;gap:8px}
.profile-unknown{font-size:12px;padding:7px 12px;background:var(--surface2);color:var(--muted);border-radius:9px}
.profile-preferences>.card{border:0;box-shadow:none;background:transparent;padding:0;margin:0!important}
.profile-preferences .chipsel{display:flex;flex-wrap:wrap;gap:8px}
.profile-preferences .chipsel label{max-width:100%}
.profile-review :is(summary,button,a,input,textarea):focus-visible{outline:3px solid var(--blue);outline-offset:3px}
@media(max-width:700px){
.profile-review{margin:16px auto 36px}
.profile-hero{display:grid;padding:24px 21px;border-radius:18px;gap:20px}
.profile-hero form,.profile-hero form button{width:100%}
.profile-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:35px}
.profile-overview>div{padding:15px;border-radius:14px}
.profile-overview-value{font-size:26px}
.profile-review-intro{display:block}
.profile-reviewed-note{display:block;margin-top:12px}
.profile-step>summary{padding:18px 15px;gap:12px}
.profile-step-number{width:38px;height:38px;border-radius:11px}
.profile-step-title strong{font-size:15px}
.profile-step-title small{font-size:11px}
.profile-step-action{font-size:0}
.profile-step-action span{font-size:19px;margin-left:0}
.profile-step-body{padding:19px 15px 22px}
.profile-identity-grid{grid-template-columns:1fr;gap:16px}
.profile-fact>summary{padding:13px 12px}
.profile-fact-label{font-size:13px}
.profile-fact-detail{padding:15px 12px}
.profile-step-footer button{width:100%}
}
@media(prefers-reduced-motion:reduce){.profile-step-action span{transition:none}}

/* Batched profile editor (Nov 23, 2026): the unsaved-changes status and
   rows synthesized in the page for pending adds/swaps. */
.unsaved-indicator{display:inline-block;font-size:11px;font-weight:700;padding:4px 10px;border-radius:30px;background:var(--amber-bg);color:var(--amber);margin:10px 0 2px}
.unsaved-indicator.is-alert{outline:2px solid var(--amber);outline-offset:2px}
.profile-fact.is-added{border-style:dashed}
.profile-fact-state.added{background:var(--blue-bg);color:var(--blue)}
