.pix-sheet {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    color: var(--color-text-primary, #0f172a);
}

.pix-sheet__identity {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.55rem;
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--color-text-secondary, #334155);
}

.pix-sheet__name {
    font-weight: 700;
    color: inherit;
}

.pix-sheet__username {
    font-variant-numeric: tabular-nums;
}

.pix-sheet__title {
    margin: 0 0 0.2rem;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text-primary, #0f172a);
}

.pix-sheet__payee {
    margin: 0 0 0.55rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-primary, #0f172a);
}

.pix-sheet__hint {
    margin: 0 0 0.65rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--color-text-secondary, #334155);
}

.pix-sheet__copy-bar {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0 0 0.55rem;
    padding: 0.35rem 0 0.5rem;
    background: var(--card-bg, #fff);
}

.pix-sheet__copy {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font: inherit;
    font-weight: 700;
    background: var(--button-bg, var(--color-primary-600, #7c5cdb));
    color: var(--button-text, #fff);
    cursor: pointer;
    touch-action: manipulation;
}

.pix-sheet__copy:active {
    transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
    .pix-sheet__copy:hover {
        filter: brightness(0.96);
    }

    .pix-sheet__dismiss:hover {
        background: color-mix(in srgb, currentColor 8%, transparent);
    }
}

.pix-sheet__copy:focus-visible,
.pix-sheet__code:focus-visible,
.pix-sheet__dismiss:focus-visible {
    outline: 2px solid var(--color-primary-500, #7c5cdb);
    outline-offset: 2px;
}

.pix-sheet__trust {
    margin: 0 0 0.85rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--color-text-secondary, #334155);
}

.pix-sheet__code {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 4.25rem;
    margin: 0 0 1rem;
    padding: 0.75rem;
    border: 1px solid color-mix(in srgb, var(--color-text-primary, #0f172a) 18%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--color-text-primary, #0f172a) 8%, var(--card-bg, #fff));
    color: var(--color-text-primary, inherit);
    color-scheme: inherit;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.75rem;
    line-height: 1.4;
    word-break: break-all;
    resize: none;
    box-sizing: border-box;
}

.pix-sheet__code::selection {
    background: color-mix(in srgb, var(--color-primary-500, #7c5cdb) 28%, transparent);
    color: var(--color-text-primary, #0f172a);
}

.pix-sheet__other {
    margin: 0 0 1rem;
}

.pix-sheet__other-label {
    margin: 0 0 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-secondary, #334155);
}

.pix-sheet__qr {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 0.75rem;
    background: #fff;
    color-scheme: light;
    border-radius: 12px;
    border: 1px solid var(--color-border-light, #e2e8f0);
}

.pix-sheet__qr svg,
.pix-sheet__qr svg * {
    box-sizing: content-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pix-sheet__qr svg {
    display: block;
    width: min(280px, 100%);
    height: auto;
    aspect-ratio: 1;
    max-width: 100%;
    min-height: min(240px, 36dvh);
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.pix-sheet__dismiss {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    background: transparent;
    color: var(--color-text-secondary, inherit);
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    touch-action: manipulation;
}

.pix-sheet__skeleton {
    display: grid;
    gap: 0.75rem;
    padding: 0.5rem 0 1rem;
}

.pix-sheet__skeleton::before,
.pix-sheet__skeleton::after,
.pix-sheet__skeleton-block {
    content: '';
    display: block;
    border-radius: 8px;
    background: color-mix(in srgb, currentColor 10%, transparent);
}

.pix-sheet__skeleton::before {
    height: 1.15rem;
    width: 55%;
}

.pix-sheet__skeleton::after {
    height: 2.85rem;
    width: 100%;
}

.pix-sheet__skeleton[data-testid="pix-sheet-skeleton"] {
    color: var(--color-text-secondary, #475569);
    font-size: 0.875rem;
}

.profile-share-dialog--pix .pix-sheet__skeleton {
    min-height: 8rem;
}

.pix-sheet .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 359px) {
    .pix-sheet__qr svg {
        min-width: 0;
        min-height: min(200px, 32dvh);
        width: min(240px, 100%);
    }
}

@media (max-height: 700px) {
    .pix-sheet__code {
        min-height: 3.5rem;
    }

    .pix-sheet__qr svg {
        min-height: min(200px, 28dvh);
        width: min(240px, 100%);
    }

    .pix-sheet__hint {
        margin-bottom: 0.45rem;
    }
}

@media (min-width: 768px) {
    .pix-sheet__title {
        font-size: 1.2rem;
    }

    .pix-sheet__qr svg {
        width: min(280px, 100%);
        min-height: 240px;
    }
}
