.company-profile-panel { min-height: 480px; }
.company-profile-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding: 15px; border-radius: 8px; background: rgba(0,0,0,.24); border: 1px solid rgba(255,255,255,.09); margin-bottom: 12px; }
.company-profile-heading span, .company-profile-heading small { display: block; color: var(--fb-dark-muted); }
.company-profile-heading strong { display: block; font-size: 28px; line-height: 1.1; margin: 4px 0; }
.company-status-badge { display: inline-grid; place-items: center; min-width: 76px; min-height: 42px; padding: 0 12px; border-radius: 8px; border: 1px solid; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.company-status-active { color: #a8ff9e; background: rgba(123,213,111,.14); border-color: rgba(123,213,111,.38); }
.company-status-watch { color: #ffd080; background: rgba(232,179,79,.14); border-color: rgba(232,179,79,.38); }
.entity-status-chip { display: inline-grid !important; grid-template-columns: 10px auto; grid-template-rows: auto auto; column-gap: 7px; row-gap: 1px; align-items: center; width: fit-content; max-width: 100%; margin-top: 7px; padding: 5px 9px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.055); color: #dce7df; font-size: 11px; line-height: 1.1; text-transform: none; letter-spacing: 0; }
.entity-status-chip > i { grid-row: 1 / span 2; display: block; width: 9px; height: 9px; border-radius: 999px; background: currentColor; box-shadow: 0 0 0 3px rgba(255,255,255,.1); }
.entity-status-chip > span { grid-column: 2; display: block !important; margin: 0 !important; color: inherit !important; font-size: 11px !important; font-weight: 900; line-height: 1.1; }
.entity-status-chip > small { grid-column: 2; display: block !important; margin: 1px 0 0 !important; color: rgba(233,243,236,.72) !important; font-size: 10px !important; line-height: 1.1; }
.entity-status-chip.status-active { color: #a8ff9e; background: rgba(123,213,111,.13); border-color: rgba(123,213,111,.34); }
.entity-status-chip.status-closed { color: #ff9c94; background: rgba(239,107,107,.13); border-color: rgba(239,107,107,.36); }
.entity-status-chip.status-person-current { color: #9fc0ff; background: rgba(122,167,255,.13); border-color: rgba(122,167,255,.34); }
.entity-status-chip.status-person-ended { color: #ffd080; background: rgba(232,179,79,.13); border-color: rgba(232,179,79,.38); }
.companies-house-result-list .entity-status-chip { margin-top: 8px; }
.company-profile-actions .entity-status-chip { margin-top: 0; }
.linked-company-tree-company .entity-status-chip, .relationship-tree-child .entity-status-chip, .relationship-director-company .entity-status-chip { margin: 5px 0 0; }
.status-fact-value { font-size: inherit !important; }
.status-fact-value .entity-status-chip { margin-top: 0; }
.company-profile-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 12px; }
.company-profile-facts strong { font-size: 18px; }
.company-profile-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.company-relationship-chip { display: inline-flex !important; align-items: center; width: fit-content; margin-top: 7px; padding: 4px 8px; border-radius: 999px; color: #a5e88f; background: rgba(123,213,111,.12); border: 1px solid rgba(123,213,111,.28); font-size: 10px; font-style: normal; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.company-profile-sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.company-profile-sections article { padding: 13px; border-radius: 8px; background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.08); border-left: 4px solid #7aa7ff; }
.company-profile-sections article:nth-child(2) { border-left-color: #e8b34f; }
.company-profile-sections article:nth-child(3) { border-left-color: #7bd56f; }
.company-profile-sections span { display: block; color: var(--fb-dark-muted); font-size: 12px; }
.company-profile-sections strong { display: block; margin: 5px 0; line-height: 1.25; }
.company-profile-sections p { margin: 0; font-size: 12px; line-height: 1.4; }
.company-house-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.company-house-tabs article, .company-filing-grid article { padding: 12px; border-radius: 8px; background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.08); }
.company-house-tabs span, .company-house-tabs p, .company-filing-grid span, .company-filing-grid p { display: block; color: var(--fb-dark-muted); font-size: 12px; line-height: 1.4; }
.company-house-tabs strong, .company-filing-grid strong { display: block; font-size: 24px; margin: 3px 0; }
.company-house-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.property-match-row td { border-left: 3px solid transparent; }
.property-match-0 td { background: rgba(123,213,111,.10); }
.property-match-0 td:first-child { border-left-color: #7bd56f; }
.property-match-1 td { background: rgba(112,229,255,.10); }
.property-match-1 td:first-child { border-left-color: #70e5ff; }
.property-match-2 td { background: rgba(240,210,130,.12); }
.property-match-2 td:first-child { border-left-color: #f0d282; }
.property-match-3 td { background: rgba(255,153,102,.11); }
.property-match-3 td:first-child { border-left-color: #ff9966; }
.property-match-4 td { background: rgba(188,161,255,.12); }
.property-match-4 td:first-child { border-left-color: #bca1ff; }
.property-match-5 td { background: rgba(255,132,174,.11); }
.property-match-5 td:first-child { border-left-color: #ff84ae; }
.property-match-closest td { background: rgba(240,210,130,.08); }
.property-match-closest td:first-child { border-left-color: #f0d282; }
.property-match-unmatched td { opacity: .72; }
.company-person-list { display: grid; gap: 10px; max-height: 520px; overflow: auto; padding-right: 4px; }
.company-person-list div { padding: 12px; border-radius: 8px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.08); border-left: 4px solid #7aa7ff; }
.company-person-list div:nth-child(even) { border-left-color: #e8b34f; }
.company-person-list strong, .company-person-list span, .company-person-list small, .company-person-list p { display: block; }
.company-person-list strong { font-size: 15px; }
.company-person-list span { color: #f0d282; font-size: 12px; margin-top: 4px; }
.company-person-list small { color: var(--fb-dark-secondary); font-size: 11px; margin-top: 4px; }
.company-person-list p { margin: 7px 0 0; color: #dce7df; font-size: 12px; line-height: 1.4; }
.identity-line { display: flex !important; align-items: center; gap: 9px; min-width: 0; }
.identity-icon, .flat-icon { position: relative; display: inline-block; flex: 0 0 24px; width: 24px; height: 24px; color: #cfe0d4; }
.identity-icon::before, .identity-icon::after, .flat-icon::before, .flat-icon::after { content: ""; position: absolute; box-sizing: border-box; }
.identity-icon-person, .flat-icon-person { color: #9fc0ff; }
.identity-icon-person::before, .flat-icon-person::before { left: 8px; top: 4px; width: 8px; height: 8px; border: 2px solid currentColor; border-radius: 999px; background: transparent; }
.identity-icon-person::after, .flat-icon-person::after { left: 4px; top: 15px; width: 16px; height: 7px; border: 2px solid currentColor; border-bottom: 0; border-radius: 999px 999px 0 0; background: transparent; }
.identity-icon-business, .flat-icon-business { color: #f0d282; }
.identity-icon-business::before, .flat-icon-business::before { left: 5px; top: 3px; width: 14px; height: 18px; border: 2px solid currentColor; border-radius: 3px; background: transparent; }
.identity-icon-business::after, .flat-icon-business::after { left: 9px; top: 8px; width: 2px; height: 2px; background: currentColor; box-shadow: 5px 0 currentColor, 0 5px currentColor, 5px 5px currentColor, 2.5px 10px currentColor; border-radius: 1px; }
.flat-icon-search { color: #a5e88f; }
.flat-icon-search::before { left: 4px; top: 4px; width: 12px; height: 12px; border: 2px solid currentColor; border-radius: 999px; background: transparent; }
.flat-icon-search::after { left: 15px; top: 15px; width: 7px; height: 2px; background: currentColor; border-radius: 999px; transform: rotate(45deg); transform-origin: left center; }
.company-transition-detail { margin: 14px 0; padding: 12px; display: grid; grid-template-columns: minmax(220px, .9fr) minmax(0, 1.2fr); gap: 12px; border-radius: 8px; background: rgba(232,179,79,.10); border: 1px solid rgba(232,179,79,.22); }
.company-transition-detail p { margin: 8px 0 0; color: #dce7df; font-size: 12px; line-height: 1.45; }
.company-transition-trigger-list { display: grid; gap: 8px; }
.company-transition-trigger-list article { padding: 9px 10px; border-radius: 8px; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.08); }
.company-transition-trigger-list strong, .company-transition-trigger-list span, .company-transition-trigger-list small { display: block; }
.company-transition-trigger-list strong { font-size: 12px; color: #f2f7f1; }
.company-transition-trigger-list span { color: #f0d282; font-size: 11px; margin-top: 3px; }
.company-transition-trigger-list small { color: var(--fb-dark-secondary); font-size: 11px; line-height: 1.35; margin-top: 3px; }
.company-filing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
