:root {
    --kol-aps-profile-surface: #ffffff;
    --kol-aps-profile-surface-soft: #f3f5f7;
    --kol-aps-profile-text: #17191c;
    --kol-aps-profile-muted: #62676d;
    --kol-aps-profile-border: #d9dde2;
    --kol-aps-profile-accent: #004b6b;
    --kol-aps-profile-accent-soft: #e6f4fa;
    --kol-aps-profile-demo: #8a5200;
    --kol-aps-profile-demo-soft: #fff3cd;
    --kol-aps-profile-shadow: 0 22px 60px rgba(11, 19, 28, 0.28);
}

html.light-mode {
    --kol-aps-profile-surface: #ffffff;
    --kol-aps-profile-surface-soft: #f3f5f7;
    --kol-aps-profile-text: #17191c;
    --kol-aps-profile-muted: #62676d;
    --kol-aps-profile-border: #d9dde2;
    --kol-aps-profile-accent: #004b6b;
    --kol-aps-profile-accent-soft: #e6f4fa;
    --kol-aps-profile-demo: #8a5200;
    --kol-aps-profile-demo-soft: #fff3cd;
    --kol-aps-profile-shadow: 0 22px 60px rgba(11, 19, 28, 0.28);
}

html.dark-mode {
    --kol-aps-profile-surface: #171a1f;
    --kol-aps-profile-surface-soft: #22262d;
    --kol-aps-profile-text: #f5f7f8;
    --kol-aps-profile-muted: #b9c0c8;
    --kol-aps-profile-border: #3a414b;
    --kol-aps-profile-accent: #78d2f4;
    --kol-aps-profile-accent-soft: #173746;
    --kol-aps-profile-demo: #ffd166;
    --kol-aps-profile-demo-soft: #423614;
    --kol-aps-profile-shadow: 0 24px 70px rgba(0, 0, 0, 0.62);
}

.kol-aps-profile-transparency-heading {
    align-items: center;
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
}

.kol-aps-profile-transparency-trigger-wrap {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 6px;
    line-height: 1;
    margin-left: 2px;
    vertical-align: middle;
}

.kol-aps-profile-transparency-trigger,
.kol-aps-profile-transparency-close {
    align-items: center;
    appearance: none;
    background: var(--kol-aps-profile-surface-soft);
    border: 1px solid var(--kol-aps-profile-border);
    box-shadow: none;
    color: var(--kol-aps-profile-text);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.kol-aps-profile-transparency-trigger {
    border-radius: 50%;
    height: 28px;
    min-height: 28px;
    min-width: 28px;
    width: 28px;
}

.kol-aps-profile-transparency-trigger:hover,
.kol-aps-profile-transparency-trigger:focus-visible {
    background: var(--kol-aps-profile-accent-soft);
    border-color: var(--kol-aps-profile-accent);
    color: var(--kol-aps-profile-accent);
}

.kol-aps-profile-transparency-trigger:focus-visible,
.kol-aps-profile-transparency-close:focus-visible,
.kol-aps-profile-transparency-dialog a:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--kol-aps-profile-accent) 48%, transparent);
    outline-offset: 2px;
}

.kol-aps-profile-transparency-icon {
    display: block;
    flex: 0 0 auto;
    height: 22px;
    width: 22px;
}

.kol-aps-profile-transparency-trigger .kol-aps-profile-transparency-icon {
    height: 17px;
    width: 17px;
}

.kol-aps-profile-transparency-modal[hidden] {
    display: none !important;
}

.kol-aps-profile-transparency-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    position: fixed;
    z-index: 2147483000;
}

.kol-aps-profile-transparency-backdrop {
    background: rgba(9, 13, 18, 0.66);
    inset: 0;
    position: absolute;
}

.kol-aps-profile-transparency-dialog {
    background: var(--kol-aps-profile-surface);
    border: 1px solid var(--kol-aps-profile-border);
    border-radius: 16px;
    box-shadow: var(--kol-aps-profile-shadow);
    color: var(--kol-aps-profile-text);
    display: flex;
    flex-direction: column;
    max-height: min(760px, calc(100vh - 36px));
    max-width: 620px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.kol-aps-profile-transparency-header {
    align-items: center;
    border-bottom: 1px solid var(--kol-aps-profile-border);
    display: flex;
    flex: 0 0 auto;
    justify-content: space-between;
    min-height: 68px;
    padding: 12px 16px 12px 24px;
}

.kol-aps-profile-transparency-header h2 {
    color: var(--kol-aps-profile-text);
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 750;
    line-height: 1.25;
    margin: 0;
    padding: 0;
}

.kol-aps-profile-transparency-close {
    border-radius: 50%;
    flex: 0 0 auto;
    font-size: 32px;
    font-weight: 300;
    height: 42px;
    line-height: 1;
    margin-left: 16px;
    width: 42px;
}

.kol-aps-profile-transparency-close:hover {
    background: var(--kol-aps-profile-accent-soft);
    border-color: var(--kol-aps-profile-accent);
    color: var(--kol-aps-profile-accent);
}

.kol-aps-profile-transparency-body {
    color: var(--kol-aps-profile-text);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 24px 26px;
}

.kol-aps-profile-transparency-intro {
    color: var(--kol-aps-profile-muted);
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 18px;
}

.kol-aps-profile-transparency-disclosure {
    align-items: flex-start;
    background: var(--kol-aps-profile-demo-soft);
    border: 1px solid color-mix(in srgb, var(--kol-aps-profile-demo) 42%, transparent);
    border-radius: 12px;
    color: var(--kol-aps-profile-demo);
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px;
}

.kol-aps-profile-transparency-disclosure strong {
    display: block;
    font-size: 15px;
    line-height: 1.35;
    margin-bottom: 4px;
}

.kol-aps-profile-transparency-disclosure p {
    color: inherit;
    font-size: 14px;
    line-height: 1.48;
    margin: 0;
}

.kol-aps-profile-transparency-facts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kol-aps-profile-transparency-facts > li {
    align-items: center;
    color: var(--kol-aps-profile-text);
    display: grid;
    font-size: 15px;
    gap: 14px;
    grid-template-columns: 28px minmax(0, 1fr);
    line-height: 1.45;
    margin: 0;
    min-height: 58px;
    padding: 9px 2px;
}

.kol-aps-profile-transparency-facts .kol-aps-profile-transparency-icon,
.kol-aps-profile-transparency-about-row .kol-aps-profile-transparency-icon {
    color: var(--kol-aps-profile-muted);
    height: 24px;
    width: 24px;
}

.kol-aps-profile-transparency-label {
    color: var(--kol-aps-profile-muted);
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.045em;
    line-height: 1.3;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.kol-aps-profile-transparency-facts a {
    color: var(--kol-aps-profile-accent);
    font-weight: 700;
    text-decoration: none;
}

.kol-aps-profile-transparency-facts a:hover {
    text-decoration: underline;
}

.kol-aps-profile-transparency-about {
    border-top: 1px solid var(--kol-aps-profile-border);
    margin-top: 14px;
    padding-top: 22px;
}

.kol-aps-profile-transparency-about h3 {
    color: var(--kol-aps-profile-text);
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 10px;
}

.kol-aps-profile-transparency-about-row {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: 28px minmax(0, 1fr);
    min-height: 52px;
    padding: 6px 2px;
}

.kol-aps-profile-transparency-about-row p {
    color: var(--kol-aps-profile-text);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

body.kol-aps-profile-transparency-open {
    overflow: hidden !important;
}

@media (max-width: 600px) {
    .kol-aps-profile-transparency-modal {
        align-items: flex-end;
        padding: 0;
    }

    .kol-aps-profile-transparency-dialog {
        border-bottom: 0;
        border-left: 0;
        border-radius: 16px 16px 0 0;
        border-right: 0;
        max-height: calc(100dvh - 18px);
        max-width: none;
    }

    .kol-aps-profile-transparency-header {
        min-height: 62px;
        padding: 10px 12px 10px 18px;
    }

    .kol-aps-profile-transparency-body {
        padding: 18px 18px calc(24px + env(safe-area-inset-bottom));
    }

}

@media (prefers-reduced-motion: no-preference) {
    .kol-aps-profile-transparency-dialog {
        animation: kol-aps-profile-dialog-in 160ms ease-out;
    }

    @keyframes kol-aps-profile-dialog-in {
        from {
            opacity: 0;
            transform: translateY(10px) scale(0.985);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
}
