.zph-profile {
    --profile-ink: #21172e;
    --profile-muted: #574c66;
    --profile-purple: #5226ac;
    --profile-border: #dfd6ec;
    --profile-wash: #f6f2fc;
    --profile-pad: clamp(16px, 2.6vw, 28px);
    --spark-hi: #6d43bd;
    width: 100%;
    max-width: 1100px;
    min-width: 0;
    margin: 16px auto 32px;
    color: var(--profile-ink);
    text-align: left;
    font-size: 16px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.zph-profile *,
.zph-profile *::before,
.zph-profile *::after {
    box-sizing: border-box;
}

.zph-profile h2,
.zph-profile h3,
.zph-profile h4,
.zph-profile p,
.zph-profile dl,
.zph-profile dd {
    margin: 0;
    letter-spacing: normal;
}

.zph-profile a,
.zph-profile button {
    text-transform: none;
    letter-spacing: normal;
}

.zph-profile :is(a, button, summary, [tabindex="0"]):focus-visible,
.ft-success-results .zph-officer-result-open:focus-visible {
    outline: 3px solid #8258d1;
    outline-offset: 3px;
}

.zph-profile [tabindex="-1"],
.zph-profile-back {
    scroll-margin-top: 100px;
}

.zph-profile-back,
.zph-profile-entry-name button,
.ft-success-results .zph-officer-result-open {
    appearance: none;
    background: none;
    border: 0;
    border-radius: 5px;
    color: var(--profile-purple, #5226ac);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    max-width: 100%;
    padding: 0;
    text-align: left;
    white-space: normal;
}

.zph-profile-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 0 0 9px;
    padding: 0 4px;
    font-size: 14px;
}

.zph-profile-back svg {
    transform: rotate(180deg);
}

.zph-profile :is(.zph-profile-back, a, .zph-profile-entry-name button) svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.zph-profile-layout {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 310px);
    gap: 16px 20px;
}

.zph-profile-layout > *,
.zph-profile-sections > * {
    min-width: 0;
}

.zph-profile-overview,
.zph-profile-panel,
.zph-profile-delivery,
.zph-profile-error {
    background: #fff;
    border: 1px solid var(--profile-border);
    border-radius: 16px;
}

.zph-profile-overview,
.zph-profile-panel,
.zph-profile-error {
    padding: var(--profile-pad);
}

.zph-profile-overview {
    border-top: 3px solid #7448cc;
}

.zph-profile-identity,
.zph-profile-entry-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.zph-profile-identity > div,
.zph-profile-entry-name {
    min-width: 0;
    flex: 1 1 auto;
}

.zph-profile-mark,
.zph-profile-avatar {
    display: grid;
    flex: none;
    place-items: center;
    color: var(--profile-purple);
    background: #eee6fc;
    font-weight: 750;
}

.zph-profile-mark {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    font-size: 17px;
}

.zph-profile-mark svg {
    width: 25px;
    height: 25px;
}

.zph-profile .zph-profile-kicker {
    color: var(--profile-purple);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.zph-profile-identity h2 {
    margin: 4px 0 0;
    color: var(--profile-ink);
    font-size: clamp(24px, 3vw, 39px);
    line-height: 1.12;
    font-weight: 750;
    letter-spacing: -.035em;
}

.zph-profile-meta,
.zph-profile-panel-head,
.zph-profile-country {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 10px;
}

.zph-profile-meta {
    margin-top: 10px;
}

.zph-profile-country,
.zph-profile-status,
.zph-profile-count {
    padding: 3px 9px;
    border-radius: 6px;
    background: var(--profile-wash);
    color: #49346a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.zph-profile-status {
    flex: none;
    max-width: 100%;
    text-transform: capitalize;
}

.zph-profile-status.is-current {
    color: #165432;
    background: #e6f5eb;
}

.zph-profile-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 16px;
    margin: 14px 0 4px;
    border-bottom: 1px solid var(--profile-border);
}

.zph-profile-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 2px 0;
    color: var(--profile-purple);
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.zph-profile .zph-profile-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 22px;
    margin: 15px 0 0;
}

.zph-profile-fact.is-wide {
    grid-column: 1 / -1;
}

.zph-profile-fact dt {
    color: var(--profile-muted);
    font-size: 13px;
    font-weight: 650;
}

.zph-profile-fact dd {
    color: var(--profile-ink);
    font-size: 16px;
    line-height: 1.4;
    font-weight: 550;
}

.zph-profile-fact a,
.zph-profile-source a {
    color: var(--profile-purple);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.zph-profile .zph-profile-source,
.zph-profile .zph-profile-note {
    color: var(--profile-muted);
    font-size: 14px;
    line-height: 1.55;
    margin-top: 14px;
}

.zph-profile .zph-profile-source {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.zph-profile-source svg {
    flex: 0 0 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--profile-purple);
}

.zph-profile-rail {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.zph-profile-api {
    padding: 22px;
    border-radius: 16px;
    background: #2d1948;
    color: #fff;
}

.zph-profile-api .zph-profile-kicker {
    color: #e6d8ff;
}

.zph-profile-api h3 {
    margin: 8px 0 7px;
    color: #fff;
    font-size: 22px;
    font-weight: 750;
    line-height: 1.18;
    letter-spacing: -.025em;
}

.zph-profile-api h3 + p {
    color: #eee4f8;
    font-size: 15px;
    line-height: 1.45;
}

.zph-profile .zph-profile-primary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 48px;
    width: 100%;
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #eee3ff;
    color: #2b1648;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.3;
    text-decoration: none;
}

.zph-profile .zph-profile-primary:hover {
    background: #fff;
    color: #2b1648;
}

.zph-profile .zph-profile-api-docs {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #eee3ff;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.zph-profile-delivery {
    margin-top: 10px;
    padding: 1px 14px;
}

.zph-profile-delivery a,
.zph-profile-panel-foot a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    color: var(--profile-purple);
    font-size: 15px;
    line-height: 1.4;
    text-decoration: none;
}

.zph-profile-more summary {
    min-height: 44px;
    padding: 10px 0;
    border-top: 1px solid var(--profile-border);
    cursor: pointer;
    color: var(--profile-purple);
    font-weight: 700;
}

.zph-profile-delivery a {
    padding: 12px 0;
}

.zph-profile-delivery a + a {
    border-top: 1px solid var(--profile-border);
}

.zph-profile-delivery small {
    display: block;
    color: var(--profile-muted);
    font-size: 13px;
    margin-top: 2px;
}

.zph-profile-delivery a:hover strong,
.zph-profile-panel-foot a:hover,
.zph-profile-entry-name button:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.zph-profile-sections {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.zph-profile-sections:empty {
    display: none;
}

.zph-profile-panel-head h3 {
    color: var(--profile-ink);
    font-size: clamp(21px, 2.4vw, 27px);
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -.025em;
}

.zph-profile .zph-profile-entries,
.zph-profile .zph-profile-tree ul {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.zph-profile .zph-profile-entry {
    margin: 0;
    padding: 12px 0;
    border-top: 1px solid var(--profile-border);
}

.zph-profile-entry-head {
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.zph-profile-avatar {
    width: 37px;
    height: 37px;
    border-radius: 9px;
    font-size: 13px;
}

.zph-profile-avatar svg {
    width: 19px;
    height: 19px;
}

.zph-profile-entry-name h4 {
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--profile-ink);
}

.zph-profile-entry-name button,
.ft-success-results .zph-officer-result-open {
    min-height: 44px;
}

.zph-profile-entry-name button svg {
    vertical-align: middle;
}

.zph-profile-entry-name p {
    font-size: 14px;
    color: var(--profile-muted);
    margin-top: 2px;
}

.zph-profile .zph-profile-entry .zph-profile-facts {
    margin-top: 10px;
}

.zph-profile-panel-foot {
    margin: 10px 0 0;
    border-top: 1px solid var(--profile-border);
}

.zph-profile-panel-foot a {
    width: fit-content;
    padding: 4px 0;
    font-weight: 700;
}

.zph-profile-table {
    max-width: 100%;
    margin-top: 10px;
    overflow-x: auto;
    border: 1px solid var(--profile-border);
    border-radius: 8px;
}

.zph-profile .zph-profile-table-hint {
    color: var(--profile-muted);
    margin-top: 10px;
    font-size: 13px;
}

.zph-profile .zph-profile-table table {
    width: 100%;
    min-width: 490px;
    border: 0;
    border-collapse: collapse;
    margin: 0;
    table-layout: auto;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.zph-profile .zph-profile-table :is(th, td) {
    padding: 10px 12px;
    color: var(--profile-ink);
    border: 0;
    border-bottom: 1px solid var(--profile-border);
    text-align: left;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
}

.zph-profile .zph-profile-table thead th {
    background: var(--profile-wash);
    font-weight: 700;
}

.zph-profile .zph-profile-table tbody th {
    min-width: 120px;
    max-width: 190px;
    background: #fff;
    font-weight: 650;
    white-space: normal;
}

.zph-profile .zph-profile-tree {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    align-items: start;
    margin-top: 16px;
}

.zph-profile .zph-profile-tree ul {
    display: grid;
    gap: 8px;
    margin: 0;
    border-left: 2px solid #ccb8eb;
    padding-left: 12px;
}

.zph-profile .zph-profile-tree li {
    margin: 0;
    padding: 0;
}

.zph-profile-node {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--profile-border);
    border-radius: 8px;
    background: var(--profile-wash);
    line-height: 1.35;
}

.zph-profile-node span:not(.zph-profile-kicker) {
    color: var(--profile-muted);
    font-size: 13px;
}

@media (max-width: 800px) {
    .zph-profile-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .zph-profile-rail {
        grid-column: auto;
        grid-row: auto;
    }

    .zph-profile-api {
        padding: var(--profile-pad);
    }
}

@media (max-width: 480px) {
    .zph-profile-overview .zph-profile-facts {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
        gap: 9px 12px;
    }

    .zph-profile-identity {
        gap: 10px;
    }

    .zph-profile-mark {
        width: 38px;
        height: 38px;
        border-radius: 9px;
        font-size: 13px;
    }

    .zph-profile-mark svg {
        width: 20px;
        height: 20px;
    }

    .zph-profile-identity h2 {
        font-size: 24px;
    }

    .zph-profile-entry-name {
        flex-basis: calc(100% - 48px);
    }

    .zph-profile-entry-head > .zph-profile-status {
        margin-left: 47px;
    }

    .zph-profile .zph-profile-tree {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
}

/* Company report export */
.zph-profile .zph-profile-identity {
    flex-wrap: wrap;
}
.zph-profile .zph-report-download {
    position: relative;
    margin-inline-start: auto;
    align-self: flex-start;
    max-width: 100%;
}
.zph-profile .zph-report-download summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    min-height: 44px;
    border: 1px solid var(--profile-border);
    border-radius: 10px;
    background: var(--profile-wash);
    color: var(--profile-purple);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.zph-profile .zph-report-download summary::-webkit-details-marker { display: none; }
.zph-profile .zph-report-download-options {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 7px);
    z-index: 4;
    width: 215px;
    padding: 5px;
    border: 1px solid var(--profile-border);
    border-radius: 12px;
    background: white;
    box-shadow: 0 14px 30px rgba(33, 23, 46, .14);
}
.zph-profile .zph-report-download-options button {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border: 0;
    border-radius: 6px;
    background: white;
    color: var(--profile-ink);
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}
.zph-profile .zph-report-download-options button:not(:disabled):hover { background: var(--profile-wash); }
.zph-profile .zph-report-download-options button:disabled { opacity: .55; cursor: default; }
.zph-profile .zph-report-download-options small { color: var(--profile-muted); }
.zph-profile .zph-report-download-status:not(:empty) { padding: 4px 10px 8px; color: var(--profile-muted); font-size: 12px; }

@media (max-width: 640px) {
    .zph-profile .zph-profile-identity > div { flex-basis: calc(100% - 78px); }
    .zph-profile .zph-report-download { margin-inline-start: 0; flex-basis: 100%; }
    .zph-profile .zph-report-download-options { position: static; width: 100%; margin-top: 5px; box-shadow: none; }
}
