.authorized-account-policy,
.authorized-account-owner,
.authorized-account-user,
.authorized-account-add {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.authorized-account-policy {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(64, 186, 255, 0.28);
    border-radius: 12px;
    color: var(--text-secondary, #b8c0cc);
    background: rgba(64, 186, 255, 0.07);
}

.authorized-account-owner,
.authorized-account-user {
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.authorized-account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.authorized-account-alert-opt-in {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d7dee8;
    font-size: 0.9rem;
}

.authorized-account-alert-opt-in input {
    width: 18px;
    height: 18px;
    accent-color: #f59e0b;
}

.authorized-account-owner strong,
.authorized-account-user strong,
.authorized-account-owner small,
.authorized-account-user small {
    display: block;
}

.authorized-account-role {
    display: inline-block;
    margin-right: 0.5rem;
    color: var(--accent-color, #ffb21c);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.authorized-account-add {
    align-items: stretch;
    margin-top: 1rem;
}

.authorized-account-picker {
    position: relative;
    flex: 1 1 280px;
    min-width: 0;
}

.authorized-account-search-field {
    position: relative;
}

.authorized-account-search-field > i {
    position: absolute;
    top: 50%;
    left: 1.1rem;
    z-index: 1;
    color: #8b98aa;
    pointer-events: none;
    transform: translateY(-50%);
    transition: color 0.18s ease;
}

.authorized-account-search-field .input-nota,
.authorized-account-add > .input-nota {
    width: 100%;
    min-height: 52px;
    box-sizing: border-box;
    padding: 0 18px;
    border: 1px solid #313847;
    border-radius: 16px;
    background: #12161d;
    color: #f8fafc;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.authorized-account-search-field .input-nota {
    padding-left: 3rem;
}

.authorized-account-search-field .input-nota::placeholder,
.authorized-account-add > .input-nota::placeholder {
    color: #7f8a9b;
    opacity: 1;
}

.authorized-account-search-field .input-nota:hover,
.authorized-account-add > .input-nota:hover {
    border-color: #465064;
}

.authorized-account-search-field .input-nota:focus,
.authorized-account-add > .input-nota:focus {
    border-color: rgba(245, 158, 11, 0.72);
    background: #10141b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
    outline: none;
}

.authorized-account-search-field:focus-within > i {
    color: #fbbf24;
}

.authorized-account-results {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    z-index: 160;
    display: grid;
    width: min(100%, 520px);
    max-height: min(300px, 42vh);
    padding: 0.4rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    border: 1px solid rgba(245, 158, 11, 0.38);
    border-radius: 14px;
    background: #10141b;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.44);
}

.authorized-account-results[hidden] {
    display: none;
}

.authorized-account-candidate {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.15rem 0.65rem;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 0;
    border-radius: 10px;
    color: #f8fafc;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.authorized-account-candidate:hover,
.authorized-account-candidate:focus-visible {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.14);
    outline: none;
}

.authorized-account-candidate span,
.authorized-account-candidate small {
    color: var(--text-secondary, #b8c0cc);
}

.authorized-account-candidate small {
    grid-column: 1 / -1;
    font-size: 0.72rem;
}

.authorized-account-candidate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.authorized-account-no-results {
    margin: 0;
    padding: 0.9rem;
    color: var(--text-secondary, #b8c0cc);
}

.authorized-account-add input {
    flex: 1 1 220px;
}

.authorized-account-add > .btn-epic {
    min-height: 52px;
    border-radius: 16px;
}

.authorized-account-loading,
.authorized-account-error,
.authorized-account-empty {
    padding: 0.8rem 0;
    color: var(--text-secondary, #b8c0cc);
}

@media (max-width: 720px) {
    .authorized-account-add,
    .authorized-account-user {
        align-items: stretch;
        flex-direction: column;
    }

    .authorized-account-results {
        width: 100%;
    }
}
