[data-report] {
    box-sizing: border-box;
    width: 100%;
    max-width: 820px;
    margin: 0 auto 32px;
    padding: 20px 24px 22px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    color: #374151;
}

[data-report] *,
[data-report] *::before,
[data-report] *::after {
    box-sizing: border-box;
}

[data-report-status] {
    display: flex;
    align-items: center;
    gap: 10px;
}

[data-report-status-indicator] {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin: 0 1px;
    border-radius: 50%;
    background: #6b7280;
    box-shadow: 0 0 0 2px #e5e7eb;
}

[data-report-verdict-level="ok"] [data-report-status-indicator] {
    background: #16a34a;
    box-shadow: 0 0 0 2px #dcfce7;
}

[data-report-verdict-level="warning"] [data-report-status-indicator] {
    background: #f59e0b;
    box-shadow: 0 0 0 2px #fef3c7;
}

[data-report-verdict-level="error"] [data-report-status-indicator] {
    background: #dc2626;
    box-shadow: 0 0 0 2px #fee2e2;
}

[data-report-title] {
    margin: 0;
    color: #1f2937;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

[data-report-sources] {
    margin: 6px 0 0 20px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

[data-report-source-link] {
    color: inherit;
    font-weight: normal;
    text-decoration: underline;
    text-underline-offset: 2px;
}

[data-report-source-link]:hover,
[data-report-source-link]:focus-visible {
    color: #172554;
}

[data-report-explanation] {
    margin-top: 16px;
    padding: 12px 14px;
    border-left: 3px solid #d1d5db;
    background: #f9fafb;
    color: #333333;
    font-size: 14px;
    line-height: 1.4;
}

[data-report-privacy-notice] p {
    margin: 4px 0 0;
}

[data-report-explanation-detail] {
    margin-top: 4px;
    font-weight: 600;
}

[data-report-external-link] {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-underline-offset: 3px;
}

[data-report-external-link]:hover,
[data-report-external-link]:focus-visible {
    color: #1d4ed8;
}

[data-report-section] {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

[data-report-section="company-identity"] {
    padding-top: 16px;
}

[data-report-company-name] {
    margin: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
}

[data-report-company-nip] {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

[data-report-section-title] {
    margin: 0 0 6px;
    color: #111827;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

[data-report-rows] {
    margin: 0;
}

[data-report-row] {
    display: grid;
    grid-template-columns: minmax(140px, 34%) minmax(0, 1fr);
    gap: 12px;
    padding-top: 8px;
    font-size: 14px;
    line-height: 1.4;
}

[data-report-row] dt,
[data-report-row] dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

[data-report-row] dt {
    color: #6b7280;
}

[data-report-row] dd {
    color: #374151;
}

[data-report-section="pkd"] {
    font-size: 14px;
    line-height: 1.4;
}

[data-report-pkd-label],
[data-report-pkd-additional] summary {
    color: #6b7280;
    font-size: inherit;
    font-weight: 400;
    line-height: 1.4;
}

[data-report-pkd-label] {
    margin: 10px 0 0;
}

[data-report-pkd-row] {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
    column-gap: 12px;
    padding: 6px 0;
    color: #374151;
}

[data-report-pkd-row] code {
    color: #4b5563;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: inherit;
    white-space: nowrap;
}

[data-report-pkd-row] span {
    min-width: 0;
    overflow-wrap: anywhere;
}

[data-report-pkd-row] span:only-child {
    grid-column: 2;
}

[data-report-pkd-additional] {
    margin-top: 8px;
}

[data-report-pkd-additional] summary {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    list-style: none;
    cursor: pointer;
}

[data-report-pkd-additional] summary::-webkit-details-marker {
    display: none;
}

[data-report-pkd-additional] summary::after {
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    content: "";
    transform: rotate(45deg);
    transition: transform 120ms ease;
}

[data-report-pkd-additional][open] summary::after {
    transform: rotate(225deg);
}

[data-report-pkd-additional] summary:hover {
    color: #111827;
}

[data-report-pkd-additional] summary:focus-visible {
    border-radius: 2px;
    outline: 2px solid #2563eb;
    outline-offset: 3px;
}

[data-report-pkd-list] {
    margin-top: 0;
}

[data-report-pkd-predominant],
[data-report-pkd-list] [data-report-pkd-row] {
    padding: 2px 0;
}

[data-report-accounts] {
    margin: 0;
    padding: 0;
    list-style: none;
}

[data-report-accounts] li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #111827;
    font-size: 14px;
    line-height: 1.4;
}

[data-report-accounts] code {
    color: inherit;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: inherit;
    white-space: normal;
    overflow-wrap: anywhere;
}

[data-report-hint] {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

[data-report-footer] {
    margin-top: 22px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

[data-report-footer] p {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

[data-report-footer] a {
    color: #1e3a8a;
    font-weight: 600;
    text-decoration: none;
}

[data-report-footer] a:hover,
[data-report-footer] a:focus-visible {
    text-decoration: underline;
}

[data-report-print-attribution] {
    display: none;
}

@media (max-width: 480px) {
    [data-report] {
        padding: 18px 16px 20px;
    }

    [data-report-sources] {
        margin-left: 20px;
    }

    [data-report-row] {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }
}

@media print {
    [data-report-pkd-additional] summary::after {
        display: none;
    }

    [data-report] {
        margin: 0;
        max-width: none;
    }

    [data-report-status-indicator] {
        display: none;
    }

    [data-report-sources] {
        margin-left: 0;
    }

    [data-report-print-attribution] {
        display: inline;
    }

    [data-report-section],
    [data-report-pkd-row],
    [data-report-explanation],
    [data-report-footer] {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
